/* Self-hosted webfonts. No third-party request, no visitor IP sent to a
   font CDN, and the Content-Security-Policy can stay locked to self.
   Regenerate with tools/fetch-fonts.py. */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Revlun — "Renaissance gallery on putty paper", after the Structured reference.
   Putty canvas, ink rooms, hard cuts. Painted landscapes full-bleed with the
   wordmark standing inside them. No shadows, no gradients, no saturated colour. */

:root {
  --putty:    #c4c3b6;
  --bone:     #e7e5e4;
  --chalk:    #ebebeb;
  --ink:      #000000;
  --vellum:   #dfdcd5;
  --graphite: #595855;   /* large text and borders only: 4.0:1 on putty */
  --muted:    #4a4945;   /* small text: 5.1:1 on putty */
  --ink-line: #2c2b29;
  --ink-text: #a3a19c;

  --serif: "Bodoni Moda", "Canela", "Tiempos Headline", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* Bodoni thins its hairlines as the optical size rises. Pin it to a text size so
     the strokes hold at display scale. */
  --display-vf: "opsz" 12, "wght" 520;

  --r-card: 9px;
  --r-link: 2px;
  --notch: 12px;

  --gap: clamp(80px, 9vw, 128px);
  --rule: 1px solid var(--vellum);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--putty);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-optical-sizing: none;
  font-variation-settings: var(--display-vf);
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 94px); }
h2 { font-size: clamp(34px, 4.6vw, 66px); }
h3 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; }
h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }

/* The reference's headline device: italic lowercase against roman capitals. */
em, .it { font-style: italic; font-variation-settings: "opsz" 12, "wght" 480; }
h1 em, h2 em, h3 em, .display em { letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: var(--r-link); }
a:hover { text-decoration-color: var(--graphite); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-link); }
.band--ink :focus-visible, .painting :focus-visible, .site-nav--dark :focus-visible { outline-color: var(--bone); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 40;
  background: var(--ink); color: var(--bone);
  padding: 10px 18px; font-size: 14px; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shell ---------- */

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }

.band { padding-block: var(--gap); }
.band--ink { background: var(--ink); color: var(--bone); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--bone); }
.band--ink .note, .band--ink .muted { color: var(--ink-text); }
.band--bone { background: var(--bone); }
.band--tight { padding-block: clamp(48px, 6vw, 72px); }

/* ---------- navigation: a small mark and a tiny stacked column, as the reference ---------- */

.site-nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: var(--ink);
}
.site-nav .wrap {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 22px;
}
.site-nav a { text-decoration: none; }
.nav-mark {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em; line-height: 1;
  font-optical-sizing: none; font-variation-settings: "opsz" 10, "wght" 560;
  padding: 4px 0;
}
.nav-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.02em; line-height: 1;
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 0;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

.site-nav--dark, .site-nav--dark .nav-links a { color: var(--bone); }
.site-nav--dark .nav-links a { color: #cfcdc8; }
.site-nav--dark .nav-links a:hover, .site-nav--dark .nav-links a[aria-current="page"] { color: var(--bone); }

.nav-toggle {
  display: none; background: none; border: 0; color: inherit;
  padding: 6px 0; min-height: 24px; font: inherit; font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* Pages without a hero scene need room under the absolute nav. */
main > .band:first-child { padding-top: calc(var(--gap) + 40px); }

/* ---------- buttons: the notched hexagon from the reference ---------- */

.pill {
  position: relative; display: inline-block; isolation: isolate;
  color: var(--bone);
  padding: 13px 34px;
  font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 0; font-family: inherit; cursor: pointer;
  background: none;
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% 50%,
                     calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 50%);
  transition: background .18s;
}
.pill:hover::before { background: var(--graphite); }
.pill--ghost { color: var(--ink); }
.pill--ghost::before { background: var(--bone); }
.pill--ghost:hover::before { background: var(--vellum); }
/* A ghost button on a bone surface would vanish; it takes the canvas tone there. */
.consent-panel .pill--ghost::before, .band--bone .pill--ghost::before,
.card .pill--ghost::before { background: var(--putty); }
.consent-panel .pill--ghost:hover::before, .band--bone .pill--ghost:hover::before,
.card .pill--ghost:hover::before { background: var(--vellum); }
.band--ink .pill, .painting .pill { color: var(--ink); }
.band--ink .pill::before, .painting .pill::before { background: var(--bone); }
.band--ink .pill:hover::before, .painting .pill:hover::before { background: var(--chalk); }
.pill:disabled { opacity: .6; cursor: default; }

/* ---------- hero scene: the wordmark stands inside the painting ---------- */

.hero-scene {
  position: relative; overflow: hidden;
  min-height: min(100svh, 980px);
  background: #e6e3d9;
  display: grid; align-items: start; justify-items: center;
}
.hero-scene > img, .hero-mist {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* Depth offsets come from scene.js. Unset without it, so the painting is exactly as drawn. */
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--overscan, 1));
}
.hero-scene .hero-front, .hero-mist { pointer-events: none; }
/* Planes are scaled a touch past the frame so a shifted one never shows its edge.
   scene.js keeps pointer travel inside this spare 2.5% a side. */
.hero-scene.is-deep > img { --overscan: 1.05; will-change: transform; }

.hero-cluster {
  position: relative; z-index: 2; text-align: center;
  padding-top: clamp(88px, 12vh, 140px);
  display: grid; justify-items: center; gap: 14px;
}
.hero-line {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 0; max-width: none;
  font-optical-sizing: none; font-variation-settings: "opsz" 12, "wght" 500;
}
.hero-meta {
  font-family: var(--serif); font-size: clamp(15px, 1.3vw, 18px); margin: 0;
  color: var(--muted); letter-spacing: 0.01em;
  font-optical-sizing: none; font-variation-settings: "opsz" 10, "wght" 520;
}
.hero-meta span + span { margin-left: 1.6em; }
.hero-cluster .pill { margin-top: 10px; font-size: 13px; padding: 10px 26px; }

.wordmark {
  position: absolute; left: 50%; top: 42%;
  transform: translate3d(calc(-50% + var(--px, 0px)), var(--py, 0px), 0);
  z-index: 1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(140px, 33vw, 600px);
  line-height: .8; letter-spacing: -0.045em; white-space: nowrap;
  margin: 0; color: var(--ink);
  font-optical-sizing: none; font-variation-settings: "opsz" 14, "wght" 500;
}

/* ---------- vignettes: circular crops on black with serif captions above ---------- */

.vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.vignette { display: grid; justify-items: center; text-align: center; gap: 22px; }
.vignette h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; }
.vignette .plate--round { width: min(100%, 250px); }
.vignette p { max-width: 30ch; }
.vignette a { text-decoration: none; display: grid; justify-items: center; gap: 22px; }
.vignette a:hover img { opacity: .88; }
.hex {
  width: 16px; height: 18px; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex--open { width: 22px; height: 12px; background: none; border: 1px solid currentColor; opacity: .55;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }

/* ---------- columns: hairline cards with line diagrams, as the use-cases section ---------- */

.section-label {
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.02em;
  margin: 0 0 28px; color: inherit;
  font-optical-sizing: none; font-variation-settings: "opsz" 10, "wght" 520;
}
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.column {
  border: 1px solid var(--ink-line); padding: 0 22px 26px;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 340px;
}
.column svg { width: 100%; height: auto; margin: 0 -22px; width: calc(100% + 44px); }
.column h3 { font-size: clamp(22px, 2vw, 30px); margin: 18px 0 10px; }
.column p { font-size: 13px; line-height: 1.55; max-width: none; }
.column a { text-decoration: none; }
.column a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- painting: a full-bleed landscape with type set into it ---------- */

.painting {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92svh, 900px);
  background: #e6e3d9; color: var(--ink);
  display: grid;
}
.painting > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.painting .wrap { position: relative; display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 96px); }

.display {
  font-family: var(--serif); text-align: center;
  font-size: clamp(38px, 5.4vw, 78px); line-height: 1.0; letter-spacing: -0.02em;
  margin: 0 auto; max-width: 18ch; text-wrap: balance;
  font-optical-sizing: none; font-variation-settings: var(--display-vf);
}
.painting-aside {
  justify-self: end; max-width: 30ch; font-size: 13px; line-height: 1.55;
  display: grid; gap: 14px; justify-items: start;
  background: rgba(230, 227, 217, .72); padding: 18px 20px;
}
.painting-aside p { max-width: none; margin: 0; }
.painting--bottom .wrap { align-content: end; }

/* ---------- notched card: the dark product card on a painting ---------- */

.notch-card {
  background: var(--ink); color: var(--bone);
  padding: clamp(28px, 3.6vw, 48px);
  max-width: 460px;
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch),
                     100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%,
                     var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  display: grid; gap: 16px; justify-items: start;
}
.notch-card h2 { color: var(--bone); font-size: clamp(28px, 3vw, 44px); }
.notch-card p { color: var(--ink-text); font-size: 14px; max-width: none; }
.notch-card .pill { color: var(--ink); }
.notch-card .pill::before { background: var(--bone); }
.notch-card .pill:hover::before { background: var(--chalk); }
.notch-card--right { justify-self: end; }

/* ---------- full-bleed figures on inner pages ---------- */

figure { margin: 0; }
.bleed { width: 100%; }
.bleed img { width: 100%; height: clamp(280px, 52vw, 640px); object-fit: cover; }
figcaption { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; max-width: 46ch; }
.band--ink figcaption { color: var(--ink-text); }
.wrap > figcaption, .bleed + figcaption { padding-inline: clamp(20px, 5vw, 72px); }

.plate { width: 100%; background: var(--bone); overflow: hidden; aspect-ratio: 3 / 2; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--tall { aspect-ratio: 4 / 5; }
.plate--wide { aspect-ratio: 21 / 9; }
.plate--round { aspect-ratio: 1; border-radius: 50%; }

/* ---------- layout blocks ---------- */

.section-head {
  display: grid; gap: clamp(16px, 3vw, 48px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end; border-top: var(--rule); padding-top: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head--plain { border-top: 0; padding-top: 0; }
.band--ink .section-head { border-top-color: var(--ink-line); }

.doors { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door h3 { margin: 22px 0 10px; }
.door a { text-decoration: none; }
.door a:hover img { opacity: .88; }
.door-more { font-size: 15px; text-decoration: underline; text-decoration-color: var(--graphite); }

.grid-3 { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-aside { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.card { background: var(--bone); border: var(--rule); border-radius: var(--r-card); padding: clamp(22px, 2.4vw, 34px); }
.band--ink .card { background: #0d0d0d; border-color: var(--ink-line); }
.card h3 { margin-bottom: 12px; }
.card h4 { margin-bottom: 8px; }
.card p { max-width: none; }

.stack > * + * { margin-top: clamp(28px, 3vw, 44px); }
.stack-sm > * + * { margin-top: 14px; }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.phase { border-top: 1px solid currentColor; padding-top: 18px; }
.phase h3 { margin-bottom: 8px; }
.phase .hex { margin-bottom: 14px; }

.deliverables { list-style: none; margin: 0; padding: 0; }
.deliverables li { border-top: var(--rule); padding: 14px 0 14px 26px; position: relative; max-width: var(--measure); }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 11px; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.band--ink .deliverables li { border-top-color: var(--ink-line); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: var(--rule); }
th { font-weight: 600; font-size: 13px; }
tbody th {
  font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -0.01em;
  font-optical-sizing: none; font-variation-settings: "opsz" 10, "wght" 560;
}
.table-caption { text-align: left; margin-bottom: 12px; }

blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 56px); line-height: 1.1;
  letter-spacing: -0.02em; max-width: 20ch;
  font-optical-sizing: none; font-variation-settings: var(--display-vf);
}
blockquote cite { display: block; font: 400 15px/1.5 var(--sans); font-style: normal; margin-top: 24px; color: var(--muted); }

.faq { border-top: var(--rule); }
.faq-item { border-bottom: var(--rule); padding: clamp(20px, 2.4vw, 30px) 0; }
.faq-item h3 { margin-bottom: 12px; max-width: 24ch; }
.faq-item p { max-width: 72ch; }
.band--ink .faq { border-top-color: var(--ink-line); }
.band--ink .faq-item { border-bottom-color: var(--ink-line); }

.prose { max-width: 980px; }
.prose > h2 { font-size: clamp(26px, 2.8vw, 40px); max-width: 20ch; margin-top: clamp(36px, 4vw, 52px); }
.prose > h2:first-of-type { margin-top: 0; }
.prose > h3 { font-size: clamp(20px, 2vw, 26px); margin-top: 28px; }
.prose > p, .prose > ul { max-width: var(--measure); }

.divider {
  height: clamp(60px, 8vw, 110px);
  background: url("../img/divider-wash.svg") center / cover no-repeat;
  background-color: var(--putty);
}
.band--bone + .divider { background-color: var(--bone); }

.u-mt-1 { margin-top: 18px; }
.u-mt-2 { margin-top: 36px; }
.u-mt-3 { margin-top: clamp(36px, 4vw, 56px); }
.u-mb-1 { margin-bottom: 20px; }
.u-mb-2 { margin-bottom: 32px; }
.nowrap { white-space: nowrap; }

.link-button {
  font: inherit; font-size: 15px; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* ---------- forms ---------- */

form { max-width: 620px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; margin-bottom: 7px; }
.field-optional { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bone); border: 1px solid var(--graphite); border-radius: var(--r-card); padding: 12px 14px;
}
.field textarea { min-height: 148px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; font-size: 15px; }
.form-status:empty { margin: 0; }
.form-errors { border: 1px solid var(--ink); border-left-width: 4px; border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 28px; background: var(--bone); }
.form-errors p { font-weight: 600; margin-bottom: 8px; }
.form-errors ul { margin: 0; padding-left: 20px; font-size: 15px; }
.form-errors li { margin-bottom: 4px; }
.form-errors:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.field-error { font-size: 14px; margin: 7px 0 0; font-weight: 500; }
.field-error::before {
  content: ""; display: inline-block; width: 10px; height: 11px; margin-right: 8px; background: currentColor;
  vertical-align: baseline; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.field [aria-invalid="true"] { border-width: 2px; border-color: var(--ink); }

/* ---------- consent ---------- */

.consent { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: clamp(12px, 3vw, 28px); background: rgba(0, 0, 0, .38); }
body.consent-open { overflow: hidden; }
.consent-panel { background: var(--bone); border: 1px solid var(--ink); border-radius: var(--r-card); padding: clamp(22px, 3vw, 34px); width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; }
.consent-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.consent-panel p { max-width: none; }
.consent-options { margin-top: 20px; border-top: var(--rule); }
.consent-option { border-bottom: var(--rule); }
.consent-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; font-size: 15px; }
.consent-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #000; }
.consent-row .note { display: block; margin-top: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.consent-link { font: inherit; font-size: 15px; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px 4px; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; }
.consent-legal { list-style: none; display: flex; gap: 20px; margin: 18px 0 0; padding: 0; font-size: 14px; }
.consent-legal a { display: inline-block; padding: 4px 0; min-height: 24px; }

/* ---------- footer: the giant wordmark ---------- */

.site-footer { background: var(--chalk); color: var(--ink); overflow: hidden; padding-top: clamp(40px, 5vw, 64px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(28px, 5vw, 80px); align-items: start; }
.footer-cta { max-width: 44ch; }
.footer-cta h2 { font-size: clamp(26px, 2.6vw, 36px); }
.site-footer .footer-heading { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-list li { margin-bottom: 2px; }
.footer-list a, .footer-list .link-button { display: inline-block; padding: 4px 0; min-height: 24px; font-size: 13px; }
.footer-mark {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(96px, 24vw, 420px); line-height: .78; letter-spacing: -0.05em;
  margin: clamp(32px, 4vw, 64px) 0 0; white-space: nowrap;
  font-optical-sizing: none; font-variation-settings: "opsz" 14, "wght" 500;
  transform: translateY(0.06em);
}
.footer-legal { border-top: var(--rule); padding: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between; }
.footer-legal p { margin: 0; max-width: 60ch; font-size: 13px; }
.page-access .footer-cta, .page-admin .footer-cta { display: none; }

/* ---------- admin ---------- */

.admin-signin { max-width: 380px; margin-top: 8px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: var(--rule); border-bottom: var(--rule); padding: 16px 0; margin-bottom: 28px; }
.admin-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-count { font-size: 13px; border: 1px solid var(--graphite); padding: 5px 14px; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.admin-filter { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.admin-filter select, .queue-controls select { font: inherit; font-size: 15px; background: var(--bone); color: var(--ink); border: 1px solid var(--graphite); border-radius: var(--r-card); padding: 8px 12px; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.queue-item { background: var(--bone); border: var(--rule); border-left: 4px solid var(--graphite); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 30px); }
.queue-item--new { border-left-color: var(--ink); }
.queue-item--shortlisted { border-left-color: #6f7560; }
.queue-item--contacted { border-left-color: #9c8558; }
.queue-item--declined { border-left-color: var(--vellum); opacity: .72; }
.queue-head h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 4px; }
.queue-head .note { margin-bottom: 16px; }
.queue-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; margin-bottom: 16px; }
.queue-fields > div { display: flex; flex-direction: column; font-size: 15px; }
.queue-label { font-size: 13px; color: var(--muted); }
.queue-message { white-space: pre-wrap; max-width: 70ch; border-top: var(--rule); padding-top: 14px; margin-bottom: 16px; }
.queue-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.page-admin .footer-list li:has([data-consent-open]) { display: none; }

/* ---------- process: what each phase hands over, drawn above one continuous line ---------- */

.phases--drawn .phase { border-top: 0; padding-top: 0; }
.artefact { width: 100%; max-width: 220px; height: auto; }
.phase-mark { position: relative; margin: 18px 0 16px; }
.phase-mark::before {
  content: ""; position: absolute; left: 0; top: 50%;
  right: calc(-1 * clamp(20px, 3vw, 40px)); /* runs through the column gap to the next phase */
  border-top: 1px solid currentColor;
}
.phase:last-child .phase-mark::before { right: 0; }
.phases--drawn .phase-mark .hex { position: relative; margin: 0; }

/* ---------- floor model: two routes through one plan, drawn by scene.js ---------- */

.model { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.model-stage {
  position: relative; aspect-ratio: 16 / 10; max-width: 100%;
  color: var(--ink); background-color: var(--putty); /* scene.js draws in these */
  cursor: grab; touch-action: pan-y; user-select: none;
}
.model-stage.is-dragging { cursor: grabbing; }
.model-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.model-controls { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.model-toggle { display: flex; flex-wrap: wrap; gap: 10px; }
.model-hint { margin: 0; }
.pill--ghost[aria-pressed="true"] { color: var(--bone); }
.pill--ghost[aria-pressed="true"]::before { background: var(--ink); }
.model-key {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);
  max-width: none; margin-top: 0; font-size: 15px; color: var(--ink);
  border-top: var(--rule); padding-top: 22px;
}
.model-key h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(20px, 2vw, 26px); margin-bottom: 10px; }
.model-key p { max-width: 52ch; }
.route-line { flex: none; width: 40px; border-top: 2px solid currentColor; }
.route-line--dashed { border-top-style: dashed; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-aside, .doors, .footer-top, .phases, .field-row, .section-head,
  .vignettes, .columns, .model-key { grid-template-columns: minmax(0, 1fr); }
  .phase-mark::before { right: 0; }
  .phases { gap: 0; }
  .phase { padding-block: 18px; }
  .lede { max-width: none; }
  .column { min-height: 0; }
  .painting-aside { justify-self: stretch; max-width: none; }
  .notch-card--right { justify-self: stretch; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { align-items: flex-end; padding-top: 8px; }
  .nav-links[hidden] { display: none; }
  .nav-links a { font-size: 15px; padding: 6px 0; }
  .site-nav .wrap { flex-wrap: wrap; }
  .site-nav .nav-toggle { order: 2; }
  .site-nav .nav-links { order: 3; flex-basis: 100%; }
  .wordmark { top: 46%; }
  .model-stage { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --muted: #2f2e2c; --vellum: #9a978f; --graphite: #3a3936; }
  .card, .plate { border: 1px solid var(--ink); }
  .painting-aside { background: var(--bone); }
}

@media (forced-colors: active) {
  .pill::before, .column, .card, .consent-panel, .notch-card { border: 1px solid; }
  .hex, .deliverables li::before, .field-error::before { background: CanvasText; }
  :focus-visible { outline: 2px solid CanvasText; }
  .artefact g { stroke: CanvasText; }
  .artefact [fill^="#"] { fill: Canvas; }
  .pill[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
}

@media print {
  .site-nav, .skip, .consent { display: none; }
  body { background: #fff; }
}
