/* ==========================================================================
   Sapphire Road
   Cream paper, EB Garamond, one sapphire dot. Early Apple print ads and
   System 1 window chrome, rebuilt for 2026.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #FEFDF9;          /* logo background */
  --paper-2: #F5F2E9;        /* warm alternate band */
  --ink: #0B0B0D;            /* wordmark black */
  --ink-2: #47474F;          /* secondary text, 8.9:1 on paper */
  --rule: #0B0B0D;           /* 1px System 1 borders */
  --hair: #D9D4C6;
  --sapphire: #003490;       /* sampled from the logo dot */
  --accent: #003490;         /* sapphire used as text */
  --field: #003490;          /* full-bleed sapphire sections */
  --on-field: #FEFDF9;
  --signal: #7BC9FA;         /* the signposts in the poster */
  --hill: #11181C;           /* the poster hills */
  --road: #1553CC;
  --road-edge: #5E9CF2;
  --dither: rgba(0, 52, 144, .26);
  --shadow: #0B0B0D;

  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
  --bar: 56px;
  --frame: 5px;              /* the poster's heavy frame line */

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0E13;
    --paper-2: #131720;
    --ink: #F1EEE4;
    --ink-2: #B9B6AD;
    --rule: #F1EEE4;
    --hair: #2B303B;
    --sapphire: #2F62D8;
    --accent: #9DBBFF;
    --field: #0F2560;
    --on-field: #FEFDF9;
    --hill: #1B2230;
    --road: #2D6BE6;
    --road-edge: #7FB2FF;
    --dither: rgba(130, 170, 255, .2);
    --shadow: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C0E13;
  --paper-2: #131720;
  --ink: #F1EEE4;
  --ink-2: #B9B6AD;
  --rule: #F1EEE4;
  --hair: #2B303B;
  --sapphire: #2F62D8;
  --accent: #9DBBFF;
  --field: #0F2560;
  --on-field: #FEFDF9;
  --hill: #1B2230;
  --road: #2D6BE6;
  --road-edge: #7FB2FF;
  --dither: rgba(130, 170, 255, .2);
  --shadow: #000;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;       /* Garamond runs small, so body sits at 19px */
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 500; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; }
h1 em, h2 em { font-style: normal; }   /* headline emphasis is color only */
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.contact :focus-visible, .cta :focus-visible { outline-color: var(--on-field); }
.contact .win :focus-visible { outline-color: var(--accent); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: lining-nums;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--sapphire);
  margin-right: .6em;
  vertical-align: .08em;
}
h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); }
h2 em, h1 em { color: var(--accent); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 52rem; }
.section-head__lede { font-size: 1.3rem; color: var(--ink-2); max-width: 38rem; }
@media (min-width: 900px) {
  .section-head--split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px;
  font-size: 1.2rem; font-style: italic;
  text-decoration: underline; text-decoration-color: var(--hair);
}
.link-arrow::after { content: "→"; font-style: normal; transition: transform .2s ease; }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

.fig {
  font-variant-caps: all-small-caps; letter-spacing: .12em; font-style: normal;
  margin-right: .4em; color: var(--ink);
}

/* ---------- Buttons, System 1 style ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .55rem 1.5rem;
  border: 2px solid var(--rule); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-size: 1.15rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
}
/* the default-button ring from the original Macintosh dialogs */
.btn--default { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--rule); margin: 5px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--sapphire { background: var(--sapphire); color: #FEFDF9; border-color: var(--rule); }
.btn--sapphire:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--on-field); color: #0B0B0D; border-color: var(--on-field); box-shadow: 0 0 0 3px var(--field), 0 0 0 5px var(--on-field); }
.btn--light:hover { background: transparent; color: var(--on-field); }

/* ---------- Header as a menu bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar__inner {
  display: flex; align-items: center; gap: .25rem;
  height: var(--bar);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; margin-right: auto;
  text-decoration: none; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo__dot {
  display: inline-block; flex: none;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--sapphire);
}
.logo__word { font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; line-height: 1; }

.nav { position: relative; }
.nav__toggle {
  min-height: 44px; min-width: 44px; padding: 0 .9rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.15rem; font-weight: 500;
}
.nav__toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.nav__menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 13rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: .25rem 0;
}
.nav[data-open] .nav__menu { display: block; }
.nav__menu a {
  display: flex; align-items: center;
  min-height: 48px; padding: 0 1.1rem;
  font-size: 1.2rem; text-decoration: none;
}
/* classic menus invert on hover, instantly */
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--ink); color: var(--paper); outline-offset: -3px; }
.nav__menu a[aria-current="page"] { font-style: italic; }
.nav__menu a[aria-current="page"]::before { content: "✓"; font-style: normal; margin-left: -.85rem; width: .85rem; font-size: .9rem; }

.theme {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.theme__icon {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}
.theme:hover .theme__icon { background: var(--ink); }

@media (min-width: 960px) {
  :root { --bar: 60px; }
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex; position: static;
    min-width: 0; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav__menu a { min-height: 44px; padding: 0 .95rem; font-size: 1.15rem; }
  .nav__menu a[aria-current="page"]::before { content: none; }
  .nav__menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sapphire); text-decoration-thickness: 2px; text-underline-offset: .3em; }
  .nav__menu a[aria-current="page"]:hover { text-decoration: none; }
  .theme { margin-left: .5rem; }
}

/* ---------- Six sapphire stripes (the rainbow, in one hue) ---------- */
.stripes {
  height: 30px;
  background: linear-gradient(to bottom,
    #A9DDFB 0 16.666%, #7BC9FA 16.666% 33.333%, #3F8BE6 33.333% 50%,
    #1B5BCB 50% 66.666%, #003490 66.666% 83.333%, #001F5C 83.333% 100%);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: 3rem; }
.hero__copy { display: grid; gap: 1.5rem; align-content: center; }
.hero__title {
  font-size: clamp(3.2rem, 1.4rem + 7vw, 7.6rem);
  line-height: .92;
  letter-spacing: -.035em;
  margin-top: .25rem;
}
.hero__title em { display: inline-block; }
.hero__lede { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); line-height: 1.45; max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .5rem; }
.hero__index {
  display: flex; flex-wrap: wrap; gap: .25rem 0;
  padding-top: 1.5rem; margin-top: 1rem;
  border-top: 1px solid var(--hair);
  font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 1.05rem; color: var(--ink-2);
}
.hero__index span:not(:last-child)::after { content: "·"; margin-inline: .6em; color: var(--sapphire); }
.hero__plate { width: min(100%, 24rem); }
.hero__plate img { width: 100%; aspect-ratio: 1000 / 1517; }
figcaption { margin-top: .75rem; font-style: italic; font-size: 1rem; color: var(--ink-2); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .hero__plate { width: 100%; max-width: 30rem; justify-self: end; }
}

/* ---------- Services, a ruled index ---------- */
.services { padding-block: clamp(4rem, 9vw, 8rem); }
.svc-list { counter-reset: none; }
.svc {
  display: grid; gap: .9rem;
  padding-block: 2rem 2.4rem;
  border-top: 1px solid var(--rule);
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc__num { font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.svc__name { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); letter-spacing: -.03em; }
.svc__body { display: grid; gap: .6rem; max-width: 36rem; }
.svc__lead { font-style: italic; font-size: 1.4rem; line-height: 1.3; }
.svc__body p:not(.svc__lead) { color: var(--ink-2); }
.svc__deliver {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1.05rem;
}
.svc__deliver li {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: .15rem .8rem .25rem;
}

@media (min-width: 1000px) {
  .svc {
    grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2.6fr);
    column-gap: 2.5rem; align-items: start;
    padding-block: 2.6rem 2.8rem;
  }
  .svc__num { padding-top: .6rem; }
  .svc__deliver { display: grid; gap: .1rem; padding-top: .35rem; }
  .svc__deliver li { border: 0; padding: 0; }
  .svc__deliver li::before { content: "•"; color: var(--sapphire); margin-right: .5em; }
}

/* ---------- Software, the classic desktop ---------- */
.software {
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.software__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.software__copy { display: grid; gap: 1.25rem; align-content: start; }
.software__copy > p { font-size: 1.25rem; color: var(--ink-2); max-width: 34rem; }
.caps { display: grid; margin-top: 1rem; border-top: 1px solid var(--rule); }
.caps > div { padding-block: 1rem; border-bottom: 1px solid var(--hair); }
.caps dt { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.caps dd { color: var(--ink-2); }

.desk {
  position: relative;
  border: 1px solid var(--rule);
  background-color: var(--paper);
  background-image: repeating-conic-gradient(var(--dither) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
  padding: 2.75rem .75rem 1.25rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
  box-shadow: 4px 4px 0 var(--shadow);
}
.desk__menubar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: 1.1rem;
  height: 28px; padding-inline: .8rem;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  font-size: .95rem; font-weight: 600;
}
.desk__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sapphire); }

.win {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 2px 2px 0 var(--shadow);
  color: var(--ink);
}
.win__title {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 24px; margin: 0;
  border-bottom: 1px solid var(--rule);
  /* six pinstripes, exactly like the System 1 title bar */
  background:
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 3px)
    content-box;
  padding: 5px 3px 4px;
}
.win__close {
  position: absolute; left: 10px; top: 50%;
  width: 13px; height: 13px; transform: translateY(-50%);
  border: 1px solid var(--rule); background: var(--paper);
  box-shadow: 0 0 0 2px var(--paper);
}
.win__name {
  background: var(--paper); padding: 0 .6rem;
  font-size: 1rem; font-weight: 600; line-height: 1;
}
.win__body { padding: .9rem; }
.win__status {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--rule);
  font-size: .9rem; font-variant-numeric: lining-nums;
}

.cal {
  display: grid; grid-template-columns: 1.4rem repeat(5, minmax(0, 1fr)); gap: 3px;
  font-size: clamp(.68rem, .55rem + .5vw, .82rem); font-variant-numeric: lining-nums; line-height: 1.1;
}
.cal > span { min-height: 1.9rem; display: grid; place-items: center; border: 1px dotted var(--hair); overflow: hidden; white-space: nowrap; }
.cal > span:first-child, .cal__day, .cal__t { border: 0 !important; }
.cal__day { font-weight: 600; min-height: 1.4rem !important; }
.cal__t { color: var(--ink-2); justify-items: start !important; }
.cal .is-booked { background: var(--sapphire); color: #FEFDF9; border: 1px solid var(--sapphire); font-style: italic; }
.cal .is-held {
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, var(--hair) 0 1px, transparent 1px 4px);
  font-style: italic;
}

.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars span {
  flex: 1; height: var(--h);
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, var(--rule) 0 1px, transparent 1px 4px);
}
.bars .is-now { background: var(--sapphire); border-color: var(--sapphire); }

.code {
  margin: 0; overflow-x: auto;
  font-family: var(--mono); font-size: clamp(.64rem, .5rem + .6vw, .78rem); line-height: 1.6;
  font-variant-numeric: normal;
}
.code .c { color: var(--ink-2); font-style: italic; }
.code .k { color: var(--accent); font-weight: 500; }
.code .s, .code .n { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

.desk .win--chart { display: none; }

@media (min-width: 640px) {
  .desk .win--chart { display: block; }
}
@media (min-width: 900px) {
  .software__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .desk { display: block; padding: 0; }
  .desk .win { position: absolute; }
  .desk { position: sticky; top: calc(var(--bar) + 2rem); min-height: 580px; }
  .win--bookings { left: 4%; top: 60px; width: 60%; }
  .win--chart { right: 4%; top: 92px; width: 31%; z-index: 1; }
  .win--code { right: 6%; bottom: 32px; width: 58%; z-index: 2; }
}

/* Windows open in five hard steps, like the Finder's zoom rectangles.
   It marks the one section about software, and it is skipped entirely
   when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-zoom] { opacity: 0; }
  .js [data-zoom].is-open { animation: mac-zoom .42s steps(5, end) var(--d, 0ms) both; }
}
@keyframes mac-zoom {
  from { opacity: 1; transform: scale(.35); clip-path: inset(0 0 100% 0); }
  /* negative inset leaves room for the offset drop shadow */
  60%  { opacity: 1; clip-path: inset(-12px -12px -12px -12px); }
  to   { opacity: 1; transform: none; clip-path: inset(-12px -12px -12px -12px); }
}

/* ---------- Manifesto, the long-copy print ad ---------- */
.ad { padding-block: clamp(4rem, 9vw, 8rem); }
.ad__frame {
  border: var(--frame) solid var(--rule);
  padding: clamp(1.75rem, 6vw, 5.5rem) clamp(1.25rem, 6vw, 6rem) 0;
  display: grid; gap: 1.75rem;
}
.ad__eyebrow { justify-self: center; text-align: center; }
.ad__title {
  text-align: center; justify-self: center;
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.4rem);
  line-height: .95; letter-spacing: -.035em;
  max-width: 13ch;
}
.ad__cols {
  margin-top: 1.5rem;
  column-gap: 2.75rem;
  column-rule: 1px solid var(--hair);
  hyphens: auto;
  font-size: 1.2rem;
}
.ad__cols p + p { text-indent: 1.5em; }
.ad__cols p:first-child::first-letter {
  float: left;
  font-size: 4.6em; line-height: .8;
  padding: .06em .08em 0 0;
  color: var(--accent); font-weight: 500;
}
.ad__sign {
  display: flex; align-items: center; justify-content: flex-end; gap: .7rem;
  margin-inline: calc(clamp(1.25rem, 6vw, 6rem) * -1);
  margin-top: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 6vw, 6rem);
  border-top: var(--frame) solid var(--rule);
}
.ad__sign .logo__dot { width: 1.6rem; height: 1.6rem; }
.ad__sign-word { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
@media (min-width: 720px) { .ad__cols { columns: 2; text-align: justify; } }
@media (min-width: 1100px) { .ad__cols { columns: 3; } }

/* ---------- Process, the road ---------- */
.process {
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.scene { width: 100%; height: auto; margin-bottom: clamp(2rem, 4vw, 3.5rem); overflow: visible; }
.scene__sun { fill: var(--sapphire); }
.scene__hills { fill: var(--hill); }
.scene__road { fill: none; stroke: var(--road); stroke-width: 30; stroke-linecap: butt; }
.scene__line { fill: none; stroke: #FEFDF9; stroke-width: 2; stroke-dasharray: 14 12; opacity: .85; }
.scene__mask { fill: none; stroke: #fff; stroke-width: 44; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.post line { stroke: var(--signal); stroke-width: 2; }
.post rect { fill: var(--signal); }
.post { transition: opacity .3s ease; }
.js .scene[data-animate] .post:not(.is-lit) { opacity: .15; }

.stages { display: grid; gap: 2rem; counter-reset: none; }
.stage { display: grid; gap: .5rem; padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.stage__num {
  font-size: 1.1rem; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--ink-2);
  transition: color .3s ease;
}
.stage__num::before { content: "Stop "; }
.stage h3 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); letter-spacing: -.025em; }
.stage p { color: var(--ink-2); }
.stage.is-reached .stage__num { color: var(--accent); }
@media (min-width: 640px) { .stages { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (min-width: 1000px) { .stages { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Portrait, framed like the poster ---------- */
.portrait {
  border: var(--frame) solid var(--rule);
  background: var(--paper);
  width: 100%;
}
.portrait__art {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--sapphire);
  background-image: repeating-conic-gradient(rgba(255,255,255,.07) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
  display: grid; place-items: end start;
  padding: 1.25rem 1.5rem 1rem 1.5rem;
}
.portrait__sun {
  position: absolute; top: 12%; right: 14%;
  width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: var(--signal);
}
.portrait__initials {
  font-size: clamp(5rem, 3rem + 10vw, 11rem);
  font-style: italic; font-weight: 500; line-height: .8; letter-spacing: -.05em;
  color: #FEFDF9;
  padding: 0 0 .16em .16em;   /* room for the swash J to descend */
}
.portrait__caption {
  margin: 0;
  border-top: var(--frame) solid var(--rule);
  padding: .8rem 1rem .95rem;
  text-align: center;
  font-style: normal; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 500;
  letter-spacing: -.02em; line-height: 1; color: var(--ink);
}

/* ---------- Founder teaser ---------- */
.founder-teaser { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--rule); }
.founder-teaser__grid { display: grid; gap: 2.5rem; }
.portrait--sm { max-width: 22rem; }
.founder-teaser__copy { display: grid; gap: 1.25rem; align-content: center; max-width: 40rem; }
.founder-teaser__copy > p:not(.eyebrow) { font-size: 1.3rem; }
@media (min-width: 900px) {
  .founder-teaser__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .portrait--sm { max-width: none; }
}

/* ---------- Contact ---------- */
.contact {
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--field); color: var(--on-field);
}
.contact .eyebrow { color: var(--on-field); }
.contact .eyebrow::before { background: var(--signal); }
.contact h2 em { color: var(--signal); }
.contact__grid { display: grid; gap: 3rem; }
.contact__copy { display: grid; gap: 1.25rem; align-content: start; }
.contact__copy > p:not(.eyebrow) { font-size: 1.3rem; max-width: 30rem; }
.contact__sun { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--signal); margin-bottom: .5rem; }
.contact__direct a { color: var(--on-field); text-decoration-color: var(--signal); }
.contact__direct a:hover { color: var(--signal); }

.win--dialog { box-shadow: 5px 5px 0 #000; }
.form { display: grid; gap: 1.1rem; padding: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: 1.1rem; font-weight: 600; }
.opt { font-weight: 400; font-style: italic; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: .55rem .75rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 0;
  font-size: 1.15rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field [aria-invalid="true"] { border: 2px solid #B3261E; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.form__status { font-style: italic; color: var(--ink-2); flex: 1 1 12rem; }
.form__status:empty { display: none; }
.form__foot .btn { margin-left: auto; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; padding: 1.75rem; gap: 1.25rem 1.25rem; }
  .field--full, .form__foot { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* ---------- Footer ---------- */
.foot { background: var(--paper); padding-bottom: 2.5rem; }
.foot__mark {
  display: flex; align-items: center; gap: .15em;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(3.2rem, 1rem + 10.5vw, 11.5rem);
  font-weight: 500; letter-spacing: -.045em; line-height: 1;
  white-space: nowrap;
}
.foot__mark .logo__dot { width: .62em; height: .62em; margin-right: .12em; }
.foot__cols {
  display: grid; gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot__cols a { color: var(--ink); }
.foot__cols p { padding-top: .6rem; }
.foot__small { margin-top: 2.5rem; font-size: 1rem; color: var(--ink-2); }
@media (min-width: 900px) { .foot__cols { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ==========================================================================
   Founder page
   ========================================================================== */
.profile { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.profile__grid { display: grid; gap: 3rem; }
.profile__copy { display: grid; gap: 1.25rem; align-content: center; }
.profile__name {
  font-size: clamp(4rem, 1.5rem + 10vw, 10rem);
  line-height: .86; letter-spacing: -.045em;
}
.profile__name em { display: block; }
.profile__role { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-style: italic; line-height: 1.2; }
.profile__lede { font-size: 1.3rem; color: var(--ink-2); max-width: 34rem; }
.profile .portrait { max-width: 26rem; }
@media (min-width: 900px) {
  .profile__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .profile .portrait { justify-self: end; }
}

.story { padding-block: clamp(4rem, 9vw, 8rem); }
.story__grid { display: grid; gap: 2rem; }
.story__head { display: grid; gap: 1rem; }
.story__body { max-width: 38rem; font-size: 1.3rem; line-height: 1.6; }
.story__body p + p { margin-top: 1.1em; }
.story__body p:first-child { font-size: 1.55rem; line-height: 1.4; }
.story__body p:first-child::first-letter {
  float: left; font-size: 3.4em; line-height: .82;
  padding: .05em .08em 0 0; color: var(--accent); font-weight: 500;
}
.story__quote { border-top: var(--frame) solid var(--rule); padding-top: 1.25rem; max-width: 30rem; }
.story__quote blockquote p {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-style: italic; line-height: 1.2; letter-spacing: -.015em;
}
.story__quote blockquote p::before { content: "“"; color: var(--accent); margin-left: -.42em; }
.story__quote blockquote p::after { content: "”"; color: var(--accent); }
.story__cite { margin-top: 1rem; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--ink-2); }
@media (min-width: 1000px) {
  .story__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 7vw, 7rem); }
  .story__head { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .story__quote { align-self: start; position: sticky; top: calc(var(--bar) + 2rem); }
}

.facts {
  padding-block: clamp(4rem, 9vw, 8rem);
  background-color: var(--paper-2);
  background-image: repeating-conic-gradient(var(--dither) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
  border-block: 1px solid var(--rule);
}
.facts__grid { display: grid; gap: 2.5rem; }
.facts__copy {
  display: grid; gap: 1rem; align-content: start;
  background: var(--paper-2); padding: 1.5rem; border: 1px solid var(--rule);
}
.facts__copy > p:not(.eyebrow) { font-size: 1.25rem; color: var(--ink-2); }
.win--about { box-shadow: 4px 4px 0 var(--shadow); }
.win--about .win__body { padding: .5rem 1.25rem 1.25rem; }
.spec > div {
  display: grid; gap: .1rem;
  padding-block: .85rem; border-bottom: 1px dotted var(--ink-2);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--ink-2); font-size: 1.05rem; }
.spec dd { font-size: 1.2rem; line-height: 1.35; }
.status-dot {
  display: inline-block; width: .6em; height: .6em; border-radius: 50%;
  background: var(--sapphire); margin-right: .5em; vertical-align: .05em;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sapphire) 25%, transparent);
}
@media (min-width: 640px) {
  .spec > div { grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: baseline; }
}
@media (min-width: 900px) {
  .facts__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .facts__copy { padding: 2rem; }
}

.principles { padding-block: clamp(4rem, 9vw, 8rem); }
.rules { display: grid; gap: 0; }
.rule {
  display: grid; gap: .6rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
.rule:last-child { border-bottom: 1px solid var(--rule); }
.rule__num {
  font-size: clamp(3.5rem, 2.5rem + 3vw, 6rem); font-style: italic; line-height: .8; color: var(--accent);
  font-variant-numeric: oldstyle-nums;
}
.rule h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); letter-spacing: -.03em; }
.rule p { font-size: 1.25rem; color: var(--ink-2); max-width: 34rem; }
@media (min-width: 900px) {
  .rule { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, .8fr); column-gap: 3rem; align-items: baseline; }
  .rule:nth-child(even) { padding-left: clamp(0rem, 8vw, 9rem); }
}

.name { padding-block: clamp(4rem, 9vw, 8rem); background: var(--paper-2); border-top: 1px solid var(--rule); }
.name__grid { display: grid; gap: 2.5rem; }
.name__plate img { width: 100%; aspect-ratio: 1100 / 1407; border: var(--frame) solid var(--rule); }
.name__copy { display: grid; gap: 1.25rem; align-content: center; max-width: 36rem; }
.name__copy > p:not(.eyebrow) { font-size: 1.3rem; }
@media (min-width: 900px) {
  .name__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .name__plate { max-width: 34rem; }
}

.cta {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--field); color: var(--on-field);
  text-align: center;
}
.cta__inner { display: grid; justify-items: center; gap: 1.25rem; }
.cta h2 { font-size: clamp(3rem, 1.5rem + 6vw, 7rem); letter-spacing: -.04em; }
.cta h2 em { color: var(--signal); }
.cta p { font-size: 1.35rem; max-width: 30rem; }
.cta .btn { margin-top: 1rem; }

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

/* inline email links still get a 44px hit area */
.contact__direct a, .foot__cols p a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__cols p { padding-top: 0; }
.foot__cols p:not(:has(a)) { padding-top: .6rem; }
.foot__reach { display: grid; justify-items: start; }
.cta .contact__direct { font-size: 1.15rem; }
.cta .contact__direct a { color: var(--on-field); text-decoration-color: var(--signal); }
.cta .contact__direct a:hover { color: var(--signal); }

/* ==========================================================================
   Forms talking to the Worker
   ========================================================================== */
/* spam trap, off-screen for people, still in the DOM for bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field__err { color: #B3261E; font-size: 1rem; font-style: italic; }
.field__err:empty { display: none; }
:root[data-theme="dark"] .field__err { color: #FFB4AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__err { color: #FFB4AB; } }
.field__hint { color: var(--ink-2); font-size: 1rem; }
.form__status[data-tone="error"] { color: #B3261E; font-style: normal; }
:root[data-theme="dark"] .form__status[data-tone="error"] { color: #FFB4AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form__status[data-tone="error"] { color: #FFB4AB; } }
.form__banner {
  grid-column: 1 / -1;
  padding: .75rem 1rem; border: 1px solid var(--rule);
  background: var(--paper-2); font-style: italic;
}
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.btn[aria-busy="true"]::after {
  content: ""; width: .8em; height: .8em; margin-left: .6em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy="true"]::after { animation: spin .8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success card shared by enquiry and payment */
.pay__result { display: grid; gap: .9rem; justify-items: start; padding: 2rem 1.5rem 2.25rem; }
.pay__result[hidden] { display: none; }
.pay__result:focus { outline: none; }
.pay__stamp {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--sapphire);
  display: grid; place-items: center;
}
.pay__stamp::after { content: "✓"; color: #FEFDF9; font-size: 1.6rem; line-height: 1; }
.pay__result-title { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); letter-spacing: -.03em; }
.pay__result-amount { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.pay__result-amount:empty { display: none; }
.pay__result p:not(.pay__result-amount) { font-size: 1.2rem; color: var(--ink-2); max-width: 30rem; }

/* ---------- Pay page ---------- */
.pay {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 8vw, 7rem);
  background-color: var(--paper-2);
  background-image: repeating-conic-gradient(var(--dither) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
  border-bottom: 1px solid var(--rule);
}
.pay__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.pay__copy {
  display: grid; gap: 1.25rem; align-content: start;
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.pay__title { font-size: clamp(3rem, 1.6rem + 5vw, 5.75rem); line-height: .95; letter-spacing: -.035em; }
.pay__lede { font-size: 1.3rem; }
.assure { display: grid; border-top: 1px solid var(--rule); }
.assure li { padding-block: .85rem; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.assure li:last-child { border-bottom: 0; }
.assure strong { color: var(--ink); font-weight: 600; }
.assure a { color: var(--ink); overflow-wrap: anywhere; }

.win--pay { box-shadow: 5px 5px 0 var(--shadow); align-self: start; }
.field--amount label { font-size: 1.2rem; }
.amount {
  display: flex; align-items: center;
  border: 2px solid var(--rule); background: var(--paper);
}
.amount:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.amount__sym { padding-left: 1rem; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); color: var(--ink-2); line-height: 1; }
.field .amount input {
  border: 0; min-height: 76px; padding: .25rem .75rem .25rem .35rem;
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); letter-spacing: -.01em;
  font-variant-numeric: lining-nums tabular-nums;
  background: transparent;
}
.field .amount input:focus-visible { outline: none; }
.field .amount input::placeholder { color: var(--hair); }
.amount:has([aria-invalid="true"]) { border-color: #B3261E; }
.pay__fine {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; color: var(--ink-2);
  padding-top: .9rem; border-top: 1px solid var(--hair);
}
.lock {
  flex: none; position: relative; width: 12px; height: 9px; margin-top: 5px;
  background: var(--ink-2); border-radius: 1px;
}
.lock::before {
  content: ""; position: absolute; left: 2px; bottom: 7px; width: 8px; height: 7px;
  border: 1.5px solid var(--ink-2); border-bottom: 0; border-radius: 5px 5px 0 0;
}
@media (min-width: 960px) {
  .pay__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
}
.assure a { display: inline-flex; align-items: center; min-height: 44px; }

/* "Paying an invoice?" beside the enquiry form, a secondary button on the sapphire field */
.contact__pay {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  margin-top: .75rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--on-field) 30%, transparent);
}
.contact__pay p { font-size: 1.3rem; }
.btn--outline-light { background: transparent; color: var(--on-field); border-color: var(--on-field); }
.btn--outline-light:hover { background: var(--on-field); color: #0B0B0D; }

/* ---------- Cookie notice, a System 1 alert box ---------- */
.consent {
  position: fixed; z-index: 60;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 27rem;
  box-shadow: 4px 4px 0 var(--shadow);
}
.consent__body {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem;
  padding: 1.1rem 1.1rem .4rem;
}
.consent__icon { width: 52px; height: 52px; }
.consent__dough { fill: var(--paper-2); stroke: var(--rule); stroke-width: 1.5; }
.consent__chip { fill: var(--sapphire); }
.consent__title { font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.consent__text { margin-top: .35rem; font-size: 1.05rem; line-height: 1.45; color: var(--ink-2); }
.consent__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem .75rem; padding: .4rem 1.1rem 1.1rem; }
.consent__actions .btn { min-width: 7.25rem; }
@media (min-width: 640px) {
  .consent { left: var(--gutter); right: auto; bottom: 1.5rem; }
}
/* opens with the same stepped Finder zoom as the other windows */
@media (prefers-reduced-motion: no-preference) {
  .consent.is-open { transform-origin: bottom left; animation: mac-zoom .42s steps(5, end) both; }
}
.linkish {
  background: none; border: 0; padding: 0; margin-left: .35em;
  min-height: 44px; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.linkish:hover { color: var(--accent); }

/* the open letter is signed by John, with the studio mark opposite */
.ad__sign { justify-content: space-between; flex-wrap: wrap; row-gap: .5rem; }
.ad__sign-name { font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--ink-2); }
.ad__sign-mark { display: inline-flex; align-items: center; gap: .7rem; margin-left: auto; }
