/* Company31 · The working drawing · August 2026
   The site as a sheet from the workbench: a blueprint grid, one framed page,
   every section a numbered figure, and a title block where a footer would be. */

/* The house faces. Company31 Sans is our own cut of Bricolage Grotesque —
   pinned at the 31-point optical master, a size no standard release ships.
   Company31 Mono is our own grade of Spline Sans Mono — weight 460, between
   the catalogue cuts, with a slashed zero drawn in for the lab. Both renamed
   derivatives under the SIL OFL 1.1 (see fonts/OFL-company31.txt); the parent
   faces remain below as fallbacks. */
@font-face {
  font-family: "Company31 Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/company31-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Company31 Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/company31-mono.woff2") format("woff2");
}
@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 6.6:1, faint 5.2:1; dark muted 9.1:1, faint 7.3:1.
   Light ground is aged drafting paper: warm parchment, sepia grid and text,
   rust-brown accents (#8A4A1A 5.4:1, 4.6:1 on the hover fill). The display
   gradient ends in #A0612B (3.9:1) and gold darkens to #7A5C0C (4.9:1) so
   the large type and dimension labels keep AA large. */
:root {
  --paper: #EDE3CB; --ink: #0A1633; --royal: #12339E;
  --blue: #1C4FD8; --azure: #3B8AF7; --ice: #EAF1FD;
  --ground: var(--paper);
  --text: #2E2010;
  --muted: rgba(46, 32, 16, .78);
  --faint: rgba(46, 32, 16, .70);
  --accent: #8A4A1A;
  --accent-strong: #5C3311;
  --fill: #E2D3B0;
  --line: rgba(92, 52, 17, .24);
  --hairline: rgba(92, 52, 17, .14);
  --card-border: rgba(92, 52, 17, .26);
  --chip-border: #D9C9A5;
  --grid: rgba(92, 70, 30, .10); --grid5: rgba(92, 70, 30, .20);
  --tool: rgba(92, 70, 30, .24);
  --grad-a: #5C3311; --grad-b: #A0612B;
  --grad-btn-a: #5C3311; --grad-btn-b: #8A4A1A;
  --btn-text: #FBF6EA;
  --logo-fix: none;
  --flag: #A3232D;
  --gold: #7A5C0C;
}
@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);
    --grid: rgba(59, 138, 247, .05); --grid5: rgba(59, 138, 247, .10);
    --tool: rgba(59, 138, 247, .21);
    --grad-a: #3B8AF7; --grad-b: #A9CCFB;
    --grad-btn-a: #3B8AF7; --grad-btn-b: #A9CCFB;
    --btn-text: #0A1633;
    --logo-fix: invert(.88) hue-rotate(190deg) saturate(1.35) brightness(1.1);
    --flag: #FF9AA2;
    --gold: #E9B95C;
  }
}
:root[data-theme="light"] {
  --ground: #EDE3CB; --text: #2E2010;
  --muted: rgba(46, 32, 16, .78); --faint: rgba(46, 32, 16, .70);
  --accent: #8A4A1A; --accent-strong: #5C3311; --fill: #E2D3B0;
  --line: rgba(92, 52, 17, .24); --hairline: rgba(92, 52, 17, .14);
  --card-border: rgba(92, 52, 17, .26); --chip-border: #D9C9A5;
  --grid: rgba(92, 70, 30, .10); --grid5: rgba(92, 70, 30, .20);
  --tool: rgba(92, 70, 30, .24);
  --grad-a: #5C3311; --grad-b: #A0612B;
  --grad-btn-a: #5C3311; --grad-btn-b: #8A4A1A;
  --btn-text: #FBF6EA; --logo-fix: none; --flag: #A3232D;
  --gold: #7A5C0C;
}
: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);
  --grid: rgba(59, 138, 247, .05); --grid5: rgba(59, 138, 247, .10);
  --tool: rgba(59, 138, 247, .21);
  --grad-a: #3B8AF7; --grad-b: #A9CCFB;
  --grad-btn-a: #3B8AF7; --grad-btn-b: #A9CCFB;
  --btn-text: #0A1633; --logo-fix: invert(.88) hue-rotate(190deg) saturate(1.35) brightness(1.1); --flag: #FF9AA2;
  --gold: #E9B95C;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; color: var(--text);
  background-color: var(--ground);
  /* The cutting mat: fine squares at 26px, a heavier rule every fifth line.
     The drafting scale down the left margin is ticked to the same 26/130. */
  background-image:
    linear-gradient(to right, var(--grid5) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid5) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 130px 130px, 130px 130px, 26px 26px, 26px 26px;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The sheet frame: one hairline around the viewport, like the border of a
   working drawing. Fixed, so the page always reads as a sheet on the bench. */
body::before {
  content: ""; position: fixed; inset: 12px; z-index: 40;
  border: 1px solid var(--line); pointer-events: none;
}

/* ---- the bench -----------------------------------------------------------
   Underneath the sheet: a drafting scale pinned inside the frame on the left,
   and the instruments left lying in the margins, where a right-handed person
   would have put them down. All of it fixed, inert and on a negative layer, so
   it sits above the mat and below every word. It needs real margin to live in,
   so the scale waits for a laptop and the instruments for a desk; neither
   shows in high contrast, where the mat goes flat too. */
.benchrule, .benchtools { position: fixed; z-index: -1; pointer-events: none; display: none; }

/* The scale: ticks every 26px to match the mat, a long one every fifth. */
.benchrule {
  left: 13px; top: 13px; bottom: 13px; width: 26px;
  border-right: 1px solid var(--tool);
  background-image:
    repeating-linear-gradient(to bottom, var(--tool) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, var(--tool) 0 1px, transparent 1px 130px);
  background-size: 7px 100%, 15px 100%;
  background-position: right top, right top;
  background-repeat: no-repeat;
}

/* The instruments. Hairlines only: they are furniture, not figures. */
.benchtools { inset: 0; }
.tool { position: absolute; display: block; }
.tool path, .tool circle {
  fill: none; stroke: var(--tool); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.tool .tarc { stroke-dasharray: 5 6; }
.tool-compass    { top: 12vh;   left: 52px;   width: 78px;  transform: rotate(7deg); }
.tool-square     { bottom: 9vh; left: 44px;   width: 116px; transform: rotate(-9deg); }
.tool-pencil     { top: 15vh;   right: 20px;  width: 170px; transform: rotate(76deg); }
.tool-eraser     { top: 52vh;   right: 44px;  width: 74px;  transform: rotate(24deg); }
.tool-protractor { bottom: 12vh; right: 26px; width: 130px; transform: rotate(-8deg); }

@media (min-width: 1000px) { .benchrule { display: block; } }
@media (min-width: 1440px) { .benchtools { display: block; } }
html.a11y-contrast .benchrule, html.a11y-contrast .benchtools { display: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding-inline: clamp(1.5rem, 5vw, 2.5rem); }
section { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
h1, h2, h3 { font-family: "Company31 Sans", "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: "Company31 Sans", "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; }

/* Off-screen but announced: for headings that structure the page for a screen
   reader without adding a visible line to a deliberately tight layout. */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible { outline-offset: 4px; }

.mono {
  font-family: "Company31 Mono", "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; }
.flinks span { display: inline-flex; align-items: center; min-height: 24px; padding-block: .35rem; }

/* Figure captions: the compact header every section shares. A figure number,
   a modest title, and a rule running to the margin, like a drawing callout. */
.figcap { display: flex; align-items: baseline; gap: 1.1rem; margin: 0 0 1.4rem; }
.figcap .fig { color: var(--accent); flex: none; }
.figcap h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -.01em; font-weight: 600; }
.figcap .figrule { flex: 1 1 2rem; border-top: 1px solid var(--hairline); align-self: center; min-width: 2rem; }
.intro { font-size: 1.1rem; color: var(--muted); max-width: 56rem; }

/* header */
header { padding-block: 1.3rem; 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; filter: var(--logo-fix); border-radius: 50%; }
.brand span { font-family: "Company31 Sans", "Bricolage Grotesque", serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.hlink { color: var(--accent); text-decoration: none; white-space: nowrap; }
.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); }

/* social profiles, right after Essays: same ring as the header controls, a touch smaller */
.hsocial { display: inline-flex; align-items: center; gap: .55rem; }
.socialbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; flex: none;
}
.socialbtn svg { display: block; fill: currentColor; }
.socialbtn svg[fill="none"] { fill: none; }
.socialbtn:hover, .socialbtn:focus-visible { background: var(--fill); }

/* hero: the words on the left, Figure 1 on the right */
.hero { padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem); }
.herogrid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero .label { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin: .9rem 0 1.35rem; }
.gradword {
  background: linear-gradient(92deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 38rem; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.7rem; }
.ctanote { margin-top: .8rem; font-size: .92rem; color: var(--faint); }
.btn {
  display: inline-block; font-family: "Company31 Sans", "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; }

/* Figure 1: the monogram, constructed. Guide circles whose radii sit in the
   golden ratio (47 : 76), a dashed sketch first — as imagined — then the ink
   drawn over it — as built. All CSS, drawn once, then still. */
.fig1 { width: 100%; max-width: 420px; margin-inline: auto; }
.fig1 svg { display: block; width: 100%; height: auto; }
.f1con circle, .f1con path { fill: none; stroke: var(--line); stroke-width: 1; }
.f1con { opacity: 0; animation: f1fade .9s .15s forwards; }
.f1dim path { fill: none; stroke: var(--gold); stroke-width: 1; }
.f1dim { opacity: 0; animation: f1fade .8s 2.1s forwards; }
.f1t text {
  font-family: "Company31 Mono", "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: var(--faint);
}
.f1t .f1gold { fill: var(--gold); }
.f1t { opacity: 0; animation: f1fade .8s 1.9s forwards; }
.f1sk path { fill: none; stroke: var(--faint); stroke-width: 1.75; stroke-dasharray: 6 5; stroke-linecap: round; }
.f1sk { opacity: 0; animation: f1half .7s .5s forwards; }
.f1ink { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.f1i3 { stroke-dasharray: 700; stroke-dashoffset: 700; animation: f1draw 1.2s 1s cubic-bezier(.5, 0, .2, 1) forwards; }
.f1i1 { stroke-dasharray: 400; stroke-dashoffset: 400; animation: f1draw .9s 1.7s cubic-bezier(.5, 0, .2, 1) forwards; }
.f1n circle { fill: var(--accent); opacity: 0; animation: f1fade .4s forwards; }
.f1n circle:nth-child(1) { animation-delay: 2.2s; }
.f1n circle:nth-child(2) { animation-delay: 2.35s; }
.f1n circle:nth-child(3) { animation-delay: 2.5s; }
.f1n circle:nth-child(4) { animation-delay: 2.65s; }
@keyframes f1fade { to { opacity: 1; } }
@keyframes f1half { to { opacity: .55; } }
@keyframes f1draw { to { stroke-dashoffset: 0; } }

/* The drawing's list of contents: which figure is on which part of the sheet.
   The dot echoes the node dots in Figure 1 and in the logo. */
.rail {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem 2.4rem;
  border-top: 1px solid var(--hairline); padding-top: 1rem;
}
.rail li { display: flex; }
.rail a {
  font-family: "Company31 Mono", "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 500; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint); text-decoration: none; line-height: 1.5; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: .6rem; min-height: 24px; padding-block: .35rem;
  transition: color .25s ease;
}
.rail a::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translateY(-2px);
}
.rail a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

/* fig. 2 · the shelf */
/* Four products: two across, so each card keeps a readable line length. */
.shelf { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2.6rem; align-items: stretch; }
.solcard {
  border-top: 1px solid var(--hairline); padding: 1.15rem 0 1.5rem;
  display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--text);
  transition: border-top-color .25s ease;
}
a.solcard:hover { border-top-color: var(--accent); }
.soltop { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.soltag { color: var(--accent-strong); letter-spacing: .14em; }
.sollive { color: var(--accent); display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .16em; }
.sollive i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: livepulse 2.4s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.solcard h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); letter-spacing: -.015em; }
.solcard p { font-size: .98rem; line-height: 1.6; color: var(--muted); }
.solcard p b { font-weight: 400; color: var(--text); font-family: "Company31 Mono", "Spline Sans Mono", monospace; font-size: .95em; }
.solcta { margin-top: auto; padding-top: .7rem; color: var(--accent); letter-spacing: .16em; text-decoration: none; }
.solfree { color: var(--accent); letter-spacing: .16em; }
.solmeta { color: var(--faint); letter-spacing: .12em; font-size: .65rem; }
a.solcard:hover .solcta, a.solcta:hover { text-decoration: underline; text-underline-offset: 4px; }
.labline {
  margin-top: .2rem; border-top: 1px solid var(--hairline); padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.4rem;
}
.labline .labtag { color: var(--accent-strong); letter-spacing: .14em; }
.labline p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
.labline p b { font-weight: 400; color: var(--text); font-family: "Company31 Mono", "Spline Sans Mono", monospace; font-size: .95em; }
.lablink { color: var(--accent); letter-spacing: .16em; text-decoration: none; }
.lablink:hover { text-decoration: underline; text-underline-offset: 4px; }
.labrepos .lablink::before { content: none; }
.labrepos { display: flex; flex-wrap: wrap; column-gap: 1.4rem; align-items: center; }
.labrepos a {
  font-family: "Company31 Mono", "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500;
  font-size: .85rem; letter-spacing: .02em; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 24px; padding-block: .1rem;
}
.labrepos a::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.labrepos a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* fig. 5 · in the margin. The side quests are doodles, not figures: pencil
   boxes pinned a little askew, each with a detail callout (letter over figure
   number) and a sketch that is inked in when you point at it. */
.sqgrid { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.8rem; }
.sqcard {
  display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem 1.2rem;
  border: 1px dashed var(--line); border-radius: 3px; background: var(--ground);
  color: var(--text); text-decoration: none; transform: rotate(-.6deg);
  transition: transform .3s ease, border-color .3s ease;
}
.sqcard:nth-child(even) { transform: rotate(.5deg); }
.sqcard:nth-child(3n) { transform: rotate(-.3deg); }
.sqcard:hover, .sqcard:focus-visible { transform: none; border-style: solid; border-color: var(--accent); }
.sqtop { display: flex; align-items: center; gap: .7rem; }
.sqtag { color: var(--accent-strong); letter-spacing: .14em; font-size: .65rem; }
.sqdet {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: grid; grid-template-rows: 1fr 1fr; place-items: center; position: relative;
  font-family: "Company31 Mono", "Spline Sans Mono", ui-monospace, monospace; line-height: 1; color: var(--accent);
}
.sqdet::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; border-top: 1px solid var(--accent); }
.sqdet b { font-weight: 500; font-size: .72rem; align-self: end; padding-bottom: 2px; }
.sqdet i { font-style: normal; font-size: .55rem; align-self: start; padding-top: 3px; }
.sqfig { display: block; margin: .2rem 0 .1rem; }
.sqfig svg { display: block; width: 100%; max-width: 200px; height: auto; margin-inline: auto; overflow: visible; }
.sqfig use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sqsk { stroke: var(--faint); stroke-width: 1; opacity: .5; }
.sqink {
  stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(.5, 0, .2, 1), opacity .15s ease;
}
.sqcard:hover .sqink, .sqcard:focus-visible .sqink { stroke-dashoffset: 0; opacity: 1; }
/* No pointer to hover with: show the inked drawing. */
@media (hover: none) { .sqink { stroke-dashoffset: 0; opacity: 1; transition: none; } }
.sqname { font-family: "Company31 Sans", "Bricolage Grotesque", serif; font-weight: 600; font-size: 1.2rem; letter-spacing: -.015em; }
.sqtext { font-size: .95rem; line-height: 1.55; color: var(--muted); }
.sqcta { margin-top: auto; padding-top: .5rem; color: var(--accent); letter-spacing: .16em; }
.sqcard:hover .sqcta, .sqcard:focus-visible .sqcta { text-decoration: underline; text-underline-offset: 4px; }

/* fig. 4 · faq */
.faq summary h3 { font: inherit; margin: 0; display: inline; }
.faq .qs { margin-top: .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: .95rem 0; font-family: "Company31 Sans", "Bricolage Grotesque", serif; font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Company31 Mono", "Spline Sans Mono", monospace; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\00b7"; }
.faq details p { padding: 0 0 1.1rem; max-width: 60ch; color: var(--muted); font-size: .98rem; }
.faq details p a { color: var(--accent); }

/* fig. 4 · sheet 2. The break line is the drafting convention for "this runs
   on somewhere else"; somewhere else is manuelre.com. */
.s2grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; margin-top: .3rem;
}
.s2link {
  display: block; max-width: 26rem; margin-top: 1.9rem; text-decoration: none; color: var(--text);
  border-top: 1px solid var(--line); padding-top: 1rem; transition: border-top-color .25s ease;
}
.s2link:hover { border-top-color: var(--accent); }
.s2label { display: block; color: var(--accent-strong); }
.s2url {
  display: block; margin-top: .5rem; color: var(--accent);
  font-family: "Company31 Sans", "Bricolage Grotesque", serif; font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.02em;
}
.s2link:hover .s2url { text-decoration: underline; text-underline-offset: 6px; }
.s2sub { display: block; margin-top: .55rem; color: var(--faint); }
.s2fig { max-width: 380px; width: 100%; margin-inline: auto; }
.s2fig svg { display: block; width: 100%; height: auto; }
.s2fig path { fill: none; stroke: var(--line); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.s2fig .s2ruled { stroke: var(--hairline); }
.s2fig .s2break { stroke: var(--faint); }
.s2fig text {
  font-family: "Company31 Mono", "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: .16em; fill: var(--faint);
}
.s2two > path:first-of-type { stroke: var(--accent); }
.s2arrow path { stroke: var(--accent); }
.s2arrow text { fill: var(--accent); }
.s2one   { opacity: 0; animation: f1fade .8s .2s forwards; }
.s2arrow { opacity: 0; animation: f1fade .6s 1s forwards; }
.s2two   { opacity: 0; animation: f1fade .9s 1.35s forwards; }

/* fig. 5 · write to me. No form, no funnel: one email address. */
.write { text-align: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
.write h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.02em; }
.write .makeword { font-style: italic; font-family: "Newsreader", serif; font-weight: 400; }
.write .label { margin-bottom: 1rem; }
.write .body { margin: 1rem auto 0; max-width: 40rem; font-size: 1.08rem; color: var(--muted); }
.write .writecta { margin-top: 1.9rem; }
.write .ctanote { margin-top: 1rem; }
.field { display: block; margin-top: 1.2rem; }
.field label { color: var(--accent-strong); display: block; margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1.02rem; line-height: 1.6; color: var(--text);
  background: var(--ground); border: 1px solid var(--card-border); border-radius: 12px;
  padding: .78rem 1rem; transition: border-color .25s ease, background .25s ease;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { background: var(--fill); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--flag); }
.field .hint { display: block; margin-top: .5rem; font-size: .88rem; color: var(--faint); line-height: 1.55; }

/* footer: the title block. Every working drawing ends in one — who drew it,
   for whom, to what method, which revision. */
footer { border-top: 1px solid var(--hairline); padding: 2.6rem 0 3rem; }
.titleblock {
  display: grid; grid-template-columns: auto 1fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 2px;
}
.tb {
  padding: .85rem 1.1rem .9rem; border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline);
}
.tb:first-child, .tb:nth-child(2), .tb:nth-child(3), .tb:nth-child(4) { border-top: 0; }
.tb:first-child, .tb:nth-child(5) { border-left: 0; }
.tb-logo { display: flex; align-items: center; justify-content: center; grid-row: span 2; padding-inline: 1.2rem; }
.tb-logo img { width: 44px; height: 44px; display: block; filter: var(--logo-fix); border-radius: 50%; }
.tb .mono { display: block; color: var(--accent); font-size: .62rem; margin-bottom: .3rem; }
.tb p { font-size: .95rem; line-height: 1.5; color: var(--muted); }
.tb p a { color: var(--accent); text-decoration: none; }
.tb p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.flinks { margin-top: 1.6rem; display: flex; align-items: center; 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; }
/* TODO: append the ABN to the fineprint once confirmed, and mirror it in the JSON-LD identifier. */
.fineprint { margin-top: 1.1rem; font-size: .8rem; color: var(--faint); text-align: center; }

/* footer styles still used by the legal pages */
.values { font-style: italic; color: var(--muted); font-size: 1.05rem; text-align: center; }
.facts { max-width: 52rem; margin: 1.6rem auto 0; font-size: .92rem; color: var(--faint); line-height: 1.7; text-align: center; }
footer .mark { width: 40px; height: 40px; margin: 2.4rem auto 0; display: block; filter: var(--logo-fix); border-radius: 50%; }

/* 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; }

/* 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: "Company31 Sans", "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; }

/* 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: "Company31 Mono", "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: "Company31 Mono", "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) {
  .herogrid { grid-template-columns: 1fr; }
  .fig1 { max-width: 320px; margin-top: .4rem; }
  .shelf { grid-template-columns: 1fr; }
  .sqgrid { grid-template-columns: 1fr 1fr; }
  .s2grid { grid-template-columns: 1fr; }
  .s2fig { max-width: 320px; }
  .figcap { flex-wrap: wrap; gap: .5rem 1.1rem; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-logo { display: none; }
  .tb:nth-child(2), .tb:nth-child(3) { border-top: 0; }
  .tb:nth-child(4) { border-top: 1px solid var(--hairline); }
  .tb:nth-child(2), .tb:nth-child(4), .tb:nth-child(6) { border-left: 0; }
  .tb:nth-child(3), .tb:nth-child(5), .tb:nth-child(7) { border-left: 1px solid var(--hairline); }
}

@media (max-width: 640px) {
  .hrow { flex-wrap: wrap; row-gap: .8rem; }
  .hnav { gap: .8rem; }
  .rail { gap: .65rem 1.3rem; }
  .sqgrid { grid-template-columns: 1fr; }
  .sqcard, .sqcard:nth-child(even), .sqcard:nth-child(3n) { transform: none; }
  .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; }
  .f1con, .f1dim, .f1t, .f1n circle { animation: none; opacity: 1; }
  .f1sk { animation: none; opacity: .55; }
  .f1i3, .f1i1 { animation: none; stroke-dashoffset: 0; }
  .sollive i { animation: none; }
  .solcard { transition: none; }
  .s2one, .s2arrow, .s2two { animation: none; opacity: 1; }
  .sqcard { transition: none; }
  .sqink { stroke-dashoffset: 0; opacity: 1; transition: none; }
  .consent-card { animation: none; }
}

/* ---- vision options ------------------------------------------------------
   User-controlled accommodations, persisted like the theme (c31-a11y) and
   stamped on <html> before first paint. Three switches: larger text (WCAG
   1.4.4), high contrast, and reduced motion for people whose OS preference
   isn't set but who want the page still. */

/* the header control */
.a11y { position: relative; }
.a11ybtn { font-family: "Company31 Sans", "Bricolage Grotesque", serif; font-weight: 600; font-size: .85rem; }
.a11ypanel {
  position: absolute; right: 0; top: calc(100% + .7rem); z-index: 80;
  background: var(--ground); border: 1px solid var(--card-border); border-radius: 12px;
  padding: .95rem 1.15rem 1rem; min-width: 12.5rem; display: grid; gap: .4rem;
  box-shadow: 0 10px 34px rgba(10, 22, 51, .18); text-align: left;
}
/* display:grid above would otherwise beat the hidden attribute's UA rule */
.a11ypanel[hidden] { display: none !important; }
.a11ypanel .mono { color: var(--accent); margin-bottom: .25rem; }
.a11ypanel label {
  display: flex; align-items: center; gap: .6rem; font-size: .97rem;
  color: var(--text); cursor: pointer; min-height: 24px; white-space: nowrap;
}
.a11ypanel input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* larger text: everything rem-based scales with the root, the serif body
   steps up with it */
html.a11y-text { font-size: 19px; }
html.a11y-text body { font-size: 20px; }

/* high contrast, light: pure ink on pure paper, solid rules, no grid */
html.a11y-contrast, html[data-theme="light"].a11y-contrast {
  --ground: #FFFFFF; --text: #000000;
  --muted: #1A1A1A; --faint: #262626;
  --accent: #1233A0; --accent-strong: #0D2470;
  --fill: #E4EDFC;
  --line: rgba(13, 36, 112, .65); --hairline: rgba(13, 36, 112, .4);
  --card-border: rgba(13, 36, 112, .65); --chip-border: rgba(13, 36, 112, .5);
  --grid: transparent; --grid5: transparent; --tool: transparent; --gold: #6E5200;
  --grad-a: #0D2470; --grad-b: #1233A0;
  --grad-btn-a: #0D2470; --grad-btn-b: #1233A0;
  --btn-text: #FFFFFF; --logo-fix: none; --flag: #8F1620;
}
/* high contrast, dark: pure white on pure black */
@media (prefers-color-scheme: dark) {
  html.a11y-contrast:not([data-theme="light"]) {
    --ground: #000000; --text: #FFFFFF;
    --muted: #E6E6E6; --faint: #D9D9D9;
    --accent: #8FB8FF; --accent-strong: #A9CCFB;
    --fill: rgba(143, 184, 255, .14);
    --line: rgba(143, 184, 255, .7); --hairline: rgba(143, 184, 255, .45);
    --card-border: rgba(143, 184, 255, .7); --chip-border: rgba(143, 184, 255, .55);
    --grid: transparent; --grid5: transparent; --tool: transparent; --gold: #FFD57E;
    --grad-a: #CFE2FF; --grad-b: #8FB8FF;
    --grad-btn-a: #8FB8FF; --grad-btn-b: #CFE2FF;
    --btn-text: #000000;
    --logo-fix: invert(.95) hue-rotate(190deg) saturate(1.2) brightness(1.35);
    --flag: #FFB3BA;
  }
}
html[data-theme="dark"].a11y-contrast {
  --ground: #000000; --text: #FFFFFF;
  --muted: #E6E6E6; --faint: #D9D9D9;
  --accent: #8FB8FF; --accent-strong: #A9CCFB;
  --fill: rgba(143, 184, 255, .14);
  --line: rgba(143, 184, 255, .7); --hairline: rgba(143, 184, 255, .45);
  --card-border: rgba(143, 184, 255, .7); --chip-border: rgba(143, 184, 255, .55);
  --grid: transparent; --grid5: transparent; --tool: transparent; --gold: #FFD57E;
  --grad-a: #CFE2FF; --grad-b: #8FB8FF;
  --grad-btn-a: #8FB8FF; --grad-btn-b: #CFE2FF;
  --btn-text: #000000;
  --logo-fix: invert(.95) hue-rotate(190deg) saturate(1.2) brightness(1.35);
  --flag: #FFB3BA;
}

/* manual reduced motion: mirrors the media query for people whose OS
   preference is not set */
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion .f1con, html.a11y-motion .f1dim, html.a11y-motion .f1t,
html.a11y-motion .f1n circle { animation: none; opacity: 1; }
html.a11y-motion .f1sk { animation: none; opacity: .55; }
html.a11y-motion .f1i3, html.a11y-motion .f1i1 { animation: none; stroke-dashoffset: 0; }
html.a11y-motion .s2one, html.a11y-motion .s2arrow,
html.a11y-motion .s2two { animation: none; opacity: 1; }
html.a11y-motion .sollive i { animation: none; }
html.a11y-motion .solcard { transition: none; }
html.a11y-motion .sqcard { transition: none; }
html.a11y-motion .sqink { stroke-dashoffset: 0; opacity: 1; transition: none; }
html.a11y-motion .consent-card { animation: none; }
