/* ===================================================================
   PENNINE DIGITAL SOLUTIONS
   -------------------------------------------------------------------
   Conventions used throughout:
   - One accent (emerald) for the whole page. Nothing else is coloured.
   - Corner radius: --r on every surface and control, --r-sm on chips,
     --r-full only on the icon-only toggle. No other radii.
   - Dark is the brand default; light is a full sibling theme, not a
     tint. Both are driven by the same token names.
   =================================================================== */

/* --- Fonts (self hosted: no third party request, better LCP) --- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ===================================================================
   TOKENS
   =================================================================== */
:root {
  color-scheme: dark;

  --bg:          #0a0a0a;
  --bg-1:        #101011;
  --bg-2:        #161618;
  --line:        #2a2a2e;
  --line-strong: #33333a;
  --line-input:  #63636b;

  --ink:   #f4f4f5;
  --ink-2: #a3a3ab;
  --ink-3: #85858e;

  --accent:     #34d399;  /* fills */
  --accent-ink: #34d399;  /* accent used as text on --bg */
  --on-accent:  #04241a;  /* text on an accent fill */
  --accent-wash: color-mix(in oklab, var(--accent) 14%, transparent);

  /* The one deliberate exception to the single-accent rule: validation
     errors must not be the same colour as success. Used by the contact
     form only, never decoratively. */
  --danger: #f87171;

  --photo-o: .42;        /* feature-cell photograph, at rest */
  --photo-o-hover: .5;

  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1140px;
  --header-h: 68px;
  --r: 12px;
  --r-sm: 8px;
  --r-full: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme: follows the system unless the visitor has chosen. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg:          #fbfbfa;
    --bg-1:        #ffffff;
    --bg-2:        #f3f3f1;
    --line:        #dcdcd7;
    --line-strong: #cfcfc9;
    --line-input:  #8c8c93;
    --ink:   #17171a;
    --ink-2: #56565e;
    --ink-3: #6b6b74;
    --accent:     #10b981;
    --accent-ink: #047857;
    --on-accent:  #04241a;
    --danger: #b91c1c;
    --photo-o: .62;
    --photo-o-hover: .72;
    --shadow: 0 1px 2px rgb(23 23 26 / .05), 0 12px 32px -14px rgb(23 23 26 / .18);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg:          #fbfbfa;
  --bg-1:        #ffffff;
  --bg-2:        #f3f3f1;
  --line:        #dcdcd7;
  --line-strong: #cfcfc9;
  --line-input:  #8c8c93;
  --ink:   #17171a;
  --ink-2: #56565e;
  --ink-3: #6b6b74;
  --accent:     #10b981;
  --accent-ink: #047857;
  --on-accent:  #04241a;
  --danger: #b91c1c;
  --photo-o: .62;
  --photo-o-hover: .72;
  --shadow: 0 1px 2px rgb(23 23 26 / .05), 0 12px 32px -14px rgb(23 23 26 / .18);
}

/* ===================================================================
   BASE
   =================================================================== */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.icon { width: 1em; height: 1em; flex: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Anchored sections must clear the fixed header. */
section[id], #main { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-h {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 18ch;
  text-wrap: balance;
}

/* ===================================================================
   HEADER
   =================================================================== */
#top { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header[data-stuck] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo, .footer-brand { display: flex; align-items: center; gap: 8px; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-main { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.logo-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 13px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(.94); }
/* The toggle shows the mode you would switch TO.
   Dark page shows a sun, light page shows a moon. */
.icon-sun  { display: block; }
.icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-sun  { display: none; }
  :root:not([data-theme]) .icon-moon { display: block; }
}
:root[data-theme='light'] .icon-sun  { display: none; }
:root[data-theme='light'] .icon-moon { display: block; }
:root[data-theme='dark']  .icon-sun  { display: block; }
:root[data-theme='dark']  .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars { display: block; width: 15px; height: 9px; position: relative; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child  { bottom: 0; }
.nav-toggle[aria-expanded='true'] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] i:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* --- Mobile nav --- */
.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  inset-inline: 0;
  z-index: 99;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 24px;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s var(--ease), visibility .25s;
}
.mobile-nav[data-open] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-inner { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-inner a {
  font-size: 18px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-inner a:last-child {
  border-bottom: none;
  margin-top: 16px;
  justify-content: center;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 12px 24px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 16px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-1); }
.btn-ghost .icon { transition: transform .25s var(--ease); }
.btn-ghost:hover .icon { transform: translate(2px, -2px); }

.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===================================================================
   HERO  (asymmetric split)
   =================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 72px;
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: 100%;
}
.hero-copy h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  /* Wide enough that the line breaks after "it," rather than after
     "builds", which is where balancing wanted to put it. */
  max-width: 21ch;
  text-wrap: pretty;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  filter: grayscale(100%) contrast(1.05);
}
/* A single accent wash keeps a stock photo on brand in both themes. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: linear-gradient(200deg, transparent 35%, var(--accent-wash));
  pointer-events: none;
}

/* ===================================================================
   WHAT YOU GET
   Three plain promises. Deliberately not cards: hairlines and space
   carry the grouping so this does not read as another tile grid.
   =================================================================== */
.promises { padding: 8px 0 64px; }

.promise-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.promise {
  padding: 24px 24px 4px;
  border-left: 1px solid var(--line);
}
.promise:first-child { padding-left: 0; border-left: none; }
.promise .icon {
  font-size: 20px;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.promise h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.promise p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ===================================================================
   BEFORE PENNINE DIGITAL  (experience, not case studies)
   Plain stacked blocks, no dividers: each role already carries its
   own heading, so a hairline here would just repeat the promise
   list and pricing list treatment a third time.
   =================================================================== */
.experience { padding: 72px 0; border-top: 1px solid var(--line); }
.experience .section-h { margin-bottom: 12px; }
.experience-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.role-head { margin-bottom: 12px; }
.role h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.role-meta {
  font-size: 13px;
  color: var(--ink-3);
}
.role-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.role-quote {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--accent-ink);
  max-width: 56ch;
}
.role-quote p {
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: pretty;
}
.role-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}

/* ===================================================================
   SERVICES  (bento: 5 items, exactly 5 cells)
   =================================================================== */
.services { padding: 72px 0; border-top: 1px solid var(--line); }
.services .section-h { margin-bottom: 36px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    'feat feat b'
    'feat feat c'
    'd    wide wide';
  gap: 16px;
}
.cell-feature { grid-area: feat; }
.bento > :nth-child(2) { grid-area: b; }
.bento > :nth-child(3) { grid-area: c; }
.bento > :nth-child(4) { grid-area: d; }
.cell-wide { grid-area: wide; }

.cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.cell:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.cell-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cell-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

/* Feature cell carries a real image, dimmed behind the copy. */
.cell-feature { min-height: 380px; padding: 32px; }
.cell-feature .cell-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  opacity: var(--photo-o);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.cell-feature:hover .cell-img { opacity: var(--photo-o-hover); transform: scale(1.03); }
/* Scrim so the copy keeps its contrast whatever the photograph does. */
.cell-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    var(--bg-1) 12%,
    color-mix(in srgb, var(--bg-1) 72%, transparent) 46%,
    transparent 78%);
  pointer-events: none;
}
.cell-feature .cell-body { position: relative; z-index: 1; }
.cell-feature h3 { font-size: 24px; }
.cell-feature p { font-size: 15px; max-width: 42ch; }

/* Tinted cell gives the grid a third visual texture. */
.cell-tint {
  background:
    radial-gradient(130% 150% at 100% 0%, var(--accent-wash), transparent 66%),
    var(--bg-1);
}

/* ===================================================================
   WHERE MOST PROJECTS START  (pain points, plain stacked list)
   =================================================================== */
.friction { padding: 72px 0; border-top: 1px solid var(--line); }
.friction .section-h { margin-bottom: 32px; }

.friction-list { max-width: 56ch; }
.friction-list li {
  padding: 20px 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.friction-list li:first-child { padding-top: 0; }
.friction-list li + li { border-top: 1px solid var(--line); }

.friction-cta { margin-top: 32px; }

/* ===================================================================
   ABOUT  (text + image split)
   =================================================================== */
.about { padding: 72px 0; border-top: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-text .section-h { margin-bottom: 24px; }
.about-text p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.about-text p + p { margin-top: 12px; }
.about-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  filter: grayscale(100%) contrast(1.05);
  transition: filter .6s var(--ease);
}
.about-media img:hover { filter: grayscale(55%) contrast(1.02); }

/* ===================================================================
   APPROACH  (vertical rail)
   =================================================================== */
.approach { padding: 72px 0; border-top: 1px solid var(--line); }
.approach .section-h { margin-bottom: 40px; }

.rail { position: relative; padding-left: 32px; }
.rail::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent-ink), var(--line-strong));
}
.rail-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: start;
  padding-bottom: 40px;
}
.rail-item:last-child { padding-bottom: 0; }
.rail-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 2px solid var(--accent-ink);
}
.rail-item h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.rail-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ===================================================================
   PRICING  (three plain steps, echoes the promise-list pattern)
   =================================================================== */
.pricing { padding: 72px 0; border-top: 1px solid var(--line); }
.pricing .section-h { margin-bottom: 36px; }

.cost-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cost {
  padding: 24px 24px 4px;
  border-left: 1px solid var(--line);
}
.cost:first-child { padding-left: 0; border-left: none; }
.cost-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  vertical-align: middle;
}
.cost .icon {
  font-size: 20px;
  color: var(--accent-ink);
  vertical-align: middle;
}
.cost h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 12px;
  margin-bottom: 8px;
}
.cost p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ===================================================================
   FAQ  (accordion)
   =================================================================== */
.faq { padding: 72px 0; border-top: 1px solid var(--line); }
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.qa-chev {
  font-size: 20px;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .2s;
}
.qa[open] .qa-chev { transform: rotate(180deg); color: var(--accent-ink); }
.qa-body { padding: 0 2px 24px; }
.qa-body p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-body { animation: qaIn .28s var(--ease) both; }
}
@keyframes qaIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   CONTACT  (copy + form split)
   =================================================================== */
.contact { padding: 80px 0 96px; border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-copy .section-h { margin-bottom: 16px; }
.contact-copy > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}
.contact-direct { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-direct li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.contact-direct .icon { font-size: 18px; color: var(--ink-3); }
.contact-direct a { transition: color .2s; }
.contact-direct a:hover { color: var(--accent-ink); }

/* --- Form --- */
.contact-form {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }

.field input, .field textarea {
  width: 100%;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-input);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 22%, transparent);
}
.field-hint  { font-size: 12px; color: var(--ink-2); }
.field-error { font-size: 12px; font-weight: 500; color: var(--danger); }

.field[data-invalid] input,
.field[data-invalid] textarea { border-color: var(--danger); }
.field[data-invalid] input:focus,
.field[data-invalid] textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}
.field[data-invalid] .field-hint { display: none; }

#form-submit { margin-top: 8px; }
.btn-spinner { display: none; font-size: 18px; }
#contact-form[data-state='loading'] #form-submit { pointer-events: none; opacity: .75; }
#contact-form[data-state='loading'] .btn-spinner { display: block; }
@media (prefers-reduced-motion: no-preference) {
  #contact-form[data-state='loading'] .btn-spinner { animation: spin .8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink-2);
}
.form-status .icon { font-size: 18px; margin-top: 1px; }
.form-status[data-tone='error'] {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  color: var(--ink);
}
.form-status[data-tone='error'] .icon { color: var(--danger); }
.form-status[data-tone='ok'] {
  border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent);
  background: var(--accent-wash);
  color: var(--ink);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-3); width: 100%; }

/* ===================================================================
   SCROLL REVEAL
   Applied only when JS is running, so the page is fully readable
   without it.
   =================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease) var(--d, 0ms),
              transform .65s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .faq-inner .section-h { max-width: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .nav-cta { display: none; }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 56px;
    min-height: 0;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-media { max-width: 460px; }
  .hero-media img { aspect-ratio: 16 / 11; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: 'feat' 'b' 'c' 'd' 'wide';
  }
  .cell-feature { min-height: 300px; }

  .rail-item { grid-template-columns: 1fr; gap: 8px; padding-bottom: 32px; }

  .promise-list { grid-template-columns: 1fr; }
  .promise { padding: 24px 0 0; border-left: none; }
  .promise:first-child { padding-top: 0; }
  .promise + .promise { border-top: 1px solid var(--line); }

  .cost-list { grid-template-columns: 1fr; }
  .cost { padding: 24px 0 0; border-left: none; }
  .cost:first-child { padding-top: 0; }
  .cost + .cost { border-top: 1px solid var(--line); }

  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-media { max-width: 460px; }
  .about-media img { aspect-ratio: 16 / 11; }

  .contact-inner { grid-template-columns: 1fr; gap: 32px; }

  .services, .about, .approach, .faq, .experience, .friction, .pricing { padding: 56px 0; }
  .contact { padding: 60px 0 72px; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 16px; }
  .hero-copy h1 { font-size: 34px; max-width: 15ch; }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .cell { padding: 24px; min-height: 0; }
  .cell-feature { padding: 24px; min-height: 260px; }
  .contact-form { padding: 20px; }

  .friction-list li { font-size: 16px; }

  .services, .about, .approach, .faq, .experience, .friction, .pricing { padding: 48px 0; }
  .role-list { gap: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
