:root {
    --yellow: #f8cf29;
    --black: #0a0a0a;
    --white: #ffffff;
    --off-white: #f5f5f3;
    --gray: #888;
    --light-gray: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-gray);
}

.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo span { background: var(--yellow); padding: 0.1em 0.3em; margin-left: 0.1em; }

.nav-cta {
    padding: 0.6rem 1.6rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover { background: var(--yellow); color: var(--black); }

/* ── HERO — CV CARD ── */
.hero {
    padding: 7rem 3rem 3.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
    border: 2px solid var(--black);
    padding: 2.5rem;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: -8px; bottom: -8px;
    background: var(--yellow);
    z-index: -1;
}

.photo-block {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-block img { width: 100%; height: 100%; object-fit: cover; }

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.hero-name {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--yellow);
    display: inline-block;
    padding: 0.3em 0.7em;
    margin-bottom: 1.25rem;
}

.hero-pitch {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    max-width: 440px;
    margin-bottom: 1.5rem;
}

.hero-pitch strong { color: var(--black); font-weight: 700; }

.hero-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--light-gray);
}

.detail-item { font-size: 0.72rem; color: var(--gray); }
.detail-item span { display: block; color: var(--black); font-weight: 600; font-size: 0.8rem; margin-top: 0.1rem; }

/* ── MANIFESTO ── */
.manifesto {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
}

.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.manifesto-text {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
    max-width: 780px;
}

.highlight { background: var(--yellow); padding: 0 0.12em; }

/* ── SERVICES ── */
.services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem 4.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--black);
}

.service-item {
    padding: 1.8rem 1.4rem;
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.3s;
}

.service-item:nth-child(3n) { border-right: none; }
.service-item:nth-child(n+4) { border-bottom: none; }
.service-item:hover { background: var(--yellow); }

.service-item .number { font-size: 1.5rem; font-weight: 800; opacity: 0.1; margin-bottom: 0.6rem; line-height: 1; }
.service-item:hover .number { opacity: 0.25; }
.service-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-item p { font-size: 0.78rem; color: #555; line-height: 1.65; }
.service-item:hover p { color: #333; }

/* ── PROJETS ── */
.projects {
    background: var(--black);
    color: var(--white);
    padding: 4.5rem 3rem;
}

.projects-inner { max-width: 1000px; margin: 0 auto; }

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.projects-title { font-size: 1.5rem; font-weight: 800; }
.projects-count { font-size: 2.5rem; font-weight: 800; color: var(--yellow); line-height: 1; }

.project-row {
    display: grid;
    grid-template-columns: 2rem 1.4fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #222;
    transition: all 0.3s;
    cursor: default;
}

.project-row:first-child { border-top: 1px solid #222; }
.project-row:hover { padding-left: 0.75rem; }
.project-row:hover .project-name { color: var(--yellow); }

.project-num { font-weight: 800; font-size: 0.75rem; color: #555; }
.project-name { font-weight: 700; font-size: 0.95rem; transition: color 0.3s; }
.project-type { font-size: 0.72rem; color: #777; }
.project-tech { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tech-tag { padding: 0.15rem 0.5rem; border: 1px solid #333; font-size: 0.6rem; font-weight: 500; color: #999; }
.project-arrow { font-size: 1rem; color: #333; transition: color 0.3s; }
.project-row:hover .project-arrow { color: var(--yellow); }

/* ── PROOF ── */
.proof { max-width: 1000px; margin: 0 auto; padding: 4.5rem 3rem; }

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--black);
}

.proof-item { padding: 1.8rem 1.2rem; text-align: center; border-right: 1px solid var(--light-gray); }
.proof-item:last-child { border-right: none; }
.proof-number { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.proof-number .y { background: var(--yellow); padding: 0 0.08em; }
.proof-label { font-size: 0.68rem; color: var(--gray); line-height: 1.4; }

/* ── CTA ── */
.cta-section { background: var(--yellow); padding: 4.5rem 3rem; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-heading { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.8rem; }
.cta-sub { font-size: 0.95rem; color: #333; line-height: 1.7; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.btn-primary {
    padding: 0.85rem 2rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover { background: var(--white); color: var(--black); }

.btn-secondary {
    padding: 0.85rem 2rem;
    background: transparent;
    border: 2px solid var(--black);
    color: var(--black);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover { background: var(--black); color: var(--yellow); }

/* ── FOOTER ── */
footer {
    padding: 1.2rem 3rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--gray);
}

footer a { color: var(--black); text-decoration: none; font-weight: 600; }

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .hero { padding: 5.5rem 1.5rem 2.5rem; }
    .hero-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
    .hero-card::before { top: 5px; left: 5px; right: -5px; bottom: -5px; }
    .photo-block { max-width: 200px; margin: 0 auto; }
    .hero-name { font-size: 1.8rem; }
    .hero-details { grid-template-columns: 1fr; }
    .manifesto, .services, .proof { padding-left: 1.5rem; padding-right: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-item { border-right: none !important; border-bottom: 1px solid var(--light-gray) !important; }
    .service-item:last-child { border-bottom: none !important; }
    .projects { padding: 3.5rem 1.5rem; }
    .project-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0; }
    .project-num, .project-arrow { display: none; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-item { border-bottom: 1px solid var(--light-gray); }
    .proof-item:nth-child(2n) { border-right: none; }
    .cta-section { padding: 3.5rem 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.2rem 1.5rem; }
}
