/*=====================================================================
  Dabmedia: minimal edition
  Direction: EDITORIAL POSTER. Type is the image, the grid is exposed,
  neon is a highlighter pen (never decoration), serif statements are
  punctuated by heavy expanded grotesk.

  Type:   Instrument Serif (display) + Archivo (body / poster grotesk)
  Colour: paper · paper-2 · ink · stone · neon (5, nothing else)
=====================================================================*/

/* Tokens ------------------------------------------------------------- */
:root {
  --paper: #F3F2EC;
  --paper-2: #E7E6DD;
  --ink: #0A0C00;
  --stone: #585A4E;          /* 6.3:1 on paper, 5.6:1 on paper-2 */
  --neon: #E3FF04;           /* fill behind ink, or text on ink only */

  /* alpha steps of the five (not new colours) */
  --line: rgba(10, 12, 0, 0.13);
  --line-strong: rgba(10, 12, 0, 0.88);
  --on-dark-soft: rgba(243, 242, 236, 0.72);
  --line-dark: rgba(243, 242, 236, 0.16);

  /* aliases used by inline styles */
  --bg: var(--paper);
  --surface: var(--paper-2);
  --muted: var(--stone);
  --accent: var(--neon);

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.25rem, 1.6rem + 6.4vw, 8rem);
  --fs-h1: clamp(3rem, 1.7rem + 5vw, 6.75rem);
  --fs-h2: clamp(2.375rem, 1.5rem + 3.2vw, 4.5rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 64px; --space-7: 96px;
  --section: clamp(72px, 7vw + 40px, 168px);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms; --t-med: 280ms;
}

/* Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98; }
h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(a, button, input, select, textarea, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--neon); border-radius: 1px;
}
.on-dark :where(a, button):focus-visible { outline-color: var(--neon); box-shadow: 0 0 0 5px var(--ink); }
::selection { background: var(--neon); color: var(--ink); }

/* Utilities ---------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.rule { border: 0; border-top: 1px solid var(--line-strong); margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--neon); color: var(--ink); padding: 12px 18px; font-weight: 600; border: 2px solid var(--ink); }
.skip-link:focus { top: 16px; }
#main:focus { outline: none; }

/* The poster voice: expanded uppercase labels */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; font-stretch: 118%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
}
.label::before { content: ""; width: 7px; height: 7px; background: var(--neon); outline: 1px solid var(--ink); }
.on-dark .label { color: var(--on-dark-soft); }
.on-dark .label::before { outline-color: var(--neon); }
.serif { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* Neon highlighter: the one decorative use of neon */
.hl { background-image: linear-gradient(var(--neon), var(--neon)); background-repeat: no-repeat; background-size: 100% 0.34em; background-position: 0 80%; padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-dark .hl { background: none; color: var(--neon); padding: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 42ch; }
.muted { color: var(--stone); }
.measure { max-width: 64ch; }

/* Buttons & links ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: 0.8125rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--neon); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn { background: var(--neon); color: var(--ink); border-color: var(--neon); }
.on-dark .btn:hover { background: var(--paper); border-color: var(--paper); }
.arrow { width: 14px; height: 14px; flex: none; transition: transform var(--t-med) var(--ease-out); }
a:hover > .arrow, .btn:hover .arrow, a:focus-visible > .arrow { transform: translate(3px, -3px); }
.link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 600;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--neon), var(--neon));
  background-size: 100% 1.5px, 0 0.5em; background-position: 0 100%, 0 82%; background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.link:hover { background-size: 100% 1.5px, 100% 0.5em; }
.on-dark .link { background-image: linear-gradient(var(--paper), var(--paper)), linear-gradient(var(--neon), var(--neon)); }
.on-dark .link:hover { color: var(--ink); background-size: 100% 1.5px, 100% 100%; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(243, 242, 236, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), transform 420ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.brand img { height: 26px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a { position: relative; z-index: 0; display: inline-block; padding: 12px 0; font-size: var(--fs-small); font-weight: 500; }
.nav a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 12px; height: 7px; background: var(--neon); z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { margin-left: var(--space-2); min-height: 42px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1080px) { .nav, .header-cta { display: none; } .menu-btn { display: inline-flex; align-items: center; } }

/* Mobile menu: full-screen numbered index */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: 0 var(--gutter) var(--space-5); overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 520ms var(--ease-out), visibility 0s linear 520ms;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 620ms var(--ease-out); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-top img { height: 24px; width: auto; }
.menu-close { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--paper); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }
.menu nav { margin-top: var(--space-5); }
.menu nav ul { counter-reset: m; }
.menu nav li { border-top: 1px solid var(--line-dark); counter-increment: m; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-family: var(--display); font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem); line-height: 1.1; }
.menu nav a::before { content: "0" counter(m); font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--on-dark-soft); }
.menu nav a .arrow { margin-left: auto; align-self: center; }
.menu nav a[aria-current="page"] { font-style: italic; color: var(--neon); }
.menu-foot { margin-top: auto; padding-top: var(--space-5); color: var(--on-dark-soft); font-size: var(--fs-small); }
.menu-foot a, .footer-base a { display: inline-block; padding: 12px 0; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu nav li { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 600ms var(--ease-out); }
  .menu.is-open nav li { opacity: 1; transform: none; }
  .menu.is-open nav li:nth-child(2) { transition-delay: 40ms; } .menu.is-open nav li:nth-child(3) { transition-delay: 80ms; }
  .menu.is-open nav li:nth-child(4) { transition-delay: 120ms; } .menu.is-open nav li:nth-child(5) { transition-delay: 160ms; }
  .menu.is-open nav li:nth-child(6) { transition-delay: 200ms; }
}

/* Page intro ---------------------------------------------------------- */
.intro { padding: clamp(40px, 6vw, 112px) 0 clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line-strong); }
.intro h1 { font-size: var(--fs-h1); max-width: 15ch; margin-top: var(--space-4); }
.intro .lead { margin-top: var(--space-4); max-width: 50ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a, .crumbs li[aria-current] { display: inline-block; padding: 8px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Media -------------------------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
a:hover .frame img { transform: scale(1.035); }
.frame--wide { aspect-ratio: 21 / 9; }
.frame--card { aspect-ratio: 4 / 3; }
.frame--tall { aspect-ratio: 4 / 5; }
@media (max-width: 720px) { .frame--wide { aspect-ratio: 4 / 3; } }

/* Section heads: a hairline that draws, a label, a serif headline */
.sec-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-3) var(--space-6); align-items: end; padding-top: var(--space-3); margin-bottom: clamp(40px, 5vw, 80px); }
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.sec-head h2 { font-size: var(--fs-h2); margin-top: var(--space-3); }
.sec-head p { margin: 0; color: var(--stone); max-width: 44ch; justify-self: end; }
.sec-head .link { justify-self: end; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } .sec-head p, .sec-head .link { justify-self: start; } }

/* Work grid ----------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.work { grid-column: span 6; }
.work--lg { grid-column: span 7; }
.work--sm { grid-column: span 5; padding-top: clamp(0px, 9vw, 140px); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: var(--space-2); padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.work h3, .work h2 { font-family: var(--display) !important; font-weight: 400 !important; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem) !important; letter-spacing: -0.01em; line-height: 1.05; margin-top: 10px !important; }
.work p { margin: 12px 0 0; color: var(--stone); font-size: var(--fs-small); max-width: 50ch; }
.work a:hover h3, .work a:hover h2 { font-style: italic; }
@media (max-width: 820px) { .work, .work--lg, .work--sm { grid-column: 1 / -1; padding-top: 0; } }
/* Phone: home & services work grids become a swipeable rail with a peek */
.rail-hint { display: none; align-items: center; gap: 10px; margin: 18px 0 0; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.rail-hint span { flex: 1; height: 1px; background: var(--line-strong); }
@media (max-width: 720px) {
  .work-grid--rail {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .work-grid--rail::-webkit-scrollbar { display: none; }
  .work-grid--rail .work { flex: 0 0 84%; scroll-snap-align: start; padding-top: 0; }
  .rail-hint { display: flex; }
}

/* Index (services) ----------------------------------------------------- */
.index { border-top: 1px solid var(--line-strong); }
.index-row { border-bottom: 1px solid var(--line); }
.index-row > a {
  position: relative; z-index: 0; display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 32px; gap: var(--space-4); align-items: baseline;
  padding: clamp(20px, 2.4vw, 32px) 0;
}
.index-row > a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); background: var(--neon); transform: scaleY(0); transform-origin: bottom; transition: transform 420ms var(--ease-out); z-index: -1; }
.index-row > a:hover::before, .index-row > a:focus-visible::before { transform: scaleY(1); }
.index-title { display: block; font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.875rem); line-height: 1.05; letter-spacing: -0.01em; transition: transform 420ms var(--ease-out); }
.index-row > a:hover .index-title { transform: translateX(12px); font-style: italic; }
.index-no { font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.12em; color: var(--stone); font-variant-numeric: tabular-nums; }
.index-desc { color: var(--stone); font-size: var(--fs-small); margin: 0; }
.index-row > a:hover .index-desc, .index-row > a:hover .index-no { color: var(--ink); }
.index-row .arrow { width: 20px; height: 20px; justify-self: end; align-self: center; }
@media (max-width: 820px) {
  .index-row > a { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 4px 12px; }
  .index-desc { grid-column: 2 / 3; grid-row: 2; }
  .index-row .arrow { grid-column: 3; grid-row: 1; }
}
/* hover preview that follows the cursor (fine pointers only; built by m.js) */
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 280px; aspect-ratio: 14 / 9; pointer-events: none; overflow: hidden; border-radius: var(--radius); opacity: 0; will-change: transform; transition: opacity 240ms var(--ease); }
.preview.is-on { opacity: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* Quote ---------------------------------------------------------------- */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 18ch; font-family: var(--display); font-style: italic; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.015em; }
.quote cite { display: block; margin-top: var(--space-4); font-style: normal; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* Columns / stats ------------------------------------------------------- */
.cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--space-5) clamp(24px, 3vw, 48px); }
@media (max-width: 900px) { .cols { --cols: 2 !important; } }
@media (max-width: 600px) { .cols { --cols: 1 !important; } }
.stat { border-top: 1px solid var(--line-strong); padding-top: var(--space-3); }
.stat-num { display: block; font-family: var(--display); font-size: clamp(3.5rem, 2.4rem + 3.6vw, 6rem); line-height: 0.95; letter-spacing: -0.02em; }
.stat p { margin: var(--space-2) 0 0; color: var(--stone); font-size: var(--fs-small); max-width: 28ch; }
@media (max-width: 600px) {
  /* phone: stats as a compact ledger, not three stacked posters */
  .cols--stats { gap: 0; }
  .cols--stats .stat { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 16px; padding: 16px 0; }
  .cols--stats .stat-num { font-size: 2.75rem; }
  .cols--stats .stat p { margin: 0; }
}
.item { border-top: 1px solid var(--line-strong); padding-top: var(--space-3); }
.item-no { font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.12em; color: var(--stone); }
.item h3 { font-size: var(--fs-h3); margin: var(--space-2) 0 10px; }
.item p { color: var(--stone); margin: 0; }

/* Split / prose --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5) clamp(32px, 6vw, 120px); }
.split h2 { font-size: var(--fs-h2); margin-top: var(--space-3); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose p:not(.lead) { color: #2C2E25; }

/* Clients: a typeset line */
.clients { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); line-height: 1.15; letter-spacing: -0.01em; }
.clients li:not(:last-child)::after { content: "/"; margin: 0 0.3em; color: var(--stone); font-family: var(--sans); font-weight: 300; }
.clients li:nth-child(even) { font-style: italic; }

/* Capabilities, pills, callout ------------------------------------------ */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); border-top: 1px solid var(--line-strong); }
.checks li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--neon); outline: 1px solid var(--ink); transform: translateY(-2px); }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-small); }
.callout { margin-top: var(--space-6); padding: clamp(28px, 4vw, 48px); background: var(--paper-2); border-radius: var(--radius); }
.callout .stat-num { margin-bottom: var(--space-2); }
.callout h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.closer { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-strong); font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.12; max-width: 26ch; }

/* Article (service pages) ------------------------------------------------ */
.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-5) clamp(32px, 6vw, 112px); }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: var(--fs-small); }
.article-aside h2 { font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: var(--space-2); line-height: 1.4; }
.article-aside li a { display: block; padding: 9px 0; color: var(--stone); border-bottom: 1px solid var(--line); transition: color var(--t-fast) var(--ease), padding var(--t-med) var(--ease-out); }
.article-aside li a:hover { color: var(--ink); padding-left: 8px; }
.article-aside li a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 4px 0 0 var(--neon); padding-left: 12px; }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); margin-bottom: var(--space-3); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article-aside { position: static; order: 2; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.pager a { display: block; padding: var(--space-4) 0; }
.pager a:first-child { padding-right: var(--space-3); }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: var(--space-3); }
.pager span { display: block; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.pager strong { display: block; margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.1; }
.pager a:hover strong { font-style: italic; }

/* Team / jobs ------------------------------------------------------------ */
.team-card h3 { font-size: 1.125rem; margin-top: var(--space-2); }
.team-card p { margin: 4px 0 0; color: var(--stone); font-size: var(--fs-small); }
.jobs { border-top: 1px solid var(--line-strong); }
.job { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-4); padding: clamp(28px, 3vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.job h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.05; margin: 12px 0 14px; }
.job p { color: var(--stone); max-width: 62ch; margin: 0; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: var(--space-2); } .job .btn { justify-self: start; } }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease-out);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 3px 0 0 var(--neon); border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6E7064; }
.field [aria-invalid="true"] { border-bottom-color: #A61B12; }
.field-error { color: #A61B12; font-size: var(--fs-small); margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-list li { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line-strong); }
.contact-list span { display: block; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.contact-list a { display: inline-block; margin-top: 6px; padding: 4px 0; font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; overflow-wrap: anywhere; }
.contact-list a:hover { font-style: italic; }

/* Dark close: CTA + footer ------------------------------------------------ */
.on-dark { background: var(--ink); color: var(--paper); }
.cta { padding: var(--section) 0 clamp(56px, 6vw, 104px); }
.cta h2 { font-size: var(--fs-display); line-height: 0.92; max-width: 12ch; margin-top: var(--space-3); }
.cta p { color: var(--on-dark-soft); max-width: 46ch; margin-top: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--space-5); }
.footer { padding: var(--space-6) 0 var(--space-4); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.footer img { height: 28px; width: auto; }
.footer p { color: var(--on-dark-soft); font-size: var(--fs-small); max-width: 34ch; margin-top: var(--space-3); }
.footer h2 { font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 12px; line-height: 1.4; }
.footer li a { display: inline-block; padding: 6px 0; font-size: var(--fs-small); }
.footer li a:hover { color: var(--neon); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--line-dark); font-size: var(--fs-label); color: var(--on-dark-soft); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

/* Phone thumb-zone dock (appears after the hero, hides near the footer) */
.dock[hidden] { display: none !important; }
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--ink);
  box-shadow: 0 10px 30px rgba(10, 12, 0, 0.25);
  transform: translateY(160%); visibility: hidden;
  transition: transform 520ms var(--ease-out), visibility 0s linear 520ms;
}
.dock.is-shown { transform: none; visibility: visible; transition: transform 520ms var(--ease-out); }
.dock .btn { flex: 1; min-height: 46px; background: var(--neon); color: var(--ink); border-color: var(--neon); }
.dock .dock-mail { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 999px; color: var(--paper); border: 1px solid var(--line-dark); }
.dock .dock-mail svg { width: 18px; height: 18px; }
.dock :focus-visible { outline-color: var(--neon); box-shadow: 0 0 0 4px var(--ink); }

/* =======================================================================
   POSTER HERO (homepage)
   ======================================================================= */
.poster { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line-strong); }
.poster-grid {
  position: absolute; inset: 40% 0 0 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 7) 132px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
}
.poster-inner { position: relative; }
.poster-stage {
  position: relative; container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: minmax(64px, 1fr) auto auto auto minmax(80px, 1.6fr);
  column-gap: clamp(16px, 2vw, 32px);
  min-height: clamp(620px, calc(100svh - var(--header-h)), 900px);
  padding-top: clamp(24px, 3vw, 48px);
}
.poster-frame { position: absolute; z-index: 0; left: 33cqw; width: 34cqw; bottom: 35.5cqw; height: 19.5cqw; border: 1px solid rgba(10, 12, 0, 0.4); border-bottom: 0; }
.poster-frame::after { content: ""; position: absolute; left: -1px; top: 100%; height: 22%; border-left: 1px solid rgba(10, 12, 0, 0.4); }
.poster-figure {
  position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); width: 35%; height: auto; max-width: none;
  filter: grayscale(1) contrast(1.08);   /* editorial monochrome: the neon is the only colour */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.poster-pill, .poster-title, .poster-actions, .poster-lead { position: relative; z-index: 2; }
.poster-pill { grid-column: 1; grid-row: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 14px 5px 6px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-label); font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; }
.poster-pill img { width: 22px; height: 22px; border-radius: 50%; }
.poster-title { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: inherit; column-gap: inherit; align-items: center; margin: 0; font-family: var(--sans); letter-spacing: normal; line-height: 1; }
.poster-sans { grid-column: 1; max-width: 8.5ch; font-family: var(--sans); font-size: clamp(2rem, 0.9rem + 2.8vw, 3.75rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; line-height: 0.96; }
.poster-serif { grid-column: 3; justify-self: start; max-width: 4ch; font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 1.4rem + 6vw, 8.25rem); letter-spacing: -0.02em; line-height: 0.86; }
.poster-serif .hl { font-style: italic; }
.poster-actions { grid-column: 1; grid-row: 4; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3vw, 44px); align-self: start; }
.poster-lead { grid-column: 3; grid-row: 4; margin: clamp(28px, 3vw, 44px) 0 0; max-width: 28ch; font-size: var(--fs-small); color: #2C2E25; }
@media (max-width: 1100px) { .poster-actions .btn--ghost { display: none; } .poster-figure { width: 37%; } .poster-frame { left: 32cqw; width: 36cqw; bottom: 37.5cqw; height: 20.5cqw; } .poster-lead { max-width: 24ch; } }

/* Phone: a staggered poster, not a squeezed desktop */
@media (max-width: 820px) {
  .poster-grid { inset: 52% 0 0 0; background-size: 25% 88px; }
  .poster-stage { display: flex; flex-direction: column; min-height: 0; padding-top: 28px; }
  .poster-frame { display: none; }
  .poster-pill { align-self: flex-start; margin-bottom: 22px; }
  .poster-title { display: block; width: 100%; }
  .poster-sans { display: block; max-width: 9ch; font-size: clamp(2.75rem, 1.4rem + 7vw, 3.75rem); }
  .poster-serif { display: block; width: max-content; max-width: 100%; margin: 6px 0 0 auto; text-align: right; font-size: clamp(4.75rem, 2rem + 14vw, 7.5rem); line-height: 0.9; }
  .poster-lead { order: 4; margin: 26px 0 0; max-width: 34ch; }
  .poster-actions { order: 5; margin-top: 20px; }
  .poster-actions .btn--ghost { display: inline-flex; }
  .poster-figure { order: 10; position: relative; left: auto; transform: none; align-self: center; width: min(88%, 420px); margin: 32px auto 0; }
}

/* =======================================================================
   MOTION: crafted and quiet, only when the visitor allows it.
   html.motion is set in <head> when reduced motion is NOT requested, and
   is removed again if m.js never runs, so content can't stay hidden.
   ======================================================================= */
@keyframes rise { from { transform: translateY(0.3em); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-0.2em -0.2em -0.3em -0.2em); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes figure-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes figure-in-m { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 -30% 0); } }
@keyframes highlight { from { background-size: 0 0.34em; } to { background-size: 100% 0.34em; } }

.motion .poster-sans { animation: rise 1s var(--ease-out) 0.1s both; }
.motion .poster-serif { animation: rise 1.1s var(--ease-out) 0.28s both; }
.motion .poster-pill, .motion .poster-actions, .motion .poster-lead { animation: fade 0.8s var(--ease) 0.7s both; }
.motion .poster-figure { animation: figure-in 1.2s var(--ease-out) 0.2s both; }
.motion .poster-frame { animation: draw 1.4s var(--ease-out) 0.55s both; }
.motion .poster .hl, .motion .intro .hl { animation: highlight 0.7s var(--ease-out) 1.2s both; }
@media (max-width: 820px) { .motion .poster-figure { animation-name: figure-in-m; } }

/* scroll: hairlines draw and images unveil; nothing fades up */
.motion .sec-head::before, .motion .stat, .motion .item { transition: transform 1.1s var(--ease-out), border-color 0.6s var(--ease); }
.motion .sec-head::before { transform: scaleX(0); }
.motion .sec-head.is-in::before { transform: scaleX(1); }
.motion .stat, .motion .item { border-top-color: transparent; background: linear-gradient(var(--line-strong), var(--line-strong)) no-repeat 0 0 / 0 1px; transition: background-size 1.1s var(--ease-out); }
.motion .stat.is-in, .motion .item.is-in { background-size: 100% 1px; }
.motion .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.motion .frame img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.motion .frame.is-in { clip-path: inset(0 0 0 0); }
.motion .frame.is-in img { transform: none; }
.motion a:hover .frame.is-in img { transform: scale(1.035); transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .menu, .cta, .footer, .dock { display: none; } }

/* Split with an image (careers: What working here is like) */
@media (min-width: 901px) { .split--media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.split--media .cols { gap: var(--space-5); }
@media (max-width: 900px) { .split--media .frame { max-width: 520px; } }
