/* ==========================================================================
   Raytech Solutions - folha de estilo principal
   Estrutura: fontes, tokens, base, utilitarios, componentes, paginas, movimento
   ========================================================================== */

/* ---------- Fontes (self-hosted, licenca SIL OFL) ---------- */
@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;

    --bg: #05060a;
    --bg-raise: #0a0c14;
    --ink: #eef0f7;
    --ink-dim: rgb(238 240 247 / 0.7);
    --ink-soft: rgb(238 240 247 / 0.56);
    --line: rgb(255 255 255 / 0.1);
    --line-strong: rgb(255 255 255 / 0.18);

    --ray-cyan: #8fe9ff;
    --ray-violet: #a596ff;
    --ray-amber: #ffb38a;
    --ray-gradient: linear-gradient(100deg, var(--ray-cyan) 0%, var(--ray-violet) 52%, var(--ray-amber) 100%);
    --danger: #ff9a9a;
    --ok: #9ff2c4;

    --glass-bg: linear-gradient(145deg, rgb(255 255 255 / 0.085), rgb(255 255 255 / 0.02) 60%);
    --glass-border: rgb(255 255 255 / 0.11);
    --glass-blur: blur(20px) saturate(150%);
    --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 -1px 0 rgb(255 255 255 / 0.03), 0 40px 80px -40px rgb(0 0 0 / 0.9);

    --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

    --radius-s: 12px;
    --radius-m: 20px;
    --radius-l: 30px;

    --wrap: min(1240px, 100% - 2 * var(--gutter));
    --gutter: clamp(20px, 5vw, 56px);
    --section-space: clamp(96px, 16vw, 200px);

    /* Curvas geradas a partir de simulacao de mola (k=170, c=20) */
    --ease-spring: linear(0, 0.032, 0.109, 0.21, 0.322, 0.435, 0.542, 0.639, 0.724, 0.796, 0.856, 0.904, 0.941, 0.969, 0.99, 1.004, 1.013, 1.019, 1.021, 1.022, 1.021, 1.019, 1.017, 1.014, 1.012, 1.01, 1.008, 1.006, 1.004, 1.002, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@supports not (transition-timing-function: linear(0, 1)) {
    :root {
        --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.08);
    }
}

/* ---------- Reset e base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
    line-height: 1.6;
    font-weight: 380;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

::selection {
    background: rgb(165 150 255 / 0.4);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--ray-cyan);
    outline-offset: 4px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

/* ---------- Utilitarios ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.4s var(--ease-out);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--ray-gradient);
}

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

.ray-text {
    background: var(--ray-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.08em;
}

.lead {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    line-height: 1.55;
    color: var(--ink-dim);
    max-width: 38ch;
}

.muted {
    color: var(--ink-soft);
}

/* ---------- Ambiente (luz de fundo, grao) ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% -10%, rgb(40 46 80 / 0.55), transparent 60%),
        var(--bg);
}

.ambient__orb {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.32;
    will-change: transform;
}

.ambient__orb--a {
    top: -18vmax;
    left: -10vmax;
    background: radial-gradient(circle, rgb(70 170 220 / 0.9), transparent 65%);
}

.ambient__orb--b {
    top: 30vh;
    right: -16vmax;
    background: radial-gradient(circle, rgb(120 90 255 / 0.85), transparent 65%);
}

.ambient__orb--c {
    bottom: -24vmax;
    left: 26vw;
    opacity: 0.18;
    background: radial-gradient(circle, rgb(255 150 100 / 0.8), transparent 65%);
}

.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/img/grain.svg");
    background-size: 220px 220px;
    opacity: 0.07;
    mix-blend-mode: overlay;
}

/* ---------- Superficie de vidro ---------- */
.glass {
    position: relative;
    isolation: isolate;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-l);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    --mx: 50%;
    --my: 0%;
    --glow: 0;
}

/* Luz que acompanha o ponteiro */
.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgb(170 220 255 / 0.13), transparent 55%);
    opacity: calc(0.35 + var(--glow) * 0.65);
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}

/* Reflexo na borda, tambem seguindo o ponteiro */
.glass::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgb(200 235 255 / 0.55), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: var(--glow);
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass {
        background: linear-gradient(145deg, rgb(28 31 44 / 0.96), rgb(14 16 24 / 0.96));
    }
}

[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---------- Marca ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 560;
    letter-spacing: -0.02em;
    font-size: 1rem;
    white-space: nowrap;
    min-height: 44px;
}

.brand__mark {
    width: 28px;
    height: 28px;
    flex: none;
}

.brand__name span {
    color: var(--ink-soft);
    font-weight: 400;
}

/* ---------- Cabecalho ---------- */
.site-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    view-transition-name: site-header;
}

.site-header__bar {
    pointer-events: auto;
    width: min(1180px, 100% - 24px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.site-header__bar.glass {
    --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 20px 50px -25px rgb(0 0 0 / 0.9);
}

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

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--ink-dim);
    transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--ink);
    background: rgb(255 255 255 / 0.05);
}

.nav__link[aria-current="page"] {
    color: var(--ink);
}

.nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--ray-cyan);
    box-shadow: 0 0 10px var(--ray-cyan);
}

.nav__num {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--ink-soft);
    margin-right: 8px;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.menu-toggle__icon {
    position: relative;
    width: 16px;
    height: 10px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.6s var(--ease-spring), top 0.6s var(--ease-spring);
}

.menu-toggle__icon::before {
    top: 1px;
}

.menu-toggle__icon::after {
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
    top: 4px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
    top: 4px;
    transform: rotate(-45deg);
}

/* Menu movel */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px var(--gutter) 40px;
    background: rgb(5 6 10 / 0.72);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    backdrop-filter: blur(28px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s var(--ease-out), visibility 0s;
}

.mobile-menu__list {
    display: grid;
    gap: 4px;
}

.mobile-menu__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    font-size: clamp(1.9rem, 8vw, 3rem);
    font-weight: 330;
    letter-spacing: -0.03em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-spring);
}

.mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: none;
}

.mobile-menu__link[aria-current="page"] {
    color: var(--ray-cyan);
}

.mobile-menu__link span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
}

/* ---------- Botoes ---------- */
.btn {
    --btn-bg: rgb(255 255 255 / 0.06);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--btn-bg);
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    border-color: rgb(255 255 255 / 0.32);
}

.btn--primary {
    color: #07080d;
    border-color: transparent;
    background: linear-gradient(100deg, #d9f7ff, #e6e0ff 55%, #ffe4d4);
    box-shadow: 0 10px 40px -12px rgb(160 200 255 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.btn--primary:hover {
    border-color: transparent;
}

.btn--primary::before {
    background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.85), transparent 70%);
}

.btn--small {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.btn__arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.6s var(--ease-spring);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
    transform: translateX(4px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ink-dim);
    font-size: 0.98rem;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 calc(100% - 10px);
    background-repeat: no-repeat;
    transition: color 0.3s var(--ease-out), background-size 0.6s var(--ease-out);
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--ink);
    background-size: 100% 1px;
}

[data-magnetic] {
    will-change: transform;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

/* ---------- Estrutura de pagina ---------- */
main {
    display: block;
    view-transition-name: page;
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section--tight {
    padding-block: clamp(64px, 10vw, 120px);
}

.section-head {
    display: grid;
    gap: 22px;
    margin-bottom: clamp(48px, 7vw, 88px);
    max-width: 820px;
}

.h-display {
    font-size: clamp(2.7rem, 1.2rem + 6.4vw, 7.4rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 330;
}

.h-1 {
    font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 330;
}

.h-2 {
    font-size: clamp(2rem, 1.2rem + 3vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 340;
}

.h-3 {
    font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 450;
}

.h-display .serif,
.h-1 .serif,
.h-2 .serif {
    font-size: 1.08em;
    line-height: 0.9;
}

/* Hero interno (paginas de capitulo) */
.page-hero {
    position: relative;
    min-height: min(92vh, 900px);
    min-height: min(92svh, 900px);
    display: flex;
    align-items: flex-end;
    padding-top: 160px;
    padding-bottom: clamp(56px, 9vw, 120px);
}

.page-hero__inner {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.page-hero__title {
    max-width: 15ch;
}

.page-hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.scroll-cue__line {
    position: relative;
    width: 1px;
    height: 46px;
    overflow: hidden;
    background: var(--line);
}

.scroll-cue__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--ray-cyan);
    animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
    0% {
        top: -40%;
    }
    70%,
    100% {
        top: 100%;
    }
}

/* ---------- HOME: hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 40%, transparent 85%);
    mask-image: radial-gradient(120% 90% at 50% 45%, #000 40%, transparent 85%);
}

.hero__inner {
    display: grid;
    gap: clamp(26px, 4vw, 44px);
}

.hero__title {
    max-width: 12ch;
}

.hero__title .line {
    display: block;
}

.ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 3.4em;
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.45rem);
    color: var(--ink-dim);
}

.ticker__label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    flex: none;
}

.ticker__stage {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.ticker__item {
    grid-area: 1 / 1;
    position: relative;
    align-self: center;
    justify-self: start;
    opacity: 0;
    transform: translateY(0.7em);
    filter: blur(6px);
    transition: opacity 0.5s var(--ease-out), transform 0.9s var(--ease-spring), filter 0.6s var(--ease-out);
}

.ticker__item.is-current {
    opacity: 1;
    transform: none;
    filter: none;
}

.ticker__item.is-leaving {
    opacity: 0;
    transform: translateY(-0.7em);
    filter: blur(6px);
    transition-duration: 0.45s;
}

.ticker__item::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 55%;
    height: 1.5px;
    background: var(--ray-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s var(--ease-out) 0.9s;
}

.ticker__item.is-current::after {
    transform: scaleX(1);
}

.ticker__item.is-current .ticker__text {
    color: var(--ink-soft);
    transition: color 0.6s var(--ease-out) 1.2s;
}

.ticker__toggle {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: color 0.3s, border-color 0.3s;
}

.ticker__toggle:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.ticker__toggle svg {
    width: 14px;
    height: 14px;
}

.ticker__toggle .icon-play {
    display: none;
}

.ticker__toggle[aria-pressed="true"] .icon-play {
    display: block;
}

.ticker__toggle[aria-pressed="true"] .icon-pause {
    display: none;
}

.hero__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

/* ---------- HOME: provocacoes em camadas ---------- */
.strata {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.stratum {
    padding: clamp(26px, 3vw, 40px);
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 260px;
}

.stratum:nth-child(1) {
    grid-column: 1 / span 6;
}

.stratum:nth-child(2) {
    grid-column: 7 / span 6;
    margin-top: clamp(0px, 8vw, 120px);
}

.stratum:nth-child(3) {
    grid-column: 2 / span 6;
    margin-top: clamp(0px, -3vw, -40px);
}

.stratum:nth-child(4) {
    grid-column: 8 / span 5;
    margin-top: clamp(0px, 4vw, 60px);
}

.stratum__was {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.stratum__was s {
    text-decoration-color: rgb(255 179 138 / 0.7);
    text-decoration-thickness: 1px;
}

.stratum__text {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 360;
}

.stratum__text em {
    font-family: var(--font-serif);
    font-size: 1.1em;
}

/* ---------- Texto revelado pela rolagem ---------- */
.scrub {
    font-size: clamp(1.8rem, 1rem + 3.4vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 340;
    max-width: 20ch;
}

.scrub .w {
    opacity: 0.16;
    transition: opacity 0.35s linear;
}

.scrub .w.is-lit {
    opacity: 1;
}

.no-js .scrub .w,
.reduced .scrub .w {
    opacity: 1;
}

.turn {
    display: grid;
    gap: clamp(60px, 10vw, 140px);
}

.turn__question {
    max-width: 22ch;
}

/* ---------- HOME: apresentacao ---------- */
.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.intro__panel {
    padding: clamp(30px, 4vw, 56px);
    display: grid;
    gap: 26px;
}

.intro__body {
    display: grid;
    gap: 18px;
    color: var(--ink-dim);
    font-size: 1.06rem;
}

.principles {
    display: grid;
    gap: 14px;
}

.principle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 18px;
    padding: 22px 24px;
    border-radius: var(--radius-m);
}

.principle__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ray-cyan);
    padding-top: 4px;
    grid-row: span 2;
}

.principle__title {
    font-weight: 500;
    letter-spacing: -0.015em;
}

.principle__text {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ---------- Bloco CTA final ---------- */
.cta-block {
    position: relative;
    padding: clamp(40px, 7vw, 100px);
    display: grid;
    gap: 30px;
    overflow: hidden;
}

.cta-block__title {
    max-width: 17ch;
}

.cta-block__beam {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    z-index: -1;
    background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, rgb(143 233 255 / 0.16) 30deg, rgb(165 150 255 / 0.18) 60deg, rgb(255 179 138 / 0.12) 90deg, transparent 130deg);
    filter: blur(30px);
    transform: rotate(var(--beam-rot, 0deg));
    pointer-events: none;
}

/* ---------- Proximo capitulo ---------- */
.next-chapter {
    display: block;
    padding-block: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.next-chapter__link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-l);
}

.next-chapter__label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.next-chapter__title {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.7rem, 1rem + 3vw, 3.4rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    font-weight: 340;
}

.next-chapter__arrow {
    display: grid;
    place-items: center;
    width: clamp(56px, 7vw, 84px);
    height: clamp(56px, 7vw, 84px);
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.7s var(--ease-spring);
}

.next-chapter__arrow svg {
    width: 22px;
    height: 22px;
}

.next-chapter__link:hover .next-chapter__arrow,
.next-chapter__link:focus-visible .next-chapter__arrow {
    background: var(--ink);
    color: var(--bg);
    transform: rotate(-45deg);
}

/* ---------- Rodape ---------- */
.site-footer {
    padding-block: 56px 40px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.site-footer__tagline {
    margin-top: 16px;
    max-width: 34ch;
}

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

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-dim);
    transition: color 0.3s;
}

.site-footer__nav a:hover {
    color: var(--ink);
}

.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

/* ---------- O QUE MUDOU: narrativa ---------- */
.chronicle {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 100px);
    align-items: start;
}

.chronicle__aside {
    position: sticky;
    top: 130px;
    display: grid;
    gap: 28px;
}

.chronicle__counter {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 300;
    letter-spacing: -0.05em;
}

.chronicle__current {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1em;
    font-size: clamp(4rem, 2rem + 6vw, 8.5rem);
    line-height: 1;
    background: var(--ray-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chronicle__total {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.chronicle__topic {
    min-height: 1.4em;
    font-size: 1.1rem;
    color: var(--ink-dim);
    transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-spring);
}

.chronicle__topic.is-swapping {
    opacity: 0;
    transform: translateY(8px);
}

.chronicle__rail {
    display: grid;
    gap: 2px;
}

.chronicle__rail a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    transition: color 0.3s;
}

.chronicle__rail a::before {
    content: "";
    width: 14px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transition: width 0.6s var(--ease-spring), opacity 0.3s, background-color 0.3s;
}

.chronicle__rail a:hover {
    color: var(--ink);
}

.chronicle__rail a[aria-current="true"] {
    color: var(--ink);
}

.chronicle__rail a[aria-current="true"]::before {
    width: 32px;
    opacity: 1;
    background: var(--ray-cyan);
}

.chronicle__frames {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
}

.frame {
    --p: 0;
    padding: clamp(28px, 4vw, 52px);
    display: grid;
    gap: 26px;
    scroll-margin-top: 130px;
}

.frame__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.frame__topic {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.frame__index {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-soft);
}

.frame__was {
    position: relative;
    display: grid;
    gap: 8px;
    opacity: calc(1 - var(--p) * 0.5);
}

.frame__was-text {
    position: relative;
    justify-self: start;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--ink-dim);
}

.frame__strike {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(transparent calc(50% - 1px), rgb(255 179 138 / 0.8) calc(50% - 1px), rgb(255 179 138 / 0.8) calc(50% + 0.5px), transparent calc(50% + 0.5px));
    background-size: 100% 1.35em;
    -webkit-mask: linear-gradient(90deg, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100%));
    mask: linear-gradient(90deg, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100%));
}

.frame__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.frame__now {
    display: grid;
    gap: 8px;
    opacity: calc(0.35 + var(--p) * 0.65);
    transform: translateY(calc((1 - var(--p)) * 16px));
}

.frame__now-text {
    font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 380;
}

.frame__keep {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.frame__keep strong {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ray-cyan);
}

.pattern {
    display: grid;
    gap: 34px;
    max-width: 900px;
}

/* ---------- O QUE PODE MUDAR: inventario ---------- */
.inventory {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.inventory__list {
    display: grid;
    gap: 12px;
}

.item {
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 22px 24px;
    border-radius: var(--radius-m);
    transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

.item:hover {
    border-color: var(--line-strong);
}

.item__check {
    grid-row: span 2;
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease-spring);
}

.item__check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.5s var(--ease-spring);
}

.item[aria-pressed="true"] {
    border-color: rgb(143 233 255 / 0.4);
    background-color: rgb(143 233 255 / 0.04);
}

.item[aria-pressed="true"] .item__check {
    background: var(--ray-cyan);
    border-color: var(--ray-cyan);
}

.item[aria-pressed="true"] .item__check::after {
    transform: rotate(45deg) scale(1);
}

.item:active .item__check {
    transform: scale(0.88);
}

.item__text {
    font-size: 1.06rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.item__reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s var(--ease-out);
}

.item__reveal > span {
    overflow: hidden;
}

.item[aria-pressed="true"] .item__reveal {
    grid-template-rows: 1fr;
}

.item__path {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding-top: 12px;
    font-size: 0.92rem;
    color: var(--ink-dim);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tag-color, var(--ray-cyan));
    box-shadow: 0 0 8px var(--tag-color, var(--ray-cyan));
}

.tag--automatizar { --tag-color: #8fe9ff; }
.tag--simplificar { --tag-color: #c7f59a; }
.tag--conectar { --tag-color: #a596ff; }
.tag--acelerar { --tag-color: #ffd36b; }
.tag--assistir { --tag-color: #ff9fd0; }
.tag--redesenhar { --tag-color: #ffb38a; }

.item__ai {
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.inventory__summary {
    position: sticky;
    top: 120px;
    padding: 30px;
    display: grid;
    gap: 20px;
}

.inventory__count {
    font-size: clamp(3rem, 2rem + 3vw, 4.6rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.05em;
}

.inventory__status {
    color: var(--ink-dim);
    min-height: 4.8em;
}

.inventory__bars {
    display: grid;
    gap: 8px;
}

.bar {
    display: grid;
    grid-template-columns: 104px 1fr 18px;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.bar__track {
    height: 4px;
    border-radius: 4px;
    background: rgb(255 255 255 / 0.06);
    overflow: hidden;
}

.bar__fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: var(--tag-color, var(--ray-cyan));
    transform: scaleX(var(--v, 0));
    transform-origin: left;
    transition: transform 0.8s var(--ease-spring);
}

.bar__num {
    text-align: right;
}

.inventory__actions {
    display: grid;
    gap: 10px;
}

.inventory__note {
    font-size: 0.84rem;
    color: var(--ink-soft);
}

/* Verbos */
.verbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.verb {
    padding: clamp(26px, 3vw, 38px);
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 220px;
}

.verb__word {
    font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
    letter-spacing: -0.035em;
    font-weight: 340;
    line-height: 1.05;
}

.verb__word .tag {
    vertical-align: middle;
}

.verb__text {
    color: var(--ink-dim);
}

/* Onde nao usar IA */
.restraint {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(30px, 6vw, 90px);
    border-top: 1px solid var(--line);
}

.restraint__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 16px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.restraint__mark {
    grid-row: span 2;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ray-amber);
    padding-top: 6px;
}

.restraint__title {
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
    letter-spacing: -0.02em;
    font-weight: 450;
    line-height: 1.25;
}

.restraint__text {
    color: var(--ink-dim);
}

.statement {
    display: grid;
    gap: 26px;
    max-width: 960px;
}

/* ---------- COMO TRABALHAMOS ---------- */
.process {
    --progress: 0;
    position: relative;
    display: grid;
    gap: 0;
    padding-left: clamp(48px, 7vw, 96px);
}

/* Trilho (::before) e feixe de luz que avanca com a rolagem (::after) */
.process::before,
.process::after {
    content: "";
    position: absolute;
    left: clamp(14px, 2.4vw, 32px);
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--line);
}

.process::after {
    background: linear-gradient(var(--ray-cyan), var(--ray-violet), var(--ray-amber));
    box-shadow: 0 0 12px rgb(143 233 255 / 0.6);
    transform: scaleY(var(--progress));
    transform-origin: top;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 14px clamp(24px, 4vw, 60px);
    padding-block: clamp(30px, 4vw, 52px);
    border-bottom: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 0;
}

.step::before {
    content: "";
    position: absolute;
    left: calc(-1 * clamp(48px, 7vw, 96px) + clamp(14px, 2.4vw, 32px) - 5px);
    top: calc(clamp(30px, 4vw, 52px) + 0.55em);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.6s, transform 0.7s var(--ease-spring);
}

.step.is-lit::before {
    background: var(--ray-cyan);
    border-color: var(--ray-cyan);
    box-shadow: 0 0 0 6px rgb(143 233 255 / 0.12), 0 0 18px rgb(143 233 255 / 0.7);
    transform: scale(1.15);
}

.step__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.step__num {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-soft);
}

.step__title {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
    letter-spacing: -0.035em;
    font-weight: 360;
    line-height: 1.1;
    transition: color 0.4s;
    color: var(--ink-dim);
}

.step.is-lit .step__title {
    color: var(--ink);
}

.step__text {
    color: var(--ink-dim);
    max-width: 54ch;
    font-size: 1.04rem;
}

/* Escala */
.scale {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.scale__control {
    display: grid;
    gap: 26px;
}

.scale__label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.range {
    --fill: 0%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    background: transparent;
    cursor: pointer;
}

.range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ray-cyan), var(--ray-violet) var(--fill), rgb(255 255 255 / 0.1) var(--fill));
}

.range::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ray-cyan), var(--ray-violet) var(--fill), rgb(255 255 255 / 0.1) var(--fill));
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -11px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0 6px rgb(143 233 255 / 0.18), 0 6px 20px rgb(0 0 0 / 0.5);
    transition: transform 0.5s var(--ease-spring);
}

.range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0 6px rgb(143 233 255 / 0.18), 0 6px 20px rgb(0 0 0 / 0.5);
}

.range:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

.range:focus-visible {
    outline: none;
}

.range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ray-cyan);
}

.range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ray-cyan);
}

.scale__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: -8px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.scale__output {
    display: grid;
    gap: 14px;
    min-height: 210px;
    align-content: start;
}

.scale__name {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
    letter-spacing: -0.035em;
    font-weight: 360;
    line-height: 1.1;
}

.scale__desc {
    color: var(--ink-dim);
}

.scale__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scale__stage {
    position: relative;
    height: clamp(300px, 36vw, 440px);
    perspective: 1100px;
}

.layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(78%, 360px);
    aspect-ratio: 1.4;
    margin-left: calc(min(78%, 360px) / -2);
    margin-top: calc(min(78%, 360px) / -2.8);
    border-radius: var(--radius-m);
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--z, 0) * 1px));
    opacity: var(--o, 0);
    transition: transform 0.9s var(--ease-spring), opacity 0.5s var(--ease-out);
}

.layer::before {
    background: radial-gradient(240px circle at 30% 20%, rgb(170 220 255 / 0.18), transparent 60%);
    opacity: 1;
}

.layer__grid {
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Ponto de luz em cada camada, em posicoes distintas */
.layer__grid::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    left: 22%;
    top: 30%;
    background: var(--ray-cyan);
    box-shadow: 0 0 16px var(--ray-cyan);
}

.layer:nth-child(2) .layer__grid::after {
    left: 64%;
    top: 22%;
    background: var(--ray-violet);
    box-shadow: 0 0 16px var(--ray-violet);
}

.layer:nth-child(3) .layer__grid::after {
    left: 40%;
    top: 62%;
}

.layer:nth-child(4) .layer__grid::after {
    left: 78%;
    top: 58%;
    background: var(--ray-amber);
    box-shadow: 0 0 16px var(--ray-amber);
}

.layer:nth-child(5) .layer__grid::after {
    left: 50%;
    top: 40%;
    width: 14px;
    height: 14px;
    background: #fff;
    box-shadow: 0 0 24px var(--ray-cyan), 0 0 48px var(--ray-violet);
}

/* Titulos com entrada por linha: o container nao se move, so as linhas */
html.js [data-reveal="lines"] {
    opacity: 1;
    transform: none;
}

/* Texto revelado do inventario so fica legivel (e audivel) quando marcado */
.item__reveal > span {
    visibility: hidden;
    transition: visibility 0s linear 0.6s;
}

.item[aria-pressed="true"] .item__reveal > span {
    visibility: visible;
    transition-delay: 0s;
}

.scale__caption {
    max-width: 30ch;
}

/* Areas */
.areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.area {
    padding: clamp(24px, 3vw, 34px);
    display: grid;
    gap: 14px;
    align-content: start;
    border-radius: var(--radius-m);
    min-height: 200px;
}

.area__icon {
    width: 40px;
    height: 40px;
    color: var(--ray-cyan);
    transform: translateZ(30px);
}

.area__title {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    font-weight: 480;
    transform: translateZ(20px);
}

.area__text {
    color: var(--ink-dim);
    font-size: 0.97rem;
    transform: translateZ(10px);
}

.areas__more {
    margin-top: 28px;
    color: var(--ink-soft);
    max-width: 60ch;
}

.expect {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.expect__item {
    display: grid;
    gap: 12px;
    align-content: start;
}

.expect__item p {
    color: var(--ink-dim);
}

/* ---------- CONTATO ---------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.form-panel {
    padding: clamp(26px, 4vw, 52px);
}

.form {
    display: grid;
    gap: 24px;
}

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

.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--ink-dim);
}

.field__req {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.input {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgb(5 6 10 / 0.45);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s;
}

.input::placeholder {
    color: rgb(238 240 247 / 0.38);
}

.input:hover {
    border-color: rgb(255 255 255 / 0.26);
}

.input:focus {
    outline: none;
    border-color: var(--ray-cyan);
    background: rgb(5 6 10 / 0.6);
    box-shadow: 0 0 0 4px rgb(143 233 255 / 0.14);
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
}

.input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgb(255 154 154 / 0.16);
}

textarea.input {
    min-height: 180px;
    resize: vertical;
    line-height: 1.55;
}

.field__hint {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.field__error {
    font-size: 0.86rem;
    color: var(--danger);
    min-height: 0;
}

.field__error:empty {
    display: none;
}

.chips {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.chips legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--ink-dim);
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    position: relative;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgb(5 6 10 / 0.35);
    font-size: 0.92rem;
    color: var(--ink-dim);
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.5s var(--ease-spring);
}

.chip label:hover {
    color: var(--ink);
    border-color: rgb(255 255 255 / 0.3);
}

.chip input:checked + label {
    color: var(--bg);
    background: var(--ink);
    border-color: var(--ink);
}

.chip input:focus-visible + label {
    outline: 2px solid var(--ray-cyan);
    outline-offset: 3px;
}

.chip input:active + label {
    transform: scale(0.96);
}

.chips[aria-invalid="true"] .chip label {
    border-color: rgb(255 154 154 / 0.6);
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 6px;
}

.form__privacy {
    max-width: 40ch;
    font-size: 0.84rem;
    color: var(--ink-soft);
}

.btn__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgb(7 8 13 / 0.25);
    border-top-color: #07080d;
    animation: spin 0.8s linear infinite;
}

.form.is-sending .btn__spinner {
    display: block;
}

.form.is-sending .btn__arrow {
    display: none;
}

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

.form__alert {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgb(255 154 154 / 0.4);
    background: rgb(255 154 154 / 0.07);
    color: #ffd0d0;
    font-size: 0.94rem;
}

.form__alert:empty {
    display: none;
}

.form__alert--info {
    border-color: rgb(143 233 255 / 0.35);
    background: rgb(143 233 255 / 0.06);
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.target-alert {
    display: none;
    margin-bottom: 20px;
}

.target-alert:target {
    display: block;
}

.form-success {
    display: grid;
    gap: 20px;
    padding-block: 20px;
}

.form-success:focus {
    outline: none;
}

.form-success__mark {
    width: 64px;
    height: 64px;
    color: var(--ok);
}

.form-success__mark circle,
.form-success__mark path {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw 1s var(--ease-out) forwards;
}

.form-success__mark path {
    animation-delay: 0.35s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.next-steps {
    padding: clamp(26px, 3vw, 36px);
    display: grid;
    gap: 22px;
    position: sticky;
    top: 120px;
}

.next-steps__list {
    display: grid;
    gap: 20px;
    counter-reset: next;
}

.next-steps__list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    color: var(--ink-dim);
    font-size: 0.96rem;
    counter-increment: next;
}

.next-steps__list li::before {
    content: "0" counter(next);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ray-cyan);
    padding-top: 4px;
}

/* ---------- 404 e pagina de confirmacao ---------- */
.solo {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding-block: 140px 80px;
}

.solo__inner {
    display: grid;
    gap: 28px;
    max-width: 900px;
}

/* ---------- Revelacao por rolagem ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 46px, 0) scale(0.985);
    transition:
        opacity 0.8s var(--ease-out) var(--d, 0ms),
        transform 1.1s var(--ease-spring) var(--d, 0ms);
}

.js [data-reveal="fade"] {
    transform: none;
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Elementos com tilt nao podem ter transicao de transform (controlada por JS) */
.js [data-reveal][data-tilt].is-in {
    transition: opacity 0.8s var(--ease-out) var(--d, 0ms);
}

.js [data-reveal][data-tilt]:not(.is-in) {
    transform: translate3d(0, 46px, 0);
}

/* Titulos com entrada por linha */
.js .split-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.js .split-line > span {
    display: block;
    transform: translate3d(0, 105%, 0) rotate(2deg);
    transform-origin: left bottom;
    transition: transform 1.2s var(--ease-spring) var(--d, 0ms);
}

.js .is-in .split-line > span,
.js .split-line.is-in > span {
    transform: none;
}

/* ---------- Transicoes entre paginas (View Transitions) ---------- */
@view-transition {
    navigation: auto;
}

::view-transition-old(page) {
    animation: vt-out 0.35s var(--ease-in-out) both;
}

::view-transition-new(page) {
    animation: vt-in 0.6s var(--ease-out) both;
}

@keyframes vt-out {
    to {
        opacity: 0;
        transform: translateY(-24px) scale(0.99);
        filter: blur(6px);
    }
}

@keyframes vt-in {
    from {
        opacity: 0;
        transform: translateY(32px);
        filter: blur(6px);
    }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .nav__num {
        display: none;
    }

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

@media (max-width: 900px) {
    .nav,
    .site-header__cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .intro,
    .inventory,
    .scale,
    .contact,
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .chronicle__aside {
        top: 84px;
        z-index: 5;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 6px 18px;
        padding: 14px 18px;
        border-radius: var(--radius-m);
        background: rgb(10 12 20 / 0.72);
        border: 1px solid var(--line);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .chronicle__current {
        font-size: 2.4rem;
    }

    .chronicle__topic {
        font-size: 0.98rem;
    }

    .chronicle__rail {
        display: none;
    }

    .frame {
        scroll-margin-top: 170px;
    }

    .inventory__summary,
    .next-steps {
        position: relative;
        top: 0;
    }

    .verbs,
    .expect {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .stratum:nth-child(n) {
        grid-column: auto;
        margin-top: 0;
        min-height: 0;
    }

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

    .scale__stage {
        order: -1;
        height: 280px;
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 10px;
    }

    .site-header__bar {
        padding-left: 16px;
    }

    .areas,
    .form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticker {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .ticker__label {
        width: 100%;
    }

    .ticker__stage {
        flex-basis: calc(100% - 60px);
        min-height: 3.2em;
    }

    .next-chapter__link {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer__nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .bar {
        grid-template-columns: 96px 1fr 18px;
    }

    .frame__keep {
        flex-direction: column;
        gap: 6px;
    }

    .btn-row .btn {
        width: 100%;
    }
}

/* Dispositivos de toque: alvos maiores e sem efeitos de hover persistentes */
@media (hover: none) {
    .glass::after {
        display: none;
    }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal],
    .js [data-reveal][data-tilt]:not(.is-in),
    .js .split-line > span {
        opacity: 1;
        transform: none;
    }

    .scroll-cue__line::after {
        display: none;
    }

    ::view-transition-old(page),
    ::view-transition-new(page) {
        animation: none;
    }

    .frame {
        --p: 1 !important;
    }
}

/* ---------- Ajustes da pagina de contato ---------- */
.page-hero--short {
    min-height: 0;
    padding-top: clamp(150px, 20vw, 220px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.page-hero__title--wide {
    max-width: 18ch;
}

.section--flush {
    padding-top: 0;
}
