/* ==========================================================================
   IA Coding — Go Up Treinamentos
   Direção: editorial / caderno de projeto. Papel, tinta e um vermelhão.
   CSS moderno nativo: @layer, nesting, oklch, color-mix, :has(),
   scroll-driven animations, details[name], interpolate-size, view transitions.
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, motion;

/* ---------------------------------- RESET --------------------------------- */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    img, svg { display: block; max-width: 100%; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    a { color: inherit; }
    ul, ol { list-style: none; }
}

/* --------------------------------- TOKENS --------------------------------- */
@layer tokens {
    :root {
        interpolate-size: allow-keywords;

        --paper:   oklch(96% 0.012 85);
        --paper-2: oklch(93% 0.016 85);
        --ink:     oklch(18% 0.01 60);
        --ink-2:   oklch(38% 0.012 60);
        --muted:   oklch(52% 0.012 60);
        --line:    oklch(84% 0.015 80);
        --accent:  oklch(62% 0.2 35);
        --accent-ink: oklch(46% 0.17 35);
        --wa:      oklch(70% 0.17 150);

        --serif: "Instrument Serif", "Times New Roman", serif;
        --sans:  "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
        --mono:  "Geist Mono", ui-monospace, Consolas, monospace;

        --wrap: 1280px;
        --gutter: clamp(1.25rem, 4vw, 3rem);
        --section: clamp(5rem, 11vw, 9rem);
        --ease: cubic-bezier(.2, .7, .1, 1);
    }
}

/* ---------------------------------- BASE ---------------------------------- */
@layer base {
    html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

    body {
        font-family: var(--sans);
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--ink);
        background: var(--paper);
        -webkit-font-smoothing: antialiased;
        overflow-x: clip;
    }

    /* grão de papel sutil */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 100;
        opacity: .35;
        mix-blend-mode: multiply;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    }

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

    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

    h1, h2, h3 { text-wrap: balance; font-weight: 400; }
    p { text-wrap: pretty; }

    em { font-family: var(--serif); font-style: italic; font-weight: 400; }

    .skip-link {
        position: absolute; left: 1rem; top: -4rem; z-index: 1000;
        background: var(--ink); color: var(--paper);
        padding: .7rem 1rem; text-decoration: none; font-weight: 600;
        &:focus { top: 1rem; }
    }
}

/* --------------------------------- LAYOUT --------------------------------- */
@layer layout {
    .ic-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

    .ic-section { padding-block: var(--section); border-top: 1px solid var(--line); }

    .ic-section__head {
        max-width: 56rem;
        margin-bottom: clamp(2.5rem, 6vw, 4.5rem);

        &.ic-section__head--row {
            max-width: none;
            display: grid;
            grid-template-columns: 1.4fr 1fr;
            gap: 2rem;
            align-items: end;
        }
    }

    .ic-split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: clamp(2rem, 6vw, 6rem);
        align-items: start;
    }

    .ic-split__head--sticky { position: sticky; top: 6rem; }

    @media (max-width: 900px) {
        .ic-split, .ic-section__head.ic-section__head--row { grid-template-columns: 1fr; }
        .ic-split__head--sticky { position: static; }
    }
}

/* ------------------------------- COMPONENTS ------------------------------- */
@layer components {
    .ic-label {
        display: inline-block;
        font-family: var(--mono);
        font-size: .75rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 1.25rem;
    }

    .ic-h2 {
        font-family: var(--serif);
        font-size: clamp(2.4rem, 5.4vw, 4.6rem);
        line-height: 1;
        letter-spacing: -.02em;

        & em { color: var(--accent-ink); }
    }

    .ic-section__intro { margin-top: 1.5rem; max-width: 34rem; color: var(--ink-2); font-size: 1.125rem; }

    .ic-lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
    .ic-lead strong { color: var(--ink); font-weight: 600; }

    /* Botões */
    .ic-btn {
        --bg: var(--ink); --fg: var(--paper);
        display: inline-flex; align-items: center; gap: .6rem;
        padding: .85rem 1.35rem;
        background: var(--bg); color: var(--fg);
        font-weight: 500; font-size: .95rem; text-decoration: none;
        border-radius: 999px;
        transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;

        &:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in oklch, var(--bg) 80%, transparent); }
        &:active { transform: translateY(0); }

        &.ic-btn--accent { --bg: var(--accent); --fg: oklch(99% 0 0); }
        &.ic-btn--wa { --bg: var(--wa); --fg: oklch(20% 0.05 150); font-weight: 600; justify-content: center; }
        &.ic-btn--lg { padding: 1.1rem 1.8rem; font-size: 1.05rem; }
    }

    .ic-link {
        font-weight: 500; text-decoration: none;
        background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat;
        padding-bottom: 2px;
        transition: background-size .35s var(--ease);
        &:hover { background-size: 0 1px; background-position: right bottom; }
        &.ic-link--light { color: var(--paper); }
    }

    /* Código */
    .ic-code {
        margin-top: 1.75rem;
        padding: 1.25rem 1.4rem;
        background: var(--ink);
        color: oklch(92% 0.01 85);
        border-radius: 10px;
        font-family: var(--mono);
        font-size: .85rem;
        line-height: 1.7;
        overflow-x: auto;
        & .c { color: oklch(68% 0.12 35); }
    }

    /* Accordion nativo */
    .ic-acc {
        border-top: 1px solid var(--ink);

        & details { border-bottom: 1px solid var(--line); }

        & summary {
            display: flex; align-items: baseline; gap: 1rem;
            padding: 1.35rem 0;
            cursor: pointer;
            list-style: none;
            font-size: clamp(1.1rem, 1.8vw, 1.35rem);
            font-weight: 500;
            transition: color .2s;

            &::-webkit-details-marker { display: none; }
            &::after {
                content: ""; margin-left: auto; flex: none;
                width: .8rem; height: .8rem;
                background:
                    linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat,
                    linear-gradient(currentColor 0 0) center / 1.5px 100% no-repeat;
                transition: transform .35s var(--ease);
            }
            &:hover { color: var(--accent-ink); }
        }

        & details[open] summary::after { transform: rotate(45deg); }

        & .n { font-family: var(--mono); font-size: .8rem; color: var(--muted); min-width: 1.8rem; }

        & details::details-content {
            block-size: 0;
            overflow: clip;
            transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
        }
        & details[open]::details-content { block-size: auto; }

        & ul, & p { padding: 0 0 1.5rem 2.8rem; color: var(--ink-2); }
        & li { padding: .3rem 0; position: relative; }
        & li::before { content: "—"; position: absolute; left: -1.4rem; color: var(--accent); }
    }

    .ic-acc--faq p { padding-left: 0; max-width: 40rem; }
}

/* -------------------------------- SECTIONS -------------------------------- */
@layer sections {

    /* ===== HEADER ===== */
    .ic-header {
        position: sticky; top: 0; z-index: 50;
        background: color-mix(in oklch, var(--paper) 82%, transparent);
        backdrop-filter: blur(12px) saturate(1.2);
        border-bottom: 1px solid transparent;
        transition: border-color .3s;

        &.is-stuck { border-bottom-color: var(--line); }
    }

    .ic-header__inner {
        width: min(100% - 2 * var(--gutter), var(--wrap));
        margin-inline: auto;
        display: flex; align-items: center; gap: 2rem;
        height: 4.25rem;
    }

    .ic-header__logo img { height: 34px; width: auto; filter: invert(1) brightness(.15); }

    .ic-nav { margin-left: auto; }
    .ic-nav__list {
        display: flex; gap: 1.75rem;
        & a {
            font-size: .9rem; text-decoration: none; color: var(--ink-2);
            transition: color .2s;
            &:hover, &[aria-current="true"] { color: var(--ink); }
            &[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
        }
    }

    .ic-header__cta { padding: .6rem 1.1rem; font-size: .875rem; }

    .ic-progress {
        position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
        background: var(--accent);
        transform-origin: left;
        transform: scaleX(0);
    }

    .ic-burger { display: none; width: 2.5rem; height: 2.5rem; position: relative; }
    .ic-burger span {
        position: absolute; left: .55rem; right: .55rem; height: 1.5px; background: var(--ink);
        transition: transform .3s var(--ease), top .3s var(--ease);
        &:first-child { top: 1rem; }
        &:last-child { top: 1.45rem; }
    }
    .ic-burger[aria-expanded="true"] span:first-child { top: 1.22rem; transform: rotate(45deg); }
    .ic-burger[aria-expanded="true"] span:last-child { top: 1.22rem; transform: rotate(-45deg); }

    @media (max-width: 980px) {
        .ic-burger { display: block; }
        .ic-header__cta { margin-left: auto; }
        .ic-nav { margin: 0; }
        .ic-nav__list {
            position: fixed; inset: 4.25rem 0 auto 0;
            flex-direction: column; gap: 0;
            background: var(--paper);
            border-bottom: 1px solid var(--line);
            padding: .5rem var(--gutter) 1.5rem;
            clip-path: inset(0 0 100% 0);
            transition: clip-path .45s var(--ease);
            & a { display: block; padding: .9rem 0; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); border-bottom: 1px solid var(--line); }
        }
        .ic-nav__list.is-open { clip-path: inset(0 0 0 0); }
    }
    @media (max-width: 520px) { .ic-header__cta { display: none; } .ic-burger { margin-left: auto; } }

    /* ===== HERO ===== */
    .ic-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }

    .ic-hero__layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ic-hero__meta {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem 2.5rem;
        padding-bottom: 1.25rem;
        margin-bottom: clamp(2rem, 4vw, 3.5rem);
        border-bottom: 1px solid var(--ink);
        & .ic-label { margin: 0; color: var(--ink); }
    }

    .ic-hero__content {
        max-width: 58rem;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ic-hero__title {
        font-family: var(--serif);
        font-size: clamp(2.8rem, 7vw, 6.4rem);
        line-height: .95;
        letter-spacing: -.03em;
        text-wrap: balance;

        & em { display: block; color: var(--accent-ink); }
    }

    .ic-hero__content .ic-lead {
        margin-top: 1.75rem;
        max-width: 44rem;
        font-size: clamp(1.1rem, 1.4vw, 1.25rem);
        color: var(--ink-2);
        line-height: 1.6;
        text-wrap: pretty;
    }

    .ic-hero__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2.25rem;
    }

    /* Diagrama orbital (O Modelo centralizado) */
    .ic-orbit {
        margin-top: clamp(3rem, 5vw, 4.5rem);
        width: 100%;
        max-width: 480px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;

        & svg { width: 100%; height: auto; overflow: visible; }
    }

    .ic-orbit__ring {
        transform-origin: 220px 220px;
        transition: opacity .4s;

        & circle { fill: none; stroke: var(--ink); stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
        & text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--ink-2); transition: fill .3s; }

        &[data-ring="conhecimento"] { animation: spin 90s linear infinite; }
        &[data-ring="capacidade"]   { animation: spin 120s linear infinite reverse; }
        &[data-ring="feedback"]     { animation: spin 160s linear infinite; }
    }

    .ic-orbit__core { fill: var(--accent); }
    .ic-orbit__core-label { font-family: var(--serif); font-style: italic; font-size: 26px; fill: var(--paper); }
    .ic-orbit__core-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; fill: color-mix(in oklch, var(--paper) 80%, transparent); }

    /* realce via :has() */
    .ic-orbit:has([data-target].is-on) .ic-orbit__ring { opacity: .22; }
    .ic-orbit:has([data-target="conhecimento"].is-on) [data-ring="conhecimento"],
    .ic-orbit:has([data-target="capacidade"].is-on) [data-ring="capacidade"],
    .ic-orbit:has([data-target="feedback"].is-on) [data-ring="feedback"] {
        opacity: 1;
        & circle { stroke: var(--accent); stroke-width: 2; }
        & text { fill: var(--ink); }
    }

    .ic-orbit__legend {
        display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
        margin-top: 1.5rem;

        & button {
            display: inline-flex; align-items: center; gap: .5rem;
            padding: .45rem .9rem;
            border: 1px solid var(--line); border-radius: 999px;
            font-size: .85rem;
            transition: border-color .2s, background-color .2s;
            &:hover, &.is-on { border-color: var(--ink); background: var(--paper-2); }
        }
        & span { font-family: var(--serif); font-style: italic; color: var(--accent-ink); }
    }

    @media (max-width: 900px) {
        .ic-orbit { max-width: 420px; }
    }

    /* Marquee */
    .ic-marquee {
        margin-top: clamp(3rem, 7vw, 6rem);
        border-block: 1px solid var(--ink);
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }
    .ic-marquee__track {
        display: flex; width: max-content;
        animation: marquee 40s linear infinite;
        & span {
            font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
            padding: 1rem 1.5rem;
            white-space: nowrap;
        }
        & span:nth-child(odd) { font-style: italic; color: var(--accent-ink); }
        & span::after { content: "✳"; font-style: normal; font-size: .6em; color: var(--muted); margin-left: 3rem; vertical-align: middle; }
    }

    /* ===== PROBLEMA ===== */
    .ic-strike-list {
        counter-reset: s;
        border-top: 1px solid var(--ink);

        & li {
            counter-increment: s;
            display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem;
            padding: 1.75rem 0;
            border-bottom: 1px solid var(--line);
        }
        & li::before {
            content: counter(s, decimal-leading-zero);
            font-family: var(--mono); font-size: .8rem; color: var(--muted);
            padding-top: .7rem;
            grid-row: span 2;
        }
        & h3 {
            font-family: var(--serif);
            font-size: clamp(1.9rem, 3.4vw, 2.8rem);
            line-height: 1.1;
            width: fit-content;
            background: linear-gradient(var(--accent) 0 0) left 55% / var(--strike, 0%) 3px no-repeat;
            transition: background-size .8s var(--ease);
        }
        & li.is-in h3 { --strike: 100%; }
        & p { color: var(--ink-2); margin-top: .5rem; max-width: 36rem; }
    }

    /* ===== HARNESS EXPLORER ===== */
    .ic-harness { background: var(--paper-2); }

    .ic-explorer {
        display: grid;
        grid-template-columns: 17rem 1fr;
        border: 1px solid var(--ink);
        background: var(--paper);
    }

    .ic-explorer__tabs {
        display: flex; flex-direction: column;
        border-right: 1px solid var(--ink);
        padding: 1rem 0;

        & button[role="tab"] {
            text-align: left;
            padding: .6rem 1.5rem .6rem 3rem;
            font-size: .95rem;
            color: var(--ink-2);
            position: relative;
            transition: color .2s, background-color .2s;

            &::before {
                content: ""; position: absolute; left: 1.5rem; top: 50%;
                width: .55rem; height: .55rem; border-radius: 50%;
                border: 1px solid var(--muted);
                translate: 0 -50%;
                transition: background-color .2s, border-color .2s;
            }
            &:hover { color: var(--ink); background: var(--paper-2); }
            &[aria-selected="true"] {
                color: var(--ink); font-weight: 600;
                &::before { background: var(--accent); border-color: var(--accent); }
            }
        }
    }

    .ic-explorer__group {
        font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
        color: var(--muted);
        padding: 1.1rem 1.5rem .5rem;
        & span { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--accent-ink); margin-right: .3rem; }
        &:first-child { padding-top: .5rem; }
    }

    .ic-explorer__stage { padding: clamp(1.75rem, 4vw, 3.5rem); min-height: 30rem; }

    .ic-panel {
        view-transition-name: harness-panel;
        max-width: 40rem;
        &:focus-visible { outline-offset: 8px; }
        & > p:not(.ic-panel__kicker):not(.ic-panel__avoid) { font-size: 1.15rem; color: var(--ink-2); }
    }
    .ic-panel__kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
    .ic-panel__title { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin: .5rem 0 1.25rem; }
    .ic-panel__avoid {
        margin-top: 1.25rem; padding-left: 1rem;
        border-left: 2px solid var(--accent);
        color: var(--ink-2);
        & strong { color: var(--ink); font-weight: 600; }
    }

    @media (max-width: 860px) {
        .ic-explorer { grid-template-columns: 1fr; }
        .ic-explorer__tabs {
            flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory;
            border-right: 0; border-bottom: 1px solid var(--ink);
            padding: .75rem;
            gap: .4rem;
            scrollbar-width: none;

            & button[role="tab"] {
                flex: none; scroll-snap-align: start;
                padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
                &::before { display: none; }
                &[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
            }
        }
        .ic-explorer__group { display: none; }
        .ic-explorer__stage { min-height: 0; }
    }

    /* ===== SIMULADOR DE CONTEXTO ===== */
    .ic-meter {
        border: 1px solid var(--ink);
        padding: clamp(1.5rem, 3.5vw, 2.5rem);
        background: var(--paper);

        --a: 52%; --b: 26%; --c: 12%; --d: 6%;
        --ca: oklch(62% 0.2 35); --cb: oklch(72% 0.14 55); --cc: oklch(82% 0.09 75); --cd: var(--ink);

        &[data-state="com"] {
            --a: 4%; --b: 6%; --c: 15%; --d: 6%;
            --ca: oklch(45% 0.05 250); --cb: oklch(58% 0.06 230); --cc: oklch(72% 0.05 210); --cd: var(--ink);
        }
    }

    .ic-meter__switch {
        display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line);
        & button {
            padding: .55rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
            transition: background-color .3s, color .3s;
            &[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
        }
    }

    .ic-meter__window { margin-top: 2rem; }

    .ic-meter__bar {
        display: flex; height: 3.25rem;
        border: 1px solid var(--ink);
        background:
            repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%),
            var(--paper);
        position: relative;

        & .seg { height: 100%; transition: width .9s var(--ease), background-color .9s; }
        & .seg--a { width: var(--a); background: var(--ca); }
        & .seg--b { width: var(--b); background: var(--cb); }
        & .seg--c { width: var(--c); background: var(--cc); }
        & .seg--d { width: var(--d); background: var(--cd); }

        &::after {
            content: ""; position: absolute; right: -1px; top: -.5rem; bottom: -.5rem; width: 2px; background: var(--accent);
        }
    }

    .ic-meter__scale {
        display: flex; justify-content: space-between; margin-top: .5rem;
        font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
        & span:last-child { color: var(--accent-ink); }
    }

    .ic-meter__readout { margin-top: 2rem; }

    .ic-meter__big {
        font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1;
        font-variant-numeric: tabular-nums;
        & small { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
    }

    .ic-meter__legend {
        margin-top: 1.5rem; display: grid; gap: .6rem;
        & li { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); }
        & .dot { width: .8rem; height: .8rem; flex: none; transition: background-color .9s; }
        & .dot--a { background: var(--ca); } & .dot--b { background: var(--cb); }
        & .dot--c { background: var(--cc); } & .dot--d { background: var(--cd); }
    }

    .ic-meter__verdict {
        margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line);
        font-weight: 500;
    }

    /* ===== MÉTODO (rail horizontal) ===== */
    .ic-method { padding-bottom: calc(var(--section) - 1rem); }

    .ic-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: clamp(17rem, 28vw, 22rem);
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding: 0 max(var(--gutter), (100vw - var(--wrap)) / 2) 1.5rem;
        scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
        scrollbar-width: thin;
        scrollbar-color: var(--ink) transparent;
    }

    .ic-step {
        scroll-snap-align: start;
        display: flex; flex-direction: column;
        min-height: 22rem;
        padding: 1.75rem;
        border: 1px solid var(--ink);
        background: var(--paper);
        transition: background-color .35s, color .35s;

        & h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.05; margin-top: auto; }
        & p { margin-top: .75rem; color: var(--ink-2); transition: color .35s; }

        &:hover { background: var(--ink); color: var(--paper); }
        &:hover p { color: color-mix(in oklch, var(--paper) 75%, transparent); }
        &:hover .ic-step__out { border-color: color-mix(in oklch, var(--paper) 30%, transparent); }
    }

    .ic-step__n { font-family: var(--serif); font-style: italic; font-size: 4.5rem; line-height: .8; color: var(--accent); }

    .ic-step__out {
        margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
        font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
        transition: border-color .35s;
    }

    /* ===== FERRAMENTAS ===== */
    .ic-tools__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }

    .ic-tool {
        padding: clamp(1.75rem, 4vw, 3rem);
        container-type: inline-size;
        & + .ic-tool { border-left: 1px solid var(--ink); }

        & h3 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; margin: 1.5rem 0 1rem; }
        & > p { color: var(--ink-2); max-width: 30rem; }
    }

    .ic-tool__top {
        display: flex; align-items: center; justify-content: space-between;
        & img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--ink); padding: 8px; }
        & .ic-label { margin: 0; }
    }

    .ic-tool__specs {
        margin-top: 2rem; border-top: 1px solid var(--line);
        & div { display: grid; grid-template-columns: 7rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); }
        & dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: .15rem; }
        & dd { font-weight: 500; }
    }

    @container (max-width: 360px) {
        .ic-tool__specs div { grid-template-columns: 1fr; gap: .2rem; }
    }

    .ic-tools__note {
        margin-top: 2rem; color: var(--ink-2);
        display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
        & .ic-label { margin: 0; }
    }

    @media (max-width: 760px) {
        .ic-tools__grid { grid-template-columns: 1fr; }
        .ic-tool + .ic-tool { border-left: 0; border-top: 1px solid var(--ink); }
    }

    /* ===== MODALIDADES (ingressos) ===== */
    .ic-modes {
        background: var(--ink);
        color: var(--paper);
        border-top: 0;

        & .ic-h2 em { color: var(--accent); }
    }
    .ic-label--light { color: color-mix(in oklch, var(--paper) 60%, transparent); }

    .ic-tickets { display: grid; gap: 1.5rem; }

    .ic-ticket {
        --notch: 14px;
        display: grid;
        grid-template-columns: 1fr 18rem;
        background: var(--paper);
        color: var(--ink);
        border-radius: 14px;
        /* recortes laterais do canhoto */
        mask:
            radial-gradient(circle var(--notch) at calc(100% - 18rem) 0, #0000 98%, #000) top / 100% 51% no-repeat,
            radial-gradient(circle var(--notch) at calc(100% - 18rem) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
        transition: transform .5s var(--ease);

        &:hover { transform: translateY(-4px) rotate(-.3deg); }

        & h3 { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; margin: .5rem 0 1rem; }
        & p { color: var(--ink-2); max-width: 36rem; }
        & strong { color: var(--ink); }
    }

    .ic-ticket__main { padding: clamp(1.75rem, 4vw, 3rem); }

    .ic-ticket__type {
        font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
        color: var(--accent-ink) !important;
    }

    .ic-ticket__list {
        margin-top: 1.75rem;
        display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2rem;
        & li { padding: .6rem 0 .6rem 1.4rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
        & li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
    }

    .ic-ticket__stub {
        display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
        padding: 2rem 1.75rem;
        border-left: 2px dashed var(--line);
        background: var(--paper-2);
        & .ic-btn { margin-top: 1.25rem; }
    }
    .ic-ticket__stub-label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted) !important; }
    .ic-ticket__stub-value { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--ink) !important; }

    .ic-ticket--featured .ic-ticket__stub { background: var(--accent); border-left-color: color-mix(in oklch, var(--paper) 50%, transparent); }
    .ic-ticket--featured .ic-ticket__stub-label { color: color-mix(in oklch, white 75%, transparent) !important; }
    .ic-ticket--featured .ic-ticket__stub-value { color: white !important; }

    @media (max-width: 820px) {
        .ic-ticket { grid-template-columns: 1fr; mask: none; }
        .ic-ticket__stub { border-left: 0; border-top: 2px dashed var(--line); }
        .ic-ticket__list { grid-template-columns: 1fr; }
    }

    /* ===== PARA QUEM ===== */
    .ic-audience__grid {
        display: grid; grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid var(--ink);

        & li { padding: 1.75rem 1.5rem 1.75rem 0; }
        & li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
        & h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
        & p { color: var(--ink-2); margin-top: .75rem; }
    }
    @media (max-width: 900px) {
        .ic-audience__grid { grid-template-columns: 1fr 1fr; }
        .ic-audience__grid li:nth-child(3) { border-left: 0; padding-left: 0; }
        .ic-audience__grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
    }
    @media (max-width: 560px) {
        .ic-audience__grid { grid-template-columns: 1fr; }
        .ic-audience__grid li { padding-left: 0 !important; border-left: 0 !important; }
        .ic-audience__grid li + li { border-top: 1px solid var(--line); }
    }

    /* ===== CTA FINAL ===== */
    .ic-final {
        background: var(--accent);
        color: white;
        padding-block: clamp(5rem, 12vw, 10rem);
    }
    .ic-final__title {
        font-family: var(--serif);
        font-size: clamp(3.2rem, 10vw, 9rem);
        line-height: .9; letter-spacing: -.035em;
        max-width: 14ch;
        & em { color: var(--ink); }
    }
    .ic-final__actions {
        display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 3rem;
        & .ic-btn--accent { --bg: var(--ink); --fg: var(--paper); }
    }

    /* ===== WhatsApp flutuante ===== */
    .ic-wa-float {
        position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
        width: 3.5rem; height: 3.5rem; border-radius: 50%;
        display: grid; place-items: center;
        background: var(--wa); color: oklch(20% 0.05 150);
        font-size: 1.6rem; text-decoration: none;
        box-shadow: 0 10px 30px -10px oklch(30% 0.1 150 / .6);
        transition: transform .3s var(--ease);
        &:hover { transform: scale(1.08); }
    }
}

/* --------------------------------- MOTION --------------------------------- */
@layer motion {
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes marquee { to { transform: translateX(-50%); } }
    @keyframes rise {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes grow {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }

    /* entrada do hero */
    .ic-hero__meta, .ic-hero__content, .ic-orbit { animation: rise 0.8s var(--ease) both; }
    .ic-hero__content { animation-delay: .08s; }
    .ic-orbit { animation-delay: .18s; }

    /* animações guiadas por scroll (progressive enhancement) */
    @supports (animation-timeline: view()) {
        .ic-progress {
            animation: grow linear both;
            animation-timeline: scroll(root);
        }

        .ic-section__head, .ic-split__head, .ic-explorer, .ic-meter, .ic-tool, .ic-ticket, .ic-audience__grid li, .ic-final__title {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }

    /* view transition do explorer */
    ::view-transition-old(harness-panel) { animation: .2s ease both vt-out; }
    ::view-transition-new(harness-panel) { animation: .35s var(--ease) both vt-in; }
    @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
    @keyframes vt-in  { from { opacity: 0; transform: translateY(12px); } }

    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after {
            animation: none !important;
            transition-duration: .01ms !important;
        }
        .ic-progress { display: none; }
    }
}
