/* ============================================================
   XYZ.HQ — DESIGN SYSTEM  ·  "editorial print, engineered"
   ------------------------------------------------------------
   Content is edited in js/data.js — you rarely need this file.
   To re-theme the whole site, change the tokens right below.
   ============================================================ */

:root {
  /* ---- color tokens (change these to re-skin the site) ---- */
  --paper:   #f4f1ea;  /* page background (warm gallery cream) */
  --paper-2: #fdfbf5;  /* raised cards on light */
  --ink:     #191713;  /* main text on light */
  --muted:   #6f6a5e;  /* secondary text on light */
  --line:    rgba(25, 23, 19, 0.16);

  --blue:    #2438ff;  /* THE brand color (ultramarine) */
  --blue-d:  #9aa7ff;  /* ultramarine adjusted for dark sections */
  --on-blue: #f4f1ea;  /* text sitting on ultramarine */

  --dark:    #161510;  /* dark "ink" sections */
  --dark-2:  #211f17;  /* raised cards on dark */
  --cream:   #f0ede3;  /* text on dark */
  --muted-d: #97927e;  /* secondary text on dark */
  --line-d:  rgba(240, 237, 227, 0.15);

  /* ---- type ---- */
  --disp:  "Fraunces", "Georgia", serif;
  --sans:  "Satoshi", -apple-system, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* ---- layout ---- */
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(90px, 11vw, 160px);
  --radius: 18px;
  --sheet-r: clamp(24px, 4vw, 52px);
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html {
  -webkit-text-size-adjust: 100%; /* stop iOS inflating text in landscape */
  text-size-adjust: 100%;
  overflow-x: clip; /* belt-and-braces: no sideways panning on any device */
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* no grey flash on mobile taps */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
section { scroll-margin-top: 90px; }
.is-hidden { display: none !important; }

/* paper grain over everything (very subtle, unifies the design) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/></filter><rect width="140" height="140" filter="url(%23n)" opacity="1"/></svg>');
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #cdc8b8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============ utilities ============ */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.accent-em { color: var(--blue); font-family: var(--disp); font-style: italic; font-weight: 570; }
.arr { display: inline-block; transition: transform 0.3s; }

/* section header pattern */
.section { padding-block: var(--sec); position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--blue); }
.section-title {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.section-note {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  padding-bottom: 8px;
}

/* status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--muted);
  background: var(--paper-2);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(36, 56, 255, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(36, 56, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 56, 255, 0); }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 15px 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
  will-change: transform;
}
.btn-fill { background: var(--blue); color: var(--on-blue); border: 1px solid var(--blue); }
.btn-fill:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn:hover .arr { transform: translate(3px, -3px); }

/* corner "+" marks */
.corners { position: absolute; inset: 24px; pointer-events: none; }
.corners::before, .corners::after {
  content: "+";
  position: absolute;
  font-family: var(--mono);
  font-size: 18px;
  color: currentColor;
  opacity: 0.35;
}
.corners::before { top: 0; left: 0; }
.corners::after { bottom: 0; right: 0; }

/* chips */
.chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--muted);
  white-space: nowrap;
}
.chip-dark { border-color: var(--line-d); color: var(--muted-d); }

/* scroll reveal */
.reveal {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.75s ease, translate 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* custom cursor */
.cursor-dot {
  position: fixed;
  left: 0; top: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  z-index: 9500;
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, border 0.25s;
}
.cursor-dot.cursor-grow {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  background: transparent;
  border: 1.5px solid var(--blue);
}

/* progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1002;
}

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-block: 20px;
  transition: padding 0.35s, background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 12px;
  background: rgba(244, 241, 234, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-tools { margin-right: clamp(-18px, -1vw, -6px); } /* nudges the CTA group toward the edge */
.nav-book { white-space: nowrap; }
.brand {
  font-family: var(--disp);
  font-weight: 640;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  z-index: 1101;
  position: relative;
  color: var(--ink);
}
.brand-suffix { color: var(--blue); }
.nav-links { display: flex; gap: 34px; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-block: 12px; /* generous hit area for touch tablets */
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px; /* hug the text, not the padded hit area */
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta { padding: 11px 22px; font-size: 0.85rem; border-radius: 12px; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

/* theme toggle */
.theme-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.theme-btn:hover { border-color: var(--blue); color: var(--blue); transform: rotate(18deg); }
.theme-btn svg { width: 17px; height: 17px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* burger */
.burger {
  display: none;
  z-index: 1101;
  position: relative;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s, opacity 0.35s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu li {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.5s, translate 0.5s;
  transition-delay: calc(var(--i) * 60ms + 100ms);
}
.menu-open .menu li { opacity: 1; translate: 0 0; }
.menu-link {
  font-family: var(--disp);
  font-weight: 570;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 18px;
  letter-spacing: -0.01em;
}
.menu-link:hover { color: var(--blue); }
.menu-num { font-family: var(--mono); font-size: 0.8rem; color: var(--blue); }
.menu-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.menu-mail { font-size: 1.05rem; color: var(--muted); border-bottom: 1px solid var(--line); }

/* ============ hero ============ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;
}
/* faint drafting grid */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(25, 23, 19, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 23, 19, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(90% 90% at 60% 15%, black 15%, transparent 80%);
  mask-image: radial-gradient(90% 90% at 60% 15%, black 15%, transparent 80%);
}
/* ultramarine wash */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 84% 6%, rgba(36, 56, 255, 0.09), transparent 65%),
    radial-gradient(560px 440px at 4% 92%, rgba(36, 56, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-badge::before { content: ""; width: 26px; height: 1px; background: var(--blue); }
.hero-h {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(3rem, 8.8vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-h .h-line { display: block; }
.rotor-line { color: var(--blue); font-style: italic; font-weight: 570; }
.rotor { display: inline-block; transition: opacity 0.26s, translate 0.26s, filter 0.26s; }
.rotor-out { opacity: 0; translate: 0 -16px; filter: blur(5px); }
.rotor-cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.72em;
  background: var(--blue);
  margin-left: 0.1em;
  animation: blink 1.1s steps(2) infinite;
  vertical-align: -0.04em;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 34px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* the spec strip */
.hero-brief {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 980px;
}
.brief-row { border-top: 1px solid var(--line); padding-top: 14px; }
.brief-row dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.brief-row dd { font-weight: 500; font-size: 0.95rem; line-height: 1.4; }

.hero-scroll {
  position: absolute;
  left: var(--pad);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  z-index: 2;
}
.hero-scroll .line {
  width: 44px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue);
  transform: translateX(-100%);
  animation: slideline 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes slideline { 50% { transform: translateX(0); } 100% { transform: translateX(102%); } }

/* rotating stamp */
.stamp {
  position: absolute;
  right: var(--pad);
  bottom: 36px;
  width: 118px;
  height: 118px;
  z-index: 3;
  display: grid;
  place-items: center;
}
.stamp svg {
  position: absolute; inset: 0;
  animation: spin 16s linear infinite;
}
.stamp svg text {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  fill: var(--ink);
  transition: fill 0.3s;
}
.stamp-arrow {
  font-family: var(--disp);
  font-size: 1.7rem;
  color: var(--blue);
  transition: transform 0.3s;
}
.stamp:hover svg text { fill: var(--blue); }
.stamp:hover .stamp-arrow { transform: translate(3px, -3px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .fx {
    opacity: 0;
    translate: 0 34px;
    animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes rise { to { opacity: 1; translate: 0 0; } }
}

/* ============ marquee ============ */
.marquee-band {
  background: var(--blue);
  color: var(--on-blue);
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -10px;
  position: relative;
  z-index: 3;
  overflow-x: hidden;
  overflow-x: clip; /* keeps the endless track from widening the page on touch devices */
}
.marquee-track {
  display: flex;
  width: max-content;
  padding-block: 15px;
  animation: marquee 30s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--disp);
  font-weight: 570;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-star { margin-inline: 28px; font-size: 0.8em; opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ manifesto ============ */
.manifesto-text {
  font-family: var(--disp);
  font-weight: 570;
  font-size: clamp(1.65rem, 3.5vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 960px;
  text-wrap: balance;
}

/* ============ services ============ */
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-head {
  display: grid;
  grid-template-columns: 88px 1fr auto 44px;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding-block: 30px;
  transition: background 0.3s;
}
.service-head:hover { background: rgba(25, 23, 19, 0.03); }
.service-num { color: var(--muted); transition: color 0.3s; }
.service-head:hover .service-num { color: var(--blue); }
.service-title {
  font-family: var(--disp);
  font-weight: 570;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  letter-spacing: -0.01em;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-head:hover .service-title { transform: translateX(10px); }
.service-tag { color: var(--muted); }
.service-plus {
  position: relative;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  justify-self: end;
  transition: border-color 0.3s, background 0.3s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-plus::before, .service-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
}
.service-plus::before { width: 13px; height: 1.5px; transform: translate(-50%, -50%); }
.service-plus::after { width: 1.5px; height: 13px; transform: translate(-50%, -50%); }
.open .service-plus { background: var(--blue); border-color: var(--blue); color: var(--on-blue); transform: rotate(135deg); }
.service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-body-in { overflow: hidden; min-height: 0; }
.open .service-body { grid-template-rows: 1fr; }
.service-blurb { max-width: 620px; color: var(--muted); margin-left: 108px; }
.service-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 8px 108px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  margin: 14px 0 34px 108px;
}
.service-link:hover .arr { transform: translateX(5px); }

/* ============ ink zone (work + process, dark sheet) ============ */
.ink-zone {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--sheet-r);
  margin-inline: clamp(6px, 1vw, 14px);
  position: relative;
  z-index: 2;
}
.ink-zone .section-title { color: var(--cream); }
.ink-zone .section-note { color: var(--muted-d); }
.ink-zone .kicker { color: var(--blue-d); }
.ink-zone .kicker::before { background: var(--blue-d); }

/* work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.work-card {
  background: var(--dark-2);
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px -20px rgba(0, 0, 0, 0.55);
}
.work-cover {
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(120% 100% at 100% 0%, hsl(calc(var(--hue) + 42) 85% 66% / 0.9), transparent 55%),
    linear-gradient(135deg, hsl(var(--hue) 72% 58%), hsl(calc(var(--hue) + 26) 78% 42%));
  background-size: 160% 160%;
  background-position: 0% 50%;
  transition: background-position 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  color: #14120c;
}
/* halftone print texture */
.work-cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 18, 12, 0.2) 1px, transparent 1.4px);
  background-size: 7px 7px;
  pointer-events: none;
  opacity: 0.5;
}
.work-card:hover .work-cover { background-position: 90% 50%; }
.work-metric {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.work-metric-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.work-index {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 1;
}
.work-info { padding: 22px; }
.work-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-client { font-family: var(--disp); font-weight: 570; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--cream); }
.work-sector { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d); white-space: nowrap; }
.work-summary { color: var(--muted-d); font-size: 0.94rem; margin-top: 10px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-block: 6px; /* larger tap area on touch */
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--blue-d);
}
.work-link:hover .arr { transform: translate(3px, -3px); }

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.step {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  transition: background 0.35s, transform 0.35s;
}
.step:hover { background: var(--dark-2); transform: translateY(-5px); }
.step-num {
  font-family: var(--disp);
  font-weight: 640;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--cream);
  display: block;
  margin-bottom: 22px;
  transition: color 0.35s;
}
.step:hover .step-num { color: var(--blue-d); -webkit-text-stroke-color: var(--blue-d); }
.step-title { font-family: var(--disp); font-weight: 570; font-size: 1.3rem; margin-bottom: 10px; color: var(--cream); }
.step-text { color: var(--muted-d); font-size: 0.93rem; }

/* ============ results band ============ */
.results-band {
  background: var(--blue);
  color: var(--on-blue);
  padding-block: clamp(70px, 9vw, 120px);
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--sheet-r));
  padding-top: calc(clamp(70px, 9vw, 120px) + var(--sheet-r));
}
.results-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
}
.results-kicker::before { content: ""; width: 26px; height: 1px; background: var(--on-blue); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.result { border-left: 1px solid rgba(244, 241, 234, 0.35); padding-left: 22px; }
.result-value {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  display: block;
  font-variant-numeric: tabular-nums;
}
/* text claims (non-numeric): smaller, so longer words fit the tile */
.result-value-text {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.result-label {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============ testimonials ============ */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.quote {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  position: relative;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.quote:hover {
  border-color: rgba(36, 56, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -22px rgba(25, 23, 19, 0.25);
}
.quote-mark {
  font-family: var(--disp);
  font-size: 3.6rem;
  line-height: 0.5;
  color: var(--blue);
  display: block;
  margin-bottom: 24px;
}
.quote blockquote { font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.quote figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-name { display: block; font-weight: 700; font-size: 0.95rem; }
.quote-role { display: block; margin-top: 5px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ============ faq ============ */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-head {
  display: grid;
  grid-template-columns: 52px 1fr 44px;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding-block: 24px;
}
.faq-num { color: var(--blue); }
.faq-q { font-weight: 500; font-size: 1.08rem; }
.faq-a { color: var(--muted); max-width: 640px; margin-left: 68px; padding-bottom: 28px; }

/* ============ contact cta (dark sheet rising out of the paper) ============ */
.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(110px, 14vw, 190px);
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 480px at 50% 118%, rgba(96, 116, 255, 0.22), transparent 65%),
    linear-gradient(to right, rgba(240, 237, 227, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 237, 227, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 84px 84px, 84px 84px;
  -webkit-mask-image: radial-gradient(72% 82% at 50% 70%, black 30%, transparent 86%);
  mask-image: radial-gradient(72% 82% at 50% 70%, black 30%, transparent 86%);
}
.contact .wrap { position: relative; z-index: 2; }
.contact .corners { color: var(--cream); }
.contact .status-chip {
  border-color: var(--line-d);
  color: var(--muted-d);
  background: rgba(240, 237, 227, 0.05);
  margin-bottom: 30px;
}
.contact-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-d);
  display: block;
  margin-bottom: 20px;
}
.contact-h {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.contact-h .l2 { display: block; color: var(--blue-d); font-style: italic; font-weight: 570; }
.contact-text { max-width: 540px; margin: 26px auto 0; color: var(--muted-d); font-size: 1.05rem; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}
.btn-mail {
  font-family: var(--disp);
  font-weight: 570;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  padding: 23px 54px;
  border-radius: 18px;
}
.contact .btn-fill:hover { background: var(--cream); border-color: var(--cream); color: var(--dark); }
.contact .btn-ghost { border-color: var(--line-d); color: var(--cream); }
.contact .btn-ghost:hover { border-color: var(--blue-d); color: var(--blue-d); }
.contact-note {
  display: block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-d);
}

/* ============ lead reply card ============ */
.lead-card {
  position: relative;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  transition: background-color 0.4s, border-color 0.4s;
}
.lead-stamp {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead-title {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.lead-text { color: var(--muted); max-width: 46ch; }
.lead-bullets { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.lead-bullets li { display: flex; gap: 12px; font-size: 0.95rem; align-items: baseline; }
.lead-bullets li::before { content: "→"; color: var(--blue); flex: none; }
.lead-right {
  border-left: 1px dashed var(--line);
  padding-left: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-fields { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.3s, background-color 0.4s;
}
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field input:focus { outline: none; border-color: var(--blue); }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.lead-btn { justify-content: center; width: 100%; margin-top: 18px; }
.lead-btn:disabled { opacity: 0.6; cursor: default; }
.lead-note {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead-done {
  font-family: var(--disp);
  font-weight: 570;
  font-size: 1.6rem;
  text-align: center;
  padding: 40px 0 10px;
}

/* ============ footer (stays on the dark sheet) ============ */
.footer {
  background: var(--dark);
  color: var(--cream);
  border-top: 1px solid var(--line-d);
  padding-top: clamp(60px, 8vw, 100px);
  position: relative;
}
.footer-mark {
  font-family: var(--disp);
  font-weight: 640;
  font-size: clamp(4rem, 15vw, 13.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: block;
  text-align: center;
  user-select: none;
  background: linear-gradient(to bottom, var(--cream) 30%, rgba(240, 237, 227, 0.22));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-mark .brand-suffix { -webkit-text-fill-color: var(--blue-d); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-top: clamp(50px, 7vw, 80px);
  padding-top: 44px;
  border-top: 1px solid var(--line-d);
}
.footer-col h4 { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-d); font-weight: 400; margin-bottom: 18px; }
.footer-blurb { color: var(--muted-d); font-size: 0.95rem; max-width: 300px; }
.footer-mail { display: inline-block; margin-top: 16px; font-weight: 500; border-bottom: 1px solid var(--blue-d); padding-bottom: 2px; }
.footer-mail:hover { color: var(--blue-d); }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.social-link { display: inline-block; padding-block: 6px; color: var(--muted-d); font-size: 0.92rem; transition: color 0.25s; }
.social-link:hover { color: var(--blue-d); }
.social-link:hover .arr { transform: translate(2px, -2px); }
.footer-meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-meta .status-chip { border-color: var(--line-d); color: var(--muted-d); background: rgba(240, 237, 227, 0.05); }
.footer-location { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-d); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 54px;
  padding-block: 26px;
  border-top: 1px solid var(--line-d);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.top-link:hover { color: var(--blue-d); }

/* ============ responsive ============ */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card:last-child { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .quotes-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .results-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stamp { display: none; }
  .nav-book { display: none; } /* keep the header uncluttered on tablets/phones */
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .hero-badge { font-size: 0.64rem; letter-spacing: 0.1em; }
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-bottom: 120px;
  }
  .hero .wrap { flex: 0 0 auto; }
  .hero-brief { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
  .hero-scroll { bottom: 28px; }
  .service-head { grid-template-columns: 64px 1fr 40px; }
  .service-tag { display: none; }
  .service-blurb, .service-chips, .service-link { margin-left: 84px; }
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .faq-head { grid-template-columns: 40px 1fr 40px; }
  .faq-a { margin-left: 56px; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-right {
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-left: 0;
    padding-top: 28px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .corners { inset: 14px; }
}
@media (max-width: 430px) {
  .service-blurb, .service-chips, .service-link { margin-left: 0; }
}

/* ============ dark mode ============
   The whole site is built on the tokens at the top of this file,
   so dark mode is just a re-map of those tokens plus a handful of
   hardcoded-color fixes. Toggled via data-theme="dark" on <html>. */
[data-theme="dark"] {
  color-scheme: dark;
  --paper:   #141310;
  --paper-2: #1e1c16;
  --ink:     #f0ede3;
  --muted:   #9a957f;
  --line:    rgba(240, 237, 227, 0.14);

  --blue:    #8f9dff;   /* ultramarine lifts to periwinkle for contrast */
  --blue-d:  #9aa7ff;
  --on-blue: #12110c;

  --dark:    #211f17;   /* ink sheets become raised panels */
  --dark-2:  #2c2a21;
  --cream:   #f0ede3;
  --muted-d: #9a957f;
  --line-d:  rgba(240, 237, 227, 0.16);
}
[data-theme="dark"] .nav.scrolled { background: rgba(20, 19, 16, 0.8); }
[data-theme="dark"] .hero::before {
  background:
    linear-gradient(to right, rgba(240, 237, 227, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 237, 227, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
}
[data-theme="dark"] .hero::after {
  background:
    radial-gradient(700px 500px at 84% 6%, rgba(143, 157, 255, 0.12), transparent 65%),
    radial-gradient(560px 440px at 4% 92%, rgba(143, 157, 255, 0.06), transparent 60%);
}
[data-theme="dark"] .service-head:hover { background: rgba(240, 237, 227, 0.04); }
[data-theme="dark"] .result { border-left-color: rgba(18, 17, 12, 0.35); }
[data-theme="dark"] .quote:hover {
  border-color: rgba(143, 157, 255, 0.5);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3b382c; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* one-shot cross-fade applied by the toggle (class added for ~0.5s) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.45s ease, background 0.45s ease, color 0.45s ease,
    border-color 0.45s ease, fill 0.45s ease, stroke 0.45s ease, box-shadow 0.45s ease !important;
}

/* reduced motion: kill all decorative animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .marquee-track { animation: none; }
  .marquee-band { overflow-x: auto; }
  .status-dot, .hero-scroll .line::after, .rotor-cursor, .stamp svg { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
