/* Verta7 Group — site styles
   Direction: "The product performs" (taste-skill seed 752325200), brand palette and type kept. */

:root {
  /* brand */
  --charcoal: #0F1413;
  --slate: #2A2F33;
  --silver: #D4D8DC;
  --mist: #E6E8EB;
  --emerald: #008F70;
  --emerald-deep: #00745B;

  /* roles */
  --bg: var(--charcoal);
  --surface: #141B1A;
  --surface-2: #1B2422;
  --ink: #E9ECEE;
  --muted: #A3ACB1;
  --accent: #19B38D;       /* brighter emerald for actions on dark: 7:1 against charcoal */
  --accent-ink: var(--charcoal);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);       /* 16–18 */
  --step-lead: clamp(1.375rem, 0.9rem + 1.6vw, 2.25rem);    /* 22–36 */
  --step-head: clamp(2.125rem, 1rem + 3.7vw, 4.25rem);      /* 34–68 */
  --step-display: clamp(5rem, 2rem + 10vw, 11rem);          /* the big numeral and wordmark */

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 8vw, 7rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- font: Sora (SIL Open Font License), self-hosted variable font ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/sora-latin.woff2") format("woff2"); 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: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.link-arrow { display: inline-flex; gap: 0.5em; align-items: center; text-decoration: none; font-weight: 500; }
.link-arrow span { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #3fd0aa; }
  .link:hover { text-decoration-color: currentColor; }
  .link-arrow:hover span { transform: translateX(4px); }
}

/* ======================================================= HERO */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; overflow: hidden; }
.hero-left { background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 2.8vw, 2.5rem) var(--margin) clamp(2.5rem, 5vw, 4.5rem); }
.hero-right { background: var(--surface); display: flex; flex-direction: column; padding: clamp(1.5rem, 2.8vw, 2.5rem) var(--margin) clamp(2rem, 4vw, 3.5rem); }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-top, .hero-copy, .topnav, .graph-wrap { position: relative; z-index: 2; }
.brand img { width: clamp(150px, 13vw, 200px); height: auto; }

.hero-copy { max-width: 40rem; }
.hero-title { font-size: clamp(2rem, 0.8rem + 2.8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero-sub { margin-top: 2rem; font-size: var(--step-body); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

.topnav { display: flex; justify-content: flex-end; gap: clamp(1rem, 2vw, 2rem); font-size: 1rem; }
.graph-wrap { margin: auto; width: min(100%, 36rem); padding-top: 1.5rem; }

/* --- the graph fragment (product UI conventions apply inside data-ui) --- */
.graph { background: #0B100F; border: 1px solid #243230; border-radius: 10px; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--mist); user-select: none; -webkit-user-select: none; }
.g-bar { display: flex; gap: 4px; padding: 8px 10px; background: #111816; border-bottom: 1px solid #1F2B28; } /* taste-skill-ignore: data-ui */
.g-tab { padding: 5px 10px; border-radius: 6px; color: #9AA5A9; display: inline-flex; gap: 6px; align-items: center; }
.g-tab.is-on { background: #1C2725; color: var(--mist); box-shadow: inset 0 -2px 0 var(--accent); } /* taste-skill-ignore: data-ui */
.g-pill { font-weight: 500; font-size: 13px; background: #1F2A28; padding: 1px 7px; border-radius: 999px; color: #C5CDD0; }
.g-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px 4px; }
.g-seed { font-size: 14px; color: #C5CDD0; }
.g-seed strong { color: #fff; font-weight: 600; }
.g-meta { color: #8A959A; margin-top: 2px; }
.g-stats { display: flex; gap: 16px; margin: 0; }
.g-stats div { text-align: right; }
.g-stats dt { color: #8A959A; font-size: 13px; }
.g-stats dd { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.g-svg { width: 100%; height: auto; aspect-ratio: 560 / 400; cursor: crosshair; touch-action: manipulation; }
.g-svg .edge { stroke: #5D6A6E; stroke-width: 1; fill: none; opacity: 0.55; transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease; }
.g-svg .edge.n1 { stroke: #19B38D; }
.g-svg .edge.n2 { stroke: #C9CFD3; }
.g-svg .edge.n3 { stroke: #E0A458; stroke-dasharray: 4 4; }
.g-svg .node { cursor: pointer; outline: none; }
.g-svg .node circle { fill: #18211F; stroke: #8E9A9E; stroke-width: 1.2; transition: fill 200ms ease, stroke 200ms ease, r 200ms ease; }
.g-svg .node.hub circle { fill: #0E3A30; stroke: #19B38D; stroke-width: 1.6; }
.g-svg .node text { fill: #AEB7BB; font-size: 13px; font-family: var(--font); pointer-events: none; transition: fill 200ms ease, opacity 200ms ease; }
.g-svg .node .ring { fill: none; stroke: #19B38D; stroke-width: 1.5; opacity: 0; }
.graph.is-tracing .edge { opacity: 0.08; }
.graph.is-tracing .edge.on { opacity: 1; stroke-width: 1.8; }
.graph.is-tracing .node { opacity: 0.28; }
.graph.is-tracing .node.on, .graph.is-tracing .node.sel { opacity: 1; }
.graph .node.sel circle { fill: #19B38D; stroke: #E9ECEE; }
.graph .node.sel .ring { opacity: 0.9; }
.graph .node:focus-visible .ring { opacity: 1; stroke: #fff; }
.g-readout { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-height: 46px; padding: 10px 14px; background: #111816; border-top: 1px solid #1F2B28; color: #C5CDD0; } /* taste-skill-ignore: data-ui */
.g-readout b { color: #fff; font-weight: 600; }
.g-readout .r-kind { color: #8A959A; }
.g-readout .r-nar { display: inline-flex; gap: 6px; }
.g-readout .r-nar i { font-style: normal; padding: 1px 7px; border-radius: 4px; background: #1C2725; }
.g-hint { color: #8A959A; }

/* ======================================================= PROBLEM / SOLUTION / IMPACT */
.psi { background: var(--mist); color: var(--charcoal); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.psi-title { grid-column: 1 / -1; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.psi-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 0; }
.psi-row dt { font-size: 1.375rem; font-weight: 600; color: var(--emerald-deep); }
.psi-row dd { margin-top: 0.4rem; font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 22em; }
.psi ::selection { background: var(--charcoal); color: var(--mist); }

/* ======================================================= THE CLUES */
.clues { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.clues-head { grid-column: 1 / span 7; }
.clues-fact { grid-column: 9 / -1; align-self: end; }
.fact-num { font-size: clamp(4.5rem, 2rem + 7vw, 8.5rem); line-height: 0.88; letter-spacing: -0.045em; font-weight: 600; color: var(--accent); }
.fact-txt { margin-top: 1rem; color: var(--muted); max-width: 28ch; }
.clues-row { grid-column: 1 / -1; }
.clues-sub { margin-top: 1.5rem; color: var(--muted); max-width: 48ch; }
.clues-row { position: relative; margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.clues-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.clues-line path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.clue { position: relative; z-index: 1; margin: 0; }
.c1 { grid-column: 1 / span 4; }
.c2 { grid-column: 5 / span 4; margin-top: clamp(4rem, 9vw, 8rem); }
.c3 { grid-column: 9 / span 4; margin-top: clamp(1.5rem, 3vw, 3rem); }
.clue figcaption { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.clue figcaption b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.clue figcaption span { color: var(--muted); }

.frag { background: var(--surface); border: 1px solid #26312E; border-radius: 10px; padding: 16px; font-size: 14px; line-height: 1.45; color: var(--mist); } /* taste-skill-ignore: data-ui */
.fr-head, .fr-acct { display: flex; align-items: center; gap: 10px; }
.fr-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0E3A30; color: #5EDDB9; font-weight: 600; font-size: 13px; }
.fr-av.sm { width: 32px; height: 32px; background: var(--slate); color: var(--mist); }
.fr-av.alt { background: #3A2F17; color: #E8C27A; }
.fr-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fr-who b { color: #fff; font-weight: 600; }
.fr-who span, .fr-time, .fr-foot { color: #8A959A; font-size: 13px; }
.fr-msg { margin: 12px 0; font-size: 15px; line-height: 1.6; }
.redact { display: inline-block; width: 6.5em; height: 0.95em; vertical-align: -0.12em; background: #3A4644; border-radius: 2px; }
.redact.short { width: 4em; }
.fr-foot { display: flex; gap: 16px; }
.fr-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0; padding-left: 42px; color: #B9C2C6; font-size: 13px; }
.frag .fr-match:last-child { margin-bottom: 0; padding-left: 0; }
.fr-tag { font-size: 13px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.fr-tag.amber { background: #3A2F17; color: #E8C27A; }
.fr-tag.green { background: #0E3A30; color: #5EDDB9; }
.fr-graph { width: 100%; height: auto; }
.fr-graph .fe { stroke: #5D6A6E; stroke-width: 1.5; fill: none; }
.fr-graph .fe.on { stroke: #19B38D; stroke-width: 2.5; stroke-dasharray: 5 4; }
.fr-graph .fn { fill: #18211F; stroke: #8E9A9E; stroke-width: 1.4; }
.fr-graph .fn.hub { fill: #0E3A30; stroke: #19B38D; }
.fr-graph text { fill: #AEB7BB; font-size: 10.5px; font-family: var(--font); text-anchor: middle; }
@media (hover: hover) and (pointer: fine) { .frag { transition: border-color 220ms ease, transform 220ms var(--ease-out); } .clue:hover .frag { border-color: #2F6F5E; transform: translateY(-4px); } }

/* ======================================================= HOW */
.how { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 84svh; padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.25rem, 2vw, 2rem); display: flex; flex-direction: column; }
.f1 { background: #131A19; }
.f2 { background: #1E2826; }
.f3 { background: var(--slate); }
.f4 { background: var(--emerald-deep); }
.how-title { position: absolute; top: clamp(1.5rem, 2.4vw, 2.25rem); left: clamp(1.25rem, 2vw, 2rem); right: 1rem; font-size: clamp(1.375rem, 0.8rem + 1.6vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.card { margin: 22svh auto 0; width: min(100%, 260px); background: #0E1413; border: 1px solid #2B3734; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.35; color: var(--mist); transition: transform 150ms var(--ease-out); } /* taste-skill-ignore: data-ui */
.f4 .card { border-color: #0B5A47; }
.clause { margin-top: auto; font-size: clamp(1.375rem, 0.8rem + 1.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; max-width: 12em; }
@media (hover: hover) and (pointer: fine) { .field:hover .card { transform: translateY(-6px); } }
.c-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.c-k { font-weight: 600; font-size: 14px; color: #fff; }
.c-badge { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #222D2B; color: #B9C2C6; }
.c-badge.is-run { background: #3A2F17; color: #E8C27A; }
.c-badge.is-done { background: #0E3A30; color: #5EDDB9; }
.c-label { display: block; color: #8A959A; margin: 8px 0 4px; }
.c-input { background: #151D1C; border: 1px solid #2B3734; border-radius: 6px; padding: 7px 9px; color: #E9ECEE; } /* taste-skill-ignore: data-ui */
.c-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-btn { margin-top: 12px; text-align: center; background: #19B38D; color: #0F1413; font-weight: 600; border-radius: 6px; padding: 8px; }
.c-line { display: flex; justify-content: space-between; padding: 6px 0; color: #B9C2C6; }
.c-line b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-soft { color: #8A959A; }
.c-bar { height: 6px; background: #222D2B; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.c-bar i { display: block; height: 100%; background: #E8C27A; border-radius: 999px; transform-origin: left; }
.c-mini { width: 100%; height: auto; margin-bottom: 6px; }
.c-mini .m-e path { stroke: #6E7B80; stroke-width: 1.2; fill: none; }
.c-mini .m-n circle { fill: #1B2422; stroke: #9AA5A9; stroke-width: 1.2; }
.c-mini .m-n .hub { fill: #0E3A30; stroke: #19B38D; }
.c-nar { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: #C5CDD0; }
.c-nar span { flex: 1; }
.c-nar b { color: #fff; font-weight: 600; }
.c-nar i { width: 16px; height: 2px; background: #19B38D; }
.c-nar i.n2 { background: #C9CFD3; }
.c-nar i.n3 { height: 0; background: none; border-top: 2px dashed #E0A458; }

/* ======================================================= NEXUS */
.nexus { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.nx-copy { grid-column: 1 / span 5; }
.nx-lead { margin-top: 1.5rem; font-size: 1.375rem; line-height: 1.4; max-width: 30ch; }
.h-sec { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.nx-psi { margin: 2.25rem 0 0; display: grid; gap: 1.75rem; }
.nx-psi dt { font-size: 1.375rem; font-weight: 600; color: var(--accent); }
.nx-psi dd { margin: 0.3rem 0 0; max-width: 40ch; }
.nx-wrap { grid-column: 6 / -1; margin: 0; }
.nx-cap { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }

.nx { background: #0B100F; border: 1px solid #243230; border-radius: 10px; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--mist); } /* taste-skill-ignore: data-ui */
.nx-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #111816; border-bottom: 1px solid #1F2B28; color: #9AA5A9; } /* taste-skill-ignore: data-ui */
.nx-bar b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.nx-body { display: grid; grid-template-columns: 1fr 220px; min-height: 320px; }
.nx-graph { width: 100%; height: 100%; min-height: 300px; user-select: none; -webkit-user-select: none; }
.nx-graph .ne { stroke: #4E5B5F; stroke-width: 1.4; transition: stroke 200ms ease, opacity 200ms ease; }
.nx-graph .ne.on { stroke: #19B38D; stroke-width: 2; }
.nx-graph .nl { fill: #8FD9C2; font-size: 11px; font-family: var(--font); text-anchor: middle; opacity: 0; transition: opacity 200ms ease; pointer-events: none; paint-order: stroke; stroke: #0B100F; stroke-width: 4px; }
.nx-graph .nl.on { opacity: 1; }
.nx-graph .nn { cursor: pointer; outline: none; transition: opacity 200ms ease; }
.nx-graph .nn circle { stroke-width: 1.5; transition: r 200ms ease, stroke 200ms ease; }
.nx-graph .nn text { font-family: var(--font); pointer-events: none; }
.nx-graph .nn .ini { font-size: 11px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.nx-graph .nn .lab { font-size: 12px; fill: #C5CDD0; text-anchor: middle; paint-order: stroke; stroke: #0B100F; stroke-width: 4px; }
.nx-graph .nn.sel circle { stroke: #fff; stroke-width: 2.5; }
.nx-graph .nn:focus-visible circle { stroke: #fff; stroke-width: 3; }
.nx-graph .nn.is-new circle { animation: nx-pop 500ms var(--ease-out); }
@keyframes nx-pop { from { r: 2; } }
.t-Person { fill: #0E3A30; stroke: #19B38D; } .ini.t-Person { fill: #5EDDB9; stroke: none; }
.t-Organisation { fill: #2A3134; stroke: #C9CFD3; } .ini.t-Organisation { fill: #E6E8EB; stroke: none; }
.t-Location { fill: #3A2F17; stroke: #E0A458; } .ini.t-Location { fill: #E8C27A; stroke: none; }
.t-Document { fill: #1B2A36; stroke: #7FA7C9; } .ini.t-Document { fill: #A9C7E0; stroke: none; }
.t-Event { fill: #2F2236; stroke: #B48BC9; } .ini.t-Event { fill: #D3B5E2; stroke: none; }
.nx-detail { background: #111816; border-left: 1px solid #1F2B28; padding: 14px; display: flex; flex-direction: column; gap: 10px; } /* taste-skill-ignore: data-ui */
.nx-type { align-self: flex-start; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #1C2725; color: #B9C2C6; }
.nx-name { font-size: 16px; font-weight: 600; color: #fff; }
.nx-notes { color: #B9C2C6; }
.nx-sub { color: #8A959A; font-size: 12px; margin-top: 4px; }
.nx-links { display: flex; flex-direction: column; gap: 4px; }
.nx-link { text-align: left; padding: 6px 8px; border-radius: 6px; background: #18211F; color: var(--mist); font-size: 13px; transition: background-color 150ms ease; }
.nx-link span { color: #8A959A; }
.nx-link:hover, .nx-link:focus-visible { background: #22302D; }
.nx-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #111816; border-top: 1px solid #1F2B28; } /* taste-skill-ignore: data-ui */
.nx-in { min-height: 36px; padding: 0 10px; background: #18211F; border: 1px solid #2B3734; border-radius: 6px; color: var(--mist); font-size: 13px; } /* taste-skill-ignore: data-ui */
input.nx-in { flex: 1 1 150px; }
select.nx-in { flex: 0 1 auto; }
.nx-in:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.nx-btn { min-height: 36px; padding: 0 16px; border-radius: 6px; background: #19B38D; color: #0F1413; font-weight: 600; font-size: 13px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.nx-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .nx-btn:hover { background: #3fd0aa; } }

/* ======================================================= TEAM */
.team { padding: var(--section) var(--margin); }
.team-title { max-width: 78rem; margin: 0 auto; }
.founders { margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 78rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.f-photo { overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.f-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 700ms var(--ease-out), filter 400ms ease; }
@media (hover: hover) and (pointer: fine) { .founder:hover .f-photo img { transform: scale(1.04); filter: saturate(1); } }
.f-name { margin-top: 1rem; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.f-role { color: var(--muted); }

/* ======================================================= BRIEFING */
.briefing { position: relative; min-height: 86svh; display: grid; place-items: center; padding: var(--section) var(--margin); overflow: hidden; background: #090C0B; }
.brief-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.briefing::after { content: ""; position: absolute; inset: 0; background: rgba(9, 12, 11, 0.35); }
.coupon { position: relative; z-index: 1; width: min(100%, 72rem); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4rem); padding: clamp(1.75rem, 4vw, 3.5rem); background: var(--emerald-deep); color: #fff; }
.coupon-title { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.coupon-sub { margin-top: 1.25rem; font-size: 1.375rem; line-height: 1.5; max-width: 34ch; }
.coupon-mail { margin-top: 1.5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; align-content: start; }
.f-field { display: flex; flex-direction: column; gap: 0.4rem; }
.f-field label { font-weight: 500; }
.f-field input { min-height: 3.25rem; padding: 0 1rem; background: #F3F5F6; color: var(--charcoal); border: 2px solid transparent; border-radius: var(--radius); font-size: 1rem; transition: border-color var(--t-hover) ease; }
.f-field input:focus { outline: none; border-color: var(--charcoal); }
.f-field input[aria-invalid="true"] { border-color: #FFD27A; }
.f-err { font-size: var(--step-small); color: #FFE3A8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: table rule */
.f-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.button-light { background: var(--charcoal); color: #fff; }
@media (hover: hover) and (pointer: fine) { .button-light:hover { background: #000; } }
.button[disabled] { opacity: 0.7; cursor: progress; }
.f-note { font-size: var(--step-small); color: #DDF3EC; }
.f-status { grid-column: 1 / -1; font-weight: 500; min-height: 1.5em; }
.form.is-sent .f-field, .form.is-sent .f-foot { display: none; }
.form.is-sent .f-status { font-size: var(--step-lead); line-height: 1.3; }

/* ======================================================= FOOTER */
.footer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 10px; background: var(--bg); }
.tile { background: var(--surface); padding: clamp(1.25rem, 2vw, 1.75rem); min-height: 200px; display: flex; flex-direction: column; text-decoration: none; }
.t-statement { grid-column: 1 / span 5; justify-content: space-between; }
.t-big { font-size: 1.375rem; line-height: 1.25; font-weight: 500; max-width: 16ch; }
.t-legal { color: var(--muted); font-size: var(--step-small); }
.t-nav { grid-column: 6 / span 3; gap: 0.5rem; font-size: 1rem; }
.t-mail { grid-column: 9 / span 4; justify-content: space-between; }
.t-label { color: var(--muted); }
.t-mailto { font-size: 1.375rem; font-weight: 500; }

/* ======================================================= PRIVACY NOTICE PAGE */
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.25rem, 2.8vw, 2.5rem) var(--margin); }
.doc { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--margin) var(--section); }
.doc-title { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.doc-date { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }
.doc-lead { margin-top: 2rem; font-size: 1.375rem; line-height: 1.45; }
.doc h2 { margin-top: 3rem; font-size: 1.375rem; letter-spacing: -0.01em; }
.doc h2 + p { margin-top: 0.75rem; }
.doc p + p { margin-top: 1em; }
.doc-list { margin-top: 0.75rem; display: grid; gap: 0.75rem; padding-left: 1.25rem; list-style: disc; }
.doc-list li::marker { color: var(--accent); }
.doc-foot { padding: 2rem var(--margin); color: var(--muted); font-size: var(--step-small); background: var(--surface); }

/* ======================================================= MOTION (content stays visible without script) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line 950ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .field [data-reveal]:nth-child(2) { transition-delay: 80ms; }
  .js .field [data-reveal]:nth-child(3) { transition-delay: 160ms; }
  .js .f2 { --d: 1; } .js .f3 { --d: 2; } .js .f4 { --d: 3; }
  .js .field .card[data-reveal] { transition-delay: calc(var(--d, 0) * 110ms + 60ms); }
  .js .field .clause[data-reveal] { transition-delay: calc(var(--d, 0) * 110ms + 160ms); }
  .js .c-bar i { animation: grow 2.4s var(--ease-out) both; animation-play-state: paused; }
  .js .is-in .c-bar i, .js .c-bar.is-go i { animation-play-state: running; }
  .js .founder[data-reveal] .f-photo img { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-in-out), transform 700ms var(--ease-out), filter 400ms ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .founder[data-reveal].is-in .f-photo img { clip-path: inset(0); }
  .js .clues-line path { stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-in-out) 500ms; }
  .js .clues-row.is-drawn .clues-line path { stroke-dashoffset: 0; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line { to { transform: none; } }
@keyframes grow { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .brief-video { display: none; }
  .briefing { background: #090C0B url("assets/network-loop-poster.webp") center / cover no-repeat; }
}

/* ======================================================= RESPONSIVE */
@media (max-width: 1100px) {
  .nx-copy, .nx-wrap { grid-column: 1 / -1; }
  .nx-psi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; padding-top: 4.25rem; padding-bottom: 1rem; }
  .hero-left { padding-top: 2.75rem; gap: 0; }
  .hero-top { position: absolute; top: 1.25rem; left: var(--margin); }
  .topnav { position: absolute; top: 1.4rem; right: var(--margin); gap: 1rem; }
  .topnav a:not(:last-child) { display: none; }
  .hero-title { font-size: clamp(2rem, 7.4vw, 3rem); }
  .hero-copy { max-width: none; }

  .how { grid-template-columns: 1fr 1fr; }
  .field { min-height: 62svh; }
  .how-title { position: static; margin-bottom: 0.75rem; font-size: 1.5rem; }
  .clause { order: -1; margin-top: 0; font-size: 1.5rem; }
  .f1 .clause { order: 0; }
  .f1 .how-title { order: -2; }
  .card { margin: 2rem 0 0; }


  .psi-list { grid-template-columns: 1fr; row-gap: 2rem; }
  .nx-psi { grid-template-columns: 1fr; }
  .clues-head, .clues-fact { grid-column: 1 / -1; }
  .clues-fact { margin-top: 2.5rem; }
  .clues-row { grid-template-columns: 1fr; row-gap: 3rem; }
  .c1, .c2, .c3 { grid-column: 1 / -1; margin-top: 0; max-width: 30rem; }
  .c2 { margin-left: clamp(0px, 8vw, 6rem); }
  .clues-line { display: none; }

  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }

  .coupon { grid-template-columns: 1fr; }

  .footer { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { min-height: 160px; padding: 1.25rem; }
  .t-statement { grid-column: 1 / -1; min-height: 140px; }
  .t-nav, .t-mail { grid-column: span 1; }
  .t-mailto { font-size: 1rem; word-break: break-all; }
}

@media (max-width: 600px) {
  .how { grid-template-columns: 1fr; }
  .field { min-height: 0; padding-block: 2.5rem 3rem; }
  .card { width: 100%; max-width: 340px; }
}

@media (max-width: 560px) {
  .psi-title { font-size: 1.625rem; }
  .nx-body { grid-template-columns: 1fr; }
  .nx-detail { border-left: 0; border-top: 1px solid #1F2B28; } /* taste-skill-ignore: data-ui */
  select.nx-in { flex: 1 1 40%; }
  .form { grid-template-columns: 1fr; }
  .g-head { flex-direction: column; }
  .g-stats { gap: 14px; }
  .g-stats div { text-align: left; }
  .founders { gap: 1rem; }
  .f-name { font-size: 1.125rem; }
  .f-role { font-size: 0.875rem; }
}
