:root {
  --canvas: #f7f5f3;
  --ink: #003031;
  --paper: #ffffff;
  --stone: #5f5b5a;
  --pebble: #8c8988;
  --gold: #be8b40;
  --line: rgba(0, 48, 49, 0.14);
  --line-soft: rgba(0, 48, 49, 0.08);

  --radius: 16px;
  --radius-tile: 12px;

  --font-display: 'Fraunces', 'GT Super', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Obi is pixel art — keep the pixels crisp instead of smearing them */
.pixel { image-rendering: pixelated; }

a { color: inherit; }

::selection { background: rgba(190, 139, 64, 0.22); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }

/* ---------- Type ---------- */
/* opsz is held well below its 144 maximum: the high-contrast optical sizes
   thin the hairlines out at display sizes, which reads as flimsy. */
.display, .h2, .h3, .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 64, 'SOFT' 0, 'WONK' 0;
  margin: 0;
}

.display {
  font-size: clamp(46px, 8.4vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.042em;
}
@media (min-width: 900px) { .display { line-height: 0.9; } }

.h2 {
  font-size: clamp(31px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
@media (max-width: 640px) { .h2 { font-size: 27px; } }

.h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0;
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.2px;
  color: var(--stone);
  margin: 0;
  max-width: 58ch;
}

.body-text { color: var(--stone); margin: 0; }
.caption { font-size: 14px; line-height: 1.5; color: var(--pebble); margin: 0; letter-spacing: 0; }

.section { padding-block: clamp(48px, 5.5vw, 72px); }
@media (max-width: 640px) { .section { padding-block: 36px; } }

/* keep anchor targets clear of the fixed nav pill */
section[id] { scroll-margin-top: 96px; }

.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.section-body { margin-top: clamp(36px, 4vw, 56px); }
.section-note { margin-top: 24px; }
@media (max-width: 640px) {
  .section-head { gap: 12px; }
  .section-body { margin-top: 26px; }
}

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.18px;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease),
              color 220ms var(--ease), border-color 220ms var(--ease), opacity 220ms var(--ease);
}

/* gradient sweep sits behind the label (negative z-index) and fades/scales in on hover —
   only transform + opacity animate, so this stays cheap even with several buttons in view */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--gold) 100%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.btn:hover::before { opacity: 1; transform: scale(1); }
.btn:focus-visible::before { opacity: 1; transform: scale(1); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost::before { background: linear-gradient(135deg, rgba(0, 48, 49, 0.92) 0%, rgba(190, 139, 64, 0.92) 100%); }
.btn-ghost:hover { transform: translateY(-2px); border-color: transparent; color: var(--paper); }
.btn-ghost:active { transform: translateY(0); }

.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-start { align-self: flex-start; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}
.link-arrow span:last-child { transition: transform 220ms var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover span:last-child { transform: translateX(4px); }

/* ---------- Cursor trail (site-wide) ---------- */
.cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ---------- Background Obis (site-wide, built in app.js) ---------- */
body { position: relative; }
.obi-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.obi-field img {
  position: absolute;
  height: auto;
  opacity: 0.6;
  will-change: transform;
}
/* lift real content above the field so the owls only ever show in the margins and between cards */
main, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav-shell {
  position: fixed;
  inset-block-start: 14px;
  inset-inline: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1100px;
  padding: 8px 8px 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.nav-pill.is-scrolled { background: rgba(255, 255, 255, 0.94); border-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  font-variation-settings: 'opsz' 40;
  white-space: nowrap;
}

.nav-cta { flex-shrink: 0; white-space: nowrap; }
/* match the hero's primary button exactly, so the same hover effect reads
   just as clearly here as it does there — .btn-sm would shrink it otherwise */
.nav-cta.btn-sm { padding: 15px 24px; font-size: 16px; }
.nav-cta .cta-short { display: inline; }
.nav-cta .cta-long { display: none; }
@media (min-width: 420px) {
  .nav-cta .cta-short { display: none; }
  .nav-cta .cta-long { display: inline; }
}
@media (max-width: 359px) { .brand-name { display: none; } }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 9999px;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(0, 48, 49, 0.05); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.nav-toggle:hover { background: var(--canvas); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-drawer {
  pointer-events: auto;
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  padding: 13px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 200ms var(--ease);
}
.nav-drawer a:hover { background: rgba(0, 48, 49, 0.05); }
@media (min-width: 1024px) { .nav-drawer { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(124px, 14vw, 168px) clamp(56px, 6vw, 80px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.hero .display { max-width: 15ch; }
.hero .lede { text-align: center; max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* small floating mascots — decorative on desktop only, JS fades them out on scroll
   and nudges them away from the cursor (see app.js). Rotation lives on the
   standalone `rotate` property so JS can drive `transform` (translate) for the
   dodge effect without fighting the tilt. */
.tile {
  position: absolute;
  z-index: 1;
  border-radius: var(--radius-tile);
  overflow: hidden;
  display: none;
  transition: transform 320ms var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1120px) { .tile { display: block; } }

.tile-a { inset-inline-start: 2%;  inset-block-start: 23%; width: 130px; rotate: -6deg; }
.tile-b { inset-inline-start: 11%; inset-block-end: 12%;   width: 104px; rotate: 5deg; }
.tile-c { inset-inline-end: 2.5%;  inset-block-start: 19%; width: 138px; rotate: 6deg; }
.tile-d { inset-inline-end: 12%;   inset-block-end: 11%;   width: 106px; rotate: -5deg; }
.tile-e { inset-inline-start: 15%; inset-block-start: 18%; width: 96px;  rotate: 8deg; }
.tile-f { inset-inline-start: 18%; inset-block-end: 26%;   width: 88px;  rotate: -8deg; }
.tile-g { inset-inline-end: 17%;   inset-block-start: 17%; width: 92px;  rotate: -9deg; }
.tile-h { inset-inline-end: 19%;   inset-block-end: 25%;   width: 86px;  rotate: 7deg; }

/* phones: smaller, parked in the hero's own top/bottom padding so they never
   fight the centred heading for space, whatever it wraps to */
@media (max-width: 640px) {
  .tile { display: block; width: 38px; }
  /* nav pill bottom sits at ~78px, heading starts at 124px — only ~45px of
     clearance, so the top row is pinned to one safe value, not staggered */
  .tile-a { inset-inline-start: 4%;  inset-block-start: 86px; inset-block-end: auto; rotate: -6deg; }
  .tile-e { inset-inline-start: 30%; inset-block-start: 86px; inset-block-end: auto; rotate: 8deg; }
  .tile-g { inset-inline-end: 30%;   inset-block-start: 86px; inset-block-end: auto; rotate: -9deg; }
  .tile-c { inset-inline-end: 4%;    inset-block-start: 86px; inset-block-end: auto; rotate: 6deg; }
  .tile-b { inset-inline-start: 4%;  inset-block-end: 12px; inset-block-start: auto; rotate: 5deg; }
  .tile-f { inset-inline-start: 30%; inset-block-end: 8px;  inset-block-start: auto; rotate: -8deg; }
  .tile-h { inset-inline-end: 30%;   inset-block-end: 8px;  inset-block-start: auto; rotate: 7deg; }
  .tile-d { inset-inline-end: 4%;    inset-block-end: 12px; inset-block-start: auto; rotate: -5deg; }
}

@media (prefers-reduced-motion: no-preference) {
  .tile { animation: drift 11s var(--ease) infinite; }
  .tile-b { animation-duration: 13s;   animation-delay: -3s; }
  .tile-c { animation-duration: 12s;   animation-delay: -6s; }
  .tile-d { animation-duration: 14s;   animation-delay: -9s; }
  .tile-e { animation-duration: 11.5s; animation-delay: -1s; }
  .tile-f { animation-duration: 13.5s; animation-delay: -4s; }
  .tile-g { animation-duration: 12.5s; animation-delay: -7s; }
  .tile-h { animation-duration: 14.5s; animation-delay: -10s; }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* the phone layout parks tiles in tight top/bottom bands (see above) — the
   ±10px bob would carry them into the nav pill or the buttons, so mobile
   tiles hold still instead. Overrides the reduced-motion block above by
   coming after it in source order. */
@media (max-width: 640px) {
  .tile { animation: none; }
}

/* page header for interior pages */
.page-head { padding-block: clamp(124px, 13vw, 156px) clamp(24px, 3vw, 40px); }
.page-head .display { max-width: 18ch; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}
.back-link:hover { color: var(--ink); gap: 12px; }

/* ---------- Legal page prose ---------- */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--stone); margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--stone); margin: 0 0 16px; padding-inline-start: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: transform 260ms var(--ease);
}
.card:hover { transform: translateY(-4px); }

.card-media {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
/* percentage heights need a flex parent here — in a grid track they resolve to auto and the art crops */
.card-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.card-media svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .card-media { aspect-ratio: 16 / 9; padding: 14px; } }

.card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; margin: 0; }
.card-body { font-size: 16px; color: var(--stone); margin: 0; }

/* ---------- Products ---------- */
.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.product:hover { transform: translateY(-4px); border-color: var(--line); }

.product-media {
  border-radius: var(--radius-tile);
  background: var(--canvas);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  --media-pad: 18px;
}
.product-media svg { width: 100%; height: 100%; }
/* Safari can't resolve max-height: 100% against an aspect-ratio box, so square photos overflowed at natural size — pin the image to the box instead */
.product-media img {
  position: absolute;
  inset: var(--media-pad);
  width: calc(100% - 2 * var(--media-pad));
  height: calc(100% - 2 * var(--media-pad));
  object-fit: contain;
  border-radius: calc(var(--radius-tile) - 4px);
}

/* smaller phones: shrink the photo to a centred thumbnail instead of a full-width block */
@media (max-width: 640px) {
  .product-media { aspect-ratio: 4 / 3; max-width: 200px; margin-inline: auto; --media-pad: 12px; }
}

.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 40;
  white-space: nowrap;
}

/* ---------- Colour swatches ---------- */
.swatches { display: flex; align-items: center; gap: 14px; margin-top: -4px; }
.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch:active { transform: scale(1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatch-white { background: #ffffff; }
.swatch-black { background: #0d0d0d; border-color: #0d0d0d; }

.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spec li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 15px;
  color: var(--stone);
}
.spec li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 9px;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--gold);
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { display: flex; flex-direction: column; gap: 14px; }
.step-media {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.step-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .step-media { aspect-ratio: 2 / 1; padding: 10px; } }
.step-index {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar { padding: 32px 0; border-top: 1px solid var(--line-soft); }
.pillar p { margin-top: 12px; }
@media (min-width: 860px) {
  .pillar { padding: 0 32px; border-top: 0; border-left: 1px solid var(--line-soft); }
  .pillar:first-child { padding-inline-start: 0; border-left: 0; }
  .pillar:last-child { padding-inline-end: 0; }
}

/* ---------- Capabilities ---------- */
.capability {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.capability:hover { transform: translateY(-4px); border-color: var(--line); }

/* ---------- Pricing tiers ---------- */
.tier {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: var(--line); }

.tier-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--canvas);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.tier-meta { display: grid; gap: 10px; margin: 0; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.tier-meta > div { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.tier-meta dt { font-size: 13px; font-weight: 600; color: var(--stone); margin: 0; }
.tier-meta dd { font-size: 14px; color: var(--ink); margin: 0; }

/* side-by-side label/value once the card itself is wide enough not to wrap awkwardly —
   a container query, not a viewport one, since a narrow card can occur at any viewport width */
@container (min-width: 360px) {
  .tier-meta > div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .tier-meta dt { white-space: nowrap; }
  .tier-meta dd { text-align: right; }
}

.tier-price { margin-top: auto; padding-top: 4px; }
.tier-price .price { margin: 0; }
.tier-price .caption { margin-top: 4px; }
.price-unit { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--stone); }

/* ---------- Case studies ---------- */
/* narrow, portrait-proportioned — same shape language as the pricing tiers,
   all four in one row once there's room */
.grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1220px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.case-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.case-card:hover { transform: translateY(-4px); border-color: var(--line); }
.case-client { font-size: 15px; font-weight: 600; color: var(--ink); margin: -4px 0 0; }
.case-stack {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0;
}
.case-card .spec { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* ---------- "See details" disclosure (mobile only — always open from 641px up) ---------- */
.details-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.details-toggle:hover { color: var(--gold); }
.details-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
  flex-shrink: 0;
}
.details-toggle[aria-expanded="true"] .details-toggle-icon { transform: rotate(-135deg); }
.details-panel { display: flex; flex-direction: column; gap: 12px; }
.details-panel[hidden] { display: none; }

@media (min-width: 641px) {
  .details-toggle { display: none; }
  .details-panel[hidden] { display: flex; }
}

/* staggered entrance, scoped to the case-studies grid for a slightly richer reveal
   than the site-wide fade-up — same tokens, just offset per card */
@media (prefers-reduced-motion: no-preference) {
  #case-studies .case-card { transition-duration: 720ms; }
  #case-studies .grid-4 > .case-card:nth-child(1) { transition-delay: 0ms; }
  #case-studies .grid-4 > .case-card:nth-child(2) { transition-delay: 90ms; }
  #case-studies .grid-4 > .case-card:nth-child(3) { transition-delay: 180ms; }
  #case-studies .grid-4 > .case-card:nth-child(4) { transition-delay: 270ms; }
}

/* ---------- Section accordion (mobile only — sections stay open from 641px up) ---------- */
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  font-variation-settings: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(-135deg); }

.accordion-panel { margin-top: 18px; }
.accordion-panel[hidden] { display: none; }

@media (min-width: 641px) {
  .accordion-trigger { cursor: default; pointer-events: none; }
  .accordion-icon { display: none; }
  .accordion-panel { margin-top: clamp(20px, 2.4vw, 26px); }
  .accordion-panel[hidden] { display: block; }
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat .num {
  font-size: clamp(46px, 6.5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.field label .optional { color: var(--pebble); font-weight: 450; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 450;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
}
.field input::placeholder, .field textarea::placeholder { color: var(--pebble); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23003031' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 42px;
}

.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-submit { width: 100%; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 14px; color: var(--pebble); margin: 14px 0 0; letter-spacing: 0; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid var(--line-soft);
  background: var(--canvas);
  color: var(--ink);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: rgba(190, 139, 64, 0.55); }

.contact-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px)  { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } }
.footer h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pebble);
  margin: 0 0 14px;
}
.footer .brand { margin-inline-end: 0; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 16px 0 0;
}
.footer-blurb { margin-top: 8px; max-width: 38ch; }
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: var(--stone); font-size: 15px; }
.footer-contact a { color: inherit; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--stone); font-size: 15px; font-weight: 500; transition: color 200ms var(--ease); }
.footer a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; }

/* ---------- Reveal ---------- */
/* .js is set by an inline script in <head>, so content is never hidden without JS */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 16px; transition: opacity 620ms var(--ease), translate 620ms var(--ease); }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }

  /* Pricing cards: once the section reveals, each tier fades/slides in a beat
     after the last — same reveal mechanics, just staggered per card. The
     hover transform/border-color transition is repeated here at 0 delay so
     staggering the reveal doesn't also delay the hover response. */
  .js .section-body .tier {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 560ms var(--ease), translate 560ms var(--ease),
                transform 260ms var(--ease), border-color 260ms var(--ease);
  }
  .js .section-body.is-visible .tier { opacity: 1; translate: 0 0; }
  .js .section-body .tier:nth-of-type(2) {
    transition: opacity 560ms var(--ease) 120ms, translate 560ms var(--ease) 120ms,
                transform 260ms var(--ease), border-color 260ms var(--ease);
  }
  .js .section-body .tier:nth-of-type(3) {
    transition: opacity 560ms var(--ease) 240ms, translate 560ms var(--ease) 240ms,
                transform 260ms var(--ease), border-color 260ms var(--ease);
  }
}

/* ---------- Print ---------- */
/* position:fixed elements (nav pill, cursor trail) and overflow:hidden
   clipping containers confuse WebKit's print pagination and can reorder
   content across pages — none of this is needed on paper anyway. */
@media print {
  .cursor-canvas,
  .nav-shell,
  .tile,
  .swatches,
  .details-toggle {
    display: none !important;
  }
  .hero { overflow: visible; }
  .js .reveal { opacity: 1 !important; translate: 0 !important; }
  .details-panel[hidden] { display: flex !important; }
  .accordion-panel[hidden] { display: block !important; }
}
