/* Fontes locais: Cabinet Grotesk e General Sans (Fontshare, ITF Free Font License), JetBrains Mono (OFL) */
@font-face { font-family: 'Cabinet Grotesk'; src: url('../fonts/cabinet-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('../fonts/cabinet-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('../fonts/cabinet-grotesk-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem);
  --text-hero: clamp(2.85rem, 1rem + 6vw, 6.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --ink: #17110d;
  --ink-2: #21180f;
  --ink-rgb: 23, 17, 13;
  --ink-line: rgba(255, 228, 200, .13);
  --paper: #efe6d8;
  --paper-2: #e6dac7;
  --paper-line: rgba(45, 28, 16, .15);
  --fg: #f3e9dc;
  --fg-soft: #ddcfbd;
  --fg-muted: #b5a593;
  --dark: #1d140e;
  --dark-muted: #6a5747;
  --amber: #ffb36b;
  --signal: #ff5b1f;
  --signal-hover: #ff7a47;

  --font-display: 'Cabinet Grotesk', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 180ms var(--ease-out);
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --fade: min(44vh, 400px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--fg); background: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }
ul[role='list'], ol[role='list'] { list-style: none; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--signal); color: var(--ink); padding: var(--space-2) var(--space-4); z-index: 100; font-weight: 600; }
.skip:focus { top: var(--space-4); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono, .label { font-family: var(--font-mono); }
.nb { font-style: normal; font-family: var(--font-mono); color: var(--fg); }

.label { font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.label::before { content: ''; width: 8px; height: 8px; background: var(--signal); flex: none; }
.label .nb { text-transform: none; }
.label--dark { color: var(--dark-muted); }

.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.02em; line-height: 1.05; max-width: 22ch; }
.h2--narrow { max-width: 26ch; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); background: var(--signal); color: var(--ink); font-weight: 600; font-size: var(--text-sm); text-decoration: none; border-radius: 2px; transition: background var(--t), transform var(--t); }
.btn:hover { background: var(--signal-hover); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 var(--space-4); }
.btn--ghost { background: transparent; color: var(--dark); border: 1px solid var(--paper-line); }
.btn--ghost:hover { background: var(--paper-2); }
.link-arrow { font-size: var(--text-sm); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: var(--space-2); border-bottom: 1px solid transparent; transition: color var(--t); }
.link-arrow::after { content: '→'; font-family: var(--font-mono); transition: transform var(--t); }
.link-arrow:hover { color: var(--signal); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(var(--ink-rgb), .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.header.is-scrolled { border-bottom-color: var(--ink-line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 68px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.wordmark__name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: .04em; line-height: 1; }
.wordmark__sig { width: 6px; height: 6px; background: var(--signal); align-self: flex-start; margin-top: 2px; }
.wordmark__sub { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.nav { display: flex; gap: var(--space-8); }

.nav a { white-space: nowrap; font-size: var(--text-sm); text-decoration: none; color: var(--fg-muted); padding-block: var(--space-2); transition: color var(--t); }
.nav a:hover, .nav a.is-active { color: var(--fg); }
@media (max-width: 1180px) { .nav { gap: var(--space-5); } }
@media (max-width: 1100px) { .nav { gap: var(--space-4); } }
@media (max-width: 1040px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__in { padding-top: var(--space-24); padding-bottom: var(--space-12); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-hero); letter-spacing: -0.035em; line-height: .95; max-width: 14ch; }
.hero__lede { margin-top: var(--space-8); max-width: 54ch; color: var(--fg-soft); font-size: var(--text-base); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-10); }

.spec { margin-top: var(--space-16); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-line); }
.spec > div { padding: var(--space-5) var(--space-4) 0 0; position: relative; }
.spec > div + div { padding-left: var(--space-5); border-left: 1px solid var(--ink-line); }
.spec dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-muted); text-transform: uppercase; letter-spacing: .04em; }
.spec dd { margin-top: var(--space-1); font-weight: 500; font-size: var(--text-sm); }
.spec { position: relative; overflow: hidden; border-top: 0; background: linear-gradient(var(--ink-line), var(--ink-line)) top / 100% 1px no-repeat; }
.spec::before { content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 22%; background: linear-gradient(90deg, rgba(255,91,31,0), var(--signal) 85%, #ffd2bf); animation: scan 6s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(455%); } }
.spec dt { position: relative; }
.spec > div dt { animation: tick 6s linear infinite; }
.spec > div:nth-child(2) dt { animation-delay: 1.23s; }
.spec > div:nth-child(3) dt { animation-delay: 2.46s; }
.spec > div:nth-child(4) dt { animation-delay: 3.69s; }
@keyframes tick { 0% { color: var(--signal); } 14% { color: var(--fg-muted); } 100% { color: var(--fg-muted); } }
@media (max-width: 720px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec > div:nth-child(n+3) { padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--ink-line); }
  .spec::before { width: 44%; animation-duration: 4s; }
  .spec > div dt { animation: none; }
}

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--light { background: var(--paper); color: var(--dark); }
.section--light ::selection { color: var(--dark); }

.grid-tese { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: start; }
.prose p { color: var(--fg-soft); max-width: 60ch; }
.prose p + p { margin-top: var(--space-5); }
.prose strong { color: var(--fg); font-weight: 600; }
.operator { margin-top: var(--space-8) !important; padding-top: var(--space-6); border-top: 1px solid var(--ink-line); color: var(--fg) !important; font-weight: 500; }
.signals { margin-top: clamp(var(--space-12), 7vw, var(--space-24)); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-line); }
.signals li { padding: var(--space-6) var(--space-6) 0 0; display: flex; flex-direction: column; gap: var(--space-2); }
.signals li + li { padding-left: var(--space-6); border-left: 1px solid var(--ink-line); }
.signals__n { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--fg); }
.signals__t { font-size: var(--text-sm); color: var(--fg-muted); max-width: 34ch; }
.signals sup a { color: var(--signal); text-decoration: none; font-family: var(--font-mono); font-size: .75em; margin-left: 2px; }
@media (max-width: 900px) {
  .grid-tese { grid-template-columns: 1fr; gap: var(--space-8); }
  .signals { grid-template-columns: 1fr; }
  .signals li, .signals li + li { padding: var(--space-5) 0; border-left: 0; }
  .signals li + li { border-top: 1px solid var(--ink-line); }
}

/* Teses index */
.teses__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; margin-bottom: var(--space-12); }
.legend { display: flex; gap: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--trust { border: 1.5px solid currentColor; }
.dot--money { background: var(--signal); }
.section--light .dot--trust { color: var(--dark); }

.index { border-top: 1px solid var(--dark); }
.row { border-bottom: 1px solid var(--paper-line); }
.row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 4rem minmax(14rem, 1.1fr) 2fr 9rem 2rem; align-items: center; gap: var(--space-6); padding: var(--space-6) 0; min-height: 44px; transition: background var(--t); }
.row summary::-webkit-details-marker { display: none; }
.row summary:hover .row__name { color: #000; }
.row summary:hover .row__toggle { border-color: var(--dark); }
.row__n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--dark-muted); }
.row__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.1; }
.row__pov { color: var(--dark-muted); font-size: var(--text-sm); }
.row__layer { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); }
.row__toggle { width: 32px; height: 32px; border: 1px solid var(--paper-line); border-radius: 50%; position: relative; justify-self: end; transition: border-color var(--t), background var(--t), transform 300ms var(--ease-out); }
.row__toggle::before, .row__toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--dark); transform: translate(-50%, -50%); }
.row__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease-out); }
.row[open] .row__toggle { background: var(--dark); border-color: var(--dark); }
.row[open] .row__toggle::before, .row[open] .row__toggle::after { background: var(--paper); }
.row[open] .row__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.row[open] .row__n { color: var(--dark); }
.row[open] .row__n::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
.row__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); padding: 0 0 var(--space-10) calc(4rem + var(--space-6)); }
html:not(.motion) .row[open] .row__body { animation: open 400ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
.row__h { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark-muted); margin-bottom: var(--space-3); }
.row__body p { max-width: 52ch; }
.row__body ul { list-style: none; }
.row__body li { padding: var(--space-2) 0; border-bottom: 1px solid var(--paper-line); display: flex; gap: var(--space-3); }
.row__body li:last-child { border-bottom: 0; }
.row__body li::before { content: '→'; font-family: var(--font-mono); color: var(--dark-muted); flex: none; }
@media (max-width: 1000px) {
  .row summary { grid-template-columns: 3rem 1fr 2rem; row-gap: var(--space-2); }
  .row__pov { grid-column: 2 / 3; grid-row: 2; }
  .row__layer { grid-column: 2 / 3; grid-row: 3; }
  .row__toggle { grid-column: 3; grid-row: 1; }
  .row__body { grid-template-columns: 1fr; gap: var(--space-6); padding-left: calc(3rem + var(--space-6)); }
}
@media (max-width: 560px) {
  .row summary { grid-template-columns: 2.25rem 1fr 2rem; gap: var(--space-3); }
  .row__body { padding-left: 0; }
}


/* Critérios */
.criteria { margin-top: var(--space-16); border-top: 1px solid var(--ink-line); }
.criteria__row { display: grid; grid-template-columns: minmax(12rem, 1fr) 2.4fr; gap: var(--space-8); padding: var(--space-6) 0; border-bottom: 1px solid var(--ink-line); }
.criteria dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); display: flex; gap: var(--space-4); align-items: baseline; }
.criteria dt .mono { font-size: var(--text-xs); color: var(--signal); font-weight: 500; }
.criteria dd { color: var(--fg-soft); max-width: 62ch; }
.criteria__row--key { border-left: 2px solid var(--signal); padding-left: var(--space-4); background: linear-gradient(90deg, rgba(255,91,31,.07), transparent 60%); }
.criteria__row--key dd strong { color: var(--fg); font-weight: 600; }
@media (max-width: 700px) { .criteria__row { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Além */
.grid-alem { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: start; }
.alem__media { position: sticky; top: 96px; }
.alem__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.support { margin-top: var(--space-12); counter-reset: s; }
.support li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--ink-line); }
.support li::before { content: '0' counter(s); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--signal); padding-top: .35em; grid-row: span 2; }
.support h3 { font-size: var(--text-lg); font-weight: 600; font-family: var(--font-body); letter-spacing: -0.01em; }
.support p { margin-top: var(--space-2); color: var(--fg-muted); max-width: 54ch; }
@media (max-width: 900px) {
  .grid-alem { grid-template-columns: 1fr; }
  .alem__media { position: static; }
  .alem__media img { aspect-ratio: 16 / 10; }
}

/* Pitch */
.grid-pitch { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: start; }
.pitch__intro > p:not(.label) { margin-top: var(--space-6); color: var(--dark-muted); max-width: 44ch; }
.checklist { margin-top: var(--space-8); border-top: 1px solid var(--paper-line); }
.checklist li { padding: var(--space-3) 0; border-bottom: 1px solid var(--paper-line); display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.checklist li::before { content: ''; width: 8px; height: 8px; background: var(--signal); flex: none; }
.pitch__alt { font-size: var(--text-sm); }
.pitch__alt a { color: var(--dark); font-weight: 600; text-underline-offset: 3px; }

.form { background: #f7f0e5; border: 1px solid var(--paper-line); padding: clamp(var(--space-6), 3vw, var(--space-10)); border-radius: 2px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark); }
.opt { text-transform: none; color: var(--dark-muted); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); background: #fff; border: 1px solid rgba(22,22,20,.22); border-radius: 2px; color: var(--dark); font-size: var(--text-base); transition: border-color var(--t), box-shadow var(--t); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161614' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: var(--space-10); }
.field input::placeholder, .field textarea::placeholder { color: #94806d; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(45,28,16,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(255, 91, 31, .35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field__err { font-size: var(--text-xs); color: #b3261e; min-height: 0; }
.field__err:empty { display: none; }
.field__hint { font-size: var(--text-xs); color: var(--dark-muted); }
.form__foot { margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.form__note { font-size: var(--text-xs); color: var(--dark-muted); max-width: 40ch; }
.form__ok { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); background: var(--dark); color: var(--fg); border-radius: 2px; animation: open 400ms var(--ease-out); }
.form__ok-title { font-weight: 600; display: flex; gap: var(--space-3); align-items: center; }
.form__ok-title .mono { font-size: var(--text-xs); background: var(--signal); color: var(--ink); padding: 2px 6px; }
.form__ok p + p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--fg-soft); }
.form__ok a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }
.form__ok .btn--ghost { margin-top: var(--space-4); color: var(--fg); border-color: var(--ink-line); }
.form__ok .btn--ghost:hover { background: var(--ink-2); }
@media (max-width: 900px) { .grid-pitch { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding-block: var(--space-16) var(--space-12); border-top: 1px solid var(--ink-line); }
.footer__in { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12); }
.footer__brand p { margin-top: var(--space-3); color: var(--fg-muted); font-size: var(--text-sm); }
.footer__legal p { font-size: var(--text-xs); color: var(--fg-muted); max-width: 72ch; }
.footer__legal p + p { margin-top: var(--space-3); }
.fontes a { color: var(--fg); text-underline-offset: 3px; }
@media (max-width: 760px) { .footer__in { grid-template-columns: 1fr; gap: var(--space-8); } }

.form__ok p { text-wrap: wrap; }

/* ============ Motion layer ============ */
/* Header scroll progress */
.header__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

html:not(.motion) 
/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w__i { display: inline-block; }
.motion .split .w__i { transform: translate3d(0, 108%, 0); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
.motion .split.is-in .w__i { transform: none; }
.motion .hero__title { --base: 120ms; }

/* Hero entrance sequence (on load, not scroll) */
/* Entrada do hero só com CSS: começa na primeira pintura, sem esperar o JS (LCP) */
.motion .hero-seq { animation: hero-in 900ms var(--ease-out) both; animation-delay: calc(200ms + var(--d, 0) * 140ms); }
.motion .label.hero-seq { animation-delay: 0ms; }
@keyframes hero-in { from { opacity: .01; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* Marquee */
.marquee { border-block: 1px solid var(--ink-line); overflow: hidden; padding-block: var(--space-5); background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__item { display: inline-flex; align-items: baseline; gap: var(--space-3); padding-right: var(--space-12); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; color: var(--fg); }
.marquee__item::after { content: ''; width: 8px; height: 8px; background: var(--signal); align-self: center; margin-left: var(--space-12); }
.marquee__item { padding-right: var(--space-12); }
.marquee__n { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); color: var(--fg-muted); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Line draw on dividers */
.draw { position: relative; }
.draw::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.motion .draw.is-in::after { animation: draw 1600ms var(--ease-out) forwards; }
@keyframes draw { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.index.draw::after { top: -1px; height: 2px; }

/* Sequenced wipes (children) */
.motion .seq:not(.is-in) > * { opacity: 0; transform: translate3d(0, 18px, 0); }
.motion .seq.is-in > * { animation: wipe 1000ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes wipe { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* Criteria letters light up in sequence */
.criteria dt .mono { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 1px solid rgba(255,91,31,.5); transition: background 400ms var(--ease-out), color 400ms var(--ease-out); }
.motion .criteria.is-in dt .mono { animation: letter 1200ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }
@keyframes letter { 0% { background: var(--signal); color: var(--ink); } 100% { background: transparent; color: var(--signal); } }
.criteria__row { position: relative; }
.criteria__row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); transition: transform 500ms var(--ease-out); }
.criteria__row:hover::after { transform: scaleX(1); }

/* Theses rows */
.row { position: relative; }
.row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); transition: transform 700ms var(--ease-out); pointer-events: none; }
.row:not([open]):hover::after { transform: scaleX(.08); }
.row[open]::after { transform: scaleX(1); }
.row.is-closing::after { transform: scaleX(0); }
.row summary { position: relative; }
.row__name { transition: transform 400ms var(--ease-out), color var(--t); }
@media (hover: hover) { .row:not([open]) summary:hover .row__name { transform: translateX(6px); } }
.row__body { overflow: hidden; }

/* Signals numbers */
.signals__n { font-variant-numeric: tabular-nums; }

html:not(.motion) 
.alem__media { overflow: hidden; border-radius: 2px; }
html:not(.motion) 
/* Magnetic buttons */
.btn.is-mag { transition: transform 120ms linear, background var(--t), color var(--t), border-color var(--t); }

@media (max-width: 720px) {
  .marquee__item { font-size: var(--text-lg); padding-right: var(--space-8); }
  .marquee__item::after { margin-left: var(--space-8); }
  .marquee__track { animation-duration: 36s; }
  .spec::before { animation-name: scan-m; }
}
@keyframes scan-m { from { transform: translateX(-100%); } to { transform: translateX(230%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .spec::before, .spec > div dt { animation: none !important; }
  .spec::before { display: none; }
}

/* Critérios: linha complementar */
.criteria dd p + p { margin-top: var(--space-2); }
.criteria__sub { font-size: var(--text-sm); color: var(--fg-muted); }

/* ============ Formas de entrar ============ */
.formas__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: end; margin-bottom: var(--space-12); }
.formas__intro { color: var(--dark-muted); max-width: 44ch; }
.ways { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: clamp(var(--space-10), 5vw, var(--space-20)); border-top: 1px solid var(--dark); }
.way { position: relative; display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--space-4); align-content: start; padding: var(--space-8) 0; border-bottom: 1px solid var(--paper-line); }
.way::before { content: ''; position: absolute; left: 0; top: -1px; width: 3rem; height: 2px; background: var(--signal); transform-origin: 0 50%; }
.motion .ways.is-in > .way::before { animation: way-line 900ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes way-line { from { transform: scaleX(0); } }
.way > :not(.way__n) { grid-column: 2; }
.way__n { grid-row: span 3; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); padding-top: .45em; }
.way__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.1; }
.way p { margin-top: var(--space-3); color: var(--dark-muted); max-width: 52ch; }
.way--lead { grid-row: 1 / span 3; grid-template-columns: 1fr; padding-top: var(--space-10); border-bottom: 0; }
.way--lead::before { width: 100%; height: 1px; }
.way--lead > * { grid-column: 1 !important; }
.way--lead .way__n { grid-row: auto; font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 3rem + 6vw, 9rem); line-height: .85; letter-spacing: -0.05em; color: var(--signal); padding: 0 0 var(--space-6); }
.way--lead .way__title { font-size: var(--text-2xl); }
.way--lead > p:not(.way__ref) { color: var(--dark); font-size: var(--text-lg); line-height: 1.45; }
.way__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.way__tags li { font-family: var(--font-mono); font-size: var(--text-xs); padding: var(--space-1) var(--space-3); border: 1px solid var(--dark); border-radius: 2px; }
.way__ref { font-family: var(--font-mono); font-size: var(--text-xs) !important; margin-top: var(--space-5) !important; }
.way__ref sup a { color: var(--signal); text-decoration: none; margin-left: 2px; }
@media (max-width: 900px) {
  .formas__head { grid-template-columns: 1fr; gap: var(--space-6); }
  .ways { grid-template-columns: 1fr; }
  .way--lead { grid-row: auto; border-bottom: 1px solid var(--paper-line); padding-bottom: var(--space-8); }
}

/* ============ Idiomas ============ */
.header__end { display: flex; align-items: center; gap: var(--space-4); }
.lang { display: inline-flex; align-items: center; }
.lang a { display: inline-grid; place-items: center; text-decoration: none; position: relative; min-width: 34px; min-height: 44px; padding: 0 6px; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--fg-muted); transition: color var(--t); }
.lang a + a::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; margin-top: -5px; background: var(--ink-line); }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="page"] { color: var(--fg); }
.lang a[aria-current="page"]::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 9px; height: 2px; background: var(--signal); }
.lang a:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
@media (max-width: 480px) {
  .header__in { gap: var(--space-3); }
  .header__end { gap: var(--space-2); }
  .wordmark__sub { display: none; }
  .lang a { min-width: 30px; padding: 0 4px; }
  .lang a[aria-current="page"]::after { left: 7px; right: 7px; }
}

/* ============ Palco: cenas fixas, luz e grão ============ */
.stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; background: var(--ink); pointer-events: none; }
.scene { position: absolute; inset: -4%; opacity: 0; backface-visibility: hidden; }
.scene.is-on { opacity: 1; }
.scene picture, .scene img, .scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-video { z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.scene-video.is-playing { opacity: 1; }
.scene[data-scene="skyline"] img, .scene[data-scene="skyline"] video { object-position: 62% 50%; }
.scene[data-scene="pay"] img { object-position: 70% 50%; }
.scene[data-scene="ops"] img { object-position: 50% 60%; }
.stage__scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--ink-rgb), .86) 0%, rgba(var(--ink-rgb), .55) 42%, rgba(var(--ink-rgb), .18) 100%),
  linear-gradient(0deg, rgba(var(--ink-rgb), .75) 0%, rgba(var(--ink-rgb), 0) 45%),
  linear-gradient(180deg, rgba(var(--ink-rgb), .55) 0%, rgba(var(--ink-rgb), 0) 22%); }
.stage__glow { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 78% 28%, rgba(255, 150, 70, .22), transparent 70%),
  radial-gradient(45% 40% at 12% 92%, rgba(255, 91, 31, .14), transparent 70%); mix-blend-mode: screen; }
.stage__wipe { position: absolute; left: -10%; right: -10%; top: 0; height: 70vh; opacity: 0; transform: translate3d(0, 120vh, 0); mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(255, 179, 107, 0) 0%, rgba(255, 140, 60, .16) 38%, rgba(255, 196, 140, .42) 50%, rgba(255, 140, 60, .16) 62%, rgba(255, 179, 107, 0) 100%); }
.stage__wipe::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 220, 190, .9) 30%, var(--signal) 60%, transparent); }

.thread { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 3; pointer-events: none; display: none; }
.js .thread { display: block; }
.grain { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

main, .footer { position: relative; z-index: 1; }
.header { z-index: 50; }
.hero { background: transparent; min-height: 100vh; min-height: 100svh; }
.hero__lede { color: var(--fg-soft); }
.marquee { position: relative; z-index: 1; background: rgba(var(--ink-rgb), .9); box-shadow: 0 18px 40px -10px rgba(var(--ink-rgb), .85), 0 -18px 40px -10px rgba(var(--ink-rgb), .6); }
.section--dark { background: linear-gradient(180deg, rgba(var(--ink-rgb), .58) 0%, rgba(var(--ink-rgb), .86) 14%, rgba(var(--ink-rgb), .86) 86%, rgba(var(--ink-rgb), .58) 100%); }
.section--dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 85% 0%, rgba(255, 140, 60, .1), transparent 70%); }
.section--dark { position: relative; }
.section--dark > * { position: relative; }
.section--light { position: relative; background: var(--paper); background-image: radial-gradient(70% 50% at 100% 0%, rgba(255, 179, 107, .18), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(255, 91, 31, .06), transparent 70%); }
.section--light::before, .section--light::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; }
/* Escuro → papel: gradiente longo e suavizado, sem faixa marcada */
.section--light::before { bottom: 100%; height: var(--fade); background: linear-gradient(0deg, rgba(239, 230, 216, 1) 0%, rgba(239, 230, 216, 0.9) 14%, rgba(239, 230, 216, 0.72) 32%, rgba(239, 230, 216, 0.5) 50%, rgba(239, 230, 216, 0.28) 68%, rgba(239, 230, 216, 0.1) 85%, rgba(239, 230, 216, 0) 100%); }
.section--light::after { top: 100%; height: min(34vh, 320px); background: linear-gradient(180deg, rgba(239, 230, 216, 1) 0%, rgba(239, 230, 216, .9) 14%, rgba(239, 230, 216, .72) 32%, rgba(239, 230, 216, .5) 50%, rgba(239, 230, 216, .28) 68%, rgba(239, 230, 216, .1) 85%, rgba(239, 230, 216, 0) 100%); }
.footer { background: var(--ink); }

/* Interlúdios: frase curta entre blocos, sobre a cena */
.interlude { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.interlude .wrap { position: relative; z-index: 1; }
.interlude__line { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 5vw, 5.75rem); letter-spacing: -0.035em; line-height: .98; max-width: 13ch; color: var(--fg); text-shadow: 0 2px 40px rgba(var(--ink-rgb), .55); }
.interlude__line::after { content: ''; display: inline-block; width: .16em; height: .16em; margin-left: .08em; background: var(--signal); vertical-align: baseline; }
.interlude__sub { margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.js .net { display: block; }

.alem__media img { aspect-ratio: 4 / 5; object-position: 40% 50%; }

@media (max-width: 720px) {
  .interlude { min-height: 78vh; min-height: 78svh; }
  .stage__scrim { background: linear-gradient(0deg, rgba(var(--ink-rgb), .9) 0%, rgba(var(--ink-rgb), .62) 55%, rgba(var(--ink-rgb), .3) 100%); }
  .scene[data-scene="skyline"] img, .scene[data-scene="skyline"] video { object-position: 66% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__wipe { display: none; }
  .scene-video { display: none; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* O bloco antes do papel reserva espaço para o gradiente, sem cobrir conteúdo */
.interlude:has(+ .section--light) { min-height: calc(92vh + var(--fade)); min-height: calc(92svh + var(--fade)); padding-bottom: var(--fade); }
.interlude:has(+ .section--light) .net { height: calc(100% - var(--fade)); }
.section--dark:has(+ .section--light) { padding-bottom: calc(clamp(var(--space-16), 9vw, var(--space-32)) + var(--fade)); }
@media (max-width: 720px) {
  .interlude:has(.net) { align-items: flex-start; padding-top: 14vh; padding-top: 14svh; }
  .interlude:has(+ .section--light) { min-height: calc(78vh + var(--fade)); min-height: calc(78svh + var(--fade)); }
}

/* ============ Títulos de seção (H2 semântico no rótulo; a frase grande segue como display) ============ */
.label--h2 { font-weight: 400; line-height: 1.5; max-width: 56ch; align-items: flex-start; text-wrap: balance; }
.label--h2::before { margin-top: .45em; }
.row__more { margin-top: var(--space-5); font-size: var(--text-sm); }

/* ============ Rodapé: links ============ */
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); font-size: var(--text-sm); }
.footer__nav a { color: var(--fg-soft); text-decoration: none; padding-block: var(--space-1); }
.footer__nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Home: panorama + radar e FAQ ============ */
.grid-panorama { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.panorama__intro { margin-top: var(--space-6); color: var(--dark-muted); max-width: 52ch; }
.panorama .link-arrow { margin-top: var(--space-6); display: inline-flex; }
.hubmini { margin-top: var(--space-8); border-top: 1px solid var(--dark); }
.hubmini a { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--paper-line); text-decoration: none; transition: padding var(--t); }
.hubmini a:hover { padding-left: var(--space-2); }
.hubmini a > span:first-child { font-weight: 500; }
.hubmini__st { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); text-align: right; }
.panorama #radar .panorama__intro { margin-top: 0; }
.panorama #radar .label { margin-bottom: var(--space-6); }
.section--light + .section--dark { padding-top: calc(clamp(var(--space-16), 9vw, var(--space-32)) + min(22vh, 200px)); }
.grid-faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
@media (max-width: 900px) { .grid-panorama, .grid-faq { grid-template-columns: 1fr; } }

/* Perguntas e respostas (home e teses) */
.qa { border-top: 1px solid currentColor; }
.qa__item { border-bottom: 1px solid var(--ink-line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; min-height: 44px; font-weight: 500; font-size: var(--text-base); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 28px; height: 28px; border: 1px solid var(--ink-line); border-radius: 50%; position: relative; transition: background var(--t), border-color var(--t); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease-out); }
.qa__item[open] summary i { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.qa__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover i { border-color: currentColor; }
.qa__a { padding: 0 var(--space-10) var(--space-6) 0; }
.qa__a p { color: var(--fg-soft); max-width: 62ch; }
.section--dark .qa { border-top-color: var(--ink-line); }
.section--light .qa, .paper .qa { border-top-color: var(--dark); }
.section--light .qa__item, .paper .qa__item { border-bottom-color: var(--paper-line); }
.section--light .qa summary i, .paper .qa summary i { border-color: var(--paper-line); }
.section--light .qa__a p, .paper .qa__a p { color: var(--dark-muted); }
html:not(.motion) .qa__item[open] .qa__a { animation: none; }
.motion .qa__item[open] .qa__a { animation: open 400ms var(--ease-out); }

/* Radar (lista completa e compacta) */
.radar { border-top: 1px solid var(--dark); list-style: none; }
.radar__item { padding: var(--space-6) 0; border-bottom: 1px solid var(--paper-line); }
.radar__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); text-transform: uppercase; letter-spacing: .04em; }
.radar__meta time { color: var(--dark); }
.radar__title { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.2; }
.radar__title a { text-decoration: none; background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 2px no-repeat; transition: background-size 400ms var(--ease-out); }
.radar__title a:hover { background-size: 100% 2px; }
.radar__title a::after { content: ' ↗'; font-family: var(--font-mono); font-size: .7em; color: var(--dark-muted); }
.radar__ctx { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--dark-muted); letter-spacing: 0; }
.radar__comment { margin-top: var(--space-3); color: var(--dark-muted); max-width: 66ch; }
.radar__k { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark); }
.radar--compact .radar__item { padding: var(--space-5) 0; }
.radar--compact .radar__title { font-size: var(--text-base); }
.radar--compact .radar__comment { font-size: var(--text-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--font-mono); font-size: var(--text-xs); padding: var(--space-1) var(--space-3); border: 1px solid var(--dark); border-radius: 2px; text-decoration: none; transition: background var(--t), color var(--t); }
.chip:hover { background: var(--dark); color: var(--paper); }

/* ============ Páginas internas ============ */
.stage--page .scene { inset: 0; }
.page .stage__scrim { background: linear-gradient(90deg, rgba(var(--ink-rgb), .9) 0%, rgba(var(--ink-rgb), .66) 50%, rgba(var(--ink-rgb), .35) 100%), linear-gradient(0deg, rgba(var(--ink-rgb), .8) 0%, rgba(var(--ink-rgb), 0) 50%); }
.page main { position: relative; }
.phero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: var(--space-24) 0 calc(var(--space-16) + var(--fade)); }
.phero .wrap { position: relative; }
.phero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1rem + 3.8vw, 4.5rem); letter-spacing: -0.03em; line-height: 1; max-width: 20ch; }
.phero__lede { margin-top: var(--space-6); max-width: 62ch; color: var(--fg-soft); font-size: var(--text-lg); line-height: 1.5; }
.phero .label { margin-bottom: var(--space-5); }
.motion .phero .label, .motion .phero__title, .motion .phero__lede, .motion .facts { animation: hero-in 900ms var(--ease-out) both; }
.motion .phero__title { animation-delay: 120ms; }
.motion .phero__lede { animation-delay: 240ms; }
.motion .facts { animation-delay: 360ms; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-muted); margin-bottom: var(--space-8); }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); color: var(--signal); }
.crumbs a { color: var(--fg-soft); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--fg-muted); }
.facts { margin-top: var(--space-10); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-4) var(--space-10); border-top: 1px solid var(--ink-line); padding-top: var(--space-5); }
.facts dt { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); }
.facts dd { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--fg); max-width: 32ch; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .phero { min-height: 0; padding-top: var(--space-16); } }

/* Fio de luz: linha vertical que acompanha a leitura */
.fio { position: absolute; z-index: 2; top: 0; bottom: 0; left: max(10px, calc((100vw - var(--wrap)) / 2 - var(--gutter) / 2)); width: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 91, 31, 0) 0%, rgba(255, 91, 31, .7) 8%, rgba(255, 179, 107, .45) 40%, rgba(255, 91, 31, .3) 80%, rgba(255, 91, 31, 0) 100%); }
.fio::after { content: ''; position: absolute; left: -1px; top: 0; width: 3px; height: 120px; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, transparent, #ffd2a8 50%, transparent); box-shadow: 0 0 14px 2px rgba(255, 140, 60, .55); }
.motion .fio::after { animation: fio 9s linear infinite; }
@keyframes fio { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 120px); opacity: 0; } }
@media (max-width: 720px) { .fio { left: 8px; } }

/* Corpo editorial em papel */
.paper { position: relative; padding-block: var(--space-16) clamp(var(--space-16), 9vw, var(--space-32)); }
.doc { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); }
.doc__aside { position: relative; }
.toc { position: sticky; top: 96px; font-size: var(--text-sm); }
.toc__t { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark-muted); margin-bottom: var(--space-3); }
.toc ol { list-style: none; border-left: 1px solid var(--paper-line); }
.toc a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-4); margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--dark-muted); transition: color var(--t), border-color var(--t); }
.toc a:hover { color: var(--dark); border-left-color: var(--signal); }
.doc__main { min-width: 0; max-width: 46rem; }
.doc--wide .doc__main { max-width: 52rem; }
.doc__sec + .doc__sec { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.doc__h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.015em; margin-bottom: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--dark); position: relative; }
.doc__h2::before { content: ''; position: absolute; left: 0; top: -1px; width: 3rem; height: 2px; background: var(--signal); }
.doc__main p { max-width: 66ch; }
.doc__main p + p, .doc__main p + ul, .doc__main ul + p, .doc__main .cards + p, .doc__main .table-wrap + p { margin-top: var(--space-4); }
.doc__main a:not(.btn):not(.chip):not(.link-arrow) { text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc__main a:not(.btn):not(.chip):not(.link-arrow):hover { text-decoration-thickness: 2px; }
.doc__main .link-arrow { margin-top: var(--space-4); display: inline-flex; }
.arrows { list-style: none; border-top: 1px solid var(--paper-line); }
.arrows li { position: relative; padding: var(--space-3) 0 var(--space-3) 1.6em; border-bottom: 1px solid var(--paper-line); }
.arrows li::before { content: '→'; position: absolute; left: 0; font-family: var(--font-mono); color: var(--signal); }
.arrows--rich li { line-height: 1.6; }
.note { font-size: var(--text-sm); color: var(--dark-muted); }
.note--box { padding: var(--space-4) var(--space-5); border: 1px solid var(--paper-line); border-left: 2px solid var(--signal); background: rgba(255, 255, 255, .25); margin-bottom: var(--space-6); max-width: none !important; }
.paper .doc__main .note { margin-top: var(--space-5); }

/* Cartões (regulação e teses relacionadas) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); list-style: none; }
.card a { display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-5); border: 1px solid var(--paper-line); background: rgba(255, 255, 255, .28); text-decoration: none !important; transition: border-color var(--t), transform 300ms var(--ease-out), background var(--t); }
.card a:hover { border-color: var(--dark); background: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.card__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); }
.card__t { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.15; }
.card__lang { font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--dark-muted); }
.card__d { font-size: var(--text-sm); color: var(--dark-muted); }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Formas de entrar (teses) */
.ways-list { list-style: none; margin-top: var(--space-6); border-top: 1px solid var(--dark); }
.ways-list li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--paper-line); }
.ways-list__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--signal); padding-top: .35em; }
.ways-list h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.ways-list p { margin-top: var(--space-2); color: var(--dark-muted); }
.cta-box { margin-top: var(--space-8); padding: var(--space-6); background: var(--ink); color: var(--fg); border-radius: 2px; }
.cta-box p { color: var(--fg-soft); font-size: var(--text-lg); line-height: 1.4; }
.cta-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-5); }
.cta-box .link-arrow { margin-top: 0 !important; color: var(--fg); }

/* Outras teses */
.others { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--dark); column-gap: var(--space-8); }
.others a { display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-line); text-decoration: none !important; font-weight: 500; transition: padding var(--t); }
.others a:hover { padding-left: var(--space-2); }
.others__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); }
@media (max-width: 640px) { .others { grid-template-columns: 1fr; } }

/* Tabela de status do panorama */
.table-wrap { width: 100%; }
.status-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.status-table caption { text-align: left; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark-muted); padding-bottom: var(--space-3); }
.status-table th, .status-table td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--paper-line); }
.status-table thead th { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--dark-muted); border-bottom: 1px solid var(--dark); }
.status-table tbody th { font-weight: 600; min-width: 12rem; }
.status-table td:last-child { font-size: var(--text-xs); }
.status { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.4; padding: 2px var(--space-2); border: 1px solid var(--dark); border-radius: 2px; }
@media (max-width: 900px) {
  .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; }
  .status-table tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-line); }
  .status-table th, .status-table td { border: 0; padding: var(--space-1) 0; }
  .status-table tbody th { min-width: 0; font-size: var(--text-base); }
}

/* Fontes e paginação do panorama */
.sources { list-style: none; border-top: 1px solid var(--paper-line); }
.sources li { padding: var(--space-3) 0; border-bottom: 1px solid var(--paper-line); }
.sources a::after { content: ' ↗'; font-family: var(--font-mono); font-size: .8em; color: var(--dark-muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.pager a { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-5); border: 1px solid var(--paper-line); text-decoration: none !important; font-weight: 500; transition: border-color var(--t); }
.pager a:hover { border-color: var(--dark); }
.pager span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dark-muted); font-weight: 400; }
.pager__next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager__next { text-align: left; } }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: var(--space-8); }
  .doc__aside:empty { display: none; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); border-left: 0; }
  .toc a { padding: var(--space-2) 0; border-left: 0; text-decoration: underline !important; text-decoration-color: var(--paper-line) !important; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) { .fio::after { display: none; } }
.doc__main, .phero, .crumbs { overflow-wrap: break-word; } .doc__main a, .sources a { overflow-wrap: anywhere; }
.doc:has(> .doc__aside:empty) { grid-template-columns: minmax(0, 1fr); } .doc:has(> .doc__aside:empty) .doc__main { max-width: 60rem; }

/* Página 404 */
.phero--404 { min-height: min(86vh, 820px); }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); margin-top: var(--space-8); }
.nf-links .link-arrow { color: var(--fg); }
.page--404 .footer { margin-top: 0; }
