/* ==========================================================================
   Sought: site styles
   Palette: warm cream, ink, warm gray, and clay. A medium-weight serif
   for headlines (Fraunces), a clean sans for reading (Figtree).
   Motion is quiet on purpose: short fades, arrow nudges, one-time reveals.
   Colors, fonts, and spacing live in :root.
   ========================================================================== */

:root {
  /* Brand palette */
  --cream: #f4efe6;        /* background */
  --ink: #151515;          /* text, headings, footer, dark sections */
  --gray: #8c857b;         /* secondary: sections, dividers, icons, large text */
  --clay: #b84d28;         /* accent: buttons, key numbers */

  /* Supporting shades, so every text pair passes WCAG 2.1 AA
     (see docs/DESIGN.md for the ratios) */
  --cream-2: #ebe5da;      /* alternate section background */
  --white: #ffffff;
  --ink-2: #57524b;        /* secondary text on cream */
  --ink-soft: #262320;     /* cards and chart bars on ink */
  --line: #d6cfc3;         /* light dividers inside lists */
  --dark-line: rgb(255 255 255 / 0.16);
  --on-dark: #f4efe6;      /* text on ink */
  --on-dark-2: #bab3a8;    /* secondary text on ink */
  --clay-hover: #9a3f1f;
  --clay-ink: #a5431f;     /* small clay text on cream (labels) */
  --clay-light: #ec8b69;   /* clay text on ink */
  --clay-tint: #f3ddd2;
  --field-line: #8c857b;
  --error: #b42318;
  --success: #1c5d38;

  /* Placeholder highlight: delete .ph wrappers as you fill them in */
  --ph-bg: #fff0a6;
  --ph-ink: #3b2f00;
  --ph-line: #9a7400;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2.125rem, 1.7rem + 2vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.9rem + 4vw, 5.25rem);
  --measure: 62ch;

  /* Space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4rem;
  --s8: 6rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 76rem;
  --gutter: 1.25rem;
  --header-h: 72px;
}

@media (min-width: 48em) {
  :root { --gutter: 2.5rem; --header-h: 84px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  interpolate-size: allow-keywords;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2 {
  margin: 0 0 0.45em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h1 em, h2 em { font-style: italic; font-weight: 400; }
h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p, ul, ol, dl, figure, blockquote { margin: 0 0 var(--s3); }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--clay-ink); }

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

::selection { background: var(--clay-tint); color: var(--ink); }

/* ---------- Utilities ---------- */

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 100;
  padding: var(--s2) var(--s3);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s3); color: var(--on-dark); }

.nowrap { white-space: nowrap; }
.prose { max-width: var(--measure); }
.muted { color: var(--ink-2); }

.lead {
  max-width: 36em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.label {
  display: block;
  margin-bottom: var(--s3);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--clay-ink);
}

/* ---------- Placeholders (remove wrappers as you fill them in) ---------- */

.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  outline: 1px dashed var(--ph-line);
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.2em;
  font-style: normal;
}

.ph-block {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s2);
  padding: var(--s4);
  background: #fffbe6;
  color: var(--ph-ink);
  border: 2px dashed var(--ph-line);
  border-radius: var(--radius);
  font-size: var(--step--1);
  text-align: center;
}
.ph-block strong { color: var(--ph-ink); font-size: 1rem; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.8em 1.35em;
  background: var(--clay);
  color: var(--white);
  border: 1.5px solid var(--clay);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.45s var(--ease);
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --btn-fill: var(--ink);
}
.btn::after {
  content: "";
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  z-index: -1;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::after,
.btn:focus-visible::after { transform: translate(-50%, -50%) scale(1); }
.btn:hover { color: var(--white); }
.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { color: var(--cream); }

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); --btn-fill: var(--clay); }
.btn--dark .btn__arrow { color: var(--clay-light); }
.btn--dark:hover { color: var(--white); border-color: var(--clay); }
.btn--dark:hover .btn__arrow { color: var(--white); }
.cta .btn--dark { --btn-fill: var(--cream); }
.cta .btn--dark:hover { color: var(--ink); border-color: var(--cream); }
.cta .btn--dark:hover .btn__arrow { color: var(--clay); }

.btn--lg { min-height: 56px; padding: 0.95em 1.6em; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.55em 1em; font-size: 0.9375rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (max-width: 30em) {
  .actions .btn { flex: 1 1 100%; }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link span[aria-hidden] { display: inline-block; transition: transform 0.3s var(--ease); }
.arrow-link:hover span[aria-hidden] { transform: translateX(4px); }
.arrow-link:hover { color: var(--clay-ink); }

/* ---------- Header (tucks away on scroll down, returns on scroll up) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 239 230 / 0.92);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
  view-transition-name: site-header;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(244 239 230 / 0.8); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-tucked { transform: translateY(-100%); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "mark cta"
    "nav  nav";
  align-items: center;
  column-gap: var(--s4);
  padding-block: var(--s2) 0;
}

.wordmark {
  grid-area: mark;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.wordmark img { display: block; width: auto; height: 30px; }
@media (min-width: 52em) { .wordmark img { height: 36px; } }

.site-nav { grid-area: nav; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-phone { display: none; }
.header-cta { grid-area: cta; }

@media (min-width: 52em) {
  .masthead {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "mark nav phone cta";
    min-height: var(--header-h);
    padding-block: 0;
  }
  .site-nav ul { justify-content: center; gap: var(--s5); }
  .header-phone {
    grid-area: phone;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
  }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section--alt { background: var(--cream-2); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.section--rule { border-top: 1px solid var(--gray); }

.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .label { color: var(--clay-light); }
.section--dark .lead,
.section--dark .muted,
.section--dark p { color: var(--on-dark-2); }
.section--dark h2,
.section--dark h3,
.section--dark strong { color: var(--on-dark); }
.section--dark a:not(.btn) { color: var(--on-dark); }
.section--dark a:not(.btn):hover { color: var(--clay-light); }
.section--dark :focus-visible { outline-color: var(--clay-light); }
.section--dark .btn--outline { border-color: var(--on-dark); color: var(--on-dark); }
.section--dark .btn--outline { --btn-fill: var(--on-dark); }
.section--dark .btn--outline:hover { color: var(--ink); }

.section__head { max-width: 46rem; margin-bottom: var(--s6); }
.section__head .lead { margin-bottom: 0; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.split-head { display: grid; gap: var(--s4) var(--s7); margin-bottom: var(--s6); }
@media (min-width: 60em) {
  .split-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .split-head h2 { margin-bottom: 0; }
}
.split-head .lead { margin-bottom: 0; }

.section--gray { background: var(--gray); color: var(--ink); }
.section--gray h2,
.section--gray h3,
.section--gray p,
.section--gray .lead,
.section--gray .label,
.section--gray strong { color: var(--ink); }
.section--gray a:not(.btn) { color: var(--ink); }
.section--gray a:not(.btn):hover { color: var(--ink); text-decoration-thickness: 2px; }
.section--gray :focus-visible { outline-color: var(--ink); }

/* One or two words in warm-gray italic, on cream only (large text) */
.hero h1 em,
.page-hero h1 em { color: var(--gray); }

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s7); }
}
.hero h1 { margin-bottom: var(--s4); }
.hero__areas {
  margin: var(--s4) 0 0;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Headline lines rise into place once, on load */
.rise .line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.rise .line > span { display: inline-block; animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }

/* Hero visual: a palm frond unfurling (video made with Higgsfield).
   The frame opens up on load, the video settles from a slight zoom, plays once,
   and rests on the open frond. A floating card ties it back to calls. */
.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 30rem);
}
.hero-media__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink) url("/assets/img/hero-frond.jpg") center / cover no-repeat;
  box-shadow: 0 34px 60px -32px rgb(21 21 21 / 0.55);
  animation: frame-in 1.3s var(--ease) 0.1s both;
}
.hero-media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 6s var(--ease) both;
}
.stage__card.hero-media__card {
  position: absolute;
  left: -2.5rem;
  bottom: 2.5rem;
  width: min(80%, 16.5rem);
}
@media (max-width: 61.99em) {
  .hero-media { justify-self: center; width: min(100%, 28rem); }
  .stage__card.hero-media__card { left: 1rem; bottom: 1rem; width: min(70%, 16rem); }
}
.hero-media__toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: rgb(21 21 21 / 0.55);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
@supports (backdrop-filter: blur(1px)) {
  .hero-media__toggle { backdrop-filter: blur(6px); }
}
.hero-media__toggle:hover { background: rgb(21 21 21 / 0.8); }
.hero-media__toggle:focus-visible { outline-color: var(--clay-light); }
.hero-media__toggle svg { width: 18px; height: 18px; }
.hero-media__toggle .icon-pause,
.hero-media__toggle .icon-play,
.hero-media__toggle .icon-replay { display: none; }
.hero-media__toggle[data-state="playing"] .icon-pause,
.hero-media__toggle[data-state="paused"] .icon-play,
.hero-media__toggle[data-state="ended"] .icon-replay { display: block; }

/* Floating chart card */
.stage__card {
  position: relative;
  padding: var(--s3) var(--s4);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.5);
  animation: card-in 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 450ms + 350ms);
}
.stage__kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stage__title { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.stage__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 0.4rem;
}
.stage__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--ink-soft);
  transform-origin: bottom;
  animation: grow 0.9s var(--ease) both;
  animation-delay: calc(1.3s + var(--i, 0) * 80ms);
}
.stage__bars span:last-child { background: var(--clay); }

/* ---------- Ticker (moves a little as you scroll, see site.js) ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--gray);
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__list li {
  display: flex;
  align-items: center;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
}
.ticker__list li::after {
  content: "•";
  content: "•" / "";
  margin-inline: 1.1em;
  font-style: normal;
  color: var(--clay);
}

/* ---------- Problem columns ---------- */

.cols { display: grid; gap: 0 var(--s5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 52em) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols > li { padding-block: var(--s4); border-top: 1px solid var(--gray); }
.cols__num {
  display: block;
  margin-bottom: var(--s3);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--clay);
}
.cols h3 { margin-bottom: var(--s2); }
.cols p { margin: 0; color: var(--ink-2); }

.stakes {
  max-width: 30ch;
  margin: var(--s6) 0 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.stakes em { font-weight: 400; color: var(--clay-ink); }

/* ---------- Ruled two-column lists ---------- */

.ruled {
  display: grid;
  gap: 0 var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) { .ruled--2 { grid-template-columns: 1fr 1fr; } }
.ruled > li {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.section--dark .ruled > li { border-bottom-color: var(--dark-line); }
.ruled strong { display: block; margin-bottom: 0.15rem; }

/* Service block (home offer + services page) */
.block { padding-block: var(--s6); border-top: 1px solid var(--line); }
:is(.group-head, .split-head, .section__head) + .block { border-top: 0; padding-top: 0; }
.section--dark .block { border-top-color: var(--dark-line); }
.block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s3);
}
.block__title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.block__arrow { color: var(--gray); font-family: var(--sans); font-weight: 400; margin-left: 0.25em; }
.section--dark .block__arrow { color: var(--clay-light); }
.block__price {
  margin: 0;
  padding: 0.3rem 0.8rem;
  background: var(--cream-2);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
}
.section--alt .block__price { background: var(--cream); }
.section--dark .block__price { background: var(--ink-soft); color: var(--on-dark); }
.block__alias { flex-basis: 100%; order: -1; margin: 0; }
.block__intro { max-width: 44rem; color: var(--ink-2); }
.block__intro p:last-child { margin-bottom: 0; }
.block__label {
  margin: var(--s4) 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section--dark .block__label { color: var(--on-dark-2); }
.block__meta { margin: var(--s3) 0 0; font-size: var(--step--1); color: var(--ink-2); }

.note {
  max-width: 44rem;
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--clay);
  font-size: 1rem;
  color: var(--ink-2);
}
.section--alt .note { background: var(--cream); }
.section--dark .note { background: var(--ink-soft); border-left-color: var(--clay-light); color: var(--on-dark-2); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Audit (ink section, clay-edged card) ---------- */

.audit { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 62em) {
  .audit { grid-template-columns: 0.85fr 1.15fr; gap: var(--s7); }
  .audit__pitch { position: sticky; top: calc(var(--header-h) + var(--s4)); }
}
.audit__pitch .ruled > li { color: var(--on-dark); }
.audit__fine { margin-top: var(--s4); font-size: var(--step--1); }
.audit__card {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--clay);
  border-radius: var(--radius);
}
.section--dark .audit__card p { color: var(--ink-2); }
.section--dark .audit__card strong,
.section--dark .audit__card h3 { color: var(--ink); }
.section--dark .audit__card a:not(.btn) { color: var(--ink); }
.section--dark .audit__card :focus-visible { outline-color: var(--clay-ink); }

/* ---------- Steps (a line draws across as it scrolls in) ---------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1.5px;
  background: var(--gray);
  transform-origin: top;
  transition: transform 1.2s var(--ease) 0.15s;
}
.steps > li { position: relative; padding-left: 4.25rem; }
.steps__num {
  position: absolute;
  left: 0;
  top: -0.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.steps__when { display: block; margin-bottom: var(--s1); font-size: var(--step--1); font-weight: 600; color: var(--clay-ink); }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .steps::before { left: 1.375rem; right: 0; top: 1.375rem; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  .steps > li { padding-left: 0; padding-top: 4.5rem; }
  .steps__num { top: 0; }
}

/* ---------- Proof (warm-gray section, clay key numbers) ---------- */

.proof { display: grid; gap: var(--s4); }
@media (min-width: 56em) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof__card {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--s2);
  margin: 0;
  padding: var(--s5) var(--s4);
  background: var(--ink-soft);
  border-bottom: 3px solid var(--clay);
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
}
.proof__card dd { margin: 0; font-family: var(--serif); font-size: var(--step-3); font-weight: 500; line-height: 1; color: var(--clay-light); }
.section--gray .proof__card { background: var(--cream); border-bottom-color: var(--clay); }
.section--gray .proof__card dd { color: var(--clay); }
.section--gray .proof__card dt { color: var(--ink-2); }
.section--gray .quote blockquote p,
.section--gray .quote figcaption { color: var(--ink); }
.proof__card dt { color: var(--on-dark-2); }
.quote {
  margin: var(--s6) auto 0;
  max-width: 48rem;
  text-align: center;
}
.quote blockquote { margin: 0 0 var(--s3); }
.quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--on-dark);
}
.quote figcaption { font-size: var(--step--1); font-weight: 600; color: var(--on-dark-2); }

/* ---------- Service index (gentle hover) ---------- */

.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gray); }
.index > li { border-bottom: 1px solid var(--line); }
.index__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.3s ease, padding 0.4s var(--ease);
}
.index__row:hover { background: var(--cream-2); color: var(--ink); padding-inline: var(--s4); }
.section--alt .index__row:hover { background: var(--cream); }
.index__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.index__desc { grid-column: 1; margin: 0; color: var(--ink-2); line-height: 1.5; }
.index__arrow {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clay);
  transition: transform 0.35s var(--ease);
}
.index__row:hover .index__arrow { transform: rotate(45deg); }
@media (min-width: 56em) {
  .index__row { grid-template-columns: minmax(16rem, 26rem) 1fr auto; align-items: center; }
  .index__desc { grid-column: 2; }
  .index__arrow { grid-column: 3; }
}

/* ---------- Q&A ---------- */

.qa { display: grid; gap: 0 var(--s5); margin: 0 0 var(--s4); }
@media (min-width: 52em) { .qa { grid-template-columns: repeat(3, 1fr); } }
.qa > div { padding-block: var(--s4); border-top: 1px solid var(--gray); }
.qa dt { margin-bottom: var(--s2); font-family: var(--serif); font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.qa dd { margin: 0; color: var(--ink-2); }

/* ---------- Call to action band (clay) ---------- */

.cta { padding-block: clamp(4rem, 3rem + 5vw, 7rem); background: var(--clay); color: var(--white); }
.cta__inner { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 60em) { .cta__inner { grid-template-columns: 1.3fr 0.7fr; gap: var(--s7); } }
.cta h2 { margin: 0; font-size: clamp(2.25rem, 1.6rem + 3vw, 4.25rem); }
.cta p { margin-bottom: var(--s4); font-size: var(--step-1); line-height: 1.5; }
.cta .actions { margin-top: 0; }
.cta a:not(.btn) { color: var(--white); }
.cta a:not(.btn):hover { color: var(--white); text-decoration-thickness: 2px; }
.cta :focus-visible { outline-color: var(--white); }
.cta__phone { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: var(--s7);
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: var(--step--1);
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--clay-light); }
.site-footer :focus-visible { outline-color: var(--clay-light); }
.footer-grid { display: grid; gap: var(--s5); padding-bottom: var(--s6); }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; } }
.footer-brand { margin-bottom: var(--s3); }
.footer-brand img { display: block; width: auto; height: 44px; }
.footer-lede { max-width: 22rem; font-size: 1rem; }
.footer-heading {
  margin-bottom: var(--s3);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--clay-light);
}
.footer-list { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-list a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin: 0;
  padding-block: var(--s4);
  border-top: 1px solid var(--dark-line);
}

/* ---------- Inner pages ---------- */

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-hero h1 { margin-bottom: var(--s4); }
.page-hero .lead { margin-bottom: 0; }

.jump { margin-top: var(--s6); }

.group-head { max-width: 48rem; margin-bottom: var(--s6); }
.group-head .lead { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--gray); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s4) var(--s6) var(--s4) 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--s2);
  top: 50%;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--clay);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--clay-ink); }
.faq__answer { max-width: var(--measure); padding-bottom: var(--s4); color: var(--ink-2); }
.faq__answer > :last-child { margin-bottom: 0; }

/* Smooth open/close where the browser supports it (instant elsewhere) */
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* Work */
.cases { display: grid; gap: var(--s7); }
.case { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 56em) { .case { grid-template-columns: 1.05fr 1fr; gap: var(--s7); } }
.case__shot { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); }
.case h2 { font-size: var(--step-3); }
.case dl { margin: 0 0 var(--s4); }
.case dl > div { display: grid; gap: var(--s1) var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .case dl > div { grid-template-columns: 9rem 1fr; } }
.case dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-ink); padding-top: 0.3rem; }
.case dd { margin: 0; }
.case-quote {
  margin: 0 0 var(--s4);
  padding: var(--s4);
  background: var(--cream-2);
  border-radius: var(--radius);
}
.case-quote blockquote { margin: 0 0 var(--s2); }
.case-quote blockquote p { margin: 0; font-family: var(--serif); font-size: var(--step-1); font-style: italic; font-weight: 400; line-height: 1.45; }
.case-quote figcaption { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }

.quotes { display: grid; gap: var(--s4); }
@media (min-width: 52em) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes .case-quote { background: var(--cream); margin: 0; }

/* About */
.about-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 56em) { .about-grid { grid-template-columns: 1.3fr 0.7fr; gap: var(--s7); } }
.portrait { margin: 0; }
.portrait .ph-block,
.portrait img { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-lg); }
.portrait figcaption { margin-top: var(--s2); font-size: var(--step--1); color: var(--ink-2); }

.grid-2 { display: grid; gap: 0 var(--s6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 > li { padding-block: var(--s4); border-top: 1px solid var(--gray); }
.grid-2 h3 { margin-bottom: var(--s2); }
.grid-2 p { margin: 0; color: var(--ink-2); }

.areas { display: grid; gap: 0 var(--s5); }
@media (min-width: 48em) { .areas { grid-template-columns: repeat(3, 1fr); } }
.areas > div { padding-block: var(--s4); border-top: 1px solid var(--gray); }
.areas h3 { font-family: var(--serif); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.015em; }
.areas p { margin: 0; color: var(--ink-2); }

/* Book a call */
.expect { display: grid; gap: 0 var(--s5); margin: var(--s5) 0 0; padding: 0; list-style: none; }
@media (min-width: 52em) { .expect { grid-template-columns: repeat(3, 1fr); } }
.expect > li { padding-block: var(--s3); border-top: 1px solid var(--gray); color: var(--ink-2); }
.expect strong { display: block; margin-bottom: var(--s1); color: var(--clay-ink); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }

.booking-embed {
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Google's scheduler scrolls inside its own frame, so give it room.
   Phones get more height because days and times stack. */
.booking-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (min-width: 48em) { .booking-embed iframe { height: 720px; } }
.booking-fallback { margin-top: var(--s3); font-size: var(--step--1); color: var(--ink-2); }

.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 60em) { .contact-grid { grid-template-columns: 1.4fr 0.6fr; gap: var(--s7); } }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list > li { padding-block: var(--s3); border-top: 1px solid var(--gray); }
.contact-list strong { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.contact-list a { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; text-decoration: none; }

/* ---------- Forms ---------- */

.form { display: grid; gap: var(--s4); }
.form__title { margin: 0; font-family: var(--serif); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.35rem; align-content: start; }
.field label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-2); }
.hint { margin: 0; font-size: var(--step--1); color: var(--ink-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: max(16px, 1rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d2226'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 0.6rem center / 1.5rem no-repeat;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(184 77 40 / 0.35); }

.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field__error:empty { display: none; }

.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: var(--s2); padding: 0; font-weight: 600; line-height: 1.4; color: var(--ink); }
.choice__options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice__options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  background: var(--white);
  border: 1.5px solid var(--field-line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.choice__options label:hover { border-color: var(--ink); }
.choice__options label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.choice__options label:has(input:focus-visible) { outline: 3px solid var(--clay-ink); outline-offset: 2px; }
.choice__options input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--clay-light); }

.form__fine { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.hp { display: none !important; }

.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status--success,
.form-status--error { padding: var(--s3) var(--s4); border: 1.5px solid; border-radius: var(--radius-sm); }
.form-status--success { background: #e6f1ea; color: var(--success); border-color: var(--success); }
.form-status--error { background: #fbe9e6; color: #86200f; border-color: var(--error); }

/* ---------- Legal ---------- */

.legal { color: var(--ink-2); }
.legal h2 { margin-top: var(--s6); font-size: var(--step-2); color: var(--ink); }
.legal h3 { margin-top: var(--s4); color: var(--ink); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: var(--s2); }


/* ==========================================================================
   Signature details (all optional polish, switched off for reduced motion)
   ========================================================================== */

/* The logo's eye follows the visitor (iris drawn live over the logo, see site.js) */
.logo { position: relative; display: block; line-height: 0; }
.logo__eye { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.logo__iris, .logo__pupil { will-change: transform; }
.logo__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.logo.is-blinking .logo__lid { animation: blink 0.32s ease-in-out; }
@keyframes blink { 45%, 55% { transform: scaleY(1); } }

/* Hand-drawn underline under the italic words in page headlines */
.scribble { position: relative; display: inline-block; }
.scribble__line {
  position: absolute;
  left: -3%;
  bottom: -0.165em;
  width: 106%;
  height: 0.26em;
  overflow: visible;
  pointer-events: none;
}
.scribble__line path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) 1.05s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Section headlines assemble word by word as they arrive */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.14em 0; margin: 0 -0.08em -0.14em 0; }
.split .w__i { display: inline-block; }
.reveal-ready .split .w__i {
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.reveal-ready .split.is-in .w__i { transform: none; }

/* A sentence that reads itself: words darken as you scroll through it */
.reads .f { transition: color 0.35s ease; }
.reads-ready .reads .f { color: var(--gray); }
.reads-ready .reads .f.lit { color: var(--ink); }
.reads-ready .reads em .f.lit { color: var(--clay-ink); }

/* Hero depth: the video tilts toward the cursor, the card floats in front */
.hero-media { perspective: 1100px; }
.hero-media__frame,
.stage__card.hero-media__card { will-change: transform; }

/* ==========================================================================
   Motion (quiet by design; all of it switches off for reduced motion)
   ========================================================================== */

@keyframes rise { from { transform: translateY(125%); opacity: 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes frame-in {
  from { opacity: 0; clip-path: inset(12% 6% 0 6% round 30px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 22px); }
}
@keyframes settle { from { transform: scale(1.06); } }

/* Scroll reveals. Only hidden after site.js loads, so nothing stays
   invisible if JavaScript fails. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .steps::before { transform: scale(0); }
.reveal-ready .steps.is-in::before { transform: scale(1); }

/* Page-to-page cross-fade (Chrome, Edge, Safari 18.2+; others load normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: 0.7s var(--ease) both vt-old; }
::view-transition-new(root) { animation: 0.7s cubic-bezier(0.7, 0, 0.2, 1) both vt-reveal; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-old { to { transform: scale(0.97); filter: brightness(0.85); } }
@keyframes vt-reveal {
  from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 40%)); }
  to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 40%)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .site-header.is-tucked { transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .btn, .skip-link, .booking-embed, .ticker, .hero-media { display: none !important; }
  body { background: #fff; }
}
