/* Annotated: annotated.in (version 2, "marked in red pencil")
   Colours and typefaces are the Annotated brand kit's tokens, unchanged.
   The idea: the page is set in ink on paper, and each screen carries one mark
   in red pencil that draws itself: a loop, an insertion, a strike, an underline.
   Everything is readable without JavaScript. Motion is added by assets/js/site.js. */

/* ---------- typefaces, served from this site ----------
   Newsreader, Inter and JetBrains Mono (SIL Open Font License; the licence texts sit beside the files in assets/fonts).
   Each face comes in two files: "latin" covers English, and "latin-ext" (which holds the rupee sign) is fetched only
   if a page uses a character from it. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; 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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-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: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-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: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/newsreader-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; }

:root {
  --ink: #1A1714;
  --paper: #F6F2EA;
  --red: #C1272D;
  --blue-black: #1F3A5F;
  --bone: #FBF8F2;
  --vellum: #EDE7DB;
  --rule: #D9D1C2;
  --pencil: #8A8276;
  --graphite: #5E574E;
  --charcoal: #2B2622;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4.6vw, 72px);
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Smooth travel between sections is asked for by site.js, link by link. Setting scroll-behavior here would
   also slow the scroll library's own measuring jumps and leave its positions wrong after a reload. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/26px var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ins { text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue-black); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; } /* a section that received focus after its link was followed */

/* ---------- shared pieces ---------- */

.wrap { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font: 500 12px/16px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* A link's underline: a quiet rule at rest, drawn over in ink on hover. */
.ul {
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0 1px, 100% 1px;
  transition: background-size .5s var(--ease-out);
}
.ul:hover, a:hover > .ul, a:focus-visible > .ul { background-size: 100% 1px, 100% 1px; }

.tap { display: inline-flex; align-items: center; min-height: 44px; }

.arr { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; transition: transform .4s var(--ease-out), opacity .3s var(--ease); }
.arr path { stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 40;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font: 500 14px/22px var(--sans);
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Display lines. Each .ln is one line; its .ln-in rises into place through the line's mask. */
.ln { display: block; padding-bottom: .14em; margin-bottom: -.14em; }
.ln-in { display: block; }

/* ---------- red pencil ----------
   site.js draws each mark as an SVG path fitted to its word, and sets html.marks.
   Until then (or if the script never runs) plain CSS stands in for the strike and the underline. */
.mk { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; } /* the pencil darkens the ink it crosses, and stays the brand's exact red on paper */
.mk-svg { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; mix-blend-mode: multiply; }
.mk-svg path, .leader path { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s var(--ease); }
.leader { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

html:not(.marks) del .mk { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
html:not(.marks) .mail .mk { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* Words written in above the line, with a caret under them. */
.ins { position: relative; display: inline-block; width: .06em; height: 1em; vertical-align: baseline; isolation: isolate; }
.ins ins {
  position: absolute; left: 50%; bottom: 2.05em; /* in its own, smaller em: just clear of the capitals */
  transform: translateX(-42%) rotate(-4deg); transform-origin: 50% 100%;
  white-space: nowrap;
  font: italic 400 .42em/1 var(--serif); letter-spacing: 0;
  color: var(--red);
}
.ins .mk-svg { left: 0; top: 0; }

/* ---------- screen edges (wide screens) ---------- */

.edge { display: none; }
.tick { position: fixed; z-index: 25; width: 12px; height: 12px; border: 0 solid var(--pencil); pointer-events: none; }
.tick-tl { left: 14px; top: 14px; border-left-width: 1px; border-top-width: 1px; }
.tick-tr { right: 14px; top: 14px; border-right-width: 1px; border-top-width: 1px; }
.tick-bl { left: 14px; bottom: 14px; border-left-width: 1px; border-bottom-width: 1px; }
.tick-br { right: 14px; bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }
.counter {
  position: fixed; z-index: 25; right: 18px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite);
  pointer-events: none;
}
.counter-num { color: var(--ink); }
.counter-of { color: var(--pencil); }
@media (min-width: 1000px) { .edge { display: block; } }

/* ---------- header ---------- */

.header { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: transform .5s var(--ease-out); }
.header.is-hidden { transform: translateY(-101%); }
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.header.is-stuck::after { opacity: 1; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 136px; height: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 14px/22px var(--sans); color: var(--graphite);
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.menu { display: none; }
.menu summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 4px;
  list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 12px; height: 12px; transition: transform .4s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.menu[open] .plus { transform: rotate(45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 4px var(--gutter) 16px;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  border-top: 1px solid var(--rule);
  font: 500 24px/30px var(--serif); letter-spacing: -.01em;
}
.menu-panel a .arr { color: var(--graphite); }
.menu[open] .menu-panel { animation: menu-in .3s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 01 intro ---------- */

.hero { position: relative; display: flex; min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); scroll-margin-top: var(--header); }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding-block: clamp(36px, 7vh, 84px) clamp(28px, 5vh, 52px); }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
.hero-top > .label { grid-column: 1 / -1; }

.display {
  grid-column: 1 / span 8;
  margin-top: clamp(18px, 3vh, 36px);
  font: 500 clamp(46px, min(9.2vw, 16vh), 148px)/.96 var(--serif);
  font-size: clamp(46px, min(9.2vw, 16svh), 148px); /* by width, but never taller than a short laptop screen can hold */
  letter-spacing: -.035em;
}
.display .ln { white-space: nowrap; }

/* The margin note the loop points at. It is written in the pencil's colour. */
.note { grid-column: 9 / span 4; max-width: 320px; margin-bottom: clamp(6px, 1.3vw, 22px); color: var(--red); scroll-margin-top: 120px; }
.note-term { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.note-ast { width: 11px; height: 11px; fill: currentColor; }
.note-text { margin-top: 10px; font: italic 400 clamp(16px, 1.25vw, 19px)/1.45 var(--serif); }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-pitch { max-width: 540px; }
.lead { font: 400 clamp(19px, 1.55vw, 23px)/1.45 var(--serif); text-wrap: pretty; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding-inline: 22px;
  border-radius: 8px; background: var(--ink); color: var(--paper);
  font: 500 16px/1 var(--sans);
  transition: background-color .25s var(--ease), transform .25s var(--ease-out);
}
.btn:hover { background: var(--charcoal); }
.btn:hover .arr { transform: translateY(3px); }
.btn:active { transform: scale(.98); }

.scroll-cue { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.scroll-line { position: relative; width: 56px; height: 1px; background: var(--rule); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* Short, wide screens (a 768-pixel laptop with the browser's bars): tighten the air so the pitch and button stay in view. */
@media (min-width: 901px) and (max-height: 760px) {
  .hero-in { gap: 28px; padding-block: 24px; }
  .display { margin-top: 16px; }
  .actions { margin-top: 24px; }
  .scroll-cue { padding-bottom: 12px; }
}

/* ---------- sections ---------- */

.section { padding-top: clamp(88px, 10vw, 152px); scroll-margin-top: calc(var(--header) - 40px); }
main { padding-bottom: clamp(88px, 10vw, 152px); }

/* The section rule (Annnimate "elastic divider"): a hairline that rings like a
   string when the pointer sweeps across it. The box is 64px tall so the pointer
   has somewhere to cross, and its margins cancel that height out of the layout. */
.rule { position: relative; height: 64px; margin-block: -32px; touch-action: pan-y; transform-origin: left center; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 32px; height: 1px; background: var(--rule); }
.rule:has(path[d])::before { display: none; }
.rule-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Paragraph lines that rise through a mask (Annnimate "text reveal"). These classes exist only while a reveal runs. */
.split-line { display: block; padding-bottom: .16em; margin-bottom: -.16em; }

.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; padding-top: 28px; }
.sec-label { grid-column: 1 / -1; margin-bottom: clamp(28px, 3.4vw, 48px); }
.h2 { grid-column: 1 / span 8; font: 500 clamp(40px, 6.2vw, 92px)/1 var(--serif); letter-spacing: -.03em; }
.sec-intro { grid-column: 9 / span 4; max-width: 360px; padding-bottom: .5em; color: var(--graphite); text-wrap: pretty; }

/* ---------- 02 apps: one plate per app, in the app's own colours ---------- */

.plates { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 24px; }
.plate {
  position: sticky; top: calc(var(--header) + 16px);
  height: min(620px, calc(100vh - var(--header) - 72px)); height: min(620px, calc(100svh - var(--header) - 72px));
  min-height: 440px;
}
.plate + .plate { top: calc(var(--header) + 44px); }
.plate-in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: clamp(16px, 2vw, 28px); overflow: hidden;
  background: var(--plate-bg); color: var(--plate-ink);
  transform-origin: 50% 0;
}
.plate-shade { position: absolute; inset: 0; z-index: 2; background: var(--ink); opacity: 0; pointer-events: none; }
.plate--recloset { --plate-bg: #365843; --plate-ink: #FAF8F3; }
.plate--graticule { --plate-bg: #C8431F; --plate-ink: #FFF6E8; }
.plate .label { color: inherit; }

.plate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.plate-icon {
  flex: none; width: clamp(84px, min(12vw, 18vh), 168px); aspect-ratio: 1; border-radius: 22.37%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 28px 48px -24px rgba(0, 0, 0, .5);
  transition: transform .8s var(--ease-out);
}
.plate-icon img { width: 100%; height: 100%; }
.plate:hover .plate-icon { transform: translateY(-4px) rotate(-2deg); }

.plate-name { font: 500 clamp(56px, min(9.6vw, 16vh), 144px)/.92 var(--serif); letter-spacing: -.035em; }
.plate-desc { margin-top: clamp(12px, 1.4vw, 20px); max-width: 30em; font: 400 clamp(17px, 1.4vw, 21px)/1.45 var(--serif); text-wrap: pretty; }
.plate-foot {
  margin-top: clamp(20px, 2.4vw, 36px); padding-top: clamp(16px, 1.6vw, 24px); min-height: calc(44px + clamp(16px, 1.6vw, 24px));
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-inline: 12px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }

.plate-link {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-inline: 18px;
  border-radius: 999px; background: var(--plate-ink); color: var(--plate-bg);
  font: 500 15px/1 var(--sans);
  transition: transform .4s var(--ease-out);
}
.plate-link:hover { transform: translateY(-2px); }
.plate-link:hover .arr { transform: translate(2px, -2px); }
.plate-link:active { transform: scale(.98); }
.plate-link:focus-visible { outline-color: var(--plate-ink); }

/* Short screens: a plate must never be taller than what it holds, or than the screen. */
@media (min-width: 901px) and (max-height: 760px) {
  .plate-in { padding-block: 32px; }
  .plate-foot { margin-top: 20px; padding-top: 16px; min-height: 60px; }
}

.credit { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; line-height: 22px; color: var(--graphite); }
.credit img { width: 122px; height: auto; }

/* ---------- 03 how we work: four corrections ---------- */

.fixes { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.fix {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: baseline;
  padding-block: clamp(28px, 3.2vw, 48px); border-bottom: 1px solid var(--rule);
}
.fix-num { grid-column: 1 / span 1; }
.fix-old { grid-column: 2 / span 5; font: 400 clamp(26px, 3vw, 44px)/1.15 var(--serif); letter-spacing: -.015em; color: var(--pencil); text-decoration: none; }
.fix-new { grid-column: 7 / span 6; }
.fix-new ins { display: block; font: 500 clamp(26px, 3vw, 44px)/1.15 var(--serif); letter-spacing: -.015em; }
.fix-new p { margin-top: 12px; max-width: 46ch; color: var(--graphite); text-wrap: pretty; }
/* The red pencil stays on the newest correction; earlier strikes settle to graphite. */
.fix.is-past .mk-svg path { stroke: var(--pencil); }

/* ---------- 04 notes ---------- */

.rows { margin-top: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 320px minmax(0, 1fr) 20px; align-items: center; column-gap: 24px;
  min-height: 72px; padding-block: 16px; border-top: 1px solid var(--rule);
}
.row-meta { display: flex; align-items: center; gap: 24px; }
.row-date { width: 150px; }
.row-title { font: 500 20px/28px var(--serif); transition: transform .4s var(--ease-out); }
.row .arr { color: var(--graphite); opacity: 0; transform: translateX(-6px); }
a.row:hover .row-title, a.row:focus-visible .row-title { transform: translateX(6px); }
a.row:hover .arr, a.row:focus-visible .arr { opacity: 1; transform: none; }
.row.is-empty { grid-template-columns: 320px minmax(0, 1fr); }
.row.is-empty .row-title { color: var(--graphite); }

/* ---------- 05 contact ---------- */

.mail-line { margin-top: clamp(36px, 5vw, 80px); }
.mail { font: 500 clamp(30px, 7.6vw, 120px)/1.08 var(--serif); letter-spacing: -.035em; }
.mail .mk { transition: transform .6s var(--ease-out); }
.mail:hover .mk { transform: translateX(.06em); }
.contact-foot { margin-top: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 14px; line-height: 22px; color: var(--graphite); }
.copy {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.copy[hidden] { display: none; }
.copy:hover .ul, .copy:focus-visible .ul, .copy.is-done .ul { background-size: 100% 1px, 100% 1px; }

/* ---------- footer ---------- */

.footer { padding-block: 72px 48px; background: var(--vellum); font-size: 14px; line-height: 22px; color: var(--graphite); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.footer-mark img { width: 180px; height: auto; }
.to-top { flex: none; gap: 8px; margin-top: -6px; color: var(--ink); white-space: nowrap; }
.to-top .ul { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--pencil), var(--pencil)); }
.to-top:hover .arr, .to-top:focus-visible .arr { transform: translateY(-3px); }
.cols { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 280px)); gap: 40px 32px; }
.col h3 { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.col ul { margin-top: 16px; display: grid; gap: 8px; }
.col a { color: var(--ink); }
.col .ul { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--pencil), var(--pencil)); }
.ext { display: inline-flex; align-items: center; gap: 6px; }
.legal {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--pencil) 45%, var(--vellum));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
}

/* ---------- before the load sequence starts ----------
   The head script adds .anm-pending only when motion is welcome, and removes it
   by itself after a moment, so a slow or blocked script never leaves the page blank. */
html.anm-pending [data-hero], html.anm-pending .hero .ln-in,
html.anm-pending .rule, html.anm-pending .rv, html.anm-pending [data-lines], html.anm-pending [data-rise],
html.anm-pending [data-plate], html.anm-pending [data-fix] { opacity: 0; }

/* ---------- reduced motion: nothing travels; states change at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- narrow: tablets and phones ---------- */
@media (max-width: 900px) {
  :root { --header: 64px; }
  .nav { display: none; }
  .menu { display: block; }
  .brand img { width: 124px; }

  .hero-in { gap: 40px; padding-block: 36px 40px; }
  .hero-top { display: block; }
  .hero-top > .label { text-wrap: balance; }
  .display { font-size: clamp(46px, 13vw, 92px); }
  .note { margin: clamp(36px, 9vw, 56px) 0 0 18%; max-width: 300px; }
  .scroll-cue { display: none; }

  .rule { height: 48px; margin-block: -24px; }
  .rule::before { top: 24px; }
  .sec-head { display: block; }
  .sec-intro { margin-top: 20px; padding-bottom: 0; max-width: 460px; }

  .plates { gap: 16px; }
  .plate { height: min(560px, calc(100vh - var(--header) - 56px)); height: min(560px, calc(100svh - var(--header) - 56px)); min-height: 420px; top: calc(var(--header) + 12px); }
  .plate + .plate { top: calc(var(--header) + 32px); }
  .plate-name { font-size: clamp(54px, 15.5vw, 112px); }

  .mail { font-size: clamp(30px, 9.4vw, 76px); }

  .fix { display: block; }
  .fix-old { display: block; margin-top: 12px; }
  .fix-new { margin-top: 10px; }

  .row { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 6px; padding-block: 18px; }
  .row.is-empty { grid-template-columns: minmax(0, 1fr); }
  .row-meta { grid-column: 1 / -1; gap: 16px; }
  .row-date { width: auto; }
  .row .arr { opacity: 1; transform: none; }

  .footer { padding-block: 56px 40px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col ul { gap: 0; }
  .col li { display: flex; align-items: center; min-height: 44px; }
}

/* A phone on its side, or any very short screen: plates stop stacking and simply follow one another, so nothing is ever out of reach. */
@media (max-height: 540px) {
  .plate, .plate + .plate { position: static; height: auto; min-height: 0; }
  .plate-in { gap: 40px; }
}

/* The narrowest phones: the line above the headline stays on one line down to 360 pixels. */
@media (max-width: 400px) {
  .hero-top > .label { font-size: 11px; letter-spacing: .04em; }
}

@media print {
  .header { position: static; }
  .menu, .nav, .btn, .edge, .scroll-cue { display: none; }
  .plate { position: static; height: auto; }
}
