/* ============================================================================
   KAYAN CREATIVE HOUSE — STYLESHEET
   ----------------------------------------------------------------------------
   Sections:
     1. Brand tokens + reset
     2. Typography + shared UI
     3. Header, navigation, mobile menu
     4. Homepage sections
     5. Reusable components (cards, form, phone, timeline)
     6. Other pages
     7. Footer
     8. Motion, reduced motion, responsive

   Colours and fonts are defined once in section 1. Change them there only.
   All words come from assets/js/content.js — not from this file.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. BRAND TOKENS + RESET
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette — use exactly these values */
  --espresso: #1A1611;   /* base background, header, footer */
  --cream: #EFE6D8;      /* main text on dark, light sections */
  --clay: #D68A52;       /* signature accent: dot, highlights, thin lines */
  --deep-clay: #B5623A;  /* button fills, highlighted cards */
  --olive: #6E6A4B;      /* quiet tags, subtle icons, dividers */
  --sand: #D9CDB8;       /* secondary surface, muted text */
  --page-bg: #F5EEE3;    /* slightly lighter cream for page sections only */

  /* Supporting surfaces derived from the palette */
  --card: #221D16;
  --card-2: #2A241C;
  --line-clay: rgba(214, 138, 82, 0.22);
  --line-cream: rgba(239, 230, 216, 0.12);
  --chat-bg: #16201A;

  /* Type */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Jost", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Layout */
  --header-h: 76px;
  --container: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--espresso);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--clay); color: var(--espresso); }

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--clay);
  color: var(--espresso);
  padding: 0.75rem 1rem;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------------------
   2. TYPOGRAPHY + SHARED UI
   ------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--light { background: var(--page-bg); color: var(--espresso); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

h1, h2, h3, h4, .headline {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0;
}

h1, .headline--xl { font-size: clamp(2.8rem, 7.2vw, 6.4rem); }
h2, .headline--lg { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
h3, .headline--md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h4, .headline--sm { font-size: 1.25rem; }

/* Headline accents are now upright and the same colour as the rest of the headline */
.headline-accent,
.headline em,
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 500;
  color: inherit;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 1.5rem;
}
.section--light .eyebrow { color: var(--espresso); }

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--sand);
  margin: 1.5rem 0 0;
}
.section--light .lede { color: #4E4737; }

.muted { color: var(--sand); }
.mono { font-family: var(--font-mono); font-weight: 500; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--clay);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-clay);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { gap: 1.1rem; border-color: var(--clay); }
.section--light .text-link { color: var(--deep-clay); }

/* Copy is injected by site.js. Keep empty targets invisible so styled buttons
   never flash as blank boxes before their label is on the page. */
[data-copy]:empty { visibility: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--clay); color: var(--espresso); }
.btn--primary:hover { background: var(--espresso); color: var(--cream); }

.btn--ghost { border-color: var(--clay); color: var(--cream); }
.btn--ghost:hover { background: var(--clay); color: var(--espresso); }

.btn--whatsapp { background: var(--sand); color: var(--espresso); }
.btn--whatsapp:hover { background: var(--cream); }

.btn--small { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid var(--line-clay);
  border-radius: 100px;
  padding: 0.35rem 0.7rem;
}
.tag--olive { color: var(--cream); border-color: rgba(239, 230, 216, 0.35); }

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

/* ---------------------------------------------------------------------------
   3. HEADER, NAVIGATION, MOBILE MENU
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 22, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-cream);
}

.header-inner {
  width: min(100% - 2rem, var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-link img { height: 36px; width: auto; max-width: 150px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--clay); }
.nav a.is-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.header-cta { flex: 0 0 auto; margin-left: 0.5rem; }
.header-cta .btn { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.82rem; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--clay);
  transition: width 0.12s linear;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
  color: var(--cream);
}
.menu-toggle svg { width: 20px; height: 20px; }

.current-section {
  display: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-left: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--espresso);
  padding: calc(var(--header-h) + 1.2rem) 1.5rem 1.5rem;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu__group + .mobile-menu__group { margin-top: 1.2rem; }
.mobile-menu__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.4rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.03em;
  color: var(--sand);
  padding: 0.2rem 0;
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--clay); }
.mobile-menu__footer { margin-top: 1.2rem; display: grid; gap: 0.6rem; }

/* ---------------------------------------------------------------------------
   4. HOMEPAGE SECTIONS
   ------------------------------------------------------------------------- */
/* Full-screen sections on desktop with start alignment. Mandatory snapping makes
   the next section land squarely at the top of the viewport instead of stopping
   halfway. The old pause came from the nested section scroll boxes, which have
   been removed; scroll-snap-stop stays normal so a wheel gesture can still pass. */
html.snap-page { scroll-snap-type: y mandatory; }
.snap-section {
  min-height: 100svh;
  height: 100svh;
  /* No nested scroll container: each section used to capture the wheel for a
     beat before passing it to the page, which felt like a pause. */
  overflow-y: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  /* flex-start + auto margins = safe centring: content stays centred when it
     fits, but the top is never pushed out of reach on shorter screens. */
  align-items: flex-start;
  padding: calc(var(--header-h) + 3vh) 0 3vh;
  position: relative;
}
.snap-section > .container { width: min(100% - 3rem, var(--container)); margin-block: auto; }

/* Hero ------------------------------------------------------------------- */
/* Dark poster from the first paint, so no light/blank square flashes before
   the video is ready. The video sits on top of this once it starts. */
.hero { isolation: isolate; background: var(--espresso) url("../img/hero-poster.jpg") center / cover no-repeat; }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Never show native video controls over the hero background. */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; }
/* If a mobile browser refuses autoplay (Low Power Mode / Data Saver), show the
   poster still instead of the video's native play button. */
html.hero-video-blocked .hero-video { display: none; }
html.hero-video-blocked .hero {
  background: var(--espresso) url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero-video__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 45%,
    rgba(26, 22, 17, 0.68) 0%,
    rgba(26, 22, 17, 0.50) 60%,
    rgba(26, 22, 17, 0.38) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; text-align: center; position: relative; z-index: 2; }
.hero-grid > div { width: 100%; max-width: 820px; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { max-width: 48ch; margin-inline: auto; }
.hero .btn-row { justify-content: center; }
.hero-note { font-size: 0.78rem; color: var(--sand); margin-top: 1.2rem; }

/* The gap ---------------------------------------------------------------- */
.gap-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 3vw, 2.6rem); align-items: start; }
.gap-story h2 { max-width: 22ch; }
.gap-story .lede + .lede { margin-top: 1rem; }
/* The gap: enquiry arrives → the unmeasured gap → buyer appears */
.gap-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.9rem;
  width: 100%;
  align-items: stretch;
}
.gap-diagram__node {
  border: 1px solid var(--line-clay);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
}
.gap-diagram__node .mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-clay);
  margin-bottom: 0.7rem;
}
.gap-diagram__node strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.1;
}
.gap-diagram__middle {
  border-top: 1px dashed var(--clay);
  border-bottom: 1px dashed var(--clay);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gap-diagram__middle .mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}
.gap-diagram__middle p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  max-width: 62ch;
}

/* Services flow ---------------------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 54ch; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 2.4rem; }
.flow-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.flow-card:hover { transform: translateY(-5px); border-color: var(--clay); }
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.95rem;
  top: 50%;
  width: 0.95rem;
  height: 1px;
  background: var(--clay);
  opacity: 0.7;
}
.flow-card--featured { background: var(--deep-clay); border-color: var(--deep-clay); }
.flow-card--featured .flow-card__text { color: rgba(239, 230, 216, 0.86); }
.flow-card--featured .flow-card__num,
.flow-card--featured .flow-card__text { color: var(--cream); }
.flow-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: auto; }
.flow-card__num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--sand); }
.flow-card--featured .flow-card__num { color: var(--cream); }
.flow-card__icon { width: 30px; height: 30px; color: var(--clay); }
.flow-card--featured .flow-card__icon { color: var(--cream); }
.flow-card__title { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: -0.03em; margin: 1.8rem 0 0.4rem; }
.flow-card__text { font-size: 0.85rem; line-height: 1.45; color: var(--sand); margin: 0; }

/* Agent ------------------------------------------------------------------ */
.agent-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.agent-copy h2 { max-width: 13ch; }
.check-list { margin: 2rem 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.95rem; color: var(--sand); }
.check-list li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); margin-top: 0.6rem; }

/* Work grid -------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-card img[src*="case-damac-chelsea"],
.work-card img[src*="case-open-house"],
.work-card img[src*="case-junk-leads-oct"],
.work-card img[src*="case-junk-leads-nov"],
.work-card img[src*="case-atlanta"] { object-fit: contain; background: var(--card); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 17, 0.92), transparent 58%);
}
.work-card:hover img { transform: scale(1.04); }
.work-card__body { position: absolute; inset: auto 1.4rem 1.2rem; z-index: 1; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.work-card__title { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: -0.03em; }
.work-card__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clay);
  margin-top: 0.3rem;
}
.work-card__metric { display: none; }
.work-card__cta {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clay);
  transition: transform 0.25s var(--ease);
}
.work-card:hover .work-card__cta { transform: translateX(3px); }
.swipe-hint { font-family: var(--font-mono); font-size: 0.7rem; color: var(--sand); margin-top: 1rem; display: none; }

/* Who we work with ------------------------------------------------------- */
.clients-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.clients-copy .lede { color: #4E4737; }
.clients-columns { display: grid; gap: 1rem; }
.client-card {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: var(--page-bg);
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
}
.client-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--espresso);
}
.client-card p { margin: 0; color: #4E4737; font-size: 0.95rem; line-height: 1.5; }

/* CTA -------------------------------------------------------------------- */
.cta-section { background: var(--card); }
.cta-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cta-copy h2 { max-width: 12ch; }
.cta-copy .lede { max-width: 38ch; }

/* ---------------------------------------------------------------------------
   5. REUSABLE COMPONENTS
   ------------------------------------------------------------------------- */
/* Form ------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(217, 205, 184, 0.35);
  border-radius: 0;
  color: var(--cream);
  padding: 0.7rem 0;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); }
.field input::placeholder, .field textarea::placeholder { color: rgba(217, 205, 184, 0.55); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--clay) 50%), linear-gradient(135deg, var(--clay) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--espresso); color: var(--cream); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 0.5rem; }
.form-alt { font-size: 0.82rem; color: var(--clay); border-bottom: 1px solid var(--line-clay); }
.form-address { display: none; }
.form-address__label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-address__text { display: block; margin-top: 0.35rem; color: var(--espresso); font-size: 0.85rem; line-height: 1.5; }
.form-confirm { display: none; border: 1px solid var(--clay); background: var(--card-2); padding: 2rem; border-radius: var(--radius); }
.form-confirm.is-visible { display: block; }
.form-confirm h3 { margin-bottom: 0.8rem; }
.form-confirm p { color: var(--sand); margin: 0 0 1.5rem; }
form.is-sent { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--clay); font-size: 0.85rem; margin: 0.8rem 0 0; }
.section--light .form-error { color: var(--deep-clay); }

/* Cards ------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--clay); transform: translateY(-3px); }
.card__num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--sand); }
.card__icon { width: 34px; height: 34px; color: var(--clay); margin-bottom: 3rem; }
.card__title { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin: 0.8rem 0 0.6rem; }
.card__text { font-size: 0.92rem; color: var(--sand); margin: 0 0 1.8rem; max-width: 42ch; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--clay); }
.card__link svg { width: 1em; height: 1em; flex: 0 0 auto; }
.card--featured { background: var(--deep-clay); border-color: var(--deep-clay); }
.card--featured .card__text, .card--featured .card__num, .card--featured .card__icon { color: rgba(239, 230, 216, 0.88); }
.card--featured .card__link { color: var(--cream); }

/* Phone mockup / WhatsApp conversation ----------------------------------- */
.phone {
  width: min(320px, 86vw);
  height: 590px;
  background: var(--chat-bg);
  border: 8px solid #100D09;
  border-radius: 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line-clay);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 auto;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #100D09;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 1.7rem 0.4rem 0.9rem; border-bottom: 1px solid rgba(239, 230, 216, 0.1); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--deep-clay); display: grid; place-items: center; position: relative; }
.avatar::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--chat-bg); }
.chat-head__name { font-size: 0.85rem; font-weight: 500; }
.chat-head__status { font-family: var(--font-mono); font-size: 0.58rem; color: var(--sand); }
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.2rem;
  overflow: hidden;
}
.msg {
  max-width: 84%;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.msg.is-visible { opacity: 1; transform: none; }
.msg--lead { align-self: flex-end; background: var(--sand); color: var(--espresso); border-bottom-right-radius: 2px; }
.msg--agent { align-self: flex-start; background: var(--card-2); color: var(--cream); border-bottom-left-radius: 2px; }
.msg--system { align-self: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--deep-clay); color: var(--cream); padding: 0.4rem 0.7rem; border-radius: 100px; }
.quick-replies { display: flex; gap: 0.4rem; padding: 0.6rem 0.2rem 0.4rem; border-top: 1px solid rgba(239, 230, 216, 0.1); }
.quick-replies span { font-size: 0.65rem; padding: 0.35rem 0.6rem; border: 1px solid var(--line-clay); border-radius: 100px; color: var(--sand); }

/* Timeline --------------------------------------------------------------- */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before, .timeline__fill { content: ""; position: absolute; left: 11px; top: 0; width: 1px; }
.timeline::before { bottom: 0; background: var(--line-clay); }
.timeline__fill { height: 0; background: var(--clay); transition: height 0.15s linear; }
.timeline__item { position: relative; padding: 0 0 clamp(3rem, 6vw, 5rem); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 0.35rem;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  background: var(--espresso);
}
.timeline__item.is-filled::before { background: var(--clay); }
.timeline__num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--clay); }
.timeline__item h3 { margin: 0.5rem 0 0.8rem; }
.timeline__item p { color: var(--sand); max-width: 52ch; margin: 0; }

/* Pricing ---------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan {
  background: var(--sand);
  color: var(--espresso);
  border: 1px solid rgba(26, 22, 17, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
}
.plan__name { font-family: var(--font-head); font-size: 1.9rem; letter-spacing: -0.03em; }
.plan__tagline { font-size: 0.88rem; color: #4E4737; min-height: 3em; margin: 0.5rem 0 1.8rem; }
.plan__price { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.plan__period { font-family: var(--font-mono); font-size: 0.68rem; color: var(--espresso); margin-left: 0.3rem; }
.plan__features { margin: 2rem 0; display: grid; gap: 0.8rem; }
.plan__features li { font-size: 0.9rem; display: flex; gap: 0.7rem; align-items: baseline; }
.plan__features li::before { content: "—"; color: var(--deep-clay); }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { background: var(--clay); color: var(--espresso); border-color: var(--clay); }
.plan--featured .plan__tagline { color: rgba(26, 22, 17, 0.85); }
.plan--featured .plan__period { color: var(--espresso); }
.plan--featured .plan__features li::before { color: var(--espresso); }
.plan--featured .btn { background: var(--espresso); color: var(--cream); }
.plan--featured .btn:hover { background: var(--cream); color: var(--espresso); }
.terms { font-size: 0.78rem; color: var(--espresso); margin-top: 1.6rem; }

/* Pricing fits a desktop screen without scrolling */
html[data-page="pricing"] .page-intro { padding-top: calc(var(--header-h) + 1rem); }
html[data-page="pricing"] .page-intro h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.05; }
html[data-page="pricing"] .page-intro .lede { font-size: 0.95rem; margin-top: 1rem; max-width: 62ch; }
html[data-page="pricing"] .section--tight { padding-block: 1.2rem; }
html[data-page="pricing"] .plan { padding: 1.2rem; }
html[data-page="pricing"] .plan__name { font-size: 1.4rem; }
html[data-page="pricing"] .plan__tagline { font-size: 0.78rem; min-height: 0; margin: 0.3rem 0 0.8rem; }
html[data-page="pricing"] .plan__price { font-size: 1.35rem; }
html[data-page="pricing"] .plan__features { margin: 1rem 0; gap: 0.45rem; }
html[data-page="pricing"] .plan__features li { font-size: 0.8rem; }
html[data-page="pricing"] .plan .btn { min-height: 40px; padding: 0.5rem 0.8rem; font-size: 0.82rem; }
html[data-page="pricing"] .terms { margin-top: 0.8rem; font-size: 0.7rem; }

/* Accordion -------------------------------------------------------------- */
.faq-list { border-top: 1px solid rgba(26, 22, 17, 0.18); }
.faq-item { border-bottom: 1px solid rgba(26, 22, 17, 0.18); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--deep-clay); }
.faq-item[open] summary::after { content: "–"; }
.faq-item__answer { padding: 0 0 1.6rem; max-width: 68ch; color: #4E4737; }
.faq-item__answer p { margin: 0; }

/* Visual placeholder ----------------------------------------------------- */
.visual {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
}
.visual--wide { min-height: clamp(280px, 46vw, 560px); }

/* ---------------------------------------------------------------------------
   6. OTHER PAGES
   ------------------------------------------------------------------------- */
.page-intro { padding-top: calc(var(--header-h) + 2rem); }
.page-intro h1 { max-width: 15ch; }
/* One consistent, tighter top offset for every non-home page */
html:not(.snap-page) main > .section:first-child,
html:not(.snap-page) main > .case-hero:first-child { padding-top: calc(var(--header-h) + 2rem); }
/* Work gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Case study */
.case-hero { padding-top: calc(var(--header-h) + 2rem); }
.case-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.case-hero h1 { max-width: 16ch; }
.case-visual { margin-top: 2.5rem; }
.case-visual .visual { min-height: clamp(300px, 50vw, 600px); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.result-item { border-top: 1px solid var(--clay); padding-top: 1rem; }
.result-item strong { display: block; font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; color: var(--cream); }
.result-item span { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--sand); margin-top: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Case-study screen fit — balanced hero for laptop screens */
html[data-page^="case-"] main > .case-hero { padding-top: calc(var(--header-h) + 0.9rem); padding-bottom: 1.1rem; }
html[data-page^="case-"] .case-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
html[data-page^="case-"] .case-hero__copy { max-width: 34rem; }
html[data-page^="case-"] .case-hero__meta { margin-bottom: 0.8rem; }
html[data-page^="case-"] .case-hero .eyebrow { margin: 0 0 0.5rem; }
html[data-page^="case-"] .case-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
  line-height: 1.04;
  margin: 0;
}
html[data-page^="case-"] .case-hero__sub {
  margin: 0.85rem 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.5;
}
html[data-page^="case-"] .case-visual {
  margin-top: 0;
  padding: 0.85rem;
  background: var(--espresso);
  border: 1px solid rgba(214, 138, 82, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(26, 22, 17, 0.28);
}
html[data-page^="case-"] .case-visual .visual { min-height: 0; height: clamp(220px, 22vw, 300px); aspect-ratio: 16 / 9; }
/* The supplied case photos are very wide banners — show them in full, uncropped. */
html[data-page^="case-"] .case-visual img[src*="case-damac-chelsea"],
html[data-page^="case-"] .case-visual img[src*="case-open-house"],
html[data-page^="case-"] .case-visual img[src*="case-junk-leads-oct"],
html[data-page^="case-"] .case-visual img[src*="case-junk-leads-nov"],
html[data-page^="case-"] .case-visual img[src*="case-atlanta"] {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}
/* Paired October / November proof screenshots. */
.case-visual--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.case-visual--pair .visual { width: 100%; }
.case-proof { margin: 0; }
.case-proof figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}
html[data-page^="case-"] .case-proof figcaption { color: var(--sand); }
@media (max-width: 700px) {
  .case-visual--pair { grid-template-columns: 1fr; gap: 0.6rem; }
}

html[data-page^="case-"] main > .section--tight { padding-block: 1rem; }

/* Case study story — problem, what we did, lesson */
.case-story { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.case-story h2,
.case-results h2 {
  margin: 0.4rem 0 1.8rem;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.story-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.story-step {
  --step-pad: clamp(1.2rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: var(--step-pad);
  border: 1px solid rgba(214, 138, 82, 0.35);
  border-top: 3px solid var(--clay);
  border-radius: var(--radius);
  background: var(--espresso);
  overflow: hidden;
}
/* A full-width coloured strip behind each heading only. */
.story-step__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: calc(-1 * var(--step-pad)) calc(-1 * var(--step-pad)) 1.1rem;
  padding: 0.9rem var(--step-pad);
}
.story-step--problem .story-step__top { background: var(--page-bg); }
.story-step--action .story-step__top { background: var(--sand); }
.story-step--lesson .story-step__top { background: var(--clay); }
.story-step__num,
.story-step__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-step__num { color: var(--deep-clay); }
.story-step--lesson .story-step__num { color: var(--espresso); }
/* The three headings are now the loudest thing in each box. */
.story-step__label {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--espresso);
}
.story-step__text {
  margin: 1.2rem 0 0;
  white-space: pre-line;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.55;
  color: #FFFFFF;
}
.story-step--lesson .story-step__text {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-results { padding-block: clamp(2rem, 4vw, 3.2rem); border-top: 1px solid var(--line-clay); }
.case-results .eyebrow { margin: 0; }
.case-results h2 { margin-bottom: 1.6rem; }
.case-results__lead {
  margin: -0.6rem 0 1.6rem;
  max-width: 42ch;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--espresso);
}
html[data-page^="case-"] .result-grid { gap: 0.75rem; }
html[data-page^="case-"] .result-item { padding-top: 0.7rem; }
html[data-page^="case-"] .result-item strong { font-size: clamp(1.7rem, 3vw, 2.5rem); }
html[data-page^="case-"] .result-item span { margin-top: 0.45rem; }

/* Optional campaign-creative gallery on case detail pages. */
.case-creatives { padding-block: clamp(2rem, 4vw, 3.2rem); border-top: 1px solid var(--line-clay); }
.case-creatives .eyebrow { margin: 0; }
.case-creatives h2 {
  margin: 0.4rem 0 1.6rem;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.creative-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
/* Keep the supplied tall creatives as small, fully visible thumbnails. */
.creative-img {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--line-clay);
  border-radius: var(--radius);
  background: var(--card);
}

html[data-page^="case-"] main > .section--light { padding-block: 1.4rem; }
html[data-page^="case-"] main > .section--light .eyebrow { margin-bottom: 0.7rem; }
html[data-page^="case-"] .terms { margin-top: 0.7rem; font-size: 0.75rem; }
html[data-page^="case-"] .page-nav { padding-top: 0.9rem; }

@media (max-width: 900px) {
  html[data-page^="case-"] .case-hero .container { display: block; }
  html[data-page^="case-"] .case-hero__copy { max-width: none; }
  html[data-page^="case-"] .case-hero__meta { margin-bottom: 0.9rem; }
  html[data-page^="case-"] .case-hero h1 { max-width: 18ch; }
  html[data-page^="case-"] .case-visual { margin-top: 1.2rem; }
  html[data-page^="case-"] .case-visual .visual { height: clamp(240px, 46vw, 380px); }
  .story-steps { grid-template-columns: 1fr; }
  .story-step { min-height: 0; }
  .story-step--lesson .story-step__text { margin-top: 1.2rem; padding-top: 0; }
}
@media (max-width: 700px) {
  html[data-page^="case-"] main > .case-hero { padding-top: calc(var(--header-h) + 0.9rem); padding-bottom: 0.8rem; }
  html[data-page^="case-"] .case-hero h1 { font-size: clamp(2rem, 8.5vw, 2.55rem); max-width: none; }
  html[data-page^="case-"] .case-hero__sub { font-size: 0.95rem; }
  html[data-page^="case-"] .case-visual .visual { height: 220px; }
  .case-story { padding-block: 2.2rem; }
  .case-results { padding-block: 2rem; }
  .case-story h2, .case-results h2 { font-size: 1.7rem; margin-bottom: 1.2rem; }
  .case-results__lead { margin-top: -0.3rem; margin-bottom: 1.2rem; font-size: 1.15rem; }
  .story-step { --step-pad: 1.2rem; }
  .story-step__text { font-size: 1rem; }
  .story-step--lesson .story-step__text { font-size: 1.35rem; }
  html[data-page^="case-"] .result-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.5rem; }
  html[data-page^="case-"] .result-item strong { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  html[data-page^="case-"] .result-item span { font-size: 0.75rem; margin-top: 0.35rem; }
  .case-creatives h2 { font-size: 1.7rem; margin-bottom: 1.2rem; }
  .creative-img { max-height: 200px; }
}

html[data-page^="case-"] .case-hero__meta .case-back { font-family: var(--font-mono); font-size: 0.75rem; color: var(--clay-text); border-bottom: 1px solid rgba(138, 69, 38, 0.4); padding-bottom: 0.1rem; }
/* About */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-story .visual { aspect-ratio: 4 / 5; }
.about-story p { color: var(--sand); max-width: 48ch; }
.pull-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  border-left: 2px solid var(--clay);
  padding-left: clamp(1rem, 3vw, 2.5rem);
  max-width: 26ch;
  margin: 0;
}
.pull-quote cite { display: block; font-family: var(--font-mono); font-size: 0.68rem; font-style: normal; color: var(--espresso); margin-top: 1.5rem; letter-spacing: 0.08em; }

/* About page — editorial type, flat brand surfaces, one clay thread */
html[data-page="about"] .page-intro h1 { max-width: 20ch; }
html[data-page="about"] .page-intro .eyebrow { color: var(--clay); }
html[data-page="about"] .page-intro .lede { max-width: 58ch; margin-top: 1.5rem; }
html[data-page="about"] .about-intro__line { max-width: 58ch; color: var(--muted); margin-top: 0.6rem; }
html[data-page="about"] .about-intro__line--last {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 1.2rem;
  margin-bottom: 0;
}
/* Decorative rule only — no new words are introduced in CSS. */
html[data-page="about"] main h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--clay);
  margin-bottom: 1rem;
}
html[data-page="about"] .about-prose { max-width: 72ch; }
html[data-page="about"] .about-prose h2 { margin-bottom: 1.6rem; }
html[data-page="about"] .about-prose p { color: var(--muted); margin-bottom: 0.9rem; }
html[data-page="about"] .about-story__lead {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.8rem;
}
html[data-page="about"] .section--light .about-prose p,
html[data-page="about"] .section--light .about-thought span { color: #4E4737; }
html[data-page="about"] .about-thinking h2 { margin-bottom: 0; }
html[data-page="about"] .about-thoughts { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
html[data-page="about"] .about-thought { max-width: 100%; padding-left: 1.3rem; border-left: 2px solid var(--clay); }
html[data-page="about"] .about-thought strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}
html[data-page="about"] .about-thought span { color: var(--muted); }
html[data-page="about"] .about-closing h2 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4rem); }
html[data-page="about"] .about-closing p { max-width: 52ch; color: #4E4737; margin-bottom: 1.6rem; }

@media (min-width: 821px) {
  html[data-page="about"] .about-thought {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(26, 22, 17, 0.18);
  }
  html[data-page="about"] .about-thought strong { margin-bottom: 0; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.faq-aside h1 { max-width: 20ch; }
.faq-still { margin-top: 0.5rem; padding-top: 2rem; border-top: 1px solid rgba(26, 22, 17, 0.18); }
.faq-still h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 0 0 0.8rem; }
.faq-still p { color: #4E4737; margin: 0 0 1.2rem; max-width: 60ch; }
.faq-aside p { color: #4E4737; margin: 1rem 0 1.8rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-details__item { border-top: 1px solid var(--line-clay); padding-top: 1rem; }
.contact-details__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); }
.contact-details__value { display: block; margin-top: 0.4rem; color: var(--cream); }
a.contact-details__value:hover { color: var(--clay); }
.contact-details__icon { display: none; }
.contact-details__body { min-width: 0; }
.contact-addresses { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-clay); }
.contact-addresses .eyebrow { margin: 0 0 0.65rem; }
.contact-addresses__name { margin: 0 0 0.4rem; color: var(--espresso); }
.contact-addresses__line { margin: 0.15rem 0; color: var(--muted); }
.contact-addresses__phone { margin: 0.7rem 0 0; color: var(--muted); }
.contact-addresses__phone a { color: var(--clay-text); border-bottom: 1px solid var(--line-clay); }

/* Simple page nav for previous/next */
.page-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line-clay); padding-top: 1.5rem; }

/* ---------------------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--espresso); border-top: 1px solid var(--line-clay); }
.footer-cta { padding-block: 2.5rem; background: var(--card); border-bottom: 1px solid var(--line-clay); }
.footer-cta__grid { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; }
.footer-cta h2 { max-width: 18ch; font-size: clamp(1.6rem, 6vw, 2.8rem); }
.footer-cta .btn { min-height: 44px; padding: 0.7rem 1.2rem; font-size: 0.85rem; }
.footer-main { padding-block: 2rem 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 0.8fr 1.6fr 1fr; gap: 1.5rem; }
.footer-brand img { height: 30px; width: auto; max-width: 160px; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; color: var(--sand); max-width: 28ch; }
.footer-col h3 { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.6rem; }
/* Compact pipe-separated link rows instead of one link per line. */
.footer-links { line-height: 2.1; }
.footer-col a { display: inline; font-size: 0.85rem; color: var(--sand); }
.footer-col a:hover { color: var(--clay); }
.footer-sep { display: inline-block; margin: 0 0.35rem; font-size: 0.8rem; color: rgba(217, 205, 184, 0.32); user-select: none; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--clay); font-size: 0.8rem; margin-top: 0.5rem; }
.footer-whatsapp svg { width: 16px; height: 16px; flex: 0 0 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; border-top: 1px solid var(--line-cream); padding-top: 1rem; font-size: 0.76rem; color: var(--sand); }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-clay); border-radius: 50%; color: var(--sand); }
.socials a:hover { color: var(--clay); border-color: var(--clay); }
.socials svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------------
   8. MOTION, REDUCED MOTION, RESPONSIVE
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Above-the-fold content should never start with a reveal offset. */
.reveal.is-immediate { opacity: 1; transform: none; transition: none; }

/* Registered address under the form on wide screens only; the sidebar keeps
   just the operational address there so it is not duplicated. */
@media (min-width: 821px) {
  .form-address { display: block; grid-column: 1 / -1; margin-top: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line-clay); }
  .contact-addresses { display: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.75rem; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-card:not(:last-child)::after { display: none; }
  .plan-grid { gap: 0.7rem; }
}

/* Mobile */
@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .desktop-nav, .header-cta { display: none; }
  .menu-toggle, .current-section { display: inline-flex; }
  .header-inner { gap: 0.8rem; }
  .brand-link img { height: 30px; }

  /* Soft snapping on mobile, with normally scrolling tall sections */
  html.snap-page { scroll-snap-type: y proximity; }
  .snap-section { height: auto; min-height: 100svh; overflow: visible; scroll-snap-stop: normal; }

  .hero-grid, .gap-grid, .agent-grid, .clients-grid, .cta-grid,
  .about-story, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .agent-grid { justify-items: start; }

  /* Compact icon rows for the contact details on phones. */
  .contact-details { gap: 0; }
  .contact-details__item {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.7rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(26, 22, 17, 0.12);
  }
  .contact-details__item:last-child { border-bottom: 1px solid rgba(26, 22, 17, 0.12); }
  .contact-details__icon { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; color: var(--clay-text); }
  .contact-details__icon svg { width: 100%; height: 100%; }
  .contact-details__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; }
  .contact-details__value { margin-top: 0; font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }

  /* Horizontal, swipeable work cards */
  .work-grid, .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.8rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .work-card { flex: 0 0 min(84vw, 420px); scroll-snap-align: center; }
  .swipe-hint { display: block; }

  .plan-grid { grid-template-columns: 1fr; }
  .result-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Readability: never let small mobile UI text drop below 12px. */
  .eyebrow, .hero-note,
  .mobile-menu__label, .tag, .flow-card__num, .swipe-hint, .work-card__sub, .work-card__cta, .field label,
  .card__num, .timeline__num, .result-item span,
  .contact-details__label, .footer-col h3, .form-error, .plan__period,
  .pull-quote cite, .terms, .chat-head__status,
  .msg--system, .quick-replies span { font-size: 0.75rem; }
  .msg { font-size: 0.82rem; }
  .flow-card__text, .card__text { font-size: 0.9rem; }
  .footer-whatsapp { font-size: 0.85rem; }
  .footer-bottom { font-size: 0.8rem; }

  /* Page-specific small print must respect the 12px mobile floor. */
  html[data-page="pricing"] .terms,
  html[data-page^="case-"] .terms { font-size: 0.75rem; }

  /* Thumb-friendly mobile tap targets, without changing desktop layout. */
  .footer-col a,
  .footer-bottom a,
  .form-alt,
  .footer-whatsapp {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  .footer-links { line-height: 1.4; }
  .footer-sep { vertical-align: middle; }

  /* Compact footer base is global; these keep phones a touch smaller. */
  .footer-cta h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .footer-brand p, .footer-col a { font-size: 0.82rem; }
}

@media (max-width: 560px) {
  .container, .snap-section > .container { width: min(100% - 1.8rem, var(--container)); }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-cta__grid { flex-direction: column; align-items: stretch; gap: 1rem; }
  .footer-cta { padding-block: 2rem; }
  .mobile-menu { padding: calc(var(--header-h) + 0.8rem) 1.2rem 1.2rem; }
  .mobile-menu__group + .mobile-menu__group { margin-top: 0.9rem; }
  .mobile-menu a { font-size: 0.75rem; min-height: 30px; }
  .mobile-menu__footer { margin-top: 0.9rem; }
  .timeline { padding-left: 2.3rem; }
  .timeline__item::before { left: -2.3rem; }
}

/* ---------------------------------------------------------------------------
   8b. HOMEPAGE SPACING PASS
   ----------------------------------------------------------------------------
   Scoped to the homepage only (html.snap-page). This is a trial run: if it
   feels right, remove the "html.snap-page" prefix to apply it site-wide.
   ------------------------------------------------------------------------- */
html.snap-page .snap-section { padding: calc(var(--header-h) + 9vh) 0 6vh; }
html.snap-page .snap-section > .container { width: min(100% - 8rem, 1180px); }

/* More air around headlines and copy */
html.snap-page .eyebrow { margin-bottom: 1.8rem; }
html.snap-page .lede { margin-top: 2rem; }
html.snap-page .hero .eyebrow { margin-bottom: 2rem; white-space: nowrap; }
html.snap-page .hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
html.snap-page .hero .lede { max-width: 44ch; font-size: clamp(0.98rem, 1.35vw, 1.1rem); margin-top: 2rem; }
html.snap-page .hero .btn-row { margin-top: 2.4rem; }
html.snap-page .agent-copy .lede { max-width: 40ch; }
html.snap-page .cta-copy .lede { max-width: 34ch; }
html.snap-page .section-head { margin-bottom: 4.5rem; }
html.snap-page .btn-row { margin-top: 3rem; }

/* Hero */
html.snap-page .hero-grid { gap: 0; }
html.snap-page .hero-note { margin-top: 1.6rem; }

/* The gap */
html.snap-page .gap-grid { gap: clamp(2rem, 4vw, 3.2rem); }
html.snap-page .gap-diagram { gap: 1.2rem; }
@media (max-width: 820px) {
  /* Stack the diagram on phones: enquiry → gap → buyer. */
  html.snap-page .gap-grid { gap: 1.6rem; }
  html.snap-page .gap-diagram { grid-template-columns: 1fr; gap: 0.6rem; }
  html.snap-page .gap-diagram__node { min-height: 0; padding: 0.9rem 1rem; }
  html.snap-page .gap-diagram__node strong { font-size: 1.15rem; }
  html.snap-page .gap-diagram__middle { padding: 0.9rem 1rem; }
  html.snap-page .gap-diagram__middle p { font-size: 0.75rem; }
  html.snap-page .gap-diagram__node .mono,
  html.snap-page .gap-diagram__middle .mono { font-size: 0.75rem; }
}

/* Services flow */
html.snap-page .flow { gap: 1.6rem; margin-bottom: 3rem; }
html.snap-page .flow-card { padding: 2.2rem 1.8rem; min-height: 260px; }
html.snap-page .flow-card:not(:last-child)::after { right: -1.7rem; width: 1.7rem; }

/* Agent */
html.snap-page .agent-grid { gap: clamp(3rem, 8vw, 8rem); }
html.snap-page .check-list { margin: 2.8rem 0; gap: 1.2rem; }
html.snap-page .phone { height: 560px; }

/* Work */
html.snap-page .work-grid { gap: 1.6rem; }
html.snap-page .work-card { aspect-ratio: 16 / 10; }
html.snap-page .work-card__body { inset: auto 2rem 1.8rem; }
html.snap-page .work-card__tags { margin-bottom: 1rem; }

/* Who we work with. This section has the least content, so a fixed full-screen
   box left a large empty band above the heading. Let it sit at its natural
   height while the other sections keep their full-screen rhythm. */
html.snap-page #clients { height: auto; min-height: 0; }
html.snap-page .clients-grid { gap: clamp(2rem, 5vw, 4rem); }

/* Book the audit — same natural-height treatment as #clients, so the form does
   not float in the middle of a full-screen box with empty space above it. */
html.snap-page #book { height: auto; min-height: 0; }
html.snap-page .cta-grid { gap: clamp(3rem, 8vw, 8rem); }
html.snap-page .form-grid { gap: 1.8rem 1.6rem; }
html.snap-page .form-actions { margin-top: 1rem; }

/* Tablet/mobile: keep the same feeling without squeezing the layout */
@media (max-width: 1080px) {
  html.snap-page .snap-section > .container { width: min(100% - 4rem, 1180px); }
  html.snap-page .hero-grid, html.snap-page .gap-grid,
  html.snap-page .agent-grid, html.snap-page .clients-grid,
  html.snap-page .cta-grid { gap: 3rem; }
}
@media (max-width: 820px) {
  /* Tighter vertical rhythm on phones: only clear the 64px fixed header, then
     start the content. Bottom padding is kept small so the space between one
     section's last line and the next section's eyebrow is not a big empty band. */
  html.snap-page .snap-section { padding: calc(var(--header-h) + 0.25rem) 0 0.75rem; }
  html.snap-page #home.snap-section,
  html.snap-page #services.snap-section,
  html.snap-page #agent.snap-section,
  html.snap-page #work.snap-section {
    padding: calc(var(--header-h) + 0.25rem) 0 0.75rem;
  }
  html.snap-page .snap-section > .container { width: min(100% - 2.4rem, 1180px); }
  /* Keep footer content on the same 19px mobile edges as the snap sections. */
  html.snap-page .site-footer .container { width: min(100% - 2.4rem, 1180px); }
  /* Only the hero owns a full phone screen. Other sections shrink to their
     content so the old 100svh minimum no longer leaves a blank band above the
     next heading. Proximity snapping still works at each section start. */
  html.snap-page .snap-section:not(#home) { min-height: 0; }
  /* Let the hero headline wrap naturally into three mobile lines. */
  html.snap-page .hero h1 > br { display: none; }
  html.snap-page .section-head { margin-bottom: 2.8rem; }
  html.snap-page .flow-card { padding: 1.8rem 1.4rem; min-height: 0; }
  html.snap-page .work-card__body { inset: auto 1.4rem 1.2rem; }
  /* A slimmer phone mock so it reads as a phone, not a tablet, on small screens. */
  html.snap-page #agent.snap-section .phone { width: min(280px, 76vw); height: 440px; }
  html.snap-page #agent .chat-log { gap: 0.4rem; }
  html.snap-page #agent .msg { padding: 0.45rem 0.65rem; line-height: 1.35; }
}

/* The footer is the final snap target on the homepage: without this, mandatory
   snapping pulls scroll back to #book and the footer area feels like it jumps. */
@media (min-width: 821px) {
  html.snap-page .site-footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* Fit each desktop screen so no heading or button is cut off */
html.snap-page #home { padding-top: calc(var(--header-h) + 6vh); padding-bottom: 1.5vh; }
html.snap-page #home .lede { margin-top: 1.2rem; }
html.snap-page #home .btn-row { margin-top: 1.6rem; }
html.snap-page #home .hero-note { margin-top: 1rem; }

html.snap-page #services { padding-top: calc(var(--header-h) + 2vh); padding-bottom: 1.5vh; }
html.snap-page #services > .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter, 24px);
  align-items: start;
}
html.snap-page #services .section-head {
  grid-column: 1 / span 4;
  grid-row: 1;
  max-width: 34ch;
  margin-bottom: 0;
}
html.snap-page #services .section-head h2 { max-width: 13ch; font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
html.snap-page #services .section-head .lede { max-width: 38ch; font-size: clamp(0.95rem, 1.1vw, 1.05rem); }
html.snap-page #services .eyebrow { margin-bottom: 0.7rem; }
html.snap-page #services .lede { margin-top: 0.8rem; }
html.snap-page #services > .container > .text-link {
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: end;
  margin-top: 1.6rem;
}
html.snap-page #services .flow {
  grid-column: 5 / -1;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 0.85rem;
  margin-bottom: 0;
}
html.snap-page #services .flow-card {
  min-height: 200px;
  padding: 1.1rem 1.1rem 1rem;
  overflow: visible;
  background: var(--page-bg);
  border-color: var(--line-clay);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
html.snap-page #services .flow-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 0;
  width: 2.2rem;
  height: 2px;
  background: var(--clay);
  transition: width 0.3s var(--ease);
}
html.snap-page #services .flow-card::after {
  content: "";
  position: absolute;
  right: -0.9rem;
  top: 50%;
  width: 0.9rem;
  height: 1px;
  background: var(--clay);
  opacity: 0.7;
}
html.snap-page #services .flow-card:nth-child(3)::after,
html.snap-page #services .flow-card:nth-child(6)::after { display: none; }
html.snap-page #services .flow-card:hover {
  transform: none;
  background: var(--sand);
  border-color: var(--clay);
}
html.snap-page #services .flow-card:hover::before { width: 100%; }
html.snap-page #services .flow-card__num { color: var(--deep-clay); font-size: 0.75rem; }
html.snap-page #services .flow-card__title { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.15; margin: 1rem 0 0.5rem; }
html.snap-page #services .flow-card__text { color: var(--muted); font-size: clamp(0.88rem, 1vw, 1rem); line-height: 1.45; }
html.snap-page #services .flow-card:nth-child(3) {
  background: var(--clay);
  border-color: var(--clay);
}
html.snap-page #services .flow-card:nth-child(3)::before { background: var(--espresso); }
html.snap-page #services .flow-card:nth-child(3) .flow-card__num,
html.snap-page #services .flow-card:nth-child(3) .flow-card__title,
html.snap-page #services .flow-card:nth-child(3) .flow-card__text { color: var(--espresso); }
html.snap-page #services .flow-card:nth-child(3):hover { background: var(--clay); }
@media (max-width: 1080px) {
  html.snap-page #services .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.snap-page #services .flow-card:nth-child(3)::after { display: block; }
  html.snap-page #services .flow-card:nth-child(even)::after { display: none; }
}
@media (max-width: 820px) {
  html.snap-page #services > .container {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
  }
  html.snap-page #services .section-head,
  html.snap-page #services .flow,
  html.snap-page #services > .container > .text-link {
    grid-column: 1;
    grid-row: auto;
  }
  html.snap-page #services .section-head { max-width: none; }
  html.snap-page #services .section-head h2 { max-width: none; }
  html.snap-page #services .section-head .lede { max-width: none; }
  /* One capability per row on mobile — a simple numbered list, not a grid. */
  html.snap-page #services .flow { grid-template-columns: 1fr; gap: 0.55rem; }
  html.snap-page #services .flow-card::after { display: none; }
  html.snap-page #services .flow-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: start;
    gap: 0 0.4rem;
    padding: 0.85rem 1rem;
  }
  html.snap-page #services .flow-card__num { grid-row: 1 / span 2; padding-top: 0.2rem; }
  html.snap-page #services .flow-card__title { font-size: 1.1rem; margin: 0; }
  html.snap-page #services .flow-card__text { font-size: 0.82rem; }
  html.snap-page #services > .container > .text-link { margin-top: 0; }
}
@media (max-width: 560px) {
  html.snap-page #services .flow { gap: 0.5rem; }
  html.snap-page #services .flow-card { padding: 0.8rem 0.75rem; grid-template-columns: 2rem minmax(0, 1fr); }
  html.snap-page #services .flow-card__title { font-size: 1rem; }
  html.snap-page #services .flow-card__text { font-size: 0.75rem; line-height: 1.35; }
}

/* Wide desktop: give the six tiles back the height lost with the removed cues
   so the section does not read as half empty. Narrower layouts keep their size. */
@media (min-width: 1081px) {
  html.snap-page #services .flow-card { min-height: 225px; }
}

html.snap-page #agent { padding-top: calc(var(--header-h) + 2vh); padding-bottom: 1.5vh; }
/* Desktop: slimmer and taller so the mock reads as a real phone, not a wide card. */
html.snap-page #agent .phone { width: 280px; height: 560px; border-radius: 36px; }
html.snap-page #agent .phone::before { width: 68px; height: 16px; }
html.snap-page #agent .phone::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 150px;
  width: 2px;
  height: 56px;
  background: #100D09;
  border-radius: 2px;
}
html.snap-page #agent .check-list { margin: 1rem 0; gap: 0.6rem; }
html.snap-page #agent .eyebrow { margin-bottom: 0.8rem; }
html.snap-page #agent .lede { margin-top: 0.8rem; }
html.snap-page #agent .agent-copy h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }

/* Work — compact editorial rows; scoped to the homepage snap section */
html.snap-page #work { padding-top: calc(var(--header-h) + 2vh); padding-bottom: 1.5vh; }
html.snap-page #work .section-head { margin-bottom: 1.2rem; }
html.snap-page #work .section-head h2 { max-width: none; font-size: clamp(1.8rem, 3.4vw, 3rem); }
html.snap-page #work .section-head .lede { max-width: 78ch; }
/* The one-line work intro is supporting copy, not a headline — keep it small
   so all four rows have room inside a full-screen desktop snap. */
@media (min-width: 821px) {
  html.snap-page #work .section-head .lede { font-size: 1rem; }
}
html.snap-page #work .eyebrow { margin-bottom: 0.6rem; }
html.snap-page #work .lede { margin-top: 0.6rem; }
html.snap-page #work .work-grid {
  counter-reset: work-row;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
html.snap-page #work .work-card {
  counter-increment: work-row;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto auto;
  grid-template-areas:
    "num tag metric cta"
    "num title metric cta";
  align-items: center;
  gap: 0.8rem 1rem;
  aspect-ratio: auto;
  min-height: 116px;
  padding: 0.9rem 1.2rem;
  overflow: visible;
  background: var(--page-bg);
  border: 1px solid var(--line-clay);
  border-left: 3px solid var(--clay);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
html.snap-page #work .work-card::before {
  content: "0" counter(work-row);
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--deep-clay);
}
html.snap-page #work .work-card img,
html.snap-page #work .work-card::after,
html.snap-page #work .work-card__sub { display: none; }
html.snap-page #work .work-card__body { position: static; inset: auto; display: contents; }
html.snap-page #work .work-card__tags { grid-area: tag; margin: 0 0 0.25rem; }
html.snap-page #work .work-card__tags .tag { font-size: 0.62rem; color: var(--deep-clay); border-color: rgba(181, 98, 58, 0.4); }
html.snap-page #work .work-card__title {
  grid-area: title;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.15;
  color: var(--espresso);
}
html.snap-page #work .work-card__metric {
  grid-area: metric;
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--deep-clay);
  white-space: nowrap;
  text-align: right;
}
html.snap-page #work .work-card__cta {
  grid-area: cta;
  margin: 0;
  font-size: 0.7rem;
  color: var(--espresso);
  white-space: nowrap;
}
html.snap-page #work .work-card:hover { transform: translateY(-2px); }
html.snap-page #work .work-card:nth-child(2) { background: var(--sand); }
html.snap-page #work .work-card:nth-child(3) {
  background: var(--clay);
  border-color: var(--clay);
}
html.snap-page #work .work-card:nth-child(3)::before,
html.snap-page #work .work-card:nth-child(3) .work-card__metric,
html.snap-page #work .work-card:nth-child(3) .work-card__cta { color: var(--espresso); }
html.snap-page #work .work-card:nth-child(3) .work-card__tags .tag { color: var(--espresso); border-color: rgba(26, 22, 17, 0.3); }
/* Short desktop screens: tighten the work section so the fourth row is fully
   visible inside the full-screen snap instead of being clipped at the bottom. */
@media (min-width: 821px) and (max-height: 780px) {
  html.snap-page #work { padding-top: calc(var(--header-h) + 0.5vh); padding-bottom: 0.5vh; }
  html.snap-page #work .section-head { margin-bottom: 0.7rem; }
  html.snap-page #work .work-grid { gap: 0.55rem; }
  html.snap-page #work .work-card { min-height: 106px; padding: 0.7rem 1.2rem; }
}
@media (max-width: 700px) {
  html.snap-page #work .work-grid { gap: 1.1rem; }
  html.snap-page #work .work-card {
    grid-template-columns: minmax(0, 1fr) 2.2rem;
    grid-template-areas:
      "tag num"
      "title num"
      "metric num"
      "cta num";
    gap: 0.3rem 0.7rem;
    min-height: 150px;
    padding: 1.15rem 1rem;
  }
  html.snap-page #work .work-card::before { grid-area: num; align-self: start; justify-self: end; text-align: right; padding-top: 0.25rem; }
  html.snap-page #work .work-card__tags { margin-bottom: 0.2rem; }
  html.snap-page #work .work-card__title { grid-area: title; font-size: 1.05rem; }
  html.snap-page #work .work-card__metric { grid-area: metric; font-size: 1rem; text-align: left; }
  html.snap-page #work .work-card__cta { grid-area: cta; justify-self: start; }
}
@media (max-width: 820px) {
  html.snap-page #home .lede { margin-top: 2rem; }
  html.snap-page #home .btn-row { margin-top: 2.4rem; }
}

/* ---------------------------------------------------------------------------
   LIGHT SECTION THEME — page sections use the brand cream surface. The fixed
   header, mobile menu and footer keep their original dark treatment, as do
   small accents (buttons, featured cards, the phone mock).
   ------------------------------------------------------------------------- */
:root {
  --muted: #4E4737;
  --clay-text: #8A4526;
}

html, body { background: var(--page-bg); color: var(--espresso); }

/* Page surfaces */
.section--light,
.cta-section,
.card,
.flow-card,
.visual,
.form-confirm,
.timeline__item::before { background: var(--page-bg); }
.card--featured, .flow-card--featured { background: var(--deep-clay); }
.plan--featured { background: var(--clay); color: var(--espresso); border-color: var(--clay); }

/* Primary text on cream */
body, .btn, .btn--ghost, .tag--olive,
.result-item strong, .contact-details__value { color: var(--espresso); }
.btn--primary { color: var(--espresso); }

/* Muted text on cream */
.eyebrow, .lede, .muted,
.hero-note, .flow-card__num, .flow-card__text,
.check-list li, .swipe-hint, .field label, .form-confirm p,
.card__num, .card__text, .tag, .timeline__item p,
.result-item span, .about-story p, .contact-details__label { color: var(--muted); }
.tag--olive { border-color: rgba(26, 22, 17, 0.24); }
.text-link, .section--light .text-link, .form-error,
.section--light .form-error, .form-alt { color: var(--clay-text); }

/* Form fields */
.field input, .field select, .field textarea {
  color: var(--espresso);
  border-bottom-color: rgba(26, 22, 17, 0.28);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(26, 22, 17, 0.45); }
.field select option { background: var(--page-bg); color: var(--espresso); }

/* The phone mock and work-card overlays stay dark, so their text stays light */
.phone { color: var(--cream); }
.work-card__body, .work-card__title { color: var(--cream); }
.work-card__tags .tag { color: var(--cream); border-color: rgba(239, 230, 216, 0.45); }
.flow-card--featured .flow-card__title { color: var(--cream); }
.plan--featured .tag--olive { color: var(--espresso); border-color: rgba(26, 22, 17, 0.3); }

/* Header, mobile menu and footer stay exactly as they were */
.site-header { background: rgba(26, 22, 17, 0.92); }
.mobile-menu { background: var(--espresso); color: var(--cream); }
.footer-cta { background: var(--card); color: var(--cream); }
.site-footer { background: var(--espresso); color: var(--cream); }
.nav a, .mobile-menu__label, .footer-brand p, .footer-col h3,
.footer-col a, .footer-bottom, .socials a { color: var(--sand); }
.footer-sep { color: rgba(217, 205, 184, 0.32); }
.menu-toggle { color: var(--cream); }
.nav a.is-active, .mobile-menu a.is-active, .current-section { color: var(--clay); }
.footer-cta .eyebrow { color: var(--sand); }
.footer-cta .lede { color: rgba(239, 230, 216, 0.75); }

/* Hero alone is dark; the cream theme above stays everywhere else. */
.hero { color: var(--cream); }
.hero .eyebrow { color: var(--clay); }
.hero .lede { color: rgba(239, 230, 216, 0.82); }
.hero .hero-note { color: var(--cream); }
.hero .btn--ghost { color: var(--cream); border-color: var(--clay); }
.hero .btn--ghost:hover { background: var(--clay); color: var(--espresso); }

/* Work page — dark, text-only case cards (homepage rows stay as they are) */
html[data-page="work"] .gallery-grid {
  counter-reset: work-page-row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
html[data-page="work"] .gallery-grid .work-card {
  counter-increment: work-page-row;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  grid-template-areas:
    "num tag metric"
    "num title metric"
    "num cta cta";
  align-items: center;
  gap: 0.45rem 1rem;
  aspect-ratio: auto;
  min-height: 180px;
  padding: 1.2rem 1.3rem;
  overflow: visible;
  background: var(--espresso);
  border: 1px solid var(--line-clay);
  border-left: 3px solid var(--clay);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
html[data-page="work"] .gallery-grid .work-card::before {
  content: "0" counter(work-page-row);
  grid-area: num;
  align-self: start;
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clay);
}
html[data-page="work"] .gallery-grid .work-card img,
html[data-page="work"] .gallery-grid .work-card::after,
html[data-page="work"] .gallery-grid .work-card__sub { display: none; }
html[data-page="work"] .gallery-grid .work-card__body { position: static; inset: auto; display: contents; }
html[data-page="work"] .gallery-grid .work-card__tags { grid-area: tag; margin: 0; }
html[data-page="work"] .gallery-grid .work-card__tags .tag { color: var(--cream); border-color: rgba(239, 230, 216, 0.35); }
html[data-page="work"] .gallery-grid .work-card__title {
  grid-area: title;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.12;
  color: var(--cream);
}
html[data-page="work"] .gallery-grid .work-card__metric {
  grid-area: metric;
  display: block;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--clay);
}
html[data-page="work"] .gallery-grid .work-card__cta {
  grid-area: cta;
  justify-self: start;
  margin-top: 0;
  color: var(--cream);
}
html[data-page="work"] .gallery-grid .work-card:hover { transform: translateY(-2px); background: var(--card); }

@media (max-width: 820px) {
  html[data-page="work"] .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.8rem;
    padding-bottom: 1rem;
  }
  html[data-page="work"] .gallery-grid .work-card {
    flex: 0 0 min(84vw, 420px);
    scroll-snap-align: center;
    grid-template-columns: minmax(0, 1fr) 2.2rem;
    grid-template-areas:
      "tag num"
      "title num"
      "metric num"
      "cta num";
    gap: 0.3rem 0.7rem;
    min-height: 210px;
    padding: 1rem;
  }
  html[data-page="work"] .gallery-grid .work-card::before { justify-self: end; text-align: right; }
  html[data-page="work"] .gallery-grid .work-card__title { font-size: 1.05rem; }
  html[data-page="work"] .gallery-grid .work-card__metric { font-size: 0.85rem; }
}

/* Mobile: keep the hero label on one line without breaking narrow screens */
@media (max-width: 820px) {
  html.snap-page #home .eyebrow { letter-spacing: 0; }
}
@media (max-width: 340px) {
  html.snap-page #home .eyebrow { white-space: normal; letter-spacing: 0.02em; }
}

/* Reduced motion: no animation, no snapping, everything visible */
@media (prefers-reduced-motion: reduce) {
  html, html.snap-page { scroll-behavior: auto; scroll-snap-type: none; }
  .snap-section { scroll-snap-align: none; height: auto; min-height: 100svh; overflow: visible; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .msg { opacity: 1 !important; transform: none !important; }
  /* Show the still frame instead of playing video. */
  .hero-video { display: none; }
  .hero { background: var(--espresso) url("../img/hero-poster.jpg") center / cover no-repeat; }
}
