/* Layout: dark Notte chapters (the "truth" side) alternating with Nebbia paper chapters (the factory's documents),
   one signature motion — threads converging into a decision — reused from hero to quote explorer. */
:root {
  --notte: #10211C;
  --abete: #1F3F37;
  --salvia: #A9C7BD;
  --nebbia: #F1F5F3;
  --menta: #4FD1B5;
  --faint: #8FB0A5;          /* secondary text on Notte */
  --ink-2: #44605A;          /* secondary text on Nebbia */
  --line-d: rgba(169,199,189,.18);
  --line-l: rgba(16,33,28,.12);
  --paper-2: #E4ECE8;        /* raised surface on Nebbia */
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--notte); color: var(--nebbia); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--abete); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 300; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
h3 { font-size: 19px; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0; }
.label { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--salvia); }
.paper .label { color: var(--abete); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--faint); max-width: 58ch; }
.paper .lead { color: var(--ink-2); }
em.hl { font-style: normal; color: var(--menta); font-weight: 400; }
.paper em.hl { color: var(--abete); font-weight: 500; }
section { position: relative; }
.chapter { padding-block: clamp(80px, 11vw, 150px); }
.paper { background: var(--nebbia); color: var(--notte); }
.head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Proposal banner */

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; transition: background .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(16,33,28,.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line-d); }
.header-inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); height: 84px; display: flex; align-items: center; gap: 28px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--salvia); transition: color .2s; }
.nav a:hover { color: var(--nebbia); }
.nav .nav-cta { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--menta); color: var(--notte); }
.btn-primary:hover { background: #6BDBC3; }
.btn-ghost { border-color: rgba(169,199,189,.4); color: var(--nebbia); }
.btn-ghost:hover { border-color: var(--salvia); background: rgba(169,199,189,.08); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line-d); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--nebbia); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { margin-top: -84px; padding-top: 84px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.08); animation: kenburns 22s var(--ease) forwards; will-change: transform; }
@keyframes kenburns { to { transform: scale(1.0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(16,33,28,.97) 0%, rgba(16,33,28,.9) 38%, rgba(16,33,28,.62) 70%, rgba(16,33,28,.8) 100%),
  linear-gradient(0deg, var(--notte) 0%, rgba(16,33,28,0) 30%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 8vw, 100px); }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-copy h1 .hline { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-copy h1 .hline > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-copy h1 .hline:nth-child(2) > span { animation-delay: .12s; }
.hero-copy h1 .hline:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-copy .fade { animation: fadeup 1s var(--ease) both; animation-delay: .45s; }
.hero-copy .fade.d2 { animation-delay: .6s; }
.hero-copy .fade.d3 { animation-delay: .75s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.principle { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 13px/1.4 var(--mono); color: var(--faint); border-top: 1px solid var(--line-d); padding-top: 22px; }
.principle b { color: var(--nebbia); font-weight: 500; }

.symbol { position: relative; width: min(100%, 440px); justify-self: center; }
.symbol svg { width: 100%; height: auto; overflow: visible; }
.symbol .th { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.symbol .th.outer { stroke: var(--menta); stroke-width: 12; }
.symbol .th.inner { stroke: var(--salvia); stroke-width: 6; animation-delay: .25s; }
.symbol .th.trunk { stroke: var(--menta); stroke-width: 12; animation-delay: 1.1s; animation-duration: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.symbol .pulse { fill: none; stroke: var(--nebbia); stroke-linecap: round; stroke-width: 3; stroke-dasharray: .07 1; stroke-dashoffset: 1.07; opacity: 0; animation: pulse 3.4s linear infinite; animation-delay: 2s; }
.symbol .pulse.p2 { animation-delay: 2.85s; } .symbol .pulse.p3 { animation-delay: 3.7s; } .symbol .pulse.p4 { animation-delay: 4.55s; }
@keyframes pulse { 0% { stroke-dashoffset: 1.07; opacity: 0; } 8% { opacity: .95; } 60% { stroke-dashoffset: 0; opacity: .95; } 66%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.symbol .node { transform-box: fill-box; transform-origin: center; animation: pop .6s var(--ease) both; }
.symbol .n2 { animation-delay: .15s; } .symbol .n3 { animation-delay: .3s; } .symbol .n4 { animation-delay: .45s; }
.symbol .decision { transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) 1.75s both, glow 3.4s ease-in-out 2.6s infinite; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(79,209,181,0)); } 50% { filter: drop-shadow(0 0 14px rgba(79,209,181,.7)); } }
.symbol text { font: 500 13px var(--mono); letter-spacing: .08em; fill: var(--salvia); text-transform: uppercase; }
.symbol text.out { fill: var(--nebbia); }
.symbol .tag { animation: fadeup .8s var(--ease) both; animation-delay: .9s; }
.symbol .tag.out { animation-delay: 2s; }

/* Source strip */
.strip { border-block: 1px solid var(--line-d); overflow: hidden; }
.strip-track { display: flex; gap: 48px; width: max-content; padding-block: 20px; animation: marquee 40s linear infinite; font: 400 14px/1 var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.strip-track span { display: inline-flex; gap: 48px; }
.strip-track span::after { content: "/"; color: rgba(169,199,189,.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto-statement { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.14; font-weight: 300; letter-spacing: -.02em; max-width: 20ch; }
.manifesto-statement .w { color: rgba(169,199,189,.28); transition: color .5s var(--ease); }
.manifesto-statement .w.lit { color: var(--nebbia); }
.manifesto-statement .w.key.lit { color: var(--menta); }
.vmm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line-d); }
.vmm article { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.vmm article + article { padding-left: 28px; border-left: 1px solid var(--line-d); }
.vmm p { color: var(--faint); }
.vmm .motto { color: var(--nebbia); font-size: 22px; font-weight: 300; line-height: 1.3; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.inputs { display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.inputs li { list-style: none; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-l); }
.inputs ul { margin: 0; padding: 0; }
.inputs h3 { font-size: 17px; }
.inputs p { color: var(--ink-2); font-size: 16px; }
.photo { position: relative; border-radius: 22px; overflow: hidden; min-width: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.photo.in img { transform: scale(1.02); }
.photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 18px 20px; border-radius: 14px; background: rgba(16,33,28,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--nebbia); font-weight: 500; font-size: 17px; line-height: 1.35; }
.photo figcaption span { display: block; font: 400 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--salvia); margin-bottom: 6px; }
.problem-grid > figure { margin: 0; position: sticky; top: 110px; }

/* Solution */
.solution { overflow: hidden; isolation: isolate; }
.solution-bg { position: absolute; inset: 0; z-index: -1; }
.solution-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.solution-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(16,33,28,.35), var(--notte) 72%); }
.brain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, .7fr) auto minmax(60px, .45fr) minmax(0, .9fr); align-items: center; }
.sources { display: grid; gap: 12px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-d); border-radius: 14px; background: rgba(31,63,55,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 15px; }
.chip small { display: block; color: var(--faint); font-size: 13px; }
.chip .k { font: 500 11px/1 var(--mono); color: var(--salvia); border: 1px solid var(--line-d); border-radius: 6px; padding: 5px 6px; min-width: 38px; text-align: center; }
.wires { width: 100%; height: 100%; min-height: 330px; }
.wires path { fill: none; stroke: rgba(169,199,189,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wires path.flow { stroke: var(--menta); stroke-width: 2; stroke-dasharray: .1 .9; animation: flow 2.8s linear infinite; }
.wires path.flow:nth-of-type(7) { animation-delay: .5s; } .wires path.flow:nth-of-type(8) { animation-delay: 1.1s; } .wires path.flow:nth-of-type(9) { animation-delay: 1.6s; } .wires path.flow:nth-of-type(10) { animation-delay: 2.2s; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.core { width: clamp(150px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px; background: radial-gradient(circle at 50% 40%, var(--abete), var(--notte) 75%); border: 1.5px solid var(--menta); box-shadow: 0 0 0 10px rgba(79,209,181,.06), 0 0 60px rgba(79,209,181,.18); position: relative; }
.core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(79,209,181,.35); animation: ring 3.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.core b { font-weight: 500; font-size: 20px; letter-spacing: .04em; }
.core small { font: 400 12px var(--mono); color: var(--salvia); letter-spacing: .08em; text-transform: uppercase; }
.wire-out { height: 2px; background: linear-gradient(90deg, var(--menta), rgba(79,209,181,.2)); position: relative; overflow: hidden; }
.wire-out::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--nebbia); animation: slide 2.4s linear infinite; opacity: .8; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }
.output { border: 1px solid rgba(79,209,181,.45); border-radius: 18px; padding: 22px; display: grid; gap: 10px; background: rgba(16,33,28,.7); }
.output ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--faint); font-size: 15px; }
.output li::before { content: "↳ "; color: var(--salvia); }
.rule { position: relative; z-index: 1; margin: clamp(56px, 7vw, 88px) auto 0; width: 100%; max-width: 620px; display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(24px, 3vw, 34px) clamp(20px, 4vw, 44px); border: 1px solid rgba(79,209,181,.35); border-radius: 22px; background: rgba(16,33,28,.88); backdrop-filter: blur(6px); }
.rule small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.rule strong { font: 400 clamp(26px, 3.4vw, 40px)/1.15 var(--sans); color: var(--nebbia); letter-spacing: -.01em; }
.rule strong i { font-style: normal; color: var(--menta); }

/* Workflow */
.flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.flow-side { position: sticky; top: 120px; display: grid; gap: 22px; }
.rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.rail i { height: 4px; border-radius: 2px; background: var(--line-l); transition: background .4s; }
.rail i.on { background: var(--abete); }
.rail-label { font: 400 13px var(--mono); color: var(--ink-2); }
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 26px; border-radius: 18px; border: 1px solid var(--line-l); background: var(--nebbia); transition: background .5s var(--ease), color .5s, border-color .5s, transform .5s var(--ease); }
.step .n { font: 500 13px/1 var(--mono); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-l); transition: border-color .5s, color .5s; }
.step p { color: var(--ink-2); transition: color .5s; margin-top: 6px; font-size: 16px; }
.step.active { background: var(--notte); color: var(--nebbia); border-color: var(--notte); transform: translateX(-6px); }
.step.active .n { border-color: var(--menta); color: var(--menta); }
.step.active p { color: var(--faint); }
.flow-note { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: stretch; }
.quote { border: 1px solid var(--line-d); border-radius: 22px; background: linear-gradient(180deg, rgba(31,63,55,.6), rgba(16,33,28,.4)); padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; min-width: 0; }
.quote-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.quote-head h3 { font-size: 20px; }
.quote-head .label { color: var(--faint); }
.sample { font: 400 12px/1.4 var(--mono); color: var(--salvia); border: 1px dashed rgba(169,199,189,.45); border-radius: 8px; padding: 6px 10px; }
.lines { display: grid; gap: 6px; }
.line { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background .25s, border-color .25s; font-variant-numeric: tabular-nums; }
.line:hover { background: rgba(169,199,189,.07); }
.line:focus-visible { outline: 2px solid var(--menta); outline-offset: 2px; }
.line[aria-pressed="true"] { background: var(--abete); border-color: rgba(79,209,181,.5); }
.line .what { font-size: 16px; }
.line .src { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.line .val { font: 500 16px var(--mono); min-width: 92px; text-align: right; }
.line.gap .val { color: var(--salvia); font-weight: 400; font-size: 13px; }
.total { display: flex; justify-content: space-between; border-top: 1px solid var(--line-d); padding: 16px 16px 0; font: 500 18px var(--mono); font-variant-numeric: tabular-nums; }
.total small { font: 400 12px var(--mono); color: var(--faint); display: block; }
.evidence { position: relative; border-radius: 22px; overflow: hidden; min-height: 420px; display: grid; isolation: isolate; }
.evidence > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); }
.evidence::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,33,28,.55), rgba(16,33,28,.94) 55%); }
.ev { align-self: end; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.ev-kind { justify-self: start; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(169,199,189,.5); color: var(--salvia); background: rgba(16,33,28,.6); }
.ev h3 { font-size: 22px; font-weight: 400; }
.ev p { color: var(--salvia); font-size: 16px; }
.ev dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.ev dt { font: 400 12px/1.7 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.ev dd { margin: 0; }
.conf { display: flex; gap: 4px; align-items: center; }
.conf i { width: 22px; height: 6px; border-radius: 3px; background: rgba(169,199,189,.22); }
.conf i.on { background: var(--salvia); }
.ev.swap { animation: evswap .5s var(--ease); }
@keyframes evswap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 14vw, 180px); text-align: center; }
.band img { position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: -2; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--notte), rgba(16,33,28,.62) 30%, rgba(16,33,28,.62) 70%, var(--notte)); }
.band blockquote { margin: 0 auto; max-width: 22ch; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; font-weight: 300; letter-spacing: -.02em; text-wrap: balance; }
.band cite { display: block; margin-top: 24px; font: 400 13px var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--salvia); }

/* Targets */
.targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-l); }
.target { padding: 32px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.target + .target { padding-left: 28px; border-left: 1px solid var(--line-l); }
.big { font-size: clamp(48px, 6vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--notte); }
.big.word { font-size: clamp(40px, 4.6vw, 64px); white-space: nowrap; }
.target h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.2; color: var(--notte); }
.target p { color: var(--ink-2); max-width: 30ch; }
.gapchart { margin-top: clamp(48px, 6vw, 72px); background: var(--paper-2); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.gapchart h3 { font-size: 17px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 15px; }
.bar .track { position: relative; height: 34px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; transition: width 1.4s var(--ease); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font: 500 14px var(--mono); }
.bar.today .fill { background: var(--salvia); color: var(--notte); }
.bar.goal .fill { background: var(--abete); color: var(--nebbia); }
.axis { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.axis .ticks { position: relative; height: 18px; border-top: 1px solid var(--line-l); font: 400 12px var(--mono); color: var(--ink-2); }
.axis .ticks span { position: absolute; top: 4px; transform: translateX(-50%); }
.axis .ticks span:first-child { transform: none; } .axis .ticks span:last-child { transform: translateX(-100%); }
.fine { font: 400 13px/1.5 var(--mono); color: var(--ink-2); }

/* Why FYLAI: three cards, each with a small animated diagram on a dark panel */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-card { height: 100%; background: var(--paper-2); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(16,33,28,.55); }
.why-vis { position: relative; background: radial-gradient(120% 100% at 20% 0%, var(--abete), var(--notte) 72%); }
.why-vis::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(79,209,181,.13), transparent 65%); }
.why-card:hover .why-vis::after { opacity: 1; }
.why-vis svg { display: block; width: 100%; height: auto; }
.why-body { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: start; }
.why-kicker { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--abete); }
.why-body h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.2; color: var(--notte); }
.why-body p { color: var(--ink-2); margin: 0; }
.wv-s { fill: none; stroke: var(--salvia); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wv-soft { stroke: rgba(169,199,189,.45); }
.wv-t { font: 500 9.5px var(--mono); fill: var(--faint); letter-spacing: .06em; }
.wv-t.hi { fill: var(--nebbia); }
.js .wv-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s); }
.js .in .wv-draw { stroke-dashoffset: 0; }
.js .wv-grow { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .8s var(--ease) var(--d, 0s); }
.js .in .wv-grow { transform: none; }
.js .wv-pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s cubic-bezier(.3,1.6,.5,1) var(--d, 0s); }
.js .in .wv-pop { transform: none; }
.js .wv-fade { opacity: 0; transition: opacity .6s var(--ease) var(--d, 0s); }
.js .in .wv-fade { opacity: 1; }
.wv-light { fill: var(--notte); stroke: var(--salvia); stroke-width: 1.5; transition: fill .5s var(--d, 0s), stroke .5s var(--d, 0s); }
.in .wv-light { fill: rgba(169,199,189,.28); stroke: var(--nebbia); }
.wv-ring { fill: none; stroke: var(--salvia); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.in .wv-ring { animation: wvRing 2.6s var(--ease) 1.6s infinite; }
@keyframes wvRing { from { transform: scale(1); opacity: .7; } to { transform: scale(2.1); opacity: 0; } }
.wv-dot { fill: var(--salvia); opacity: 0; transition: opacity .4s 1.2s; }
.in .wv-dot { opacity: 1; }
/* Vision, mission, motto: three equal rows joined by one thread */
.vmm3 { position: relative; }
.vm-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line-d); }
.vm-row:last-child { border-bottom: 1px solid var(--line-d); }
.vm-meta { display: flex; gap: 16px; align-items: flex-start; }
.vm-n { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--faint); border: 1px solid var(--line-d); background: var(--notte); transition: color .5s, border-color .5s, background .5s; }
.vm-row.on .vm-n { color: var(--nebbia); border-color: var(--salvia); background: var(--abete); }
.vm-name { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nebbia); padding-top: 9px; }
.vm-sub { color: var(--faint); font-size: 14px; margin-top: 8px; }
.say { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; font-weight: 300; letter-spacing: -.02em; max-width: 26ch; }
.say .w { color: rgba(169,199,189,.28); transition: color .5s var(--ease); }
.say .w.lit { color: var(--nebbia); }
.say .w.key.lit { color: var(--menta); }
.vm-extra { margin-top: 26px; display: grid; gap: 14px; justify-items: start; }
.vm-extra p { color: var(--faint); max-width: 52ch; }
.vm-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.vm-flow span { padding: 9px 12px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--salvia); }
.vm-flow b { color: var(--faint); font-weight: 400; }
.vm-flow span.out { border-color: rgba(79,209,181,.5); color: var(--nebbia); }
.principle-chip { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nebbia); padding: 9px 14px; border: 1px solid rgba(79,209,181,.45); border-radius: 999px; }
.vm-rail { position: absolute; left: 21.5px; width: 1px; background: var(--line-d); pointer-events: none; }
.vm-rail i { position: absolute; left: -.5px; top: 0; width: 2px; height: 0; border-radius: 1px; background: linear-gradient(var(--salvia), var(--menta)); }
/* Two paper chapters in a row: thin divider */
.paper + .paper { border-top: 1px solid rgba(16,33,28,.12); }
.stat { border: 1px solid var(--line-d); border-radius: 22px; padding: 30px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; background: rgba(31,63,55,.35); }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(79,209,181,.12), transparent 60%); pointer-events: none; }
.stat .big { color: var(--nebbia); font-size: clamp(42px, 5vw, 68px); }
.stat .big.word { font-size: clamp(36px, 3.8vw, 52px); }
.stat p { color: var(--faint); }
.sources-note { margin-top: 28px; font: 400 12px/1.6 var(--mono); color: var(--faint); max-width: 90ch; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { border-radius: 22px; padding: 28px; background: var(--paper-2); display: grid; gap: 14px; align-content: start; transition: transform .4s var(--ease), background .4s; }
.person:hover { transform: translateY(-4px); background: #DCE6E1; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--abete); color: var(--nebbia); display: grid; place-items: center; font: 500 18px var(--mono); letter-spacing: .04em; }
.person .role { font: 500 13px/1.4 var(--mono); color: var(--abete); text-transform: uppercase; letter-spacing: .06em; }
.person p { color: var(--ink-2); font-size: 16px; }
.team-msg { margin-top: 40px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; line-height: 1.4; max-width: 46ch; color: var(--notte); }

/* Contact */
.contact { overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.6); }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--notte) 30%, rgba(16,33,28,.7)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.asks { display: grid; gap: 0; border-top: 1px solid var(--line-d); margin: 0; padding: 0; list-style: none; }
.asks li { padding: 18px 0; border-bottom: 1px solid var(--line-d); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; color: var(--faint); }
.asks b { color: var(--nebbia); font-weight: 500; }
.contact-actions { display: grid; gap: 16px; margin-top: 32px; }
.mails { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 14px var(--mono); color: var(--faint); }
.copy { all: unset; cursor: pointer; color: var(--salvia); border-bottom: 1px dotted var(--salvia); }
.copy:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line-d); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer p { color: var(--faint); font-size: 15px; }
.footer .tag { font-size: 20px; font-weight: 300; color: var(--nebbia); }
.footer p a { color: var(--salvia); text-underline-offset: 3px; }
.footer p a:hover { color: var(--nebbia); }

/* Reveal: elements rest visible, only drift in */
.js .reveal { transform: translateY(26px); opacity: .35; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js .reveal.in { transform: none; opacity: 1; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { position: absolute; top: 84px; left: var(--gut); right: var(--gut); display: none; flex-direction: column; gap: 0; padding: 8px; background: var(--abete); border: 1px solid var(--line-d); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
  .menu-open .nav { display: flex; }
  .nav a { min-height: 52px; display: flex; align-items: center; padding: 0 16px; border-radius: 12px; color: var(--nebbia); }
  .nav a:hover { background: rgba(169,199,189,.1); }
  .nav .nav-cta { display: flex; color: var(--menta); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .symbol { width: min(100%, 360px); }
  .brain { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sources .chip:last-child { grid-column: 1 / -1; }
  .wires { display: none; }
  .brain::before { content: none; }
  .vline { width: 2px; height: 56px; background: linear-gradient(var(--menta), rgba(79,209,181,.2)); }
  .wire-out { width: 2px; height: 56px; background: linear-gradient(var(--menta), rgba(79,209,181,.2)); }
  .wire-out::after { width: auto; left: 0; right: 0; height: 30%; animation: slidev 2.4s linear infinite; }
  .output { width: 100%; max-width: 460px; }
  .flow, .problem-grid, .explorer, .contact-grid { grid-template-columns: 1fr; }
  .flow-side, .problem-grid > figure { position: static; }
  .photo img { aspect-ratio: 16 / 10; }
  .step.active { transform: none; }
  .team { grid-template-columns: 1fr; }
  .vm-row { grid-template-columns: 1fr; gap: 22px; }
  .vm-rail { display: none; }
  .why-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@keyframes slidev { from { top: -30%; } to { top: 100%; } }
@media (min-width: 1021px) { .vline { display: none; } }
@media (max-width: 720px) {
  .header-inner { height: 72px; }
  .hero { margin-top: -72px; padding-top: 72px; }
  .nav { top: 72px; }
  html { scroll-padding-top: 72px; }
  .vmm, .targets { grid-template-columns: 1fr; }
  .vmm article, .vmm article + article, .target, .target + .target { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
  .target, .target + .target { border-bottom-color: var(--line-l); }
  .inputs li { grid-template-columns: 1fr; gap: 4px; }
  .bar, .axis { grid-template-columns: 1fr; gap: 6px; }
  .axis .lbl { display: none; }
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .line .src { grid-column: 1; grid-row: 2; }
  .line .val { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .asks li { grid-template-columns: 1fr; gap: 2px; }
  .evidence { min-height: 380px; }
  .sources { grid-template-columns: 1fr; }
  .chip { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .symbol .pulse, .wires path.flow, .wire-out::after, .core::after { display: none; }
  .js .reveal { transform: none; opacity: 1; }
  .strip-track { animation: none; }
  .wv-ring, .wv-dot { display: none; }
}
