﻿/* ==========================================================================
   BENT CODES â€” Design System v2
   Palette: espresso brown Â· polished silver Â· warm beige
   Type:    Playfair Display (display serif) Â· Inter (sans)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Color: browns --- */
  --espresso: #1a1410;
  --coffee: #2a2118;
  --mocha: #3d3028;
  --walnut: #5a4a3a;
  --tan: #8a7a68;

  /* --- Color: silver --- */
  --silver: #b0b0b0;
  --silver-light: #d4d4d4;
  --silver-dark: #7a7a7a;
  --platinum: #e8e8e8;

  /* --- Color: beige --- */
  --cream: #faf6f0;
  --linen: #f5efe6;
  --sand: #ebe3d6;
  --parchment: #e0d6c8;

  /* --- Hairlines --- */
  --hairline: rgba(90, 74, 58, 0.2);
  --hairline-soft: rgba(26, 20, 16, 0.08);

  /* --- Gradients --- */
  --grad-silver: linear-gradient(100deg, var(--silver-dark) 0%, var(--silver) 40%, var(--platinum) 50%, var(--silver) 60%, var(--silver-dark) 100%);
  --grad-espresso: linear-gradient(180deg, var(--coffee), var(--espresso));

  /* --- Type --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: clamp(0.688rem, 0.66rem + 0.12vw, 0.75rem);
  --text-sm: clamp(0.813rem, 0.79rem + 0.12vw, 0.875rem);
  --text-base: clamp(0.938rem, 0.91rem + 0.14vw, 1rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.313rem);
  --text-xl: clamp(1.5rem, 1.24rem + 1.1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --text-3xl: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  --text-hero: clamp(2.8rem, 1.2rem + 6vw, 7rem);

  --track-wide: 0.18em;
  --track-mid: 0.08em;

  /* --- Space --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms var(--ease-out);
  --t-mid: 400ms var(--ease-out);

  /* --- Elevation --- */
  --shadow-sm: 0 1px 3px rgba(26, 20, 16, 0.06);
  --shadow-md: 0 8px 30px -10px rgba(26, 20, 16, 0.12);
  --shadow-lg: 0 20px 50px -20px rgba(26, 20, 16, 0.18);

  --radius: 8px;
  --radius-lg: 16px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--coffee); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--linen); }
::-webkit-scrollbar-thumb { background: var(--parchment); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tan); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--espresso);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }

.display-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--silver-dark);
}
.eyebrow::before {
  content: '';
  width: clamp(20px, 3vw, 40px);
  height: 1px;
  background: var(--silver);
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--walnut);
  max-width: 52ch;
  font-weight: 400;
}
.body-muted { color: var(--walnut); max-width: 62ch; line-height: 1.7; }
.meta {
  font-size: var(--text-xs);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 500;
}
.index-num {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--track-mid);
  color: var(--silver-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.silver { color: var(--silver-dark); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--edge { border-top: 1px solid var(--hairline-soft); }
.section--brown {
  background: var(--espresso);
  color: var(--cream);
}
.section--brown .body-muted { color: var(--parchment); }
.section--brown h2, .section--brown h3, .section--brown h4 { color: var(--cream); }
.section--brown .eyebrow { color: var(--silver-light); }
.section--brown .eyebrow::before { background: var(--silver); }
.section--sand { background: var(--linen); }

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split--center { align-items: center; }
.stack-6 { display: flex; flex-direction: column; gap: var(--space-6); }
.stack-8 { display: flex; flex-direction: column; gap: var(--space-8); }
.stack-4 { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .split, .section-head, .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hairline-soft);
  transition: box-shadow var(--t-mid);
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.header.is-hidden { transform: translateY(-100%); transition: transform var(--t-mid); }
.header__inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 40px; height: 40px;
  flex: none;
  object-fit: contain;
  border-radius: 6px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--espresso);
}
.logo__tag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-top: 2px;
  font-weight: 500;
}

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.8vw, 2.5rem); }
.nav__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--walnut);
  padding-block: 4px;
  transition: color var(--t-fast);
}
.nav__link span:last-child { display: none; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--espresso);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.nav__link:hover { color: var(--espresso); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--espresso); }

.nav-toggle { display: none; width: 34px; height: 34px; position: relative; }
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: var(--espresso);
  border-radius: 1px;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 21px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms var(--ease-out), visibility 400ms;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav__link { font-size: var(--text-xl); font-family: var(--font-display); }
  .header__cta {
    position: fixed;
    left: 50%; top: 72%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0; visibility: hidden;
    transition: opacity 300ms var(--ease-out);
  }
  body.nav-open .header__cta { opacity: 1; visibility: visible; }
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.9rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--t-fast);
}
.btn svg { width: 14px; height: 14px; transition: transform 250ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  color: var(--cream);
  background: var(--espresso);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--coffee);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--silver {
  color: var(--espresso);
  background: var(--grad-silver);
  background-size: 200% 100%;
  box-shadow: var(--shadow-md);
}
.btn--silver:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
}

.btn--outline {
  color: var(--espresso);
  border: 1.5px solid var(--hairline);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--espresso);
  background: rgba(26, 20, 16, 0.03);
}

/* Inverted buttons for dark sections */
.section--brown .btn--primary {
  background: var(--cream);
  color: var(--espresso);
}
.section--brown .btn--primary:hover { background: var(--linen); }
.section--brown .btn--outline {
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.25);
}
.section--brown .btn--outline:hover {
  border-color: var(--cream);
  background: rgba(250, 246, 240, 0.06);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--espresso);
  transition: gap var(--t-fast);
}
.link-arrow:hover { gap: var(--space-3); }
.link-arrow svg { width: 14px; transition: transform 250ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero__inner { width: 100%; }
.hero__title { margin-block: clamp(1rem, 2vw, 1.5rem); }
.hero__sub {
  max-width: 52ch;
  font-size: var(--text-lg);
  color: var(--walnut);
  line-height: 1.6;
}
.hero__cta { margin-top: clamp(2rem, 4vw, 3rem); }

.hero__stats {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline-soft);
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* Stat */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--espresso);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.stat__label {
  font-size: var(--text-xs);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 500;
}

@media (max-width: 700px) {
  .hero__stats .stat { flex: 0 0 calc(50% - 1rem); }
}

/* --------------------------------------------------------------------------
   8. CARDS & PANELS
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--linen);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.panel:hover {
  border-color: var(--hairline);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.section--brown .panel {
  background: var(--coffee);
  border-color: rgba(250, 246, 240, 0.08);
}
.section--brown .panel:hover { border-color: rgba(250, 246, 240, 0.15); }

.capability {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 240px;
}
.capability__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--silver);
  line-height: 1;
  font-weight: 700;
}
.capability h4 { margin-top: auto; }
.capability p { font-size: var(--text-sm); color: var(--tan); }
@media (max-width: 700px) {
  .capability { min-height: 0; }
  .capability h4 { margin-top: 0; }
}

/* Work card */
.work-card { display: block; position: relative; }
.work-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--linen);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-mid);
}
.work-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.work-card:hover .work-card__frame img { transform: scale(1.04); }
.work-card:hover .work-card__frame { border-color: var(--hairline); }
.work-card__tag {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  z-index: 2;
  padding: 5px 12px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--espresso);
  border: 1px solid var(--hairline);
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
.work-card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-4);
  margin-top: var(--space-3);
}
.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: 700;
}
.work-card__arrow {
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--espresso);
  transition: background var(--t-mid), color var(--t-mid);
}
.work-card:hover .work-card__arrow { background: var(--espresso); color: var(--cream); }
.work-card__arrow svg { width: 13px; }
.work-card--wide .work-card__frame { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   9. SERVICE ROWS (accordion)
   -------------------------------------------------------------------------- */
.service {
  border-top: 1px solid var(--hairline-soft);
  transition: background 400ms var(--ease-out);
}
.service:last-child { border-bottom: 1px solid var(--hairline-soft); }
.service.is-open { background: var(--linen); }
.service__head {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  padding-block: clamp(1.2rem, 2.4vw, 1.8rem);
  text-align: left;
}
.service__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  transition: color var(--t-fast);
}
.service:hover .service__title { color: var(--coffee); }
.service__sign {
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  flex: none;
  position: relative;
  transition: background var(--t-mid), transform 400ms var(--ease-out);
}
.service__sign::before, .service__sign::after {
  content: '';
  position: absolute;
  inset: 50% 10px auto 10px;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 300ms var(--ease-out);
}
.service__sign::after { transform: rotate(90deg); }
.service.is-open .service__sign { background: var(--espresso); }
.service.is-open .service__sign::before, .service.is-open .service__sign::after { background: var(--cream); }
.service.is-open .service__sign::after { transform: rotate(0); }
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms var(--ease-in-out);
}
.service.is-open .service__panel { grid-template-rows: 1fr; }
.service__panel > div { overflow: hidden; }
.service__content {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.service__content > *:first-child { grid-column: 2; }
.service__list { display: grid; gap: var(--space-3); align-content: start; }
.service__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--walnut);
}
.service__list li::before { content: 'â€”'; color: var(--silver); flex: none; }
@media (max-width: 780px) {
  .service__head { grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-4); }
  .service__content { grid-template-columns: minmax(0, 1fr); }
  .service__content > *:first-child { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   10. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.process { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.process::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--sand);
  border-radius: 1px;
}
.process__rail {
  position: absolute;
  left: 7px; top: 8px;
  width: 2px;
  background: var(--espresso);
  height: var(--rail, 0%);
  transition: height 200ms linear;
  border-radius: 1px;
}
.process__step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.process__dot {
  width: 16px; height: 16px;
  border: 2px solid var(--sand);
  border-radius: 50%;
  background: var(--cream);
  margin-top: 6px;
  z-index: 1;
  transition: border-color var(--t-mid), background var(--t-mid);
}
.process__step.is-in .process__dot {
  border-color: var(--espresso);
  background: var(--espresso);
}
.process__body { display: grid; gap: var(--space-3); }
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
}
@media (max-width: 780px) { .process__grid { grid-template-columns: 1fr; gap: var(--space-3); } }

/* --------------------------------------------------------------------------
   11. TABLES / SPEC LISTS
   -------------------------------------------------------------------------- */
.spec { display: grid; gap: 0; }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-6);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: var(--text-sm);
}
.spec__row dt { color: var(--tan); letter-spacing: var(--track-mid); text-transform: uppercase; font-size: var(--text-xs); font-weight: 600; }
.spec__row dd { color: var(--espresso); }
@media (max-width: 640px) { .spec__row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* Tier cards */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  height: 100%;
}
.tier--feature {
  border-color: var(--hairline);
  background: var(--sand);
}
.tier__price { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.02em; font-weight: 700; }
.tier__price span { font-family: var(--font-sans); font-size: var(--text-xs); letter-spacing: var(--track-mid); color: var(--tan); text-transform: uppercase; }
.tier__flag {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem); right: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--espresso);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* Service category tabs */
.svc-tab {
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  padding: .55em 1.4em; border-radius: 100px;
  border: 1px solid var(--hairline); background: transparent; color: var(--walnut);
  cursor: pointer; transition: all 250ms var(--ease-out);
}
.svc-tab:hover { border-color: var(--espresso); color: var(--espresso); }
.svc-tab.is-active { background: var(--espresso); color: var(--cream); border-color: transparent; }

/* --------------------------------------------------------------------------
   12. QUOTE
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  text-align: center;
}
.quote__cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--text-xs);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--tan);
}
.quote__cite::before { content: ''; width: 40px; height: 1px; background: var(--silver); }

/* --------------------------------------------------------------------------
   13. IMAGE MOMENTS
   -------------------------------------------------------------------------- */
.bleed {
  position: relative;
  height: clamp(280px, 50vh, 520px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-inline: var(--gutter);
}
.bleed img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26, 20, 16, 0.6));
  border-radius: var(--radius-lg);
}
.bleed__caption {
  position: absolute;
  bottom: var(--space-8);
  left: 0; right: 0;
  z-index: 2;
  color: var(--cream);
}
.bleed__caption .eyebrow { color: var(--silver-light); }
.bleed__caption .eyebrow::before { background: var(--silver-light); }
.bleed__caption .lede { color: var(--parchment); }

.framed-media { position: relative; }
.framed-media img { border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); }
.framed-media__badge {
  position: absolute;
  bottom: -16px; left: -16px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  display: grid;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
  .framed-media__badge { position: static; border-radius: var(--radius); margin-top: var(--space-3); }
}

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; color: var(--cream); }
.cta-band .eyebrow { color: var(--silver-light); }
.cta-band .eyebrow::before { background: var(--silver-light); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline-soft); background: var(--linen); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__col h5 {
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--walnut);
  padding-block: 4px;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--espresso); }
.footer__wordmark {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  opacity: 0.7;
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-6);
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--text-xs);
  color: var(--tan);
  letter-spacing: 0.04em;
}
@media (max-width: 780px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   16. REVEALS
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
  .reveal[data-delay='1'] { transition-delay: 100ms; }
  .reveal[data-delay='2'] { transition-delay: 200ms; }
  .reveal[data-delay='3'] { transition-delay: 300ms; }
  .reveal[data-delay='4'] { transition-delay: 400ms; }
}

/* --------------------------------------------------------------------------
   17. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-head h1 { font-size: var(--text-3xl); max-width: 18ch; }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
@media (max-width: 900px) { .page-head__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. UTILITY
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; 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; top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--espresso);
  color: var(--cream);
  font-size: var(--text-xs);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }
.mt-auto { margin-top: auto; }
.text-right { text-align: right; }
@media (max-width: 900px) { .text-right { text-align: left; } }

/* Column spans */
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 1024px) { .col-4 { grid-column: span 6; } }
@media (max-width: 780px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   19. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding-block: clamp(1rem, 2vw, 1.4rem);
  background: var(--linen);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-right: clamp(2rem, 4vw, 3.5rem);
  flex: none;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  color: var(--tan);
  white-space: nowrap;
  font-weight: 700;
}
.marquee__item em { font-style: italic; color: var(--espresso); font-weight: 400; }
.marquee__dot { width: 4px; height: 4px; background: var(--silver); border-radius: 50%; flex: none; }

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

/* --------------------------------------------------------------------------
   21. MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --section-y: clamp(3rem, 7vw, 5rem); }
  .hero { padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero__stats { gap: 1.25rem; }
  .hero__stats .stat { flex: 0 0 calc(50% - 0.75rem); }
  .cta-band { padding-block: clamp(3rem, 6vw, 5rem); }
  .bleed { margin-inline: var(--space-4); border-radius: var(--radius); }
}

