/* chrisdemetriou.com, the Nov 2026 redesign: home, Experience, About, the legal pages and 404.
   (The Creative page keeps its own styles: /styles/player.css and /styles/display.css.)
   Look: soft black, one typeface, no colour except the work itself. Very large tight headlines,
   a floating glass nav, hairline panels, real screenshots in browser frames.
   Dark is the default; light is a visitor choice (Display settings, /scripts/display.js).
   Reading rules: short lines, no italics, no justified text. Small labels are spaced capitals;
   they turn into ordinary words with the dyslexia-friendly font or wider spacing.
   Nothing moves unless <html> has the "motion" class (the visitor and their device allow it).
   Contrast: body text is 7:1 or better; the dimmest text is 6:1 or better. */

@font-face{ font-family:"Rethink Sans"; src:url("/fonts/RethinkSans-latin.woff2") format("woff2"); font-weight:400 800; font-style:normal; font-display:swap; }
@font-face{ font-family:"OpenDyslexic"; src:url("/fonts/OpenDyslexic-Regular.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:"OpenDyslexic"; src:url("/fonts/OpenDyslexic-Bold.otf") format("opentype"); font-weight:500 800; font-style:normal; font-display:swap; }

:root{
  color-scheme: dark;
  --bg:#0A0A0B; --card:#111113; --ink:#F2F2F4; --ink-2:#B4B4BA; --ink-3:#8E8E95;
  --panel:rgba(255,255,255,.035); --panel-2:rgba(255,255,255,.07);
  --line:rgba(255,255,255,.14); --line-2:rgba(255,255,255,.34);
  --btn-bg:#F2F2F4; --btn-fg:#0A0A0B; --glow:rgba(255,255,255,.22); --shadow:rgba(0,0,0,.7);
  --g1:#F2F2F4; --g2:#8E8E95; --live:#5FD38D;
  --mask:rgba(0,0,0,.7);
  --ease:cubic-bezier(.16,1,.3,1);
  --font:"Rethink Sans", "Segoe UI", system-ui, sans-serif;
  --wrap:1180px;
}
:root[data-theme="light"]{
  color-scheme: light;
  --bg:#F5F5F2; --card:#FFFFFF; --ink:#0B0B0C; --ink-2:#3F3F45; --ink-3:#55555C;
  --panel:rgba(255,255,255,.7); --panel-2:rgba(255,255,255,.95);
  --line:rgba(0,0,0,.14); --line-2:rgba(0,0,0,.42);
  --btn-bg:#0B0B0C; --btn-fg:#F5F5F2; --glow:rgba(0,0,0,.18); --shadow:rgba(0,0,0,.2);
  --g1:#0B0B0C; --g2:#5E5E66; --live:#17713F;
  --mask:rgba(20,22,26,.6);
}
/* High contrast: pure black and white, solid lines, no gradients or glass */
:root[data-contrast="high"]{
  --bg:#000; --card:#000; --ink:#FFF; --ink-2:#FFF; --ink-3:#FFF; --panel:#000; --panel-2:#000;
  --line:#FFF; --line-2:#FFF; --btn-bg:#FFF; --btn-fg:#000; --glow:transparent; --g1:#FFF; --g2:#FFF; --live:#7DFF9E;
}
:root[data-contrast="high"][data-theme="light"]{
  --bg:#FFF; --card:#FFF; --ink:#000; --ink-2:#000; --ink-3:#000; --panel:#FFF; --panel-2:#FFF;
  --line:#000; --line-2:#000; --btn-bg:#000; --btn-fg:#FFF; --g1:#000; --g2:#000; --live:#00561F;
}
:root[data-text="large"]{ font-size:115%; }
:root[data-text="xlarge"]{ font-size:130%; }
:root[data-font="dyslexic"]{ --font:"OpenDyslexic", system-ui, sans-serif; }
:root[data-font="dyslexic"] :is(h1, h2, h3, .num, .ghost){ letter-spacing:0; line-height:1.25; }
:root[data-font="dyslexic"] h1{ font-size:clamp(2rem, 6vw, 4.6rem); }
:root[data-font="dyslexic"] h2{ font-size:clamp(1.7rem, 4vw, 3rem); }
:root[data-spacing="wide"] body{ line-height:1.9; letter-spacing:.06em; word-spacing:.16em; }
:root[data-spacing="wide"] :is(h1, h2, h3, .num){ letter-spacing:0; line-height:1.2; }
:root:is([data-font="dyslexic"], [data-spacing="wide"]) .brand{ letter-spacing:0; font-size:1.2rem; }
:root:is([data-font="dyslexic"], [data-spacing="wide"]) .brand small{ text-transform:none; letter-spacing:.03em; font-size:.85rem; }
:root:is([data-font="dyslexic"], [data-spacing="wide"]) .cap{ text-transform:none; letter-spacing:.03em; font-size:.95rem; }
/* "Turn colour off" (Display): the green live dots go grey; the assistant drops its accent (ask.css). */
:root[data-colour="off"]{ --live:var(--ink-2); }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }

*{ box-sizing:border-box; }
html{ scroll-padding-top:104px; -webkit-text-size-adjust:100%; }
html, body{ margin:0; padding:0; }
body{ background:var(--bg); color:var(--ink); font-family:var(--font); font-size:1.0625rem; line-height:1.55; overflow-wrap:break-word; -webkit-font-smoothing:antialiased; }
main{ display:block; overflow-x:clip; }
img{ max-width:100%; height:auto; }
[hidden]{ display:none !important; }

.container{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-left:max(20px, env(safe-area-inset-left, 0px)); padding-right:max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, p{ margin:0; }
h1, h2, h3{ text-wrap:balance; }
h1{ font-weight:700; font-size:clamp(2.5rem, 8.2vw, 6.5rem); line-height:.94; letter-spacing:-.05em; }
h1 > span{ display:block; padding-bottom:.08em; }
h1 > span > span{ display:inline; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
h2{ font-weight:600; font-size:clamp(2rem, 5vw, 3.9rem); line-height:1; letter-spacing:-.045em; }
h3{ font-weight:600; font-size:clamp(1.35rem, 2.2vw, 1.7rem); line-height:1.1; letter-spacing:-.03em; }
.page h1{ font-size:clamp(2.3rem, 6.4vw, 4.8rem); }
.hero h1.three{ font-size:clamp(2.1rem, 6.2vw, 5rem); line-height:.98; }
a{ color:inherit; text-decoration:underline; text-decoration-color:var(--line-2); text-decoration-thickness:1px; text-underline-offset:5px; }
a:hover{ text-decoration-color:currentColor; }
:focus-visible{ outline:3px solid var(--ink); outline-offset:4px; border-radius:8px; }
.skip-link{ position:absolute; left:16px; top:-90px; z-index:100; padding:14px 22px; background:var(--btn-bg); color:var(--btn-fg); font-weight:600; border-radius:999px; text-decoration:none; }
.skip-link:focus{ top:12px; }
.glass{ background:var(--panel); box-shadow:inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter:blur(22px) saturate(160%); backdrop-filter:blur(22px) saturate(160%); }
.cap{ font-size:.75rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-2); }
.two{ background:linear-gradient(180deg, var(--g1) 20%, var(--g2) 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.dim{ color:var(--ink-3); }
.lede{ font-size:clamp(1.1rem, 1.5vw, 1.2rem); color:var(--ink-2); max-width:38ch; }
.arr{ display:inline-block; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* ── Nav: a floating glass bar ── */
.masthead{ position:sticky; top:0; z-index:30; padding-top:calc(env(safe-area-inset-top, 0px) + 14px); }
.bar{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; min-height:68px; padding:9px 9px 9px 20px; border-radius:30px; background:color-mix(in srgb, var(--bg) 72%, transparent); }
.brand{ display:grid; gap:6px; align-content:center; min-height:48px; margin-right:auto; text-decoration:none; white-space:nowrap; font-weight:800; font-size:1.7rem; letter-spacing:-.05em; line-height:1; }
.brand .l{ font-weight:400; color:var(--ink-2); }
.brand small{ display:flex; align-items:center; gap:8px; font-size:.68rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-2); white-space:normal; line-height:1.45; }
.brand small i{ flex:none; width:7px; height:7px; border-radius:50%; background:var(--live); }
.site-nav ul{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.site-nav a{ display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:999px; text-decoration:none; color:var(--ink-2); font-weight:500; font-size:1rem; }
.site-nav a:hover{ color:var(--ink); background:var(--panel-2); }
.site-nav a[aria-current="page"]{ color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-2); }
.mast-tools{ display:inline-flex; align-items:center; gap:8px; }
.menu-toggle{ display:none; place-items:center; width:46px; height:46px; padding:0; color:var(--ink); background:transparent; border:0; box-shadow:inset 0 0 0 1px var(--line-2); border-radius:50%; cursor:pointer; }
.menu-toggle svg{ width:22px; height:22px; }
.menu-toggle:hover{ background:var(--panel-2); }
.menu-toggle[aria-expanded="true"]{ background:var(--btn-bg); color:var(--btn-fg); }
/* Narrower than a laptop: one row (name, Display, menu). The links and "Get in touch" open below it. */
@media (max-width:1023px){
  .bar.has-menu{ flex-wrap:wrap; }
  .has-menu .menu-toggle{ display:grid; }
  .has-menu .site-nav, .has-menu > .btn.sm{ display:none; }
  .has-menu.menu-open .site-nav{ display:block; order:8; width:100%; padding:8px 0 4px; margin-top:8px; border-top:1px solid var(--line); }
  .has-menu.menu-open .site-nav ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .has-menu.menu-open .site-nav a{ display:flex; min-height:48px; padding:0 14px; font-size:1.1rem; border-radius:14px; }
  .has-menu.menu-open > .btn.sm{ display:inline-flex; order:9; width:calc(100% - 11px); justify-content:center; margin:4px 0 6px; min-height:48px; }
  .has-menu .brand{ min-width:0; flex:1 1 0; white-space:normal; }
  .has-menu .brand .name{ white-space:nowrap; }
}
/* The same fold at any width where the bar would not fit on one row (bigger text, wider spacing):
   scripts/display.js measures the bar and adds .compact. */
.bar.compact{ flex-wrap:wrap; }
.compact .menu-toggle{ display:grid; }
.compact .site-nav, .compact > .btn.sm{ display:none; }
.compact.menu-open .site-nav{ display:block; order:8; width:100%; padding:8px 0 4px; margin-top:8px; border-top:1px solid var(--line); }
.compact.menu-open .site-nav ul{ flex-direction:column; align-items:stretch; gap:2px; }
.compact.menu-open .site-nav a{ display:flex; min-height:48px; padding:0 14px; font-size:1.1rem; border-radius:14px; }
.compact.menu-open > .btn.sm{ display:inline-flex; order:9; width:calc(100% - 11px); justify-content:center; margin:4px 0 6px; min-height:48px; }
.compact .brand{ min-width:0; flex:1 1 0; white-space:normal; }
.compact .brand .name{ white-space:nowrap; }

/* ── Buttons, chips ── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 26px; border-radius:999px; font:600 1rem var(--font); text-decoration:none; cursor:pointer; border:0; }
.btn.solid{ background:var(--btn-bg); color:var(--btn-fg); box-shadow:0 10px 40px -8px var(--glow); }
.btn.line{ color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-2); background:transparent; }
.btn.line:hover{ background:var(--panel-2); }
.btn.sm{ min-height:46px; padding:0 20px; font-size:.98rem; }
.cta{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; align-items:center; }
.chip{ display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:6px 20px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--line-2); }
.chip i, .live i{ flex:none; width:7px; height:7px; border-radius:50%; background:var(--ink); }
.chip i.on, .live i{ background:var(--live); }
.live{ display:inline-flex; align-items:center; gap:8px; width:fit-content; min-height:32px; padding:4px 14px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--line-2); }
.go{ display:inline-flex; align-items:center; gap:10px; min-height:44px; width:fit-content; font-weight:600; }

/* ── Hero ── */
.hero{ position:relative; text-align:center; }
.hero::before{ content:""; position:absolute; inset:-90px 0 auto; height:640px; z-index:-1; background:radial-gradient(60% 60% at 50% 0%, var(--panel-2), transparent 70%); pointer-events:none; }
.hero .container{ padding-block:clamp(40px, 6.5vw, 84px) 0; display:grid; gap:26px; justify-items:center; }
.line-art{ position:relative; width:100%; margin-top:10px; }
.line-art svg{ display:block; width:100%; height:clamp(80px, 11vw, 140px); overflow:visible; }
.line-art :is(path, polyline){ fill:none; stroke:url(#lg); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.line-art circle{ fill:var(--ink); }
.line-art .a{ stop-color:var(--g2); } .line-art .b{ stop-color:var(--g1); }
.pen{ position:absolute; left:0; top:0; z-index:1; width:26px; height:26px; pointer-events:none; transition:opacity .6s; }
.pen svg{ display:block; width:26px; height:26px; overflow:visible; }
.line-art .pen path{ fill:var(--bg); stroke:var(--ink); stroke-width:1.6; }
/* The two labels sit on the line itself: one on the tangle, one on the straight run. */
.line-art .ends span{ position:absolute; top:50%; transform:translateY(-50%); padding:8px 16px; border-radius:999px; white-space:nowrap;
  background:var(--bg); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-2); }
.line-art .ends span:first-child{ left:7%; }
.line-art .ends span:last-child{ right:9%; }
.facts{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 34px; list-style:none; margin:6px 0 0; padding:0; }
.facts li{ display:inline-flex; align-items:center; gap:12px; }
.facts li::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--ink-2); }

/* ── Sections ── */
.s .container{ padding-block:clamp(72px, 9.5vw, 132px) 0; display:grid; gap:clamp(26px, 4vw, 44px); }
.page .container{ padding-block:clamp(40px, 6vw, 80px) 0; }
.s.tight .container{ padding-top:clamp(48px, 7vw, 92px); }
.head{ display:grid; gap:22px; justify-items:center; text-align:center; }

.frame{ border-radius:22px; overflow:hidden; box-shadow:0 60px 120px -50px var(--shadow); background:#0d0d0f; position:relative; }
.frame::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--line-2); pointer-events:none; }
.chrome{ display:flex; align-items:center; gap:7px; padding:13px 18px; background:#161618; }
.chrome i{ width:10px; height:10px; border-radius:50%; background:#3a3a3e; }
.chrome span{ margin-inline:auto; padding:5px 18px; border-radius:999px; background:#0a0a0b; box-shadow:inset 0 0 0 1px #2c2c30; color:#b4b4ba; font-size:.8rem; max-width:70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.frame img{ display:block; width:100%; height:auto; }

.grid3{ display:grid; grid-template-columns:repeat(3, 1fr); border-radius:28px; overflow:hidden; text-align:left; margin:0; }
.grid3 > div{ padding:clamp(22px, 3vw, 38px); display:grid; gap:14px; align-content:start; border-left:1px solid var(--line); min-width:0; }
.grid3 > div:first-child{ border-left:0; }
.grid3 dd{ margin:0; font-size:1.0625rem; color:var(--ink-2); }
.grid3 .big dd{ font-size:clamp(1.3rem, 2vw, 1.6rem); font-weight:600; letter-spacing:-.03em; line-height:1.12; color:var(--ink); }

.trusted .container{ padding-block:clamp(52px, 7vw, 88px) 0; display:grid; gap:22px; justify-items:center; text-align:center; }
.trusted ul{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 48px; list-style:none; margin:0; padding:0; font-weight:600; font-size:clamp(1.35rem, 2.6vw, 2rem); letter-spacing:-.035em; line-height:1.15; color:var(--ink-2); }
.trusted li{ cursor:default; }
.trusted li:hover{ color:var(--ink); }
.trusted .ticker{ width:100%; }
.trusted .clone{ display:none; }

.stack{ display:grid; gap:26px; }
.wcard{ position:sticky; top:104px; border-radius:32px; padding:clamp(18px, 2.6vw, 34px); display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:clamp(20px, 3.4vw, 48px); align-items:center; background:var(--card); box-shadow:inset 0 0 0 1px var(--line-2), 0 -30px 60px -30px var(--shadow); }
.wcard:nth-child(2){ top:124px; }
.wcard .t{ display:grid; gap:18px; padding:clamp(4px, 1.4vw, 18px); }
.wcard h3{ font-size:clamp(1.7rem, 3vw, 2.4rem); letter-spacing:-.045em; line-height:1; }
.wcard p{ color:var(--ink-2); max-width:34ch; }
.wcard .res{ color:var(--ink); font-weight:600; font-size:1.2rem; letter-spacing:-.02em; }

.proof{ position:relative; }
.ghost{ position:absolute; left:50%; top:clamp(40px, 6vw, 90px); transform:translateX(-50%); font-weight:700; font-size:clamp(6rem, 20vw, 15rem); line-height:.8; letter-spacing:-.075em; color:transparent; -webkit-text-stroke:1px var(--line); pointer-events:none; white-space:nowrap; z-index:-1; }
.grid4{ display:grid; grid-template-columns:1fr 1fr; border-radius:32px; overflow:hidden; background:var(--card); text-align:left; list-style:none; margin:0; padding:0; }
.grid4 > *{ padding:clamp(24px, 3.4vw, 46px); display:grid; gap:10px; align-content:start; border-top:1px solid var(--line); border-left:1px solid var(--line); margin:-1px 0 0 -1px; min-width:0; }
.num{ font-weight:600; font-size:clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing:-.05em; line-height:1.05; font-variant-numeric:tabular-nums; width:fit-content; }
.grid4 p{ color:var(--ink-2); max-width:32ch; }
.grid4.words .num{ font-size:clamp(1.35rem, 2.3vw, 1.75rem); letter-spacing:-.03em; line-height:1.15; }

/* numbered steps, 01 to 04 */
.steps{ display:grid; grid-template-columns:repeat(4, 1fr); border-radius:32px; overflow:hidden; background:var(--card); text-align:left; list-style:none; margin:0; padding:0; counter-reset:s; }
.steps li{ counter-increment:s; padding:clamp(22px, 2.6vw, 36px); display:grid; gap:12px; align-content:start; border-left:1px solid var(--line); min-width:0; }
.steps li:first-child{ border-left:0; }
.steps li::before{ content:"0" counter(s); font-weight:700; font-size:clamp(2.6rem, 4vw, 3.5rem); line-height:1; letter-spacing:-.05em; color:transparent; -webkit-text-stroke:1px var(--line-2); }
.steps p{ color:var(--ink-2); }
.statement{ font-size:clamp(1.3rem, 2.1vw, 1.65rem); font-weight:600; letter-spacing:-.03em; line-height:1.2; text-align:center; max-width:30ch; margin-inline:auto; text-wrap:balance; }

/* Experience: one panel per role */
/* Skills and tools: the search words, grouped. Plain text pills, no decoration to read past. */
.skills .container{ display:grid; gap:22px; }
.skills dl{ margin:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.skills dl > div{ padding:24px; border-radius:22px; background:var(--panel); box-shadow:inset 0 0 0 1px var(--line); display:grid; gap:14px; align-content:start; }
.skills dt{ font-weight:600; font-size:1.15rem; letter-spacing:-.02em; color:var(--ink); }
.skills dd{ margin:0; }
.skills ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.skills li{ padding:6px 13px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink-2); font-size:.95rem; line-height:1.3; }
@media (max-width:720px){ .skills dl{ grid-template-columns:1fr; } }
.roles{ display:grid; gap:22px; }
.role{ border-radius:32px; background:var(--card); box-shadow:inset 0 0 0 1px var(--line-2); padding:clamp(22px, 3.4vw, 46px); display:grid; grid-template-columns:minmax(0, 4fr) minmax(0, 8fr); gap:18px clamp(20px, 4vw, 60px); text-align:left; }
.role .when{ display:grid; gap:10px; align-content:start; }
.role ul{ list-style:none; margin:0; padding:0; display:grid; }
.role li{ padding:16px 0; border-top:1px solid var(--line); color:var(--ink-2); display:grid; gap:2px; }
.role li:first-child{ border-top:0; padding-top:0; }
.role li b{ color:var(--ink); font-weight:600; font-size:1.15rem; letter-spacing:-.02em; }

.about-top{ display:grid; gap:26px; justify-items:center; text-align:center; }
.about-top img{ width:132px; height:132px; object-fit:cover; object-position:50% 20%; border-radius:50%; display:block; box-shadow:0 0 0 1px var(--line-2), 0 0 0 8px var(--panel); }

.end .container{ padding-block:clamp(88px, 12vw, 160px) clamp(64px, 8vw, 110px); display:grid; gap:30px; justify-items:center; text-align:center; }
.mail{ font-weight:600; font-size:clamp(1.1rem, 2.1vw, 1.4rem); letter-spacing:-.02em; overflow-wrap:anywhere; }
.mail a{ color:var(--ink-2); text-decoration:none; display:inline-flex; align-items:center; min-height:44px; }
.mail a:hover{ color:var(--ink); }

.site-footer .container{ padding-block:26px 40px; display:flex; flex-wrap:wrap; gap:8px 22px; justify-content:space-between; align-items:center; color:var(--ink-2); font-size:.95rem; border-top:1px solid var(--line); }
.site-footer ul{ display:flex; flex-wrap:wrap; gap:0 22px; list-style:none; margin:0; padding:0; }
.site-footer a{ display:inline-flex; align-items:center; min-height:44px; color:var(--ink-2); text-decoration:none; }
.site-footer a:hover{ color:var(--ink); }
/* Who made this: one line above the footer links, on every tech page. */
.site-footer .credit{ flex-basis:100%; margin:0 0 6px; color:var(--ink); font-weight:600; letter-spacing:-.01em; }
.site-footer .credit a{ margin-left:6px; color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.facts a{ color:inherit; text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:5px; }
.facts a:hover{ text-decoration-color:currentColor; }
.grid4 .num a{ color:inherit; text-underline-offset:5px; }

/* ── Text pages: privacy, cookies, accessibility, 404 ── */
.prose{ display:grid; gap:18px; max-width:46rem; margin-inline:auto; padding-block:clamp(48px, 8vw, 100px) clamp(60px, 9vw, 120px); }
.prose h1{ font-size:clamp(2.1rem, 5vw, 3.5rem); line-height:1; margin-bottom:6px; }
.prose h2{ font-size:1.6rem; letter-spacing:-.03em; line-height:1.15; margin-top:22px; padding-top:26px; border-top:1px solid var(--line); }
.prose p, .prose li{ color:var(--ink-2); max-width:60ch; }
.prose strong, .prose code{ color:var(--ink); font-weight:600; }
.prose ul, .prose ol{ margin:0; padding-left:1.2em; display:grid; gap:8px; }
.prose .note{ border-radius:22px; padding:22px 26px; background:var(--card); box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink); max-width:none; }
.prose .cta{ justify-content:flex-start; margin-top:10px; }
.table-wrap{ overflow-x:auto; border-radius:18px; box-shadow:inset 0 0 0 1px var(--line-2); background:var(--card); }
.prose table{ border-collapse:collapse; width:100%; min-width:34rem; font-size:1rem; }
.prose th, .prose td{ text-align:left; vertical-align:top; padding:14px 16px; border-bottom:1px solid var(--line); color:var(--ink-2); }
.prose th{ color:var(--ink); font-weight:600; }
.prose tr:last-child td{ border-bottom:0; }
.prose code{ font-family:inherit; }

/* ── Display settings: the button and the panel (/scripts/display.js builds them) ── */
.display-toggle{ display:inline-flex; align-items:center; gap:8px; min-height:46px; padding:0 18px; font:500 .98rem var(--font); color:var(--ink); background:transparent; border:0; box-shadow:inset 0 0 0 1px var(--line-2); border-radius:999px; cursor:pointer; }
.display-toggle svg{ width:20px; height:20px; }
.display-toggle:hover{ background:var(--panel-2); }
.display-toggle[aria-expanded="true"]{ background:var(--btn-bg); color:var(--btn-fg); }
.display-panel{ position:fixed; top:92px; right:max(16px, calc((100vw - var(--wrap)) / 2 + 20px)); z-index:50; width:min(400px, calc(100vw - 32px)); max-height:calc(100vh - 108px); overflow:auto; padding:24px; color:var(--ink); background:color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter:blur(22px) saturate(160%); backdrop-filter:blur(22px) saturate(160%); box-shadow:inset 0 0 0 1px var(--line-2), 0 30px 80px -30px var(--shadow); border-radius:28px; font-size:1rem; line-height:1.5; letter-spacing:normal; word-spacing:normal; text-align:left; }
.display-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
.display-head h2{ font-size:1.5rem; letter-spacing:-.03em; line-height:1.2; }
.display-panel button{ font:500 .95rem var(--font); color:var(--ink); background:transparent; border:0; box-shadow:inset 0 0 0 1px var(--line-2); border-radius:999px; padding:8px 18px; min-height:44px; cursor:pointer; }
.display-panel button:hover{ background:var(--panel-2); }
.display-panel fieldset{ margin:18px 0 0; padding:0; border:0; }
.display-panel legend{ font-size:.75rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-2); margin-bottom:10px; padding:0; }
.segmented{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:4px; box-shadow:inset 0 0 0 1px var(--line-2); border-radius:999px; }
.segmented input{ position:absolute; opacity:0; width:1px; height:1px; }
.segmented label{ display:flex; align-items:center; justify-content:center; min-height:44px; padding:6px; text-align:center; cursor:pointer; font-size:.95rem; border-radius:999px; color:var(--ink-2); }
.segmented label:hover{ color:var(--ink); }
.segmented input:checked + label{ background:var(--btn-bg); color:var(--btn-fg); font-weight:600; }
.segmented input:focus-visible + label{ outline:3px solid var(--ink); outline-offset:3px; }
.segmented .size-2{ font-size:1.05rem; } .segmented .size-3{ font-size:1.2rem; }
.switches{ list-style:none; margin:18px 0 0; padding:0; display:grid; }
.switch{ display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:56px; padding:10px 0; cursor:pointer; border-top:1px solid var(--line); font-weight:600; }
.switch small{ display:block; color:var(--ink-2); font-size:.875rem; font-weight:400; }
.switch input{ appearance:none; -webkit-appearance:none; flex:none; position:relative; width:50px; height:30px; border-radius:999px; margin:0; cursor:pointer; background:transparent; border:0; box-shadow:inset 0 0 0 1px var(--line-2); }
.switch input::after{ content:""; position:absolute; top:5px; left:5px; width:20px; height:20px; border-radius:50%; background:var(--ink-2); }
.switch input:checked{ background:var(--btn-bg); box-shadow:none; }
.switch input:checked::after{ transform:translateX(20px); background:var(--btn-fg); }
.display-foot{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:6px; padding-top:16px; border-top:1px solid var(--line); }
.display-foot p{ font-size:.875rem; color:var(--ink-2); }
:root:is([data-font="dyslexic"], [data-spacing="wide"]) .display-panel legend{ text-transform:none; letter-spacing:.03em; font-size:.95rem; }
.reading-mask{ position:fixed; left:0; right:0; z-index:60; pointer-events:none; background:var(--mask); }
.reading-mask--top{ top:0; } .reading-mask--bottom{ bottom:0; }

/* High contrast and forced colours: no gradient text, no glass, no ghost numerals */
:root[data-contrast="high"] .two{ background:none; color:var(--ink); }
:root[data-contrast="high"] :is(.glass, .bar, .display-panel){ -webkit-backdrop-filter:none; backdrop-filter:none; background:var(--bg); }
:root[data-contrast="high"] .ghost, :root[data-contrast="high"] .hero::before{ display:none; }
:root[data-contrast="high"] .steps li::before{ color:var(--ink); -webkit-text-stroke:0; }
@media (forced-colors:active){
  .two{ background:none; color:CanvasText; }
  .ghost{ display:none; }
  .steps li::before{ color:CanvasText; -webkit-text-stroke:0; }
  .btn, .chip, .live, .bar, .wcard, .role, .grid3, .grid4, .steps, .display-toggle, .display-panel, .segmented{ border:1px solid CanvasText; }
}

@media (max-width:960px){
  .steps{ grid-template-columns:1fr 1fr; }
  .steps li{ border-top:1px solid var(--line); margin-top:-1px; }
  .steps li:nth-child(odd){ border-left:0; }
}
@media (max-width:860px){
  .grid3{ grid-template-columns:1fr; }
  .grid3 > div{ border-left:0; border-top:1px solid var(--line); }
  .grid3 > div:first-child{ border-top:0; }
  .wcard{ grid-template-columns:1fr; position:static; }
  .wcard .frame{ order:-1; }
  .role{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .bar{ padding:8px 8px 8px 16px; border-radius:28px; }
  .brand{ font-size:1.45rem; }
  .brand small{ font-size:.62rem; letter-spacing:.12em; }
  .bar:not(.has-menu) .site-nav{ order:3; width:100%; }
  .bar .btn.sm{ padding:0 16px; }
  .display-toggle{ padding:0 13px; }
  .display-toggle span{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .display-panel{ top:124px; right:8px; width:calc(100vw - 16px); max-height:calc(100vh - 136px); }
  html{ scroll-padding-top:150px; }
}
@media (max-width:640px){
  /* Too narrow for labels on the line: each sits tight against its own half instead. */
  .line-art{ padding-bottom:14px; }
  .line-art .ends span{ transform:none; padding:0; background:none; box-shadow:none; border-radius:0; }
  .line-art .ends span:first-child{ left:0; top:auto; bottom:0; }
  .line-art .ends span:last-child{ right:3%; top:auto; bottom:calc(50% + 17px); }
  body{ font-size:1rem; }
  .grid4, .steps{ grid-template-columns:1fr; }
  .steps li{ border-left:0; }
  .hero .btn, .end .btn{ width:100%; }
  .cap{ letter-spacing:.13em; }
  .hero .chip{ gap:8px; padding:6px 14px; letter-spacing:.07em; white-space:nowrap; }
}
@media (max-width:430px){
  .bar .btn.sm{ display:none; }
}

/* ── Motion. Only with the "motion" class, which the page's first script adds unless the visitor
   or their device asked for less. Without it, and without JavaScript, nothing is hidden. ── */
@media (prefers-reduced-motion:no-preference){
  .motion .btn, .motion .site-nav a, .motion .display-toggle, .motion .frame img{ transition:transform .5s var(--ease), background-color .25s, color .25s, box-shadow .4s; }
  .motion .btn:hover{ transform:translateY(-3px) scale(1.02); }
  .motion .btn:active{ transform:none; }
  .motion .btn.solid:hover{ box-shadow:0 16px 50px -6px var(--glow); }
  .motion .switch input::after{ transition:transform .35s var(--ease); }
  .motion .arr{ transition:transform .5s var(--ease); }
  .motion .trusted li{ transition:color .35s; }
  .motion .go:hover .arr, .motion .btn:hover .arr{ transform:translateX(6px); }
  .motion .wcard:hover .frame img{ transform:scale(1.03); }
  .motion .rise{ opacity:0; transform:translateY(34px); animation:rise 1.1s var(--ease) forwards; animation-delay:calc(var(--i, 0) * 110ms + 120ms); }
  .motion h1 > span{ opacity:0; transform:translateY(.35em); animation:rise 1.3s var(--ease) forwards; }
  .motion h1 > span:nth-child(2){ animation-delay:.14s; }
  .motion h1 > span:nth-child(3){ animation-delay:.28s; }
  .motion .line-art path{ stroke-dasharray:1; stroke-dashoffset:1; animation:draw 2.6s .7s var(--ease) forwards; }
  .motion .line-art circle{ opacity:0; animation:fade .5s 2.6s forwards; }
  .motion .line-art .ends span{ opacity:0; animation:fade .7s 1.1s forwards; }
  .motion .line-art .ends span:last-child{ animation-delay:2.5s; }
  /* With the pen (scripts/site.js), the script draws the line and says when it's done. */
  .motion .line-art.pen-on > svg > path{ animation:none; stroke-dasharray:none; stroke-dashoffset:0; opacity:0; }
  .motion .line-art.pen-on.drawn > svg > path{ opacity:1; }
  .motion .line-art.pen-on circle, .motion .line-art.pen-on .ends span:last-child{ animation:none; opacity:0; transition:opacity .6s; }
  .motion .line-art.pen-on.drawn circle, .motion .line-art.pen-on.drawn .ends span:last-child{ opacity:1; }
  .motion.reveal-ready [data-in]{ opacity:0; transform:translateY(44px) scale(.985); transition:opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .motion.reveal-ready [data-in="zoom"]{ transform:scale(.9); }
  .motion.reveal-ready [data-in].in{ opacity:1; transform:none; }
  .motion .display-panel:not([hidden]){ animation:pop .45s var(--ease); transform-origin:top right; }
  @keyframes rise{ to{ opacity:1; transform:none; } }
  @keyframes draw{ to{ stroke-dashoffset:0; } }
  @keyframes fade{ to{ opacity:1; } }
  @keyframes pop{ from{ opacity:0; transform:translateY(-8px) scale(.97); } }
}
/* The client names drift gently left to right while the pointer rests on them, and stop where they
   are when it leaves. Only with a mouse and with motion allowed (/scripts/site.js adds the copies). */
@media (prefers-reduced-motion:no-preference) and (hover:hover){
  .motion .trusted.loop .ticker{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .motion .trusted.loop .track{ display:flex; width:max-content; animation:loop 70s linear infinite; animation-play-state:paused; }
  .motion .trusted.loop .ticker:hover .track{ animation-play-state:running; }
  .motion .trusted.loop ul, .motion .trusted.loop .clone{ display:flex; flex:none; flex-wrap:nowrap; gap:0 40px; padding:6px 40px 6px 0; }
  .motion .trusted.loop li{ white-space:nowrap; }
  @keyframes loop{ from{ transform:translateX(-50%); } to{ transform:none; } }
}
@media print{
  .site-nav, .mast-tools, .display-panel, .skip-link, .ghost, .line-art{ display:none; }
  .masthead{ position:static; }
  body{ background:#fff; color:#000; }
  .wcard{ position:static; }
}
/* The narrowest phones: nothing may be wider than the screen. */
@media (max-width:380px){
  .hero .chip{ white-space:normal; text-align:left; letter-spacing:.05em; }
  .brand small{ letter-spacing:.06em; }
}

/* Quotes (homepage). The section stays hidden until real quotes are added. */
.quotes[hidden]{ display:none; }
.quote-list{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap:14px; margin-top:28px; }
.quote-list figure{ margin:0; padding:28px; border-radius:22px; background:var(--panel); box-shadow:inset 0 0 0 1px var(--line); display:grid; gap:18px; align-content:space-between; }
.quote-list blockquote{ margin:0; font-size:1.125rem; line-height:1.5; color:var(--ink); }
.quote-list blockquote p{ margin:0; }
.quote-list figcaption{ color:var(--ink-2); font-size:.9375rem; }
.quote-list figcaption strong{ display:block; color:var(--ink); }
