:root {
    --paper: #f7f4ee;
    --paper-soft: #fffdf9;
    --paper-deep: #eee5d8;
    --paper-dark: #ddcdb5;
    --ink: #26221d;
    --ink-soft: #443f37;
    --muted: #777065;
    --line: rgba(38, 34, 29, 0.14);
    --line-strong: rgba(38, 34, 29, 0.26);
    --accent: #9c7f5d;
    --accent-soft: #d5c0a3;
    --shadow: 0 28px 80px rgba(71, 55, 35, 0.10);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(255,255,255,.72), transparent 28rem),
        radial-gradient(circle at 85% 22%, rgba(213,192,163,.12), transparent 34rem),
        var(--paper);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--ink);
    color: var(--paper-soft);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.cursor-glow {
    position: fixed;
    width: 26rem;
    height: 26rem;
    left: 0;
    top: 0;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.76), rgba(255,255,255,0) 68%);
    transform: translate(-50%, -50%);
    opacity: .7;
    will-change: transform;
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 100;
    width: min(calc(100% - 36px), var(--max-width));
    height: 68px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 18px 0 22px;
    border: 1px solid rgba(55,45,34,.10);
    border-radius: 22px;
    background: rgba(255, 253, 249, .76);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(67, 53, 36, .06);
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.site-header.scrolled {
    background: rgba(255, 253, 249, .92);
    box-shadow: 0 12px 34px rgba(67, 53, 36, .10);
}

.brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.06em;
    font-size: 1.15rem;
}

.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.top-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.top-nav a,
.header-link {
    position: relative;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
}

.top-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
}

.top-nav a:hover::after,
.top-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: transform .2s ease, background .2s ease;
}

.header-link:hover {
    background: #fffaf2;
    transform: translateY(-2px);
}

.hero {
    position: relative;
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 100svh;
    margin: 0 auto;
    padding: 148px 0 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr);
    align-items: center;
    gap: 80px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    max-width: 920px;
    margin: 25px 0 28px;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4rem, 7.5vw, 8rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.055em;
}

.hero h1 em,
.section-heading h2 em,
.contact-shell h2 em {
    color: var(--accent);
    font-weight: 400;
}

.hero-description {
    max-width: 720px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.17rem);
    line-height: 1.8;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    text-decoration: none;
    font-size: .83rem;
    font-weight: 700;
    transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper-soft);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-ghost {
    background: rgba(255,255,255,.20);
}

.btn-ghost:hover {
    background: var(--paper-soft);
}

.hero-playground {
    position: relative;
    min-height: 540px;
    display: grid;
    place-items: center;
}

.hero-object {
    position: relative;
    width: min(32vw, 420px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), transparent 26%),
        linear-gradient(145deg, #e8dcc8, #d7c2a4);
    box-shadow:
        inset -24px -26px 50px rgba(100,72,43,.10),
        inset 18px 18px 42px rgba(255,255,255,.55),
        0 44px 90px rgba(80,57,34,.14);
}

.hero-brace {
    position: relative;
    z-index: 2;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(6rem, 10vw, 10rem);
    line-height: 1;
    letter-spacing: .05em;
    transform: translateY(-5%);
}

.hero-object-label {
    position: absolute;
    left: 50%;
    bottom: 13%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--muted);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.orbit {
    position: absolute;
    inset: -9%;
    border: 1px solid rgba(38,34,29,.17);
    border-radius: 50%;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: 10%;
    left: 20%;
    border-radius: 50%;
    background: var(--ink);
}

.orbit-one {
    animation: orbit 15s linear infinite;
}

.orbit-two {
    inset: -17%;
    opacity: .55;
    animation: orbit 23s linear infinite reverse;
}

.floating-code {
    position: absolute;
    z-index: 3;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,253,249,.88);
    box-shadow: 0 14px 32px rgba(67,53,36,.08);
    color: var(--ink-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .75rem;
    animation: float 5s ease-in-out infinite;
}

.code-a { top: 16%; left: -3%; }
.code-b { top: 56%; right: -3%; animation-delay: -1.6s; }
.code-c { bottom: 12%; left: 10%; animation-delay: -3s; }

.scroll-cue {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scroll-cue i {
    animation: bob 1.6s ease-in-out infinite;
}

.brace-story {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-soft);
}

.brace-track {
    height: 265vh;
}

.brace-stage {
    --brace-zoom: 0;
    --brace-open: 0;
    --story-progress: 0;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.brace-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 50%, rgba(230,214,187,.55), transparent 38%),
        linear-gradient(var(--paper-soft), #faf7f1);
}

.brace-stage::after {
    content: 'scroll / abrir';
    position: absolute;
    right: 34px;
    bottom: 30px;
    color: rgba(38,34,29,.38);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: calc(1 - var(--story-progress));
}

.brace {
    position: absolute;
    top: 50%;
    z-index: 2;
    color: var(--ink);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(17rem, 38vw, 42rem);
    line-height: .7;
    user-select: none;
    will-change: transform;
}

.brace-left {
    left: 50%;
    transform:
        translate(calc(-100% - (var(--brace-open) * 25vw)), -50%)
        scale(calc(.62 + (var(--brace-zoom) * .38)));
    transform-origin: center right;
}

.brace-right {
    right: 50%;
    transform:
        translate(calc(100% + (var(--brace-open) * 25vw)), -50%)
        scale(calc(.62 + (var(--brace-zoom) * .38)));
    transform-origin: center left;
}

.story-card {
    width: min(calc(100% - 48px), 770px);
    position: relative;
    z-index: 1;
    padding: 50px 54px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255,253,249,.86);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    opacity: var(--story-progress);
    transform: translateY(calc((1 - var(--story-progress)) * 35px)) scale(calc(.96 + (var(--story-progress) * .04)));
    pointer-events: none;
}

.story-kicker {
    display: block;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.story-card h2,
.section-heading h2,
.contact-shell h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -.035em;
}

.story-card h2 {
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: .95;
}

.story-card p {
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.82;
}

.story-card p + p {
    margin-top: 14px;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.story-tags span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.section-shell {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 140px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    margin-bottom: 72px;
}

.section-index {
    padding-top: 8px;
    color: var(--accent);
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
}

.section-heading h2 {
    max-width: 850px;
    margin-top: 12px;
    font-size: clamp(3rem, 6vw, 6.4rem);
    line-height: .95;
}

.journey {
    padding-bottom: 80px;
}

.timeline {
    margin-left: 150px;
    border-top: 1px solid var(--line-strong);
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 220px;
    border-bottom: 1px solid var(--line-strong);
}

.timeline-marker {
    padding: 34px 20px 34px 0;
}

.timeline-marker span {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.timeline-content {
    padding: 32px 0 34px;
}

.timeline-meta {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-bottom: 14px;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

.timeline-content > p:last-child {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.75;
}

.skills-section {
    padding-top: 90px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.skill-card {
    min-height: 390px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(251,247,239,.52);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: border-color .2s ease, box-shadow .25s ease;
}

.skill-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 22px 60px rgba(67,53,36,.08);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: auto -30% -45% 20%;
    height: 70%;
    border-radius: 50%;
    background: rgba(215,195,162,.28);
    filter: blur(20px);
}

.skill-number {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.skill-card i {
    margin-top: auto;
    margin-bottom: 26px;
    color: var(--accent);
    font-size: 2.3rem;
}

.skill-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
}

.skill-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
}

.projects-section {
    padding-bottom: 150px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    display: block;
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(251,247,239,.56);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transform-style: preserve-3d;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.project-image {
    aspect-ratio: 16 / 9;
    margin: 12px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--paper-deep);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.78) contrast(.95);
    transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}

.project-card:hover img {
    transform: scale(1.035);
    filter: saturate(.95) contrast(1);
}

.project-info {
    position: relative;
    padding: 22px 28px 30px;
}

.project-info > span {
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 7px 44px 8px 0;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

.project-info p {
    max-width: 86%;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.65;
}

.project-info i {
    position: absolute;
    top: 34px;
    right: 30px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform .2s ease, background .2s ease;
}

.project-card:hover .project-info i {
    transform: rotate(8deg) translate(2px, -2px);
    background: var(--paper-soft);
}

.contact-section {
    padding: 0 24px 30px;
}

.contact-shell {
    width: min(100%, var(--max-width));
    min-height: 600px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 42px;
    background: var(--ink);
    color: var(--paper-soft);
    overflow: hidden;
    position: relative;
}

.contact-shell::before,
.contact-shell::after {
    content: '{';
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.035);
    font-family: 'DM Serif Display', serif;
    font-size: min(43vw, 34rem);
    line-height: 1;
}

.contact-shell::after {
    content: '}';
    right: -7%;
}

.contact-shell .eyebrow {
    position: relative;
    z-index: 1;
    color: var(--accent-soft);
}

.contact-shell h2 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 20px 0 24px;
    font-size: clamp(3.8rem, 8vw, 8rem);
    line-height: .89;
}

.contact-shell h2 em {
    color: var(--accent-soft);
}

.contact-shell > p:not(.eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 660px;
    color: rgba(251,247,239,.66);
    line-height: 1.75;
}

.contact-shell .contact-actions {
    position: relative;
    z-index: 1;
}

.contact-shell .btn-primary {
    background: var(--paper-soft);
    border-color: var(--paper-soft);
    color: var(--ink);
}

.contact-shell .btn-primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

.contact-shell .btn-ghost {
    color: var(--paper-soft);
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.03);
}

.contact-shell .btn-ghost:hover {
    background: rgba(255,255,255,.10);
}

footer {
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 110px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: .72rem;
}

footer span:first-child {
    color: var(--ink);
    font-weight: 800;
}

footer a {
    justify-self: end;
    text-decoration: none;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.25,1);
}

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

@keyframes orbit {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 150px;
    }

    .hero-playground {
        min-height: 440px;
    }

    .hero-object {
        width: min(56vw, 420px);
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --radius-xl: 26px;
        --radius-lg: 20px;
    }

    .cursor-glow {
        display: none;
    }

    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        height: 60px;
        grid-template-columns: 1fr auto;
        border-radius: 18px;
        padding: 0 14px 0 16px;
    }

    .top-nav {
        display: none;
    }

    .header-link {
        padding: 9px 12px;
    }

    .hero {
        width: calc(100% - 32px);
        padding: 118px 0 72px;
        gap: 12px;
    }

    .hero h1 {
        font-size: clamp(3.35rem, 17vw, 5.4rem);
    }

    .hero-description {
        line-height: 1.68;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-playground {
        min-height: 340px;
    }

    .hero-object {
        width: min(72vw, 340px);
    }

    .floating-code {
        font-size: .64rem;
    }

    .code-a { left: 0; }
    .code-b { right: 0; }
    .scroll-cue { bottom: 18px; }

    .brace-track {
        height: 230vh;
    }

    .brace-stage {
        min-height: 560px;
    }

    .brace {
        font-size: clamp(13rem, 64vw, 24rem);
    }

    .brace-left {
        transform:
            translate(calc(-100% - (var(--brace-open) * 36vw)), -50%)
            scale(calc(.62 + (var(--brace-zoom) * .38)));
    }

    .brace-right {
        transform:
            translate(calc(100% + (var(--brace-open) * 36vw)), -50%)
            scale(calc(.62 + (var(--brace-zoom) * .38)));
    }

    .story-card {
        width: calc(100% - 28px);
        padding: 30px 24px;
        border-radius: 24px;
    }

    .story-card h2 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .story-card p {
        font-size: .88rem;
        line-height: 1.7;
    }

    .brace-stage::after {
        right: 16px;
        bottom: 18px;
    }

    .section-shell {
        width: calc(100% - 32px);
        padding: 100px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 44px;
    }

    .section-index {
        padding: 0;
    }

    .section-heading h2 {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 28px 0;
    }

    .timeline-marker,
    .timeline-content {
        padding: 0;
    }

    .timeline-marker {
        margin-bottom: 18px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 330px;
    }

    .project-info p {
        max-width: 100%;
    }

    .contact-section {
        padding: 0 10px 20px;
    }

    .contact-shell {
        min-height: 620px;
        padding: 46px 24px;
        border-radius: 30px;
    }

    .contact-shell h2 {
        font-size: clamp(3.2rem, 16vw, 5.5rem);
    }

    footer {
        width: calc(100% - 32px);
        padding: 28px 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    footer a {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* --- Esfera viva / Three.js ------------------------------------------------ */
.hero-playground {
    isolation: isolate;
    min-height: 610px;
}

.sphere-shell {
    position: relative;
    width: min(39vw, 520px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: crosshair;
    user-select: none;
    touch-action: pan-y;
    filter: drop-shadow(0 42px 46px rgba(73, 55, 35, .12));
}

/* Concentric rings + luminous orbit reproduce the polished orbital language
   from the approved reference while remaining independent from WebGL. */
.sphere-rings {
    position: absolute;
    z-index: 4;
    inset: -18%;
    pointer-events: none;
}

.sphere-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(77, 66, 52, .14);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sphere-ring-a {
    width: 76%;
    height: 76%;
}

.sphere-ring-b {
    width: 90%;
    height: 90%;
    opacity: .76;
}

.sphere-ring-c {
    width: 104%;
    height: 104%;
    opacity: .46;
}

.sphere-orbit-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(52, 45, 36, .82);
    box-shadow: 0 2px 8px rgba(52,45,36,.08);
}

.sphere-dot-a {
    left: 4.5%;
    top: 50%;
}

.sphere-dot-b {
    right: 5.5%;
    top: 25%;
    opacity: .66;
}

.sphere-orbit-glow {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 54%;
    width: 101%;
    height: 34%;
    border: 1.5px solid rgba(234, 196, 130, .66);
    border-left-color: rgba(255, 247, 227, .92);
    border-right-color: rgba(220, 173, 102, .48);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    box-shadow: 0 0 12px rgba(236, 193, 121, .22);
    opacity: .55;
}

.sphere-aura {
    position: absolute;
    z-index: 0;
    inset: -5%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 23%, rgba(255,255,255,.34) 0 5%, rgba(255,255,255,.09) 15%, transparent 34%),
        radial-gradient(circle at 55% 61%, rgba(255, 212, 64, .18), rgba(255, 212, 64, .08) 48%, transparent 72%);
    opacity: .92;
    pointer-events: none;
    animation: sphereBreath 5.8s ease-in-out infinite;
}

.sphere-aura::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    box-shadow:
        inset 16px 14px 34px rgba(255,255,255,.34),
        inset -20px -24px 46px rgba(176,134,81,.08),
        0 0 58px rgba(234,207,170,.12);
}

.sphere-webgl,
.sphere-fallback {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.sphere-webgl {
    z-index: 3;
    overflow: visible;
}

.sphere-webgl canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 0;
    outline: none;
}

/* CSS fallback intentionally mirrors the new pearl / warm-ivory visual. */
.sphere-fallback {
    z-index: 2;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 29% 21%, rgba(255,255,255,.98), rgba(255,255,255,.24) 20%, transparent 38%),
        radial-gradient(circle at 62% 68%, #ffd400 0, #ffd70f 45%, #ffdc2b 76%, #ffe66b 100%);
    border: 1px solid rgba(255,240,170,.7);
    box-shadow:
        inset -14px -16px 28px rgba(130,96,0,.10),
        inset 10px 10px 22px rgba(255,255,255,.14),
        0 38px 86px rgba(74,56,35,.12);
    transition: opacity .45s ease;
}

.sphere-shell.is-webgl-ready .sphere-fallback {
    opacity: 0;
}

.fallback-eye {
    position: absolute;
    top: 35%;
    width: 21%;
    height: 27%;
    border-radius: 50% 50% 48% 48%;
    background: radial-gradient(circle at 50% 46%, #ffffff 0 70%, #f2f2f2 100%);
    border: 4px solid #171717;
    box-shadow: 0 2px 4px rgba(53,35,22,.08);
}

.fallback-eye::after {
    content: '';
    position: absolute;
    width: 10%;
    aspect-ratio: 1;
    left: 52%;
    top: 22%;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 8px 8px 0 -4px rgba(255,255,255,.92);
}

.fallback-eye.eye-left { left: 24%; transform: rotate(-3deg); }
.fallback-eye.eye-right { right: 24%; transform: rotate(3deg); }

.fallback-eye::before {
    content: '';
    position: absolute;
    width: 115%;
    height: 18%;
    left: -8%;
    top: -38%;
    border-top: 7px solid #1a1a1a;
    border-radius: 50%;
    transform: rotate(-8deg);
}

.fallback-eye.eye-right::before {
    transform: rotate(8deg);
}

.fallback-mouth {
    position: absolute;
    left: 50%;
    top: 64%;
    width: 7%;
    height: 4%;
    transform: translateX(-50%);
    border-bottom: 3px solid #1a1a1a;
    border-radius: 0 0 52% 52%;
}

.sphere-caption {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: -10.5%;
    transform: translateX(-50%);
    color: var(--muted);
    white-space: nowrap;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
    pointer-events: none;
}

.sphere-hint {
    position: absolute;
    right: -2%;
    bottom: 2%;
    max-width: 210px;
    color: rgba(68,63,55,.58);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .64rem;
    line-height: 1.5;
    text-align: right;
}

.sphere-event-badge {
    position: absolute;
    z-index: 9;
    top: 7%;
    right: -3%;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,253,249,.94);
    color: var(--ink-soft);
    box-shadow: 0 10px 28px rgba(61,48,34,.07);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .61rem;
    letter-spacing: .07em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.sphere-event-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sphereBreath {
    0%, 100% { transform: scale(.987); opacity: .78; }
    50% { transform: scale(1.022); opacity: .98; }
}

@media (min-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(470px, .95fr);
        gap: 54px;
    }
}

@media (max-width: 1050px) {
    .hero-playground { min-height: 560px; }
    .sphere-shell { width: min(62vw, 475px); }
    .sphere-hint { right: 7%; }
}

@media (max-width: 760px) {
    .hero-playground { min-height: 440px; }
    .sphere-shell { width: min(86vw, 390px); }
    .sphere-rings { inset: -12%; }
    .sphere-caption { bottom: -12%; }
    .sphere-hint { display: none; }
    .sphere-event-badge { right: 0; top: 4%; }
    .sphere-orbit-dot { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .sphere-aura { animation: none; }
}


/* --- V8: hero editorial/profissional, sem esfera --- */
.hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: clamp(54px, 7vw, 96px);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(38, 34, 29, .08);
    pointer-events: none;
}

.hero-visual::before {
    width: min(38vw, 520px);
    aspect-ratio: 1;
}

.hero-visual::after {
    width: min(31vw, 420px);
    aspect-ratio: 1;
}

.hero-visual-frame {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    min-height: 450px;
    padding: 26px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    border: 1px solid rgba(38, 34, 29, .15);
    border-radius: 28px;
    background: rgba(255, 253, 249, .74);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 70px rgba(71, 55, 35, .08);
    overflow: hidden;
}

.hero-visual-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(213,192,163,.11), transparent 45%);
    pointer-events: none;
}

.hero-visual-topline,
.hero-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-visual-mark {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: center;
    color: var(--ink);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(7rem, 13vw, 11rem);
    line-height: .8;
    letter-spacing: .03em;
    transform: translateY(-2%);
}

.hero-visual-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-visual-copy span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.38);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
}

.hero-visual-footer {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-transform: none;
    letter-spacing: 0;
    font-size: .69rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-visual::before {
        width: min(78vw, 500px);
    }

    .hero-visual::after {
        width: min(64vw, 410px);
    }
}

@media (max-width: 560px) {
    .hero-visual-frame {
        min-height: 380px;
        padding: 20px;
        border-radius: 22px;
    }

    .hero-visual-footer {
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   TESTE SPHERE — Three.js + GLSL procedural
   Mantido separado do restante do layout para remoção fácil.
   ========================================================= */
.sphere-test-visual {
    min-height: 560px;
    display: grid;
    place-items: center;
}

.sphere-test-shell {
    position: relative;
    width: min(36vw, 480px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.sphere-test-shell::before {
    content: '';
    position: absolute;
    width: 78%;
    height: 12%;
    left: 11%;
    bottom: 3%;
    border-radius: 50%;
    background: rgba(84, 67, 34, .12);
    filter: blur(22px);
    z-index: -2;
}

.sphere-test-shell::after {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 221, 74, .18), transparent 70%);
    filter: blur(26px);
    z-index: -1;
}

.sphere-test-canvas {
    z-index: 2;
}

.sphere-test-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

.sphere-test-label {
    position: absolute;
    left: 50%;
    bottom: -8px;
    z-index: 4;
    transform: translate(-50%, 100%);
    display: flex;
    gap: 9px;
    align-items: center;
    white-space: nowrap;
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sphere-test-label strong {
    color: var(--ink);
    font-weight: 700;
}

@media (max-width: 920px) {
    .sphere-test-visual { min-height: 460px; }
    .sphere-test-shell { width: min(76vw, 430px); }
}

@media (max-width: 640px) {
    .sphere-test-visual { min-height: 390px; }
    .sphere-test-shell { width: min(82vw, 350px); }
}


/* V3: sphere clean — no decorative concentric rings around it */
.sphere-test-visual::before,
.sphere-test-visual::after {
    content: none !important;
    display: none !important;
}

.sphere-test-shell {
    cursor: grab;
    touch-action: none;
    will-change: transform;
    transition: filter .18s ease;
}

.sphere-test-shell.is-dragging {
    cursor: grabbing;
    filter: drop-shadow(0 18px 22px rgba(68, 45, 10, .10));
}


/* V4: arraste visível e confortável */
.sphere-test-visual {
    position: relative;
    overflow: visible;
}
.sphere-test-shell {
    z-index: 3;
}
.sphere-test-shell.is-dragging {
    transition: none;
}


/* V5 — contraste editorial: algumas seções em branco puro */
.journey,
.projects-section {
    position: relative;
    background: #ffffff;
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
}

.journey .timeline,
.projects-section .projects-grid {
    position: relative;
    z-index: 1;
}

.projects-section .project-card {
    background: #fffdf9;
}

/* O arraste fica evidente inclusive no fallback sem WebGL. */
.sphere-test-shell {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.sphere-test-shell.is-dragging {
    cursor: grabbing;
    transition: none !important;
}


/* V6 — LED Sphere + bloom: apenas halo luminoso, sem círculos/riscos orbitais */
.sphere-test-shell::after {
    inset: 6%;
    background: radial-gradient(circle, rgba(255, 202, 25, .20) 0%, rgba(255, 205, 38, .09) 46%, transparent 72%);
    filter: blur(32px);
}
.sphere-test-canvas canvas {
    filter: saturate(1.10);
}
.sphere-test-label span {
    color: #9b7d3c;
}


/* =========================================================
   V7 — Home preto + Sphere central + arraste real do objeto 3D
   ========================================================= */
.hero {
    isolation: isolate;
    min-height: 100svh;
    display: block;
    padding-top: 118px;
    padding-bottom: 74px;
    color: #ffffff;
}
.hero::before {
    content: '';
    position: absolute;
    z-index: -3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 198, 0, .055), transparent 28rem),
        #050505;
}
.hero-copy {
    position: absolute;
    z-index: 7;
    left: 0;
    top: 50%;
    width: min(34vw, 410px);
    transform: translateY(-50%);
    pointer-events: auto;
}
.hero h1 {
    margin-top: 20px;
    font-size: clamp(3.25rem, 5.1vw, 5.8rem);
    color: #ffffff;
}
.hero h1 em {
    color: #d9c49c;
}
.hero .eyebrow,
.hero-description,
.hero .scroll-cue {
    color: rgba(255,255,255,.66);
}
.hero .eyebrow > span {
    background: rgba(255,255,255,.46);
}
.hero .btn-primary {
    color: #101010;
    background: #ffffff;
    border-color: #ffffff;
}
.hero .btn-primary:hover {
    color: #101010;
    background: #f0e4cf;
    border-color: #f0e4cf;
}
.hero .btn-ghost {
    color: #ffffff;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.26);
}
.hero .btn-ghost:hover {
    background: rgba(255,255,255,.10);
}
.hero .scroll-cue {
    z-index: 8;
}

.sphere-test-visual {
    position: absolute;
    z-index: 3;
    inset: 0;
    min-height: 0;
    display: block;
    overflow: visible;
    pointer-events: none;
}
.sphere-test-shell {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    cursor: default;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    transform: none !important;
    filter: none !important;
}
.sphere-test-shell::before,
.sphere-test-shell::after,
.sphere-test-visual::before,
.sphere-test-visual::after {
    content: none !important;
    display: none !important;
}
.sphere-test-shell.is-dragging {
    cursor: grabbing;
}
.sphere-test-canvas {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: visible;
}
.sphere-test-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    filter: saturate(1.08);
}
.sphere-test-label {
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.48);
}
.sphere-test-label span,
.sphere-test-label strong {
    color: rgba(255,255,255,.58);
}

/* mantém contraste claro depois da dobra inicial */
.brace-story {
    background: var(--paper-soft);
}
.journey,
.projects-section {
    position: relative;
    background: #ffffff;
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
}
.projects-section .project-card {
    background: #fffdf9;
}

@media (max-width: 980px) {
    .hero {
        padding-top: 108px;
    }
    .hero-copy {
        top: 120px;
        left: 50%;
        width: min(88vw, 700px);
        transform: translateX(-50%);
        text-align: center;
    }
    .hero .eyebrow,
    .hero-actions {
        justify-content: center;
    }
    .hero h1 {
        font-size: clamp(2.7rem, 8vw, 4.6rem);
    }
    .hero-description {
        max-width: 640px;
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .hero-copy {
        top: 104px;
        width: calc(100% - 36px);
    }
    .hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.55rem);
    }
    .hero-description {
        font-size: .94rem;
        line-height: 1.55;
    }
    .hero-actions {
        margin-top: 20px;
    }
    .sphere-test-label {
        bottom: 42px;
    }
}


/* =========================================================
   V8 — Sphere V6 visual + conteúdo abaixo
   ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 112px 0 76px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    z-index: -3;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #050505;
}
.sphere-test-visual {
    position: relative !important;
    inset: auto !important;
    order: 1;
    z-index: 3;
    width: min(78vw, 560px);
    height: min(57vw, 520px);
    min-height: 390px;
    display: grid !important;
    place-items: center;
    overflow: visible;
    pointer-events: auto;
}
.sphere-test-shell {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    transform: none !important;
    filter: none !important;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
}
.sphere-test-shell.is-dragging { cursor: grabbing; }
.sphere-test-canvas {
    position: absolute;
    inset: 0;
    overflow: visible;
}
.sphere-test-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    filter: none;
}
.sphere-test-shell::before,
.sphere-test-visual::before,
.sphere-test-visual::after {
    content: none !important;
    display: none !important;
}
.sphere-test-shell::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    z-index: -1;
    width: 56%;
    height: 18%;
    left: 50%;
    bottom: 11%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 190, 0, .16), rgba(255, 190, 0, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}
.sphere-test-label {
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    color: rgba(255,255,255,.42) !important;
}
.sphere-test-label span,
.sphere-test-label strong { color: rgba(255,255,255,.58) !important; }
.hero-copy {
    position: relative !important;
    inset: auto !important;
    order: 2;
    width: min(900px, 100%) !important;
    transform: none !important;
    text-align: center;
    z-index: 7;
    margin-top: 4px;
}
.hero .eyebrow,
.hero-actions { justify-content: center; }
.hero h1 {
    max-width: 920px;
    margin: 18px auto 22px;
    font-size: clamp(3rem, 6vw, 6rem);
    color: #fff;
}
.hero-description {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.66);
}
.hero-actions { margin-top: 28px; }
.hero .scroll-cue {
    position: relative;
    order: 3;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 22px;
    color: rgba(255,255,255,.48);
}
@media (max-width: 760px) {
    .hero { width: min(calc(100% - 28px), var(--max-width)); padding-top: 102px; }
    .sphere-test-visual { width: min(94vw, 480px); height: min(86vw, 450px); min-height: 330px; }
    .hero h1 { font-size: clamp(2.45rem, 10.5vw, 4rem); }
    .hero-description { font-size: .96rem; line-height: 1.65; }
}


/* Sphere limpa: sem fallback visual antigo. */
.sphere-load-error {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: rgba(255,255,255,.72);
    text-align: center;
    font-size: .8rem;
    line-height: 1.5;
}
.sphere-test-canvas { touch-action: none; }


/* V15 adjustments */
.sphere-test-label { display: none !important; }
.hero .eyebrow { display: none !important; }
.sphere-test-visual { width: min(96vw, 860px) !important; height: min(72vw, 760px) !important; min-height: 560px !important; max-width: none !important; }
.sphere-test-shell { overflow: visible !important; }
.sphere-test-canvas, .sphere-test-canvas canvas { overflow: visible !important; }
@media (max-width: 980px) { .sphere-test-visual { width: min(100vw, 760px) !important; height: min(86vw, 640px) !important; min-height: 460px !important; } }
@media (max-width: 640px) { .sphere-test-visual { width: 100vw !important; height: min(100vw, 520px) !important; min-height: 360px !important; } }


/* =========================================================
   V19 — Trajetória em zigue-zague guiada pelo scroll
   ========================================================= */
.trajectory-story {
    position: relative;
    overflow: clip;
    padding: 130px 0 120px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 8%, rgba(216,195,165,.20), transparent 28%),
        var(--paper-soft);
}

.trajectory-heading {
    width: min(calc(100% - 48px), 920px);
    margin: 0 auto 86px;
    text-align: center;
}

.trajectory-heading h2 {
    margin: 0 auto 20px;
    max-width: 820px;
    color: var(--ink);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
}

.trajectory-heading > p:last-child {
    max-width: 620px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.trajectory-flow {
    position: relative;
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    isolation: isolate;
}

.trajectory-path {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

#trajectory-zigzag-path {
    fill: none;
    stroke: rgba(184,145,91,.58);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 6px 9px rgba(110,77,39,.10));
}

.trajectory-arrow {
    opacity: 0;
    transition: opacity .2s ease;
}

.trajectory-arrow circle {
    fill: #fffdf9;
    stroke: rgba(184,145,91,.74);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.trajectory-arrow path {
    fill: none;
    stroke: #a8793f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.trajectory-step {
    position: relative;
    z-index: 2;
    min-height: 58vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    align-items: center;
    opacity: .18;
    transform: translateY(42px) scale(.985);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1);
}

.trajectory-step.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.trajectory-step-card {
    width: min(100%, 470px);
    padding: 34px 36px 36px;
    border: 1px solid rgba(75,59,37,.12);
    border-radius: 28px;
    background: rgba(255,253,249,.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(67,53,36,.07);
}

.trajectory-step:nth-of-type(odd) .trajectory-step-card {
    grid-column: 1;
    justify-self: end;
    text-align: right;
}

.trajectory-step:nth-of-type(even) .trajectory-step-card {
    grid-column: 3;
    justify-self: start;
}

.trajectory-step-number {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(184,145,91,.38);
    border-radius: 50%;
    background: #fffdf9;
    box-shadow: 0 12px 28px rgba(80,58,27,.09);
    color: #9b6d33;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.trajectory-step-kicker {
    margin-bottom: 10px;
    color: #a8793f !important;
    font-size: .68rem !important;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.trajectory-step-card h3 {
    margin: 0 0 15px;
    color: var(--ink);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.trajectory-step-card > p:last-child {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.78;
}

@media (max-width: 720px) {
    .trajectory-story {
        padding: 100px 0 84px;
    }
    .trajectory-heading {
        width: calc(100% - 36px);
        margin-bottom: 54px;
        text-align: left;
    }
    .trajectory-flow {
        width: calc(100% - 28px);
    }
    .trajectory-step {
        min-height: 52vh;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 0;
    }
    .trajectory-step-number {
        grid-column: 1;
        justify-self: start;
        width: 42px;
        height: 42px;
    }
    .trajectory-step-card,
    .trajectory-step:nth-of-type(odd) .trajectory-step-card,
    .trajectory-step:nth-of-type(even) .trajectory-step-card {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
        text-align: left;
        padding: 28px 26px 30px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trajectory-step {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.angel-halo {
    position: absolute;
    left: 50%;
    top: 7.2%;
    width: min(42%, 200px);
    aspect-ratio: 2.6 / 1;
    transform: translate(-50%, -50%) scale(.72) rotateX(58deg);
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: opacity .28s ease, transform .42s cubic-bezier(.2,.8,.2,1);
    filter: drop-shadow(0 0 20px rgba(255,255,255,.42)) drop-shadow(0 0 36px rgba(121,250,255,.52));
}

.angel-halo.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(62deg);
    animation: angelHaloFloat 2.5s ease-in-out infinite;
}

.angel-halo-ring,
.angel-halo-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.angel-halo-ring {
    border: 8px solid rgba(225, 253, 255, .98);
    box-shadow:
        0 0 10px rgba(255,255,255,.92),
        0 0 24px rgba(150,244,255,.86),
        0 0 46px rgba(124,232,255,.72),
        inset 0 0 10px rgba(255,255,255,.5);
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.14) 0 42%, rgba(255,255,255,0) 60%);
}

.angel-halo-glow {
    inset: -12px;
    background: radial-gradient(ellipse at center, rgba(224,252,255,.30) 0%, rgba(134,242,255,.22) 40%, rgba(134,242,255,0) 72%);
    filter: blur(10px);
    opacity: .95;
}

.sphere-test-shell.is-exploding .angel-halo {
    opacity: 0 !important;
}

@keyframes angelHaloFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotateX(62deg) translateY(0); }
    50% { transform: translate(-50%, -50%) scale(1.02) rotateX(62deg) translateY(-6px); }
}

/* V60 rebase — a explosão agora é 3D e nasce da própria esfera. */
.sphere-test-shell.is-exploding .sphere-accessory {
    opacity: 0 !important;
}

/* V54 rebase — card CriaByte com logo real e stack */
.criabyte-logo-image {
    display: grid;
    place-items: center;
    background: #ffffff;
    padding: clamp(24px, 5vw, 52px);
}

.criabyte-logo-image img {
    width: min(88%, 520px);
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: none;
}

.project-card:hover .criabyte-logo-image img {
    transform: scale(1.025);
    filter: none;
}
