/* Company31 · You lead. We build. · August 2026 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/spline-sans-mono-latin.woff2") format("woff2");
}

/* Tokens. Contrast ratios verified against WCAG 2.2 AA:
   light muted 7.1:1, faint 5.4:1; dark muted 9.1:1, faint 7.3:1.
   Azure #3B8AF7 is reserved for large display text (3.3:1 on paper). */
:root {
  --paper: #FAFBFF; --ink: #0A1633; --royal: #12339E;
  --blue: #1C4FD8; --azure: #3B8AF7; --ice: #EAF1FD;
  --ground: var(--paper);
  --text: var(--ink);
  --muted: rgba(10, 22, 51, .72);
  --faint: rgba(10, 22, 51, .64);
  --accent: var(--blue);
  --accent-strong: var(--royal);
  --fill: var(--ice);
  --line: rgba(18, 51, 158, .20);
  --hairline: rgba(18, 51, 158, .12);
  --card-border: rgba(18, 51, 158, .22);
  --chip-border: #DCE8FB;
  --grad-a: #12339E; --grad-b: #3B8AF7;
  --grad-btn-a: #12339E; --grad-btn-b: #1C4FD8;
  --btn-text: #FAFBFF;
  --logo-chip: transparent;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1633;
    --text: #E9F0FC;
    --muted: rgba(233, 240, 252, .75);
    --faint: rgba(233, 240, 252, .66);
    --accent: #3B8AF7;
    --accent-strong: #3B8AF7;
    --fill: rgba(59, 138, 247, .09);
    --line: rgba(59, 138, 247, .32);
    --hairline: rgba(59, 138, 247, .16);
    --card-border: rgba(59, 138, 247, .30);
    --chip-border: rgba(59, 138, 247, .24);
    --grad-a: #3B8AF7; --grad-b: #A9CCFB;
    --grad-btn-a: #3B8AF7; --grad-btn-b: #A9CCFB;
    --btn-text: #0A1633;
    --logo-chip: #FAFBFF;
  }
}
:root[data-theme="light"] {
  --ground: #FAFBFF; --text: #0A1633;
  --muted: rgba(10, 22, 51, .72); --faint: rgba(10, 22, 51, .64);
  --accent: #1C4FD8; --accent-strong: #12339E; --fill: #EAF1FD;
  --line: rgba(18, 51, 158, .20); --hairline: rgba(18, 51, 158, .12);
  --card-border: rgba(18, 51, 158, .22); --chip-border: #DCE8FB;
  --grad-a: #12339E; --grad-b: #3B8AF7;
  --grad-btn-a: #12339E; --grad-btn-b: #1C4FD8;
  --btn-text: #FAFBFF; --logo-chip: transparent;
}
:root[data-theme="dark"] {
  --ground: #0A1633; --text: #E9F0FC;
  --muted: rgba(233, 240, 252, .75); --faint: rgba(233, 240, 252, .66);
  --accent: #3B8AF7; --accent-strong: #3B8AF7; --fill: rgba(59, 138, 247, .09);
  --line: rgba(59, 138, 247, .32); --hairline: rgba(59, 138, 247, .16);
  --card-border: rgba(59, 138, 247, .30); --chip-border: rgba(59, 138, 247, .24);
  --grad-a: #3B8AF7; --grad-b: #A9CCFB;
  --grad-btn-a: #3B8AF7; --grad-btn-b: #A9CCFB;
  --btn-text: #0A1633; --logo-chip: #FAFBFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--ground); color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Newsreader", serif; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
::selection { background: var(--fill); color: var(--accent-strong); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  font-family: "Bricolage Grotesque", serif; font-weight: 600; font-size: .95rem;
  background: var(--accent); color: var(--btn-text); padding: .7rem 1.2rem;
  border-radius: 0 0 10px 0; text-decoration: none;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible, .labbtn:focus-visible { outline-offset: 4px; }

.mono {
  font-family: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.label { color: var(--accent); display: block; margin-bottom: 1.4rem; }
.label-center { text-align: center; }
/* WCAG 2.5.8: every interactive target at least 24x24 css px */
a.mono, .flinks a { display: inline-flex; align-items: center; min-height: 24px; padding-block: .35rem; }

/* header */
header { padding-block: 1.4rem; border-bottom: 1px solid var(--hairline); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; display: block; background: var(--logo-chip); border-radius: 50%; }
.brand span { font-family: "Bricolage Grotesque", serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.hlink { color: var(--accent); text-decoration: none; }
.hlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.hnav { display: flex; align-items: center; gap: 1.2rem; }
.themebtn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: transparent; color: var(--accent); font-size: 1.05rem; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.themebtn:hover { background: var(--fill); }

/* hero */
.hero { padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(2.9rem, 8.5vw, 5.6rem); line-height: 1.03; letter-spacing: -.025em; margin: 1.1rem 0 1.6rem; }
.gradword {
  background: linear-gradient(92deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 34rem; font-size: 1.2rem; line-height: 1.65; color: var(--muted); }
.hero .lede strong { color: var(--text); font-weight: 400; }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; }
.btn {
  display: inline-block; font-family: "Bricolage Grotesque", serif; font-weight: 600; font-size: 1rem;
  color: var(--btn-text); background: var(--accent); text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate;
  border: 0; cursor: pointer; transition: transform .2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(92deg, var(--grad-btn-a), var(--grad-btn-b)); transition: opacity .4s ease;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px); }
.sublink { color: var(--accent); text-decoration: none; }
.sublink:hover { text-decoration: underline; text-underline-offset: 4px; }

.heroline { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.heroline svg { width: 100%; height: auto; display: block; overflow: visible; }
.wcpath {
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: draw 1.3s .15s cubic-bezier(.5, 0, .2, 1) forwards;
}
.wcnode { fill: var(--accent); opacity: 0; animation: pop .4s forwards; }
.wcnode.n1 { animation-delay: 1.05s; } .wcnode.n2 { animation-delay: 1.2s; }
.wcnode.n3 { animation-delay: 1.35s; } .wcnode.n4 { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* the turn */
.turn .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.turn h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.02em; line-height: 1.08; }
.turn .col p { max-width: 34ch; font-size: 1.22rem; line-height: 1.66; margin-top: 2.2rem; }
.turn .col .aside { font-style: italic; color: var(--accent); font-size: 1.05rem; margin-top: 1.8rem; max-width: none; }
.blueword { color: var(--accent); font-style: italic; }

/* the bench */
.bench h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.015em; }
.bench .intro { font-size: 1.15rem; color: var(--muted); margin-top: 1rem; }
.rows { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 2.6rem; }
.row { display: grid; grid-template-columns: 1fr 130px 1.1fr; gap: 1.4rem; align-items: center; }
.imagined { font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.4; color: var(--text); }
.trace { width: 100%; height: auto; display: block; }
.trace path {
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 180; stroke-dashoffset: 180; transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .2, 1);
}
.trace circle { fill: var(--accent); opacity: 0; transition: opacity .3s ease .8s; }
.row.on .trace path { stroke-dashoffset: 0; }
.row.on .trace circle { opacity: 1; }
.built {
  border: 1px solid var(--card-border); border-radius: 14px; padding: 1.3rem 1.5rem;
  background: transparent; transition: background .5s ease .55s;
}
.row.on .built { background: var(--fill); }
.built .mono { color: var(--accent-strong); display: block; margin-bottom: .45rem; letter-spacing: .14em; }
.built p { font-size: 1.05rem; line-height: 1.55; }
.handover { margin-top: 3.2rem; max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.handover em { color: var(--text); }

/* the fork */
.fork h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.015em; }
.fork .intro { font-size: 1.15rem; color: var(--muted); margin-top: 1rem; }
.forkline { margin-top: 3rem; }
.forkline svg { width: 100%; height: auto; display: block; overflow: visible; }
.fkroot, .fkgo, .fkend, .fkbar { fill: none; stroke-linecap: round; }
.fkroot {
  stroke: var(--accent); stroke-width: 1.6;
  stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset .6s cubic-bezier(.5, 0, .2, 1);
}
.fkgo {
  stroke: var(--accent); stroke-width: 1.6;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s cubic-bezier(.5, 0, .2, 1) .4s;
}
.fkend {
  stroke: var(--line); stroke-width: 1.5;
  stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset .8s cubic-bezier(.5, 0, .2, 1) .4s;
}
.fkbar { stroke: var(--line); stroke-width: 2; opacity: 0; transition: opacity .35s ease 1.2s; }
.fknode { fill: var(--accent); opacity: 0; transition: opacity .35s ease; }
.fork.on .fkroot, .fork.on .fkgo, .fork.on .fkend { stroke-dashoffset: 0; }
.fork.on .fkbar { opacity: 1; }
.fork.on .fkn1 { transition-delay: 1.1s; opacity: 1; }
.fork.on .fkn2 { transition-delay: 1.25s; opacity: 1; }
.fork.on .fkn3 { transition-delay: 1.4s; opacity: 1; }
.roads { margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.road {
  border: 1px solid var(--card-border); border-radius: 14px; padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: .6rem;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease;
}
.fork.on .road { opacity: 1; transform: none; }
.fork.on .road.deadend { transition-delay: .35s; }
.fork.on .road.through { transition-delay: .6s; }
.road > .mono { letter-spacing: .14em; }
.road.deadend { border-style: dashed; border-color: var(--line); }
.road.deadend > .mono { color: var(--faint); }
.road.through { background: var(--fill); }
.road.through > .mono { color: var(--accent-strong); }
.road .phrase { font-family: "Bricolage Grotesque", serif; font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; }
.road p { font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.road .verdict { margin-top: auto; padding-top: .9rem; color: var(--faint); letter-spacing: .16em; }
.road.through .verdict { color: var(--accent); }
.fork .same { margin-top: 3rem; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.fork .same em { color: var(--text); }

/* the lab */
.lab { background: var(--fill); }
.lab .inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lab h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.015em; }
.lab .body { margin-top: 1.4rem; max-width: 36ch; font-size: 1.12rem; color: var(--muted); }
.lab .body b { font-weight: 400; color: var(--text); }
.labbtn {
  display: inline-block; margin-top: 1.8rem; font-family: "Bricolage Grotesque", serif; font-weight: 600;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: .7rem 1.5rem;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
}
.labbtn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(92deg, var(--grad-btn-a), var(--grad-btn-b)); transition: opacity .35s ease;
}
.labbtn:hover { color: var(--btn-text); border-color: transparent; }
.labbtn:hover::after { opacity: 1; }
.repos { display: flex; flex-direction: column; gap: 1rem; }
.repo {
  background: var(--ground); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 1.15rem 1.4rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.repo:hover { transform: translateY(-2px); box-shadow: 0 2px 14px rgba(18, 51, 158, .10); }
.repo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; align-self: center; }
.repo .name { font-family: "Spline Sans Mono", monospace; font-weight: 500; font-size: .92rem; color: var(--accent); letter-spacing: .02em; }
.repo:hover .name::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.repo .meta {
  font-family: "Spline Sans Mono", monospace; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}

/* tool wall */
.tools h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.015em; }
.tools .line { font-style: italic; color: var(--muted); font-size: 1.12rem; margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.chip {
  font-family: "Spline Sans Mono", monospace; font-weight: 500; font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text); border: 1px solid var(--chip-border); border-radius: 999px;
  padding: .55rem 1.05rem; display: inline-flex; align-items: center; gap: .5rem; transition: background .3s ease;
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: 0; transition: opacity .3s ease; margin-left: -.2rem;
}
.chip:hover { background: var(--fill); }
.chip:hover::before { opacity: 1; }

/* method */
.method { text-align: center; }
.method h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
.methodline { margin: 3.2rem 0 1.6rem; }
.methodline svg { width: 100%; height: auto; display: block; overflow: visible; }
.mlpath {
  fill: none; stroke: var(--line); stroke-width: 1.5;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.2s cubic-bezier(.5, 0, .2, 1);
}
.method.on .mlpath { stroke-dashoffset: 0; }
.mlnode { fill: var(--accent); opacity: 0; transition: opacity .35s ease; }
.method.on .mln1 { transition-delay: .5s; opacity: 1; }
.method.on .mln2 { transition-delay: .8s; opacity: 1; }
.method.on .mln3 { transition-delay: 1.1s; opacity: 1; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.colm .mono { color: var(--accent); display: block; margin-bottom: .7rem; }
.colm .phrase { font-family: "Bricolage Grotesque", serif; font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; }
.colm p { font-size: 1.02rem; color: var(--muted); margin-top: .5rem; }
.colm { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.method.on .colm { opacity: 1; transform: none; }
.method.on .colm:nth-child(1) { transition-delay: .45s; }
.method.on .colm:nth-child(2) { transition-delay: .75s; }
.method.on .colm:nth-child(3) { transition-delay: 1.05s; }

/* faq */
.faq { background: var(--fill); }
.faq h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.015em; }
.faq summary h3 { font: inherit; margin: 0; display: inline; }
.faq .qs { margin-top: 2.4rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; font-family: "Bricolage Grotesque", serif; font-weight: 500; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Spline Sans Mono", monospace; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\00b7"; }
.faq details p { padding: 0 0 1.3rem; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.faq details p a { color: var(--accent); }

/* contact */
.contact { text-align: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.02em; }
.contact .imagineword { font-style: italic; font-family: "Newsreader", serif; font-weight: 400; }
.contact .body { margin: 1.4rem auto 0; max-width: 34rem; font-size: 1.15rem; color: var(--muted); }
.contact .ctas { justify-content: center; }
.resolve { margin: 3.4rem auto 0; display: flex; justify-content: center; gap: 14px; }
.resolve i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .9; display: block; }
.resolve i:nth-child(odd) { opacity: .45; }

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 3.2rem 0 3.6rem; text-align: center; }
.values { font-style: italic; color: var(--muted); font-size: 1.05rem; }
.facts { max-width: 52rem; margin: 1.6rem auto 0; font-size: .92rem; color: var(--faint); line-height: 1.7; }
.flinks { margin-top: 1.8rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.6rem; }
.flinks a, .flinks span { color: var(--accent); text-decoration: none; }
.flinks a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .mark { width: 40px; height: 40px; margin: 2.4rem auto 0; display: block; background: var(--logo-chip); border-radius: 50%; }
.fineprint { margin-top: 1.2rem; font-size: .8rem; color: var(--faint); }

/* consent banner */
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 1rem; display: flex; justify-content: center; }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent-card {
  width: min(680px, 100%); background: var(--ground);
  border: 1px solid var(--card-border); border-radius: 16px;
  padding: 1.5rem 1.7rem 1.6rem;
  box-shadow: 0 12px 44px rgba(10, 22, 51, .22);
  animation: consentup .45s cubic-bezier(.5, 0, .2, 1);
}
@keyframes consentup { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-title { font-size: 1.22rem; letter-spacing: -.01em; outline: none; }
.consent-body { margin-top: .55rem; color: var(--muted); font-size: .97rem; line-height: 1.6; }
.consent-opts { margin-top: 1rem; border-top: 1px solid var(--hairline); }
.consent-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .85rem 0; border-bottom: 1px solid var(--hairline);
}
.consent-opt .mono { color: var(--accent-strong); display: block; margin-bottom: .2rem; }
.consent-opt p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.consent-opt input { width: 21px; height: 21px; accent-color: var(--accent); flex: none; }
.consent-opt input:not([disabled]) { cursor: pointer; }
.consent-actions { margin-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.consent .btn { font-size: .95rem; padding: .7rem 1.4rem; }
.btn-ghost {
  display: inline-block; font-family: "Bricolage Grotesque", serif; font-weight: 600; font-size: .95rem;
  color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 999px;
  padding: .62rem 1.35rem; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  text-decoration: none;
}
.btn-ghost::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(92deg, var(--grad-btn-a), var(--grad-btn-b)); transition: opacity .35s ease;
}
.btn-ghost:hover { color: var(--btn-text); border-color: transparent; }
.btn-ghost:hover::after { opacity: 1; }
.consent-more {
  background: none; border: 0; cursor: pointer; color: var(--accent);
  padding: .35rem 0; min-height: 24px; margin-left: auto;
}
.consent-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* footer buttons (cookie settings) */
.flinks button {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; cursor: pointer; color: var(--accent);
  padding: .35rem 0; min-height: 24px; display: inline-flex; align-items: center;
}
.flinks button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* legal pages */
.legal h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; margin-top: .9rem; }
.legal .updated { margin-top: 1rem; color: var(--faint); font-size: .92rem; }
.legal h2 { font-size: 1.45rem; letter-spacing: -.01em; margin-top: 3rem; }
.legal p, .legal li { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 68ch; }
.legal p { margin-top: 1rem; }
.legal ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.legal li { margin-top: .45rem; }
.legal li::marker { color: var(--accent); }
.legal strong, .legal b { font-weight: 400; color: var(--text); }
.legal .tablewrap { overflow-x: auto; margin-top: 1.3rem; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .97rem; }
.legal th, .legal td { text-align: left; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal th {
  font-family: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.legal td { color: var(--muted); }
.legal td:first-child {
  font-family: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85rem; color: var(--text); white-space: nowrap;
}
.legal .btn-ghost { margin-top: 1.2rem; }

/* responsive */
@media (max-width: 820px) {
  .turn .grid { grid-template-columns: 1fr; }
  .turn .col p { margin-top: 1.4rem; }
  .lab .inner { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .7rem; }
  .trace { display: none; }
  .built { margin-left: 1rem; }
  .forkline { display: none; }
  .roads { grid-template-columns: 1fr; }
  .fork .road { opacity: 1; transform: none; }
  .cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .methodline { display: none; }
  .method .colm { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .consent { padding: .6rem; }
  .consent-card { padding: 1.2rem 1.2rem 1.3rem; }
  .consent-actions .btn, .consent-actions .btn-ghost { flex: 1 1 auto; text-align: center; }
  .consent-more { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wcpath { animation: none; stroke-dashoffset: 0; }
  .wcnode { animation: none; opacity: 1; }
  .trace path { transition: none; stroke-dashoffset: 0; }
  .trace circle { transition: none; opacity: 1; }
  .built { transition: none; }
  .row .built { background: var(--fill); }
  .mlpath { transition: none; stroke-dashoffset: 0; }
  .mlnode { transition: none; opacity: 1; }
  .fkroot, .fkgo, .fkend { transition: none; stroke-dashoffset: 0; }
  .fkbar, .fknode { transition: none; opacity: 1; }
  .road { transition: none; opacity: 1; transform: none; }
  .colm { transition: none; opacity: 1; transform: none; }
  .repo { transition: none; }
  .consent-card { animation: none; }
}
