/* ==========================================================================
   Spot & Key: design system v2
   Two inks (pink, blue) overprinted on cool paper. Light is the house theme;
   dark is an opt-in "night press" where the inks glow instead of darken.
   ========================================================================== */

/* ---------- 0. Self-hosted variable fonts (SIL OFL, see assets/fonts) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  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: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  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: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations");
  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-display: swap; font-weight: 200 800;
  src: url("../fonts/newsreader-latin-ext-standard-normal.woff2") format("woff2-variations");
  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: "Newsreader"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2-variations"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* paper and type */
  --paper: #e9ecef;
  --paper-2: #dde2e8;
  --ink: #161a26;
  --ink-soft: #4a5168;
  --rule: #c3c9d3;
  /* the two inks */
  --pink: #ff4fa3;
  --blue: #2f5bea;
  --ink-2: #2f5bea;          /* second plate for type */
  --text-blend: multiply;    /* how type plates combine */
  --violet: #2f1c96;         /* what pink x blue prints as */
  /* printed sheets (artwork) stay light in both themes */
  --sheet: #f4f6f8;
  --sheet-ink: #161a26;
  --art-blue: #2f5bea;
  --disc-p: #ff4fa3;
  --disc-b: #2f5bea;
  /* UI */
  --link: #2448c9;
  --on-blue: #ffffff;
  --header-bg: rgba(233, 236, 239, .94);
  --grain-opacity: .07;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.07rem;
  --step-4: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
  --step-5: clamp(2.8rem, 1.4rem + 5.6vw, 6.4rem);
  --step-6: clamp(3.4rem, 1rem + 9vw, 10rem);

  --gutter: 16px;
  --header-h: 76px;
  --max: 1400px;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 84px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

:root[data-theme="dark"] {
  --paper: #101219;
  --paper-2: #191c27;
  --ink: #eceef3;
  --ink-soft: #9aa1b5;
  --rule: #2b2f3d;
  --blue: #7a93ff;
  --ink-2: #3fe3ff;
  --text-blend: screen;
  --disc-p: #b3155f;
  --disc-b: #0c6a80;
  --violet: #f4f0ff;
  --sheet: #e3e7ed;
  --link: #a3b4ff;
  --on-blue: #0e1018;
  --header-bg: rgba(16, 18, 25, .94);
  --grain-opacity: .05;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--pink); color: #161a26; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: -100px; z-index: 120;
  background: var(--blue); color: var(--on-blue); padding: .75rem 1rem;
  font-family: var(--font-display); font-weight: 600; text-decoration: none; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--ruled { border-top: 1px solid var(--rule); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; }
.muted { color: var(--ink-soft); }

.section-head {
  display: grid; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
}
.section-head h2 { margin: 0; max-width: 14ch; font-size: var(--step-5); font-weight: 800; font-stretch: 85%; letter-spacing: -0.035em; line-height: .95; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.4fr 1fr auto; } }

/* Grain overlay: printed paper texture */
.grain {
  position: fixed; inset: -50%; z-index: 95; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="dark"] .grain { filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- 3. Buttons and links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.6rem; overflow: hidden; isolation: isolate;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; font-stretch: 92%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-fill, var(--ink));
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { text-decoration: none; color: var(--btn-fg-hover, var(--paper)); }
.btn:hover::before { transform: translateY(0); }
.btn--primary { --btn-bg: var(--blue); --btn-fg: var(--on-blue); --btn-bd: var(--blue); --btn-fill: var(--ink); --btn-fg-hover: var(--paper); }
.btn--primary:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--pink), var(--pink)) left bottom / 100% 3px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease);
}
.text-link:hover { background-image: linear-gradient(var(--blue), var(--blue)); }

/* Rolling text link: the label slides up and is replaced by an italic serif copy */
.roll { display: inline-block; vertical-align: top; line-height: 1.25; color: inherit; text-decoration: none; }
.roll__in { display: block; overflow: hidden; }
.roll__in > span { display: block; position: relative; transition: transform .55s var(--ease); }
.roll__in > span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
  font-family: var(--font-text); font-style: italic; font-weight: 500; letter-spacing: 0;
}
.roll:hover .roll__in > span, .roll:focus-visible .roll__in > span { transform: translateY(-100%); }

.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1.1rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink);
  font-family: var(--font-display); font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: color-mix(in srgb, var(--rule) 60%, transparent); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  height: var(--header-h); padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; justify-self: start; }
.logo__mark { position: relative; width: 32px; height: 22px; }
.logo__mark i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; mix-blend-mode: var(--text-blend); transition: transform .6s var(--ease); }
.logo__mark i:first-child { left: 0; background: var(--pink); }
.logo__mark i:last-child { left: 10px; background: var(--ink-2); }
.logo:hover .logo__mark i:first-child { transform: translateX(5px); }
.logo:hover .logo__mark i:last-child { transform: translateX(-5px); }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; font-stretch: 80%; }

.nav__list {
  display: flex; gap: .25rem; padding: .3rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__list a {
  display: block; padding: .5rem 1.05rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink);
  transition: background-color .3s, color .3s;
}
.nav__list a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.site-header__tools { display: flex; align-items: center; gap: .6rem; justify-self: end; }
.clock { margin: 0 .5rem 0 0; font-family: var(--font-display); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock time { color: var(--ink); font-weight: 600; }

.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; cursor: pointer;
}
.theme-toggle span { position: relative; width: 22px; height: 14px; }
.theme-toggle i { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; mix-blend-mode: var(--text-blend); transition: transform .5s var(--ease); }
.theme-toggle i:first-child { left: 0; background: var(--pink); }
.theme-toggle i:last-child { left: 8px; background: var(--ink-2); }
.theme-toggle:hover i:first-child { transform: translateX(4px); }
.theme-toggle:hover i:last-child { transform: translateX(-4px); }

.menu-toggle {
  display: none; align-items: center; gap: .6rem; height: 44px; padding: 0 .5rem 0 1.1rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }
.menu-toggle__icon i { position: absolute; left: 9px; width: 12px; height: 1.5px; background: var(--paper); transition: transform .45s var(--ease); }
.menu-toggle__icon i:first-child { top: 12px; }
.menu-toggle__icon i:last-child { top: 17px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 1099px) { .clock { display: none; } }
@media (max-width: 899px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Full-screen menu (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--paper);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.menu__list a {
  display: block; padding-block: .2rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%; letter-spacing: -0.035em;
  font-size: clamp(2.8rem, 12vw, 5rem); line-height: 1.05;
  transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .6s, color .3s;
  transition-delay: calc(.12s + var(--i, 0) * .05s);
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu__list a:hover { color: var(--blue); }
.menu__foot { display: grid; gap: .25rem; font-family: var(--font-display); }
.menu__foot a { color: var(--ink); font-weight: 600; font-size: 1.2rem; }
.menu__foot p { color: var(--ink-soft); margin: 0; }

/* ---------- 5. Cursor, wipe ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--pink); }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s, opacity .3s;
}
.cursor__label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--paper); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--blue); }
.cursor.has-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--ink); border-color: var(--ink); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring { opacity: 0; }

.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.wipe__plate { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 100%; }
.wipe__plate--p { background: var(--pink); }
.wipe__plate--b { background: #2f5bea; mix-blend-mode: multiply; }
.is-wiping .wipe__plate { transform: scaleY(1); }

/* Elements held back until the intro has set their start state */
.js:not(.is-ready) [data-pre],
.js:not(.is-ready) :is(.page-hero, .article-hero) > * { visibility: hidden; }

/* ---------- 6. Two-plate type ----------
   Characters are split by JS. At rest each glyph is plain ink; the pink and
   blue plates sit hidden underneath and slide out (--x/--y, --o) only when
   the cursor comes near or the section scrolls away. */
.ink-text { color: var(--ink); }
.ink-text .ch {
  position: relative; display: inline-block; isolation: isolate; color: var(--ink);
  translate: calc(var(--gx, 0) * 1px) calc(var(--gy, 0) * 1px);
}
.ink-text .ch::before, .ink-text .ch::after {
  content: attr(data-c); position: absolute; left: 0; top: 0; z-index: -1;
  opacity: var(--o, 0); mix-blend-mode: var(--text-blend);
  transform: translate3d(calc(var(--x, 0) * -1px), calc(var(--y, 0) * -1px), 0);
}
.ink-text .ch::before { color: var(--pink); }
.ink-text .ch::after { color: var(--ink-2); transform: translate3d(calc(var(--x, 0) * 1px), calc(var(--y, 0) * 1px), 0); }
.ink-text .word { display: inline-block; white-space: nowrap; }

/* ---------- 7. Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}
.hero__inks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ink-disc { position: absolute; left: 0; top: 0; border-radius: 50%; mix-blend-mode: var(--text-blend); will-change: transform; transform: translate3d(70vw, 45vh, 0); }
.ink-disc--p { width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; background: var(--disc-p); }
.ink-disc--b { width: 32vmin; height: 32vmin; margin: -16vmin 0 0 -16vmin; background: var(--disc-b); }

/* Printer's crop marks and registration targets: the hero is a press sheet */
.crop { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 100%; height: 1px; top: 50%; }
.crop::after { height: 100%; width: 1px; left: 50%; }
.crop--tl { left: calc(var(--gutter) * .5); top: calc(var(--header-h) + .5rem); }
.crop--tr { right: calc(var(--gutter) * .5); top: calc(var(--header-h) + .5rem); }
.crop--bl { left: calc(var(--gutter) * .5); bottom: .75rem; }
.crop--br { right: calc(var(--gutter) * .5); bottom: .75rem; }
.reg { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink); pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: -8px; right: -8px; top: 50%; height: 1px; }
.reg::after { top: -8px; bottom: -8px; left: 50%; width: 1px; }
.hero .reg { right: calc(var(--gutter) * .5 - 1px); top: 50%; margin-top: -15px; }

.hero__inner { position: relative; display: grid; align-content: center; width: 100%; max-width: var(--max); margin-inline: auto; }
.hero__title {
  margin: 0; font-weight: 800; font-stretch: 78%; letter-spacing: -0.035em; line-height: .86;
  font-size: min(16.2vw, 30vh);
}
.hero__line { display: block; }
.hero__line--2 { text-align: right; }
.hero__foot {
  position: relative; width: 100%; max-width: var(--max); margin-inline: auto;
  display: grid; gap: 1.25rem; align-items: end; padding-top: 1.5rem;
}
.hero__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.hero__lead { margin: 0; font-size: var(--step-1); line-height: 1.4; max-width: 30ch; }
.hero__meta { display: grid; gap: .5rem; }
.hero__status { margin: 0; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); display: flex; align-items: center; gap: .6rem; }
.hero__status i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 var(--pink); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.hero__scroll { display: inline-flex; align-items: center; gap: .9rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; justify-self: start; }
.hero__scroll span { position: relative; width: 1px; height: 48px; background: var(--rule); overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--ink); animation: scrollcue 1.8s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 1.2fr 1fr auto; }
  .hero__scroll { justify-self: end; }
}
@media (max-width: 699px) {
  .hero__title { font-size: 29vw; line-height: .86; }
  .hero__line--2 .word { display: block; }
  .crop--tr, .crop--tl { top: calc(var(--header-h) + .25rem); }
  .hero .reg { display: none; }
}

/* ---------- 8. Story: three plates, one website ---------- */
.story { position: relative; border-top: 1px solid var(--rule); }
.story__pin {
  display: grid; gap: 2.5rem; align-items: center;
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.story__title { font-size: var(--step-5); font-weight: 800; font-stretch: 82%; letter-spacing: -0.04em; line-height: .92; margin-bottom: 2rem; }
.story__steps { display: grid; gap: 1.75rem; }
.story__step { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; transition: opacity .5s; }
.story__step h3 { margin: 0; font-size: var(--step-3); }
.story__swatch { grid-row: 1 / span 3; width: 22px; height: 22px; margin-top: .45rem; border-radius: 50%; }
.story__swatch--p { background: var(--pink); }
.story__swatch--b { background: var(--art-blue); }
.story__swatch--k { background: transparent; border: 2px solid var(--ink); }
.story__time { margin: 0; font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--blue); }
.story__step p:last-child { margin: .2rem 0 0; color: var(--ink-soft); max-width: 40ch; }
.story__meta { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.story__bar { position: relative; flex: 1; max-width: 240px; height: 2px; background: var(--rule); }
.story__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }

.story__stage { position: relative; min-width: 0; }
.browser {
  position: relative; width: 100%; aspect-ratio: 800 / 520; border-radius: 14px; overflow: hidden;
  background: var(--sheet); box-shadow: 0 40px 80px -40px rgba(22, 26, 38, .35);
}
.browser__plate { position: absolute; inset: 0; }
.browser__plate svg { width: 100%; height: 100%; }
.browser__plate--p, .browser__plate--b { mix-blend-mode: multiply; }
.pl-p { fill: var(--pink); }
.pl-b { fill: var(--art-blue); }
.pl-k { fill: none; stroke: var(--sheet-ink); stroke-width: 3; stroke-linecap: round; }
.pl-kf { fill: var(--sheet-ink); }
.story__regs { position: absolute; right: -10px; top: -46px; width: 30px; height: 30px; }
.story__regs .reg { position: absolute; inset: 0; }
.story__regs .reg--p { border-color: var(--pink); }
.story__regs .reg--p::before, .story__regs .reg--p::after { background: var(--pink); }
.story__regs .reg--b { border-color: var(--art-blue); }
.story__regs .reg--b::before, .story__regs .reg--b::after { background: var(--art-blue); }
.story__caption { margin: 1.5rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }

@media (min-width: 960px) {
  .story__pin { grid-template-columns: 5fr 7fr; gap: 5rem; }
}
/* Pinned mode (set by JS): fit one screen, show the active step */
.story.is-pinned .story__pin { min-height: 100vh; min-height: 100svh; padding-block: calc(var(--header-h) + 1.5rem) 2rem; }
.story.is-pinned .story__step:not(.is-active) { opacity: .22; }
@media (max-width: 959px) {
  .story.is-pinned .story__pin { align-content: center; gap: 1.5rem; }
  .story.is-pinned .story__copy { order: 2; }
  .story.is-pinned .story__title { font-size: var(--step-3); margin-bottom: 1rem; }
  .story.is-pinned .story__steps { display: grid; }
  .story.is-pinned .story__step { grid-area: 1 / 1; }
  .story.is-pinned .story__step:not(.is-active) { opacity: 0; visibility: hidden; }
  .story.is-pinned .story__meta { margin-top: 1rem; }
  .story__regs { top: -40px; right: 0; }
}

/* ---------- 8b. About: three commitments ---------- */
.pillars { display: grid; border-top: 1.5px solid var(--ink); }
.pillar { padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.pillar h3 { margin: 0 0 .6rem; font-size: var(--step-2); }
.pillar p { margin: 0; color: var(--ink-soft); max-width: 34ch; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-bottom: 0; padding: 2.25rem 2rem 0; }
  .pillar:first-child { padding-left: 0; }
  .pillar + .pillar { border-left: 1px solid var(--rule); }
}

/* ---------- 9. Work: horizontal gallery ---------- */
.work-h { position: relative; border-top: 1px solid var(--rule); }
.work-h__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 4vw, 3.5rem); padding-block: var(--section); overflow: hidden; }
.work-h__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.work-h__head h2 { margin: 0; font-size: var(--step-5); font-weight: 800; font-stretch: 82%; letter-spacing: -0.04em; line-height: .92; }
.work-h__head p { margin: 0; color: var(--ink-soft); max-width: 36ch; }
.work-h__count { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink) !important; }
.work-h__track {
  display: flex; gap: clamp(1rem, 3vw, 3rem); padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.work-h__track::-webkit-scrollbar { display: none; }
.panel { flex: 0 0 min(84vw, 1000px); scroll-snap-align: start; }
.panel__link { display: block; color: inherit; text-decoration: none; }
.panel__frame { aspect-ratio: 16 / 10; border-radius: 6px; }
.panel__art { position: absolute; inset: 0 -8%; }
.panel__art svg { width: 100%; height: 100%; }
.panel__text { display: grid; gap: .5rem 2rem; margin-top: 1.25rem; }
.panel__client { margin: 0; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); }
.panel h3 { margin: 0; font-size: var(--step-3); max-width: 20ch; transition: color .3s; }
.panel__link:hover h3 { color: var(--blue); }
.panel__outcome { margin: 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.panel__outcome strong { color: var(--blue); font-weight: 800; }
@media (min-width: 900px) {
  .panel { flex-basis: min(58vw, 1000px); }
  .panel__text { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .panel__outcome { text-align: right; }
}
.panel--end { flex: 0 0 min(70vw, 420px); display: grid; place-items: center; }
.panel--end a {
  display: grid; place-items: center; width: min(60vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper); text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.1; padding: 2rem;
}
.work-h.is-h .work-h__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-right: 8vw; }
.work-h.is-h .panel { flex-basis: min(58vw, calc((100vh - var(--header-h) - 25rem) * 1.6), 1000px); }
.work-h.is-h .panel--end { flex-basis: min(36vw, 420px); }
.work-h.is-h .work-h__pin { height: 100vh; height: 100svh; padding-block: calc(var(--header-h) + 1rem) 2rem; gap: 2rem; }

/* ---------- 11. Services: hover list ---------- */
.svc-rows { border-top: 1.5px solid var(--ink); }
.svc-row {
  position: relative; display: grid; gap: .5rem 2rem; align-items: center; padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: opacity .4s;
}
.svc-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.svc-row:hover::after { transform: scaleX(1); transform-origin: left; }
.svc-row__title { font-family: var(--font-display); font-size: clamp(2.2rem, 1rem + 4.5vw, 5rem); font-weight: 800; font-stretch: 82%; letter-spacing: -0.04em; line-height: .95; transition: transform .7s var(--ease), color .3s; }
.svc-row:hover .svc-row__title { transform: translateX(clamp(.5rem, 2vw, 2rem)); }
.svc-row__line { color: var(--ink-soft); max-width: 34ch; }
.svc-row__tags { font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); }
.svc-rows:hover .svc-row:not(:hover) { opacity: .35; }
@media (min-width: 900px) { .svc-row { grid-template-columns: 6fr 4fr 2fr; } .svc-row__tags { text-align: right; } }
/* ---------- 12. Facts ---------- */
.facts { display: grid; gap: 2.5rem; }
.fact { display: flex; flex-direction: column-reverse; gap: .75rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.fact dt { color: var(--ink-soft); max-width: 30ch; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-6); line-height: .9; letter-spacing: -0.05em; font-stretch: 78%; font-variant-numeric: tabular-nums; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- 13. Quote ---------- */
.quote { margin: 0; display: grid; gap: 2.5rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-text); font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem); line-height: 1.15;
  font-weight: 400; letter-spacing: -0.015em; max-width: 26ch; margin: 0;
}
.quote blockquote p::before { content: "\201C"; color: var(--pink); margin-left: -.45em; }
.quote figcaption { display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); }
.quote figcaption .frame { width: 60px; border-radius: 50%; aspect-ratio: 1; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--ink-soft); font-size: var(--step--1); }

.quote--lead { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.quotes { display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.quote--small { gap: 1.5rem; }
.quote--small blockquote p { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.35; max-width: 34ch; }

/* ---------- 14. Closing CTA ---------- */
.cta-xl { position: relative; padding-block: var(--section); border-top: 1px solid var(--rule); overflow: hidden; }
.cta-xl__title { margin: 0 0 clamp(2rem, 4vw, 3rem); font-size: max(19vw, min(15vw, 26vh)); font-weight: 800; font-stretch: 78%; letter-spacing: -0.04em; line-height: .86; }
.cta-xl__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.cta-xl__btn {
  position: relative; display: grid; place-items: center; width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); text-decoration: none; text-align: center; overflow: hidden; isolation: isolate;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; padding: 1.5rem;
}
.cta-xl__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: 50%; transform: scale(0); transition: transform .6s var(--ease); }
.cta-xl__btn:hover::before { transform: scale(1); }
.cta-xl__btn:hover { color: var(--paper); text-decoration: none; }
.cta-xl__mail { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) left bottom / 100% 3px no-repeat; padding-bottom: 4px; overflow-wrap: anywhere; }

/* Older smaller CTA (inner pages) */
.cta-band { padding-block: var(--section); border-top: 1px solid var(--rule); }
.cta-band__title { font-size: var(--step-6); font-weight: 800; line-height: .9; letter-spacing: -0.03em; font-stretch: 78%; max-width: 12ch; }
.cta-band__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2rem; }
.cta-band__mail { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- 15. Inner page hero ---------- */
.page-hero {
  min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero h1 { font-size: var(--step-6); font-weight: 800; letter-spacing: -0.028em; font-stretch: 80%; line-height: .9; max-width: 13ch; margin-bottom: .35em; }
.page-hero .lead { margin: 0; }
.page-hero__row { display: grid; gap: 1.5rem; align-items: end; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .page-hero__row { grid-template-columns: 1fr auto; } }
.eyebrow-client { font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- 16. Artwork frames ---------- */
.art { width: 100%; height: 100%; }
.art-bg { fill: var(--sheet); }
.ink { mix-blend-mode: multiply; }
.ink-p, .ink-p-fill { fill: var(--pink); }
.ink-b, .ink-b-fill { fill: var(--art-blue); }
.art-letter { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; }
.frame { position: relative; overflow: hidden; background: var(--sheet); aspect-ratio: 4 / 3; border-radius: 6px; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1; }
.frame > svg { will-change: transform; }

/* Website mockups (generated by mockups.mjs). Printed sheets: they stay light in both themes. */
.mk .mk-bg-p { fill: #f4dbe7; }
.mk .mk-bg-b { fill: #dbe2f7; }
.mk .mk-shadow { fill: #161a26; opacity: .07; }
.mk .mk-win, .mk .mk-sheet { fill: #ffffff; }
.mk .mk-bar { fill: #f1f3f6; }
.mk .mk-dot { fill: #cfd4dc; }
.mk .mk-url, .mk .mk-l { fill: #e2e5eb; }
.mk .mk-p { fill: var(--pink); mix-blend-mode: multiply; }
.mk .mk-b { fill: var(--art-blue); mix-blend-mode: multiply; }
.mk .mk-v { fill: #2f1c96; }
.mk .mk-k { fill: #161a26; }
.mk .mk-ks { fill: none; stroke: #161a26; stroke-width: 1.5; }
.mk .mk-tp { fill: #fbe9f1; }
.mk .mk-tb { fill: #e8edfb; }
.mk .mk-card { fill: #ffffff; stroke: #e2e5eb; stroke-width: 1.5; }
.mk .mk-ring { fill: #ffffff; stroke: var(--art-blue); stroke-width: 2.5; }
.mk .mk-contour { fill: none; stroke: #ffffff; stroke-width: 2; opacity: .8; }
.mk .mk-line { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; mix-blend-mode: multiply; }
.mk .mk-phone { fill: #ffffff; stroke: #161a26; stroke-width: 3; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 .25rem; }
.tags li { font-family: var(--font-display); font-size: .82rem; font-weight: 500; line-height: 1; padding: .4rem .7rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); }

/* ---------- 17. Work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters__count { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 2.5rem; }
.work-grid { display: grid; gap: 4rem 2rem; }
@media (min-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .card:nth-child(4n+2), .work-grid .card:nth-child(4n+3) { --frame-ratio: 4 / 5; }
  .work-grid .card:nth-child(even) { margin-top: 6rem; }
}
.card { color: inherit; text-decoration: none; display: block; }
.card[hidden] { display: none; }
.card .frame { aspect-ratio: var(--frame-ratio, 4 / 3); margin-bottom: 1.1rem; }
.card .frame svg { transition: scale 1s var(--ease); }
a.card:hover .frame svg { scale: 1.05; }
.card h2, .card h3 { font-size: var(--step-2); margin-bottom: .3rem; transition: color .3s; }
a.card:hover h2, a.card:hover h3 { color: var(--blue); }
.card__meta { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- 18. Case study ---------- */
.cs-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.cs-meta dt { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.cs-meta dd { margin: .25rem 0 0; font-family: var(--font-display); font-weight: 600; }
@media (min-width: 800px) { .cs-meta { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 1rem 3rem; }
.split > h2 { font-size: var(--step-3); }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 7fr; }
  .split > h2 { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.prose { font-size: 1.15rem; line-height: 1.68; min-width: 0; }
.prose p, .prose li { max-width: 64ch; }
.prose h2 { font-size: var(--step-3); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; }
.prose ul { list-style: none; margin: 0 0 1.25em; }
.prose ul li { position: relative; padding-left: 1.4em; margin-bottom: .4em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--pink); box-shadow: .2em 0 0 var(--ink-2); }
.prose ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.25em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-family: var(--font-display); font-size: .95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.table-scroll { overflow-x: auto; }

.gallery { display: grid; gap: 1rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .frame--wide { grid-column: 1 / -1; } }

.metrics { display: grid; gap: 2rem; }
.metric { display: flex; flex-direction: column-reverse; }
.metric dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-5); line-height: 1; letter-spacing: -0.04em; color: var(--blue); font-stretch: 80%; font-variant-numeric: tabular-nums; }
.metric dt { margin-top: .5rem; color: var(--ink-soft); }
@media (min-width: 800px) { .metrics { grid-template-columns: repeat(3, 1fr); } }

.next-project { padding-block: var(--section); border-top: 1px solid var(--rule); }
.next-project__label { font-family: var(--font-display); color: var(--ink-soft); margin-bottom: .5rem; }
.next-project__title {
  display: inline-block; max-width: 16ch; font-family: var(--font-display); line-height: .95; font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; font-stretch: 78%;
  color: var(--ink); text-decoration: none; transition: color .3s, transform .8s var(--ease);
}
.next-project__title:hover, .next-project__title:focus-visible { color: var(--blue); transform: translateX(1rem); }

/* ---------- 19. Services page ---------- */
.service-block { display: grid; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.service-block:first-child { border-top: 1.5px solid var(--ink); }
.service-block h2 { font-size: var(--step-4); }
.service-block .frame { max-width: 520px; }
.service-block__facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; font-family: var(--font-display); margin: 1.5rem 0 0; }
.service-block__facts dt { color: var(--ink-soft); }
.service-block__facts dd { margin: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 5fr 6fr; gap: 4rem; } }

.packages { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.package { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); transition: transform .6s var(--ease), border-color .3s; }
.package:hover { transform: translateY(-6px); border-color: var(--ink); }
.package--featured { border-color: var(--ink); background: var(--paper-2); }
.package__flag { position: absolute; top: -.85rem; left: 1.5rem; background: var(--pink); color: #161a26; font-family: var(--font-display); font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; }
.package h3 { margin: 0; font-size: var(--step-3); }
.package__price { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; font-stretch: 85%; letter-spacing: -0.03em; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.package__price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.package ul { display: grid; gap: .5rem; margin: 0 0 1rem; }
.package li { padding-left: 1.5rem; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65rem; height: .35rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.package .btn { margin-top: auto; }
.care-note { margin-top: 2rem; padding: 1.5rem 2rem; border-radius: 10px; background: var(--paper-2); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-family: var(--font-display); }
.care-note p { margin: 0; }

.faq { border-top: 1.5px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 1.4rem 3rem 1.4rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding-bottom: 1.5rem; }

/* ---------- 20. About ---------- */
.principles { display: grid; border-top: 1.5px solid var(--ink); }
.principle { display: grid; gap: .5rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.principle h3 { margin: 0; font-size: var(--step-2); }
.principle p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) { .principle { grid-template-columns: 5fr 6fr; } }

.team { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person .frame { aspect-ratio: 1; margin-bottom: .9rem; }
.person .frame svg { transition: scale .9s var(--ease), rotate .9s var(--ease); }
.person:hover .frame svg { scale: 1.06; rotate: -2deg; }
.person h3 { font-size: var(--step-1); margin: 0; }
.person p { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); margin: .15rem 0 0; }

.careers { display: grid; gap: 1.5rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--paper-2); border-radius: 12px; }
.careers h2 { margin: 0; }
.role { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--font-display); }
.role strong { font-size: var(--step-1); }

/* ---------- 21. Journal ---------- */
.featured-post { display: grid; gap: 1.5rem 3rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .featured-post { grid-template-columns: 7fr 5fr; align-items: end; } }
.featured-post h2 { font-size: var(--step-4); }
.featured-post__media { display: block; border-radius: 6px; }
.featured-post__media .frame svg { transition: scale 1s var(--ease); }
.featured-post__media:hover .frame svg { scale: 1.04; }
.post-list { border-top: 1.5px solid var(--ink); }
.post-row { display: grid; gap: .35rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--rule); }
.post-row h3 { font-size: var(--step-2); margin: 0; justify-self: start; }
.post-row p { margin: 0; color: var(--ink-soft); }
.post-meta { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: 1rem; }
@media (min-width: 900px) { .post-row { grid-template-columns: 2fr 6fr 4fr; align-items: baseline; } }
/* Title links: only the words react */
.title-link {
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 2px no-repeat;
  transition: color .3s, background-size .6s var(--ease);
}
.title-link:hover, .title-link:focus-visible { color: var(--blue); background-size: 100% 2px; }

.article-hero { padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 6rem)) 2rem; }
.article-hero h1 { font-size: var(--step-5); max-width: 18ch; letter-spacing: -0.04em; font-weight: 800; font-stretch: 82%; line-height: .95; }
.article { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .article { grid-template-columns: 3fr 8fr 1fr; } .article .prose { grid-column: 2; } .article aside { grid-column: 1; grid-row: 1; } }
.article aside { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.article aside .frame { width: 64px; border-radius: 50%; aspect-ratio: 1; margin-bottom: .75rem; }
.article aside strong { display: block; color: var(--ink); font-size: 1rem; }
.callout { margin: 2.5rem 0; padding: 1.75rem; background: var(--paper-2); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 22. Contact and forms ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact { grid-template-columns: 4fr 7fr; gap: 5rem; } .contact__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.contact__aside dl { display: grid; gap: 1.25rem; margin: 2rem 0 0; font-family: var(--font-display); }
.contact__aside dt { font-size: var(--step--1); color: var(--ink-soft); }
.contact__aside dd { margin: .2rem 0 0; font-size: var(--step-1); font-weight: 600; }

.form { display: grid; gap: 1.75rem; }
.form__row { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 0; }
.field .hint { font-family: var(--font-display); font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 0;
  font: inherit; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.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% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.field select option { background: var(--paper); color: var(--ink); }
.input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 1.5px 0 0 var(--blue); }
.field[data-invalid] .input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #d6245f; }
.field__error { font-family: var(--font-display); font-size: var(--step--1); color: #c41d55; margin: 0; }
:root[data-theme="dark"] .field__error { color: #ff7aa8; }
.field__error:empty { display: none; }

.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: .45rem 1.15rem;
  border: 1.5px solid var(--rule); border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-size: .98rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--ease);
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.hp { position: absolute; left: -9999px; }

.form-success { padding: clamp(2rem, 5vw, 3.5rem); background: var(--paper-2); border-radius: 12px; }
.form-success h2 { font-size: var(--step-4); }

.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.inline-form input { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: .5rem 1rem; font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: transparent; border: 1.5px solid var(--rule); border-radius: 999px; }
.inline-form input:focus { outline: none; border-color: var(--blue); }
.inline-form__status { flex-basis: 100%; margin: 0; font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.inline-form__status:empty { display: none; }

/* ---------- 23. Footer ---------- */
.site-footer { position: relative; border-top: 1.5px solid var(--ink); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; overflow: hidden; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; padding-bottom: 3rem; }
.site-footer__pitch { font-family: var(--font-display); color: var(--ink-soft); margin: 0; }
.site-footer__mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1rem + 4vw, 4.2rem); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; font-stretch: 80%; overflow-wrap: anywhere; background: linear-gradient(var(--pink), var(--pink)) left 92% / 100% 4px no-repeat; transition: background-size .6s var(--ease); }
.site-footer__mail:hover { background-image: linear-gradient(var(--ink-2), var(--ink-2)); }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, 1fr); padding-block: 2.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; } }
.site-footer__grid > :last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__grid > :last-child { grid-column: auto; } }
.site-footer__h { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--ink-soft); letter-spacing: 0; }
.site-footer__grid li { margin-bottom: .45rem; }
.site-footer__grid a { font-family: var(--font-display); color: var(--ink); text-decoration: none; }
.site-footer__grid address { font-family: var(--font-display); line-height: 1.7; }
.site-footer__small { font-size: var(--step--1); color: var(--ink-soft); margin: 0; font-family: var(--font-display); }
.site-footer__word {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 75%; letter-spacing: -0.05em; line-height: .78;
  font-size: min(28.5vw, 440px); color: var(--ink); white-space: nowrap; max-width: none; text-align: center; margin-inline: calc(var(--gutter) * -1); padding-top: .1em;
}
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--ink-soft); }
.to-top { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* ---------- 24. 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }
.notfound__code { font-family: var(--font-display); font-size: clamp(9rem, 34vw, 26rem); font-weight: 800; line-height: .82; letter-spacing: -0.05em; font-stretch: 75%; margin: 0 auto .15em; }
.notfound p { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---------- 25. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .ink-text .ch::before, .ink-text .ch::after { transform: none !important; }
}

/* ---------- 26. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-xl, .cta-band, .skip-link, .grain, .cursor, .wipe { display: none; }
  body { background: #fff; color: #000; }
}
