/* ============================================================
   URBANITE CONSULTING — Editorial design system
   Hand-crafted CSS. No framework, no build step.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Self-hosted variable fonts (latin) — no third-party request */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --paper:        #FBFAF8;   /* warm off-white background */
  --paper-2:      #F4F1EA;   /* sand panel */
  --ink:          #0A1A2F;   /* deep navy — primary text & dark sections */
  --ink-2:        #0E2540;   /* slightly lifted navy */
  --ink-soft:     #3A4A5E;   /* muted slate — secondary text */
  --ink-faint:    #586472;   /* tertiary / captions — WCAG AA (5.8:1 on paper) */
  --line:         #E4DFD4;   /* warm hairline */
  --line-strong:  #D2CBBC;
  --accent:       #B5894C;   /* brass / signal */
  --accent-deep:  #8A6320;   /* brass for small text — WCAG AA (5.2:1 on paper) */
  --accent-blue:  #1C4E8A;   /* secondary data blue */
  --on-ink:       #EDE9E0;   /* text on dark */
  --on-ink-soft:  #9FAAB9;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bleed-top { padding-top: clamp(7rem, 12vw, 10rem); } /* clears fixed header */

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1, .h1 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.018em; font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2, .h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1;  letter-spacing: -0.014em; font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3, .h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;  font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h4, .h4 { font-family: var(--sans);  font-weight: 600; line-height: 1.3;  font-size: 1.125rem; letter-spacing: -0.01em; }
p { color: var(--ink-soft); max-width: 68ch; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 400; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
}
.eyebrow::before {
  content: ""; width: 1.8rem; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow--center::before { display: none; }

.muted { color: var(--ink-faint); }
.serif-accent { font-family: var(--serif); font-style: italic; }
.text-balance { text-wrap: balance; }
.measure { max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--on-ink);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  background: var(--bg); color: var(--fg);
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn .btn__icon { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10,26,47,0.45); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--accent { --bg: var(--accent); --fg: #1c130a; }
.btn--on-dark { --bg: var(--paper); --fg: var(--ink); }
.btn--on-dark.btn--ghost { --bg: transparent; --fg: var(--on-ink); border-color: rgba(237,233,224,0.28); }
.btn--on-dark.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease), color 0.3s ease;
}
.link-underline:hover { background-size: 100% 1.5px; }
.link-underline .arr { transition: transform 0.4s var(--ease); }
.link-underline:hover .arr { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 84px;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; overflow: visible; }

/* Cube mark: one-time draw-in on load + subtle hover tilt */
@media (prefers-reduced-motion: no-preference) {
  .brand__mark.is-drawing path:nth-of-type(1),
  .brand__mark.is-drawing path:nth-of-type(2) {
    stroke-dasharray: 240; stroke-dashoffset: 240;
    animation: cubeDraw 0.9s var(--ease-out) forwards;
  }
  .brand__mark.is-drawing path:nth-of-type(2) { animation-delay: 0.18s; }
  .brand__mark.is-drawing path:nth-of-type(3) { opacity: 0; animation: cubeFade 0.5s ease 0.75s forwards; }
  @keyframes cubeDraw { to { stroke-dashoffset: 0; } }
  @keyframes cubeFade { to { opacity: 1; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand .brand__mark { transition: transform 0.55s var(--ease); transform-origin: 50% 50%; }
  .brand:hover .brand__mark { transform: rotate(-12deg); }
}
.brand__type { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.brand__type b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  position: relative; padding: 0.5rem 0.95rem; font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); border-radius: var(--radius);
  transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.25rem;
  height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* The accent CTA inside the nav is for the mobile slide-out only */
.nav > .btn { display: none; }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 1.5px; background: var(--ink); transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 86vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem;
    background: var(--paper); padding: 2rem var(--gutter);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(10,26,47,0.3);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a { font-size: 1.5rem; font-family: var(--serif); color: var(--ink); padding: 0.5rem 0; }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 1rem; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(10,26,47,0.4); z-index: 40;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(8rem, 15vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr 0.92fr; } }
.hero-photo {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 11;
  box-shadow: 0 34px 70px -34px rgba(10,26,47,0.45);
}
.hero-photo img, .hero-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* subtle navy duotone keeps the image on-brand without hiding it */
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(10,26,47,0.34), rgba(10,26,47,0.05) 60%);
  mix-blend-mode: multiply; }
@media (max-width: 700px) { .hero-photo { display: none; } }
.hero__headline { max-width: 16ch; margin-top: 1.5rem; }
.hero__headline .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__headline .line > span { display: block; }
.hero__sub { margin-top: 1.8rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; align-items: center; }

.hero-figure {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(170deg, #fff, var(--paper-2));
  padding: clamp(1.5rem, 3vw, 2.2rem); overflow: hidden;
}
.hero-figure__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.hero-figure__big { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ink); margin-top: 0.3rem; }

/* decorative architectural line grid */
.blueprint {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,26,47,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,26,47,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 30%, transparent 75%);
}

/* ---------- Stat strip ---------- */
.statstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statstrip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem,2vw,1.8rem); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.stat__num .suf { color: var(--accent); }
.stat__label { margin-top: 0.6rem; font-size: 0.86rem; color: var(--ink-faint); max-width: 22ch; }
@media (max-width: 760px) {
  .statstrip__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Client logos / trust ---------- */
.trust { text-align: center; }
.trust__label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.8rem, 5vw, 4rem); margin-top: 2rem;
}
.logo-row span {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink);
  opacity: 0.55; letter-spacing: 0.02em; transition: opacity 0.3s ease;
}
.logo-row span:hover { opacity: 0.9; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head { display: grid; gap: 1.2rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .eyebrow { margin-bottom: 0.2rem; }
.split-head { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .split-head { grid-template-columns: 1.3fr 0.9fr; } .split-head .split-head__aside { text-align: right; } }

/* ============================================================
   SERVICES LIST
   ============================================================ */
.svc-list { border-top: 1px solid var(--line); }
.svc-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 4vw, 3rem);
  align-items: center; padding: clamp(1.6rem, 3.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left 0.5s var(--ease);
}
.svc-item__num { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); }
.svc-item__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); transition: transform 0.5s var(--ease); }
.svc-item__desc { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.5rem; max-width: 60ch; }
.svc-item__arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s ease;
  flex-shrink: 0;
}
.svc-item:hover { padding-left: clamp(0.5rem, 2vw, 1.5rem); }
.svc-item:hover .svc-item__arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 720px) {
  .svc-item { grid-template-columns: auto 1fr; }
  .svc-item__arrow { display: none; }
}

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10,26,47,0.32); border-color: var(--line-strong); }
.card__kicker { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
/* Optional cover image at the top of a card (e.g. engagement cards). Bleeds to
   the card edges; falls back to the navy gradient if the image is missing. */
.card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  margin: calc(-1 * clamp(1.6rem, 3vw, 2.2rem)) calc(-1 * clamp(1.6rem, 3vw, 2.2rem)) clamp(1.2rem, 2.5vw, 1.5rem);
  background: linear-gradient(150deg, var(--ink), var(--ink-2));
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(10,26,47,0.30), rgba(10,26,47,0.06) 65%); mix-blend-mode: multiply; }
.card h3 { margin-top: 0.8rem; }
.card p { margin-top: 0.7rem; font-size: 0.97rem; }
.card__index { font-family: var(--serif); font-size: 0.95rem; color: var(--ink-faint); }

.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--accent-deep); margin-bottom: 1.3rem;
}
.icon-circle svg { width: 24px; height: 24px; }

/* Principle / approach cards on sand */
.principle { padding: clamp(1.4rem,3vw,2rem) 0; border-top: 1px solid var(--line); }
.principle__n { font-family: var(--serif); color: var(--accent); font-size: 0.9rem; }
.principle h3 { margin: 0.4rem 0 0.6rem; }

/* ============================================================
   DARK BAND
   ============================================================ */
.band-dark {
  background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden;
}
.band-dark h2, .band-dark .h2, .band-dark h3, .band-dark .display { color: #fff; }
.band-dark p { color: var(--on-ink-soft); }
.band-dark .eyebrow { color: var(--accent); }
.band-dark .eyebrow::before { background: var(--accent); }
.band-dark .stat__num { color: #fff; }
.band-dark .stat { border-color: rgba(237,233,224,0.14); }
.band-dark .stat__label { color: var(--on-ink-soft); }
.band-dark .statstrip { border-color: rgba(237,233,224,0.14); }
.band-dark .blueprint {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* ============================================================
   CASE STUDY / BEFORE-AFTER
   ============================================================ */
.case {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; } }
.case__panel {
  background: var(--ink); color: var(--on-ink); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.case__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.case__metric .n { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; line-height: 1; }
.case__metric .n .suf { color: var(--accent); }
.case__metric .l { font-size: 0.82rem; color: var(--on-ink-soft); margin-top: 0.4rem; }

.tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); padding: 0.4em 0.9em; border: 1px solid var(--line-strong); border-radius: 100px; }

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote { max-width: 980px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.5; color: var(--accent); opacity: 0.4; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); font-weight: 400; }
.quote__by { margin-top: 1.8rem; font-size: 0.95rem; color: var(--ink-faint); }
.quote__by b { color: var(--ink); font-weight: 600; }

/* Client testimonial — compact, brass-ruled, distinct from the centred .quote */
.testimonial { max-width: 720px; margin: clamp(2.6rem, 5vw, 3.6rem) auto 0; padding: 0.2rem 0 0.2rem 1.6rem; border-left: 3px solid var(--accent); }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.005em; }
.testimonial figcaption { margin-top: 0.9rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.testimonial-pair { display: grid; gap: clamp(1.8rem, 3.5vw, 3rem); margin-top: clamp(2.6rem, 5vw, 3.6rem); align-items: start; }
.testimonial-pair .testimonial { margin: 0; max-width: none; }
@media (min-width: 760px) { .testimonial-pair { grid-template-columns: 1fr 1fr; } }

/* Product screenshot — one framed shot per product page, sits under the hero */
.product-shot-band { padding-top: clamp(1.2rem, 3vw, 2.4rem); }
.product-shot { margin: 0 auto; max-width: 1000px; }
.product-shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid rgba(10,26,47,0.10); box-shadow: 0 30px 60px -28px rgba(10,26,47,0.38), 0 8px 22px -14px rgba(10,26,47,0.22); background: var(--paper); }
.product-shot figcaption { margin-top: 0.95rem; text-align: center; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-faint); }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight {
  display: grid; gap: 0.9rem; padding: clamp(1.5rem,3vw,2rem) 0; border-top: 1px solid var(--line);
  grid-template-columns: 1fr; align-items: start; transition: opacity 0.3s;
}
.insight a.insight__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--ink); line-height: 1.2; transition: color 0.3s ease; display: inline-block; }
.insight:hover a.insight__title { color: var(--accent-deep); }
.insight__meta { display: flex; gap: 1rem; align-items: center; font-size: 0.82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.insight__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
@media (min-width: 820px) { .insight { grid-template-columns: 200px 1fr auto; gap: 2.5rem; align-items: baseline; } }

.article-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10,26,47,0.3); }
.article-card__top { aspect-ratio: 16/10; background: linear-gradient(150deg, var(--ink), var(--ink-2)); position: relative; overflow: hidden; }
.article-card__top .blueprint { -webkit-mask-image: none; mask-image: none; opacity: 0.6; z-index: 1; }
.article-card__cat { position: absolute; top: 1rem; left: 1rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; z-index: 3; }

/* Optional cover photography. Drop files into assets/img/photos/ and the
   navy duotone scrim keeps them on-brand and labels legible. Falls back to
   the gradient if the image is missing (onerror removes the broken <img>). */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-card__top::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(155deg, rgba(10,26,47,0.62), rgba(10,26,47,0.14) 65%); }
.case__panel .card-photo { opacity: 0.3; }
.article-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.article-card__body h3 { font-size: 1.25rem; }
.article-card__body .meta { margin-top: auto; font-size: 0.8rem; color: var(--ink-faint); }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85em 1em; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,137,76,0.16);
}
.form-row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.84rem; color: var(--ink-faint); }
.form-success {
  display: none; padding: 1.2rem 1.4rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}
.form-success.show { display: block; }
.form-error {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: #fff6f4; border: 1px solid #f0c9c0; border-left: 3px solid #b4452f;
  color: #7c2d1c; font-size: 0.92rem; margin-bottom: 1.5rem;
}
.form-error[hidden] { display: none; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 660px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem;
  padding: 1.05rem 1.3rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(10, 26, 47, 0.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__text { margin: 0; flex: 1 1 280px; font-size: 0.88rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.cookie-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; line-height: 1;
  padding: 0.6rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cookie-btn--accept { background: var(--accent); color: var(--ink); }
.cookie-btn--accept:hover { background: var(--accent-deep); color: #fff; }
.cookie-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cookie-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  /* in column direction the 280px flex-basis becomes height — reset it */
  .cookie-banner__text { flex: 0 0 auto; }
  .cookie-banner__actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

.contact-detail { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-detail svg { width: 22px; height: 22px; color: var(--accent-deep); flex-shrink: 0; margin-top: 2px; }
.contact-detail .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 600; }
.contact-detail .v { color: var(--ink); font-size: 1.05rem; margin-top: 0.2rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-ink); padding-top: clamp(4rem, 8vw, 6rem); }
.site-footer a { color: var(--on-ink-soft); transition: color 0.25s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 2.2fr 0.9fr 1.05fr; } }
.footer-brand .brand__type { color: #fff; }
.footer-col h5 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-soft); font-weight: 600; margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; }
.footer-cta { font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: #fff; max-width: 30ch; line-height: 1.2; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem); padding: 2rem 0; border-top: 1px solid rgba(237,233,224,0.14);
  font-size: 0.85rem; color: var(--on-ink-soft);
}
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(237,233,224,0.2);
  display: grid; place-items: center; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

/* Footer — grouped services (2×2) */
.footer-svc-lead { display: inline-block; font-weight: 600; color: #fff; font-size: 0.95rem; margin-bottom: 1.1rem; }
.footer-svc-lead:hover { color: var(--accent); }
.footer-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem 1.6rem; }
.footer-svc-cat { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.65rem; }
.footer-svc-group ul { display: grid; gap: 0.5rem; }
.footer-svc-group a { font-size: 0.9rem; }
.footer-bottom a { color: var(--on-ink-soft); transition: color 0.25s ease; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   LEGAL / PROSE PAGES
   ============================================================ */
.legal-prose { max-width: 760px; }
.legal-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.4rem 0 0.9rem; }
.legal-prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 1.6rem 0 0.5rem; letter-spacing: 0; }
.legal-prose p { margin-bottom: 1rem; }
.legal-prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.1rem; display: grid; gap: 0.5rem; }
.legal-prose ul li { color: var(--ink-soft); }
.legal-prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong { color: var(--ink); }
.legal-prose .updated { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 2rem; }
.legal-prose .legal-note { font-size: 0.9rem; color: var(--ink-faint); border-left: 3px solid var(--line-strong); padding: 0.4rem 0 0.4rem 1rem; margin: 1.5rem 0; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; margin-top: 1.2rem; }
.page-hero p { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }
.breadcrumb { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* ============================================================
   FEATURED ENTRY OFFER (Accelerate)
   ============================================================ */
.feature-offer {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--paper-2));
  padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.feature-offer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
@media (min-width: 900px) { .feature-offer { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.feature-offer__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.5rem; }
.feature-offer__meta span { display: inline-flex; align-items: center; gap: 0.55em; font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }
.feature-offer__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.entry-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius);
  background: #fff; padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2rem); margin-top: 2.4rem;
}
.entry-strip__tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; flex-shrink: 0; }
.entry-strip p { margin: 0; flex: 1 1 280px; color: var(--ink); }
.entry-strip p b { font-family: var(--serif); font-weight: 500; }

/* ============================================================
   DETAIL SERVICE BLOCKS
   ============================================================ */
.svc-detail { display: grid; gap: clamp(2rem,5vw,4rem); align-items: start; padding-block: clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .svc-detail { grid-template-columns: 0.9fr 1.1fr; } .svc-detail.flip > .svc-detail__media { order: -1; } }
.svc-detail__num { font-family: var(--serif); font-size: clamp(3rem,7vw,5rem); color: var(--paper-2); line-height: 0.8; -webkit-text-stroke: 1px var(--line-strong); color: transparent; }
.svc-detail h2 { margin: 0.5rem 0 1.2rem; }
.svc-detail ul.checklist { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-soft); }
.checklist li svg { width: 20px; height: 20px; color: var(--accent-deep); flex-shrink: 0; margin-top: 3px; }
.svc-detail__media { background: linear-gradient(160deg, #fff, var(--paper-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); position: relative; overflow: hidden; min-height: 280px; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; }
.tl-step__rail { display: flex; flex-direction: column; align-items: center; }
.tl-step__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(181,137,76,0.15); }
.tl-step__line { width: 1px; flex: 1; background: var(--line-strong); margin: 6px 0; }
.tl-step:last-child .tl-step__line { display: none; }
.tl-step__body { padding-bottom: clamp(2rem,4vw,3rem); }
.tl-step__body .k { font-family: var(--serif); color: var(--accent); font-size: 0.9rem; }
.tl-step__body h3 { margin: 0.3rem 0 0.6rem; }

/* ============================================================
   TEAM
   ============================================================ */
.member { text-align: left; }
.member__photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--ink), var(--ink-2)); position: relative; overflow: hidden; margin-bottom: 1rem; display: grid; place-items: center; }
.member__photo .initials { font-family: var(--serif); font-size: 2.6rem; color: rgba(255,255,255,0.85); }
.member__name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.member__role { font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.2rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal-line] .line > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal-line].is-visible .line > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-line] .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .article-card:hover { transform: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* Utility */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.flow > * + * { margin-top: 1.1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Skip link */
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  background: var(--ink); color: var(--on-ink);
  padding: 0.7em 1.1em; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
  transform: translateY(-150%); transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* ============================================================
   MOBILE — deliberate phone layout decisions (not just shrink)
   ============================================================ */
@media (max-width: 600px) {
  /* Tighter hero: remove the desktop top-gap that feels empty on a phone */
  .hero { padding-top: 6rem; padding-bottom: 2.5rem; }
  .page-hero { padding-top: 6.5rem; }

  /* Full-width primary action — easier thumb target, cleaner stack */
  .hero__cta { gap: 0.9rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .cta-band .hero__cta .btn { width: 100%; }

  /* Cap the big serif stat words so long ones (e.g. "Cambridge") fit 2-up */
  .stat__num { font-size: 2rem; }
  .stat { padding: 1.4rem 1rem; }

  /* Headlines: a touch tighter so they don't dominate the small screen */
  h1, .h1 { font-size: clamp(2.3rem, 10vw, 3rem); }

  /* Service/engagement cards: a little more breathing room when stacked */
  .feature-offer { padding: 1.5rem; }
  .feature-offer__meta { gap: 0.9rem 1.3rem; }

  /* Footer services: single column reads better than a cramped 2×2 on phones */
  .footer-svc-grid { grid-template-columns: 1fr; gap: 1.3rem; }

  /* Quote: smaller mark, no overflow */
  .quote__mark { font-size: 3.5rem; }
}
