/* ============================================================
   issho — Site Stylesheet
   Cream base · terracotta accent · Archivo Expanded + Poppins
   Aligned to issho brand guidelines (Archivo, Poppins, palette).
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo.woff2') format('woff2'),
       url('fonts/Archivo.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins.woff2') format('woff2'),
       url('fonts/Poppins.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── PALETTE — issho brand colors ── */
  --bg:           #FAFAF7;   /* warm off-white */
  --bg-paper:     #F5F4ED;   /* slightly darker cream */
  --surface:      #FFFFFF;
  --ink:          #000000;
  --slate:        #505957;   /* primary muted text */
  --sage:         #A5B6B4;   /* sage-grey */
  --stone:        #C4C4B0;   /* warm stone / khaki */
  --terracotta:   #AE7454;   /* primary accent */
  --terracotta-deep: #8c5a3f;
  --ash:          #8A8F8B;   /* ash neutral (calculator subs, etc.) */
  --dark:         #2A2F2E;   /* dark callout surface */
  --hair:         rgba(0,0,0,0.08);
  --hair-strong:  rgba(0,0,0,0.16);

  --accent:       var(--terracotta);

  /* Type */
  --font-display: 'Archivo', 'Archivo Expanded', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;

  /* Scale */
  --h1: clamp(2.25rem, 4.6vw, 4rem);     /* hero */
  --h2: clamp(1.75rem, 3vw, 2.75rem);    /* section */
  --h3: clamp(1.2rem, 1.6vw, 1.5rem);    /* card lead */
  --h4: 1.15rem;
  --body: 1.0625rem;     /* 17px */
  --body-sm: 0.9375rem;  /* 15px */
  --fine: 0.8125rem;
  --label: 0.6875rem;    /* 11px */
  --label-sm: 0.625rem;  /* 10px */

  --max:        1440px;
  --max-content:1240px;
  --max-narrow: 920px;
  --max-prose:  720px;

  --pad-sec:    clamp(72px, 10vw, 144px);
  --pad-sec-sm: clamp(48px, 6vw, 96px);
  --gutter:     clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--terracotta); color: #fff; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; }

/* ──────────────────────────────────────────────────
   Type
   ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--h1); line-height: 1.04; }
h2 { font-size: var(--h2); line-height: 1.08; }
h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; }
h4 { font-size: var(--h4); font-weight: 600; line-height: 1.32; letter-spacing: -0.005em; hyphens: manual; }

p, li { color: var(--ink); font-size: var(--body); font-weight: 300; line-height: 1.65; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink); max-width: 56ch; font-weight: 300; }
.muted { color: var(--slate); }
.muted-2 { color: var(--sage); }
.fine { font-size: var(--fine); color: var(--slate); font-weight: 300; }

em { font-style: italic; }

/* Labels (Archivo all-caps wide-tracked — issho signature) */
.label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}
.label-sm { font-size: var(--label-sm); letter-spacing: 0.28em; }
.label-terra { color: var(--terracotta); }
.label-slate { color: var(--slate); }
.label-stone { color: var(--stone); }
.label-white { color: #fff; }

/* Numbered kicker (e.g. "01 — Hero") */
.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 22px;
}
.section-num::after { content: " —"; color: var(--terracotta); }

/* ──────────────────────────────────────────────────
   Layout
   ────────────────────────────────────────────────── */
.wrap   { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.content{ max-width: var(--max-content); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.prose  { max-width: var(--max-prose); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }
.section    { padding: var(--pad-sec) 0; }
.section-sm { padding: var(--pad-sec-sm) 0; }

.surface     { background: var(--surface); }
.paper       { background: var(--bg-paper); }
.ink         { background: var(--dark); color: #fff; }
.ink h1, .ink h2, .ink h3, .ink h4 { color: #fff; }
.ink p, .ink li { color: rgba(255,255,255,0.92); }

.hairline-top    { border-top: 1px solid var(--hair); }
.hairline-bottom { border-bottom: 1px solid var(--hair); }
.hairline-y      { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }

/* ──────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-terra { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-terra:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-sm  { padding: 13px 20px; font-size: var(--label-sm); }
.btn-lg  { padding: 22px 36px; font-size: var(--label); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 4px;
  transition: color 180ms, border-color 180ms;
}
.link:hover { color: var(--terracotta-deep); border-bottom-color: var(--terracotta-deep); }
.link-arrow::after { content: "→"; margin-left: 4px; }
.link-plain {
  color: var(--slate);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 1px;
  transition: color 150ms;
}
.link-plain:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────
   Nav
   ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hair);
}
.nav.over-light {
  background: rgba(250,250,247,0.0);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-left: 12px;
  border-left: 1px solid var(--hair-strong);
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 150ms;
  padding: 6px 0;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link.active { color: var(--terracotta); }
.nav-cta { margin-left: 8px; }

/* Nav dropdown (builds → hospitality / residential) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown > .nav-link {
  display: inline-flex; align-items: center;
  padding: 6px 0;
}
.nav-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-bottom: 2px;
  opacity: 0.6;
  transition: transform 200ms;
  flex-shrink: 0;
}
.nav-dropdown:hover > .nav-link::after,
.nav-dropdown:focus-within > .nav-link::after { transform: rotate(225deg); opacity: 1; margin-bottom: -2px; }
.nav-menu {
  position: absolute;
  top: 100%; left: -16px;
  min-width: 240px;
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hair);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 60;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.nav.on-dark .nav-menu {
  background: rgba(42,47,46,0.96);
  border-color: rgba(255,255,255,0.10);
}
.nav-dropdown:hover > .nav-menu,
.nav-dropdown:focus-within > .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  transition: background 150ms, color 150ms;
  position: relative;
}
.nav.on-dark .nav-menu a { color: rgba(255,255,255,0.92); }
.nav-menu a:hover { background: rgba(174,116,84,0.08); color: var(--terracotta); }
.nav.on-dark .nav-menu a:hover { background: rgba(174,116,84,0.18); }
.nav-menu a .menu-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.nav-menu a .menu-title { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: inherit; }
.nav-menu a .menu-sub  { font-family: var(--font-body); font-size: 11px; color: var(--slate); margin-top: 2px; display: block; }
.nav.on-dark .nav-menu a .menu-sub { color: rgba(255,255,255,0.55); }

/* nav over a dark hero image */
.nav.on-dark .nav-link,
.nav.on-dark .brand-text,
.nav.on-dark .brand-tag { color: #fff; }
.nav.on-dark .brand-tag { border-left-color: rgba(255,255,255,0.3); }
.nav.on-dark .nav-link:hover, .nav.on-dark .nav-link.active { color: var(--terracotta); }
.nav.on-dark.scrolled { background: rgba(42,47,46,0.92); border-bottom-color: rgba(255,255,255,0.08); }

@media (max-width: 880px) {
  .nav-links .nav-link { display: none; }
  .nav-cta { display: inline-flex; }
}

/* Mobile hamburger toggle (CSS-only via checkbox) */
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 200ms, opacity 200ms;
}
.nav.on-dark .nav-toggle span { background: #fff; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 84px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
    padding: 24px var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: translateY(-110%);
    transition: transform 280ms cubic-bezier(0.22,0.61,0.36,1);
    z-index: 49;
  }
  .nav.on-dark .nav-links { background: var(--dark); border-bottom-color: rgba(255,255,255,0.08); }
  .nav-toggle-input:checked ~ .nav-links { transform: translateY(0); }
  .nav-links .nav-link { display: block; font-size: 14px; padding: 12px 0; }
  .nav-toggle-input:checked + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { font-size: 11px; }
}

/* ──────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,24,22,0.55) 0%,
      rgba(20,24,22,0.25) 45%,
      rgba(20,24,22,0.80) 100%),
    linear-gradient(90deg,
      rgba(20,24,22,0.55) 0%,
      rgba(20,24,22,0.10) 55%,
      rgba(20,24,22,0.0) 100%);
  z-index: 1;
}
.hero-veil-light {
  background: linear-gradient(180deg,
    rgba(250,250,247,0.0) 0%,
    rgba(250,250,247,0.0) 50%,
    rgba(250,250,247,0.92) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 8vw, 120px);
  width: 100%;
}
.hero-light .hero-inner { color: var(--ink); }
.hero-dark .hero-inner { color: #fff; }
.hero-dark h1, .hero-dark h2, .hero-dark h3 { color: #fff; }
.hero-dark .label-slate { color: rgba(255,255,255,0.7); }

.hero-meta {
  position: absolute; bottom: clamp(16px,2vw,24px); right: var(--gutter); z-index: 3;
  font-family: var(--font-display);
  font-size: var(--label-sm);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.hero-meta::before {
  content: ""; display: inline-block;
  width: 18px; height: 1px; background: var(--terracotta);
  vertical-align: middle; margin-right: 10px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
  transition: color 200ms;
}
.scroll-cue:hover { color: var(--terracotta); }
.scroll-cue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(180deg, currentColor, transparent);
}

/* ──────────────────────────────────────────────────
   Quiet marquee strip (terracotta)
   ────────────────────────────────────────────────── */
.marquee-strip {
  background: var(--terracotta);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
  display: flex;
}
.marquee-track {
  display: flex; gap: 56px; flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: scroll 55s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────
   Grid
   ────────────────────────────────────────────────── */
.grid    { display: grid; gap: 32px; }
.grid-2  { grid-template-columns: 1fr 1fr; }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-5  { grid-template-columns: repeat(5, 1fr); }
.grid-1-2 { grid-template-columns: 1fr 1.4fr; }
.grid-2-1 { grid-template-columns: 1.4fr 1fr; }
.gap-sm  { gap: 16px; }
.gap     { gap: 24px; }
.gap-lg  { gap: 48px; }
.gap-xl  { gap: 80px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────
   Section head
   ────────────────────────────────────────────────── */
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head h2 { margin: 0 0 20px; }
.sec-head p { color: var(--slate); font-size: 1.06rem; max-width: 56ch; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ──────────────────────────────────────────────────
   Cards
   ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 32px;
  transition: border-color 200ms ease;
}
.card:hover { border-color: var(--terracotta); }
.card h3 { margin-bottom: 12px; }
.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--bg-paper);
}
.card-tight { padding: 24px; }
.card-flat { padding: 0; }

/* feature card with image */
.feature {
  background: var(--surface);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.feature .card-image { aspect-ratio: 4/3; }
.feature .feature-body { padding: 32px; }

/* LOB card (orientation block) */
.lob {
  background: var(--surface);
  border: 1px solid var(--hair);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 200ms;
  color: var(--ink);
  text-decoration: none;
}
.lob:hover { border-color: var(--terracotta); }
.lob-image {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.lob.primary .lob-image { aspect-ratio: 16/11; }
.lob-body { padding: 32px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.lob.primary .lob-body { padding: 40px; }
.lob h3 { margin: 8px 0 0; }
.lob p { color: var(--slate); }
.lob .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--hair-strong);
  color: var(--slate);
  background: transparent;
}
.pill-terra { border-color: var(--terracotta); color: var(--terracotta); }
.pill-sage { border-color: var(--sage); color: var(--slate); background: rgba(165,182,180,0.18); }
.pill-stone { border-color: var(--stone); color: var(--slate); background: rgba(196,196,176,0.22); }

/* ──────────────────────────────────────────────────
   Quote
   ────────────────────────────────────────────────── */
.quote { padding: clamp(48px, 6vw, 80px) 0; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 880px;
  text-wrap: balance;
}
.ink .quote blockquote, .quote.on-dark blockquote { color: #fff; }
.quote cite {
  display: block; margin-top: 24px;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-style: normal;
}

/* ──────────────────────────────────────────────────
   Numbered list (issho signature 2-col)
   ────────────────────────────────────────────────── */
.num-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair-strong);
}
.num-list > * {
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; gap: 16px;
}
.num-list > *:nth-child(2n+1) {
  border-right: 1px solid var(--hair);
  padding-right: 24px;
}
.num-list > *:nth-child(2n) { padding-left: 24px; }
.num-list .n {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  min-width: 28px;
}
.num-list .t { font-size: 15px; font-weight: 300; color: var(--ink); }
@media (max-width: 700px) {
  .num-list { grid-template-columns: 1fr; }
  .num-list > *:nth-child(2n+1) { border-right: none; padding-right: 0; }
  .num-list > *:nth-child(2n) { padding-left: 0; }
}

/* ──────────────────────────────────────────────────
   Process steps (issho style)
   ────────────────────────────────────────────────── */
.process { border-top: 1px solid var(--hair-strong); }
.process-row {
  display: grid;
  grid-template-columns: 60px 220px 1fr 140px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.process-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--terracotta);
}
.process-row h4 { font-size: 1.25rem; }
.process-meta {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 6px;
}
.process-row ul { list-style: none; }
.process-row li {
  font-size: 15px;
  color: var(--slate);
  padding: 6px 0;
  position: relative;
  padding-left: 18px;
}
.process-row li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 1px; background: var(--terracotta);
}
.process-weeks {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--terracotta);
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
  align-self: center;
}
.process-weeks .wk-prefix {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .process-row { grid-template-columns: 1fr; gap: 8px; }
  .process-weeks { text-align: left; align-self: start; }
}

/* ──────────────────────────────────────────────────
   Forms
   ────────────────────────────────────────────────── */
.form-block {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 32px;
}
.form-block.on-dark {
  background: var(--dark);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.form-block.on-dark label { color: rgba(255,255,255,0.88); }
.form-block.on-dark input, .form-block.on-dark select, .form-block.on-dark textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.form-block.on-dark input::placeholder,
.form-block.on-dark textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-block.on-dark input:focus,
.form-block.on-dark select:focus,
.form-block.on-dark textarea:focus { border-color: var(--terracotta); background: rgba(255,255,255,0.12); }
.form-block.on-dark select option { background: var(--dark); color: #fff; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 12px 14px;
  transition: border-color 150ms;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ──────────────────────────────────────────────────
   Tabs
   ────────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: 48px;
  overflow-x: auto;
}
.tab {
  padding: 18px 28px;
  font-family: var(--font-display);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ──────────────────────────────────────────────────
   Accordion
   ────────────────────────────────────────────────── */
.acc-item { border-bottom: 1px solid var(--hair); }
.acc-q {
  width: 100%; text-align: left;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.acc-icon {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--terracotta);
  transition: transform 200ms ease;
}
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-a {
  max-height: 0; overflow: hidden;
  transition: max-height 360ms ease;
}
.acc-item.open .acc-a { max-height: 1200px; padding-bottom: 24px; }
.acc-a p { color: var(--slate); max-width: 64ch; }

/* ──────────────────────────────────────────────────
   Promise / dark callout
   ────────────────────────────────────────────────── */
.promise {
  background: var(--dark); color: #fff;
  padding: 36px 40px;
}
.promise .label { color: var(--stone); }
.promise p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.94);
  line-height: 1.45;
  margin-top: 14px;
}
.promise strong { color: #fff; font-weight: 600; }

/* ──────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.78);
  padding: 96px 0 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.footer .brand img { filter: invert(1); }
.footer .brand-text { color: #fff; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 150ms;
}
.footer li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-tag {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}

/* ──────────────────────────────────────────────────
   Utility
   ────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-row { display: flex; flex-direction: row; gap: 16px; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.terra { color: var(--terracotta); }
.slate { color: var(--slate); }

/* Reveal animation — only hide when JS has initialized.
   If motion.js fails to load, content stays visible (no blank pages). */
html.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 820ms cubic-bezier(0.22,0.61,0.36,1), transform 820ms cubic-bezier(0.22,0.61,0.36,1); }
html.js-motion .reveal.in { opacity: 1; transform: translateY(0); }
html.js-motion .reveal-up { opacity: 0; transform: translateY(36px); transition: opacity 1100ms cubic-bezier(0.22,0.61,0.36,1), transform 1100ms cubic-bezier(0.22,0.61,0.36,1); }
html.js-motion .reveal-up.in { opacity: 1; transform: translateY(0); }
html.js-motion .reveal-fade { opacity: 0; transition: opacity 1400ms ease-out; }
html.js-motion .reveal-fade.in { opacity: 1; }
html.js-motion .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 800ms cubic-bezier(0.22,0.61,0.36,1), transform 800ms cubic-bezier(0.22,0.61,0.36,1); }
html.js-motion .reveal-stagger.in > * { opacity: 1; transform: none; }
html.js-motion .reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
html.js-motion .reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
html.js-motion .reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
html.js-motion .reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
html.js-motion .reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
html.js-motion .reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
html.js-motion .reveal-stagger.in > *:nth-child(n+7) { transition-delay: 480ms; }

/* Ken Burns slow zoom for static hero images */
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.12); }
}
.hero-img.kenburns { animation: kenburns 18s ease-out forwards; will-change: transform; }

/* Hero video — full-bleed, muted, looped */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  will-change: transform;
}

/* Massive editorial display sizing — composition pass */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Partner logo strip */
.partners {
  padding: var(--pad-sec-sm) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
  max-width: var(--max-content);
  margin: 32px auto 0;
  padding: 0 var(--gutter);
}
@media (max-width: 780px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
.partner {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.7;
  transition: opacity 200ms, color 200ms;
  text-align: center;
}
.partner:hover { opacity: 1; color: var(--ink); }

/* Editorial pull quote (used in place of stat blocks) */
.pull {
  padding: clamp(64px, 8vw, 120px) 0;
}
.pull blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--ink);
  max-width: 980px;
  text-wrap: balance;
}
.pull cite {
  display: block; margin-top: 28px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terracotta); font-style: normal;
}

/* Editorial section header (huge, restrained) */
.editorial-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 64px;
  align-items: end;
}
.editorial-head .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: -0.02em;
}
.editorial-head h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
@media (max-width: 780px) {
  .editorial-head { grid-template-columns: 1fr; gap: 16px; }
}

/* Two-up image + text — quieter than cards */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.2fr; }
.split.reverse .split-image { order: 2; }
.split-image {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 780px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-image { order: 0; }
}

/* Element icon */
.elem-icon { width: 28px; height: 28px; object-fit: contain; }
.elem-icon-lg { width: 44px; height: 44px; object-fit: contain; }

/* ─────────────────────────────────────────
   Calculator pull-tab chip + drawer
   ───────────────────────────────────────── */
.calc-chip {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer; border: none;
  box-shadow: 0 12px 32px rgba(42,47,46,0.28);
  opacity: 0; transform: translateY(20px) scale(0.95);
  transition: opacity 240ms ease, transform 240ms ease, background 200ms;
  pointer-events: none;
}
.calc-chip.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.calc-chip:hover { background: var(--terracotta-deep); }
.calc-chip::before {
  content: "";
  width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
  opacity: 0.9;
}
.calc-chip .chip-arrow { font-size: 14px; line-height: 1; }

.calc-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,24,22,0.4);
  z-index: 80;
  opacity: 0; visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.calc-drawer-backdrop.open { opacity: 1; visibility: visible; }

.calc-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 96vw);
  background: var(--bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
.calc-drawer.open { transform: translateX(0); }
.calc-drawer-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.calc-drawer-head .drawer-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta);
}
.calc-drawer-close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 150ms;
  color: var(--ink);
}
.calc-drawer-close:hover { background: var(--bg-paper); }
.calc-drawer-close svg { width: 18px; height: 18px; }
.calc-drawer-body { padding: 20px 24px 32px; flex: 1; }
.calc-drawer-body .calc-head { margin-bottom: 20px; }
.calc-drawer-body .calc-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.calc-drawer-body .calc-head p { font-size: 13px; margin-top: 8px; }

/* Compact two-column inside drawer */
.calc-drawer-body .calc-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: start;
}
.calc-drawer-body .calc-inputs { padding: 18px; }
.calc-drawer-body .calc-row { margin-bottom: 18px; }
.calc-drawer-body .calc-row .top { margin-bottom: 6px; }
.calc-drawer-body .calc-row .lbl { font-size: 10px; letter-spacing: 0.12em; }
.calc-drawer-body .calc-row .val { font-size: 16px; }
.calc-drawer-body .calc-row .ends { font-size: 9px; }
.calc-drawer-body .calc-divider { margin: 0 0 14px; }
.calc-drawer-body .calc-radio-label { font-size: 10px; margin-bottom: 8px; }
.calc-drawer-body .calc-radio { padding: 10px 12px; }
.calc-drawer-body .calc-radio-title { font-size: 11px; }
.calc-drawer-body .calc-radio-sub { font-size: 10px; }
.calc-drawer-body .calc-out-card { padding: 14px 16px; }
.calc-drawer-body .calc-out-card.large { padding: 18px 18px; }
.calc-drawer-body .calc-out-card .lbl { font-size: 9px; letter-spacing: 0.14em; margin-bottom: 6px; }
.calc-drawer-body .calc-out-card.large .lbl { margin-bottom: 10px; }
.calc-drawer-body .calc-out-card .val { font-size: 18px; }
.calc-drawer-body .calc-out-card.large .val { font-size: clamp(22px, 3vw, 30px); }
.calc-drawer-body .calc-out-card .sub { font-size: 10px; margin-top: 6px; }
.calc-drawer-body .calc-out-pair { gap: 10px; margin-top: 10px; }
.calc-drawer-body .calc-cta { padding: 20px; margin-top: 14px; }
.calc-drawer-body .calc-cta p { font-size: 14px; margin-bottom: 14px; }
.calc-drawer-body .calc-cta .btn { padding: 11px 18px; font-size: 10px; }

@media (max-width: 720px) {
  .calc-chip { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 10px; }
  .calc-drawer-body .calc-grid { grid-template-columns: 1fr !important; }
}
.calc-section { padding: clamp(80px, 9vw, 144px) 0; background: var(--bg); }
.calc-head { max-width: 720px; margin-bottom: 56px; }
.calc-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 18px 0; }
.calc-head p { color: var(--slate); font-size: 1.02rem; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-inputs {
  background: var(--bg-paper);
  border-radius: 10px;
  padding: 36px;
}
.calc-row { margin-bottom: 28px; }
.calc-row .top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.calc-row .lbl {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
}
.calc-row .val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.01em;
}
.calc-row input[type="range"] {
  width: 100%; accent-color: var(--terracotta);
  cursor: pointer; height: 4px;
}
.calc-row .ends {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 10px; color: var(--ash, #8A8F8B);
  letter-spacing: 0.02em;
}
.calc-row .ends em { font-style: italic; }

.calc-divider {
  height: 1px; background: var(--hair-strong);
  margin: 4px 0 24px;
}

.calc-radio-group { display: grid; gap: 8px; }
.calc-radio-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.calc-radio {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.calc-radio:hover { border-color: var(--terracotta); }
.calc-radio.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.calc-radio.active .calc-radio-title,
.calc-radio.active .calc-radio-sub { color: #fff; }
.calc-radio.active .calc-radio-sub { color: rgba(255,255,255,0.78); }
.calc-radio.active .calc-radio-dot {
  border-color: #fff; background: #fff;
}
.calc-radio-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink);
}
.calc-radio-sub {
  font-family: var(--font-body);
  font-size: 11px; color: var(--ash, #8A8F8B);
  margin-top: 2px;
}
.calc-radio-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--hair-strong);
  background: transparent;
  flex-shrink: 0;
}

.calc-out-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 6px;
}
.calc-out-card.large {
  padding: 28px 28px;
}
.calc-out-card .lbl {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.calc-out-card.large .lbl { margin-bottom: 14px; }
.calc-out-card .val {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  line-height: 1;
}
.calc-out-card.large .val {
  font-size: clamp(36px, 5vw, 56px);
}
.calc-out-card .val.negative { color: #B85C3E; }
.calc-out-card .sub {
  font-family: var(--font-body);
  font-size: 11px; color: var(--ash, #8A8F8B);
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.calc-out-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.calc-cta {
  margin-top: 24px;
  background: var(--dark);
  border-radius: 10px;
  padding: 32px;
  color: #fff;
}
.calc-cta .label-terra { display: block; margin-bottom: 12px; }
.calc-cta p {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  line-height: 1.3;
  margin-bottom: 22px;
  color: #fff;
  letter-spacing: -0.01em;
}

.calc-disclaimer {
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ash, #8A8F8B);
  max-width: 820px;
  font-style: italic;
}
