/* ==========================================================================
   Bspok Haus — shared stylesheet
   Design tokens + global resets + case-study page template.
   Case-study rules are prefixed .cs-  and are shared by all 5 case studies.
   APPEND new rules below; do not rewrite existing blocks.
   ========================================================================== */

:root {
  --bg: #f0e9df;
  --fg: #1a1208;
  --accent: #ce7aa9;
  --surface-deep: #d9d0c4;
  --muted: #7a6e63;
  --border: rgba(26, 18, 8, 0.1);
  --maxw: 1143px;
  --gutter: 32px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; border: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.shell { display: flex; flex-direction: column; width: 100%; }

/* Fluid container that tops out at the 1143px desktop board width */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
}

.nav-inner {
  height: 52px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 12.8px;
  font-weight: 800;
  line-height: 19.2px;
  letter-spacing: 0.768px;
  color: var(--fg);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 11.2px;
  font-weight: 500;
  line-height: 16.8px;
  letter-spacing: 0.448px;
  text-transform: capitalize;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.nav-link.is-active { font-weight: 700; color: var(--fg); }

.nav-cta {
  background: var(--fg);
  color: #fff;
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 0.56px;
  padding: 7.2px 16px;
  white-space: nowrap;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-burger img { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Image frames + Figma crop preservation
   -------------------------------------------------------------------------- */
.cs-frame {
  background: var(--surface-deep);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.cs-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Cropped fills: the inner <img> carries explicit Figma transform values
   (height / top / left percentages) via a style attribute. */
.cs-crop { position: absolute; inset: 0; overflow: hidden; }
.cs-crop > img { position: absolute; left: 0; width: 100%; max-width: none; }

/* --------------------------------------------------------------------------
   Case study — hero
   -------------------------------------------------------------------------- */
.cs-hero {
  padding: 0 16px;
  width: 100%;
  max-width: calc(var(--maxw) + 32px);
  margin: 0 auto;
}
.cs-hero .cs-frame { height: 500px; }
/* Any video sitting in a case study frame fills it the way an image would */
.cs-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Video heroes keep their native 16:9 shape instead of the 500px crop */
.cs-hero--video .cs-frame { height: auto; aspect-ratio: 16 / 9; }
.cs-hero--video .cs-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --------------------------------------------------------------------------
   Case study — title + metadata
   -------------------------------------------------------------------------- */
.cs-divider { border-top: 1px solid var(--border); height: 1px; width: 100%; }

.cs-titleblock { padding-top: 48px; padding-bottom: 24px; }

.cs-meta-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 12px;
}

.cs-title-area { display: flex; flex-direction: column; gap: 8px; width: 450px; max-width: 100%; }

.cs-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin: 0;
}

.cs-year {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--accent);
}

.cs-meta-specs { display: flex; gap: 48px; align-items: flex-start; }
.cs-meta-col { display: flex; flex-direction: column; gap: 6px; width: 160px; }
.cs-meta-col--client { width: 140px; }
.cs-meta-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-meta-value { font-size: 12px; font-weight: 500; line-height: 18px; color: var(--fg); }

.cs-rule-bottom { border-top: 1px solid var(--border); height: 12px; margin-top: 0; }

/* --------------------------------------------------------------------------
   Case study — description / overview
   -------------------------------------------------------------------------- */
.cs-description { padding-top: 32px; padding-bottom: 32px; }
.cs-overview { display: flex; gap: 32px; align-items: flex-start; }

.cs-overview-label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); flex: 0 0 101px; }
.cs-overview-kicker {
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.cs-overview-copy { font-size: 14px; line-height: 22px; }

.cs-narrative { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; }
.cs-lead { font-size: 20px; font-weight: 500; line-height: 32px; color: var(--fg); }
.cs-body { font-size: 14px; line-height: 24px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Case study — gallery
   -------------------------------------------------------------------------- */
.cs-gallery { padding-top: 24px; padding-bottom: 80px; }
.cs-gallery-rule { border-top: 1px solid var(--border); height: 32px; margin-bottom: 16px; }

.cs-gallery-grid { display: flex; gap: 16px; align-items: flex-start; }
.cs-gallery-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.cs-gallery-card .cs-frame { height: 360px; }

.cs-img-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  padding-top: 12px;
}

.cs-gallery-row-full { padding-top: 32px; }
.cs-gallery-row-full .cs-frame { height: 450px; }

/* --------------------------------------------------------------------------
   Case study — disciplines
   -------------------------------------------------------------------------- */
.cs-disciplines-head { padding-top: 80px; padding-bottom: 24px; }
.cs-disciplines-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 64px;
  letter-spacing: -2px;
  color: var(--fg);
  padding-top: 24px;
  margin: 0;
}

.cs-discipline { padding-top: 24px; padding-bottom: 64px; }
.cs-discipline-copy { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; }
.cs-discipline-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--fg);
  margin: 0;
}
.cs-discipline-body { font-size: 16px; line-height: 26px; color: var(--fg); }
.cs-discipline-body--muted { color: var(--muted); }

/* Split layout: tall photo beside the copy */
.cs-split { display: flex; gap: 32px; align-items: flex-start; }
.cs-split-photo { flex: 0 0 658px; max-width: 658px; }
.cs-split-photo .cs-frame { height: 1100px; }

.cs-deliverables { display: flex; justify-content: flex-end; padding-top: 37px; }
.cs-deliverable { width: 658px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cs-deliverable .cs-frame { height: 873px; }
.cs-deliverable .cs-img-label { padding-top: 0; }

/* --------------------------------------------------------------------------
   Contact block
   -------------------------------------------------------------------------- */
.contact-block {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 40px;
}
.contact-kicker {
  font-size: 12.8px;
  font-weight: 700;
  line-height: 19.2px;
  letter-spacing: 0.512px;
  color: var(--fg);
}
.contact-link-wrap { padding-top: 24px; }
.contact-link {
  display: inline-block;
  font-size: 22.86px;
  font-weight: 500;
  line-height: 34.29px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy { font-size: 10.4px; line-height: 15.6px; color: var(--muted); }
.footer-copy span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-link {
  font-size: 10.4px;
  line-height: 15.6px;
  color: var(--muted);
  text-transform: capitalize;
}
.footer-link--plain { text-transform: none; }

.footer-wordmark {
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
  padding: 0 16px 8px;
  /* container-relative sizing: the wordmark tracks its own box, not the
     viewport, so it fits exactly at every width including >1143px */
  container-type: inline-size;
}
.footer-wordmark p {
  font-size: 16.6vw;   /* fallback for browsers without container queries */
  font-size: 16.6cqw;
  font-weight: 900;
  line-height: 0.875em;
  letter-spacing: -0.0426em;
  color: var(--surface-deep);
  white-space: nowrap;
}
.footer-wordmark span { color: rgba(206, 122, 169, 0.4); }

/* ==========================================================================
   Mobile — matches the 390px Figma boards
   ========================================================================== */
@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .nav-inner { height: 56px; padding: 0 16px; }
  .logo { font-size: 16px; line-height: normal; letter-spacing: 0.5px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Hero becomes an inset, rounded card */
  .cs-hero { padding: 16px; }
  .cs-hero .cs-frame { height: 240px; border-radius: 12px; }

  .cs-titleblock { padding-top: 16px; padding-bottom: 24px; }
  .cs-titleblock .cs-divider { margin-bottom: 16px; }
  .cs-meta-grid {
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 16px;
  }
  .cs-title-area { width: 100%; gap: 6px; }
  .cs-title { font-size: 28px; line-height: 34px; letter-spacing: -0.5px; }
  .cs-year { font-size: 12px; line-height: normal; }
  .cs-meta-specs { flex-direction: column; gap: 12px; width: 100%; }
  .cs-meta-col,
  .cs-meta-col--client { width: 100%; gap: 4px; }
  .cs-meta-label { line-height: normal; }
  .cs-meta-value { font-size: 13px; line-height: normal; }
  .cs-rule-bottom { height: 1px; }

  .cs-description { padding-top: 0; padding-bottom: 32px; }
  .cs-overview { flex-direction: column; gap: 16px; }
  .cs-overview-label { flex: 0 0 auto; width: 100%; gap: 4px; }
  .cs-overview-kicker { line-height: normal; }
  .cs-overview-copy { line-height: 20px; }
  .cs-narrative { gap: 12px; }
  .cs-lead { font-size: 16px; line-height: 24px; }
  .cs-body { line-height: 22px; }

  .cs-gallery { padding-top: 0; padding-bottom: 40px; }
  .cs-gallery-rule { height: 1px; margin-bottom: 24px; }
  .cs-gallery-grid { flex-direction: column; gap: 24px; }
  .cs-gallery-card .cs-frame,
  .cs-gallery-row-full .cs-frame,
  .cs-split-photo .cs-frame { height: 220px; border-radius: 8px; }
  .cs-img-label { padding-top: 8px; }
  .cs-gallery-row-full { padding-top: 24px; }

  /* Mobile crops fall back to a plain cover fill */
  .cs-crop > img {
    position: absolute;
    inset: 0;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .cs-disciplines-head { padding-top: 24px; padding-bottom: 16px; }
  .cs-disciplines-title {
    font-size: 32px;
    line-height: normal;
    letter-spacing: -1px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .cs-discipline { padding-top: 0; padding-bottom: 40px; }
  .cs-discipline-copy { gap: 16px; }
  .cs-discipline-title { font-size: 20px; line-height: normal; letter-spacing: 0; }
  .cs-discipline-body { font-size: 14px; line-height: 1.5; }

  .cs-split { flex-direction: column; gap: 20px; }
  .cs-split-photo { flex: 0 0 auto; width: 100%; max-width: 100%; }
  .cs-split-photo .cs-frame { height: 380px; }
  .cs-deliverables { justify-content: flex-start; padding-top: 12px; }
  .cs-deliverable { width: 100%; }
  .cs-deliverable .cs-frame { height: 280px; border-radius: 8px; }

  .contact-block { padding-top: 48px; padding-bottom: 48px; }
  .contact-kicker { font-size: 11px; line-height: normal; letter-spacing: 1px; text-transform: uppercase; }
  .contact-link-wrap { padding-top: 16px; }
  .contact-link {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
    letter-spacing: -0.5px;
    padding-bottom: 4px;
  }

  .footer-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 16px 16px;
  }
  .footer-copy { font-size: 12px; line-height: 20px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .footer-link { font-size: 14px; font-weight: 700; text-transform: none; }
  .footer-wordmark { padding: 0 12px 8px; }
  .footer-wordmark p {
    font-size: 17.2vw;
    font-size: 17.2cqw;
    line-height: 0.9em;
    letter-spacing: -0.045em;
  }
}

/* ==========================================================================
   Site pages — home / work / studio / contact
   Appended block. Reuses .wrap .nav .cs-frame .cs-crop .contact-block
   .site-footer from above; adds only what those pages need.
   ========================================================================== */

/* --- Nav: functional mobile menu (CSS-only) ------------------------------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-burger { cursor: pointer; }
.nav-link--contact { display: none; }
.nav-link:hover { color: var(--fg); }

/* --- Shared page typography ---------------------------------------------- */
.kicker {
  font-size: 10.4px;
  font-weight: 700;
  line-height: 15.6px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--accent { color: var(--accent); }

.display {
  font-size: 68.58px;
  font-weight: 900;
  line-height: 65.151px;
  letter-spacing: -2.0574px;
  color: var(--fg);
  margin: 0;
}

.lede {
  font-size: 17.145px;
  line-height: 29.146px;
  color: var(--muted);
}

.section-kicker {
  font-size: 12.8px;
  font-weight: 700;
  line-height: 19.2px;
  letter-spacing: 0.512px;
  color: var(--fg);
}

.rule { border-top: 1px solid var(--border); height: 1px; width: 100%; }

/* --- Fixed aspect ratios for image frames -------------------------------- */
.ratio-hero  { aspect-ratio: 1142 / 713; }
.ratio-4x3   { aspect-ratio: 618 / 463.594; }
.ratio-3x1   { aspect-ratio: 1079 / 359.664; }
.ratio-tall  { aspect-ratio: 358 / 477; }
.ratio-band  { aspect-ratio: 1143 / 435.422; }

/* --- Work card (image + title + tags): home + mobile work list ------------ */
.work-card { display: block; }

.work-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 9.59px;
  min-height: 27.594px;
}

.work-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: var(--fg);
}

.work-card-tags { display: flex; flex-wrap: wrap; gap: 6.4px; }

.work-card-tags span {
  font-size: 9.6px;
  font-weight: 500;
  line-height: 14.4px;
  color: var(--muted);
  white-space: nowrap;
}

.work-card:hover .work-card-title { color: var(--accent); }

/* --- Work grid card (full-bleed photo, gradient scrim, overlaid title) ---- */
.work-tile {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface-deep);
}

.work-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.7) 0%, rgba(10, 8, 6, 0) 55%);
  pointer-events: none;
}

.work-tile-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 35px;
  font-size: 22.86px;
  font-weight: 900;
  line-height: 22.86px;
  letter-spacing: -0.4572px;
  text-transform: uppercase;
  color: #fff;
}

a.work-tile:hover .work-tile-title { color: var(--accent); }

/* --- Two-column label / content rows (studio + contact) ------------------- */
.split-row {
  display: grid;
  grid-template-columns: 333fr 666fr;
  gap: 80px;
  align-items: start;
}

.split-row--even { grid-template-columns: 1fr 1fr; align-items: end; }

/* --- Form primitives (contact) ------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6.4px; }

.field-label {
  font-size: 10.4px;
  font-weight: 700;
  line-height: 15.6px;
  letter-spacing: 0.832px;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input,
.field-select {
  width: 100%;
  height: 42.992px;
  padding: 9.6px 0;
  font-size: 15.2px;
  line-height: 22.8px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  background: transparent;
  appearance: none;
}

.field-textarea {
  width: 100%;
  height: 134.211px;
  padding: 9.6px 0;
  font-size: 15.2px;
  line-height: 22.8px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  background: transparent;
  resize: vertical;
  font-family: inherit;
}

.field-input::placeholder,
.field-textarea::placeholder { color: rgba(26, 18, 8, 0.5); }

.field-select { color: var(--muted); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus { outline: none; border-bottom-color: var(--fg); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14.4px 40px;
  background: var(--fg);
  color: #fff;
  font-size: 12.8px;
  font-weight: 700;
  line-height: 19.2px;
  letter-spacing: 0.768px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-solid:hover { background: var(--accent); }

/* ==========================================================================
   Site pages — mobile (390px boards)
   ========================================================================== */
@media (max-width: 768px) {
  /* Inline crop transforms collapse to a plain cover fill */
  .cs-crop > img { width: 100% !important; }

  /* Mobile nav dropdown */
  .nav-inner { position: relative; }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px 16px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 30;
  }

  .nav-toggle:checked ~ .nav-links .nav-link {
    display: flex;
    align-items: center;
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav-toggle:checked ~ .nav-links .nav-link--contact { display: flex; }

  .kicker { font-size: 11px; line-height: normal; letter-spacing: 1px; }

  .display { font-size: 36px; line-height: 42px; letter-spacing: -1px; }

  .lede { font-size: 16px; line-height: 24px; }

  .section-kicker { font-size: 11px; line-height: normal; letter-spacing: 1px; text-transform: uppercase; }

  /* All fixed ratios become the 240px mobile card, except the hero */
  .ratio-hero { aspect-ratio: auto; height: 320px; border-radius: 12px; }
  .ratio-4x3,
  .ratio-3x1,
  .ratio-tall,
  .ratio-band { aspect-ratio: auto; height: 240px; border-radius: 8px; }

  /* Work card list style */
  .work-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
    min-height: 0;
  }

  .work-card-title { font-size: 14px; line-height: 21px; }

  .work-card-tags { gap: 6px; }

  .work-card-tags span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
  }

  .split-row,
  .split-row--even { grid-template-columns: 1fr; gap: 16px; }

  .field { gap: 6px; }
  .field-label { font-size: 11px; line-height: normal; letter-spacing: 0.5px; }
  .field-input,
  .field-select { height: 44px; padding: 12px 0; font-size: 14px; line-height: 21px; }
  .field-textarea { height: 100px; padding: 12px 0; font-size: 14px; line-height: 21px; }

  .btn-solid {
    align-self: stretch;
    width: 100%;
    height: 48px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 13px;
    line-height: normal;
    letter-spacing: 0.5px;
  }
}

/* ==========================================================================
   Case-study template — additions (soma / blue-moon)
   Appended block. Reuses .wrap .nav .cs-* .contact-block .site-footer above.
   Adds only the pieces the multi-discipline case studies need.
   ========================================================================== */

/* --- Metadata: stacked discipline tag list -------------------------------- */
.cs-tags { display: flex; flex-direction: column; gap: 4px; }
.cs-tags span {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--fg);
  white-space: nowrap;
}

/* --- Two-up deliverables grid (side-by-side proof images) ----------------- */
.cs-deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 40px;
}
.cs-deliverable-grid .cs-deliverable { width: 100%; max-width: none; }

@media (max-width: 768px) {
  /* Tags become wrapped chips, matching the 390px board */
  .cs-tags { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cs-tags span {
    font-size: 9px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
  }
  .cs-deliverable-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
}

/* ==========================================================================
   Related work — cross-links between case studies
   ========================================================================== */
.related-work { padding: 8px 0 56px; }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding-top: 16px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--surface-deep);
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.rel-card:hover { background: var(--bg); border-color: var(--border); }
.rel-name {
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg);
}
.rel-blurb { font-size: 11.2px; color: var(--muted); }
@media (max-width: 768px) {
  .rel-grid { grid-template-columns: 1fr; gap: 2px; }
  .rel-card { padding: 18px 16px; }
}

/* ==========================================================================
   Legal pages — privacy, terms. One narrow reading column.
   ========================================================================== */
.legal-hero { padding: 56px 0 28px; }
.legal-kicker {
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 10px;
}
.legal-updated { font-size: 13px; color: var(--muted); }

.legal-body { max-width: 680px; padding: 30px 0 72px; }
.legal-body h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--fg);
  margin: 34px 0 10px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg);
  margin-bottom: 14px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { font-weight: 700; }
.legal-body a {
  color: var(--fg);
  border-bottom: 1px solid rgba(26, 18, 8, 0.3);
}
.legal-body a:hover { border-bottom-color: var(--fg); }
.legal-body ul { margin: 0 0 14px 20px; }
.legal-body li { font-size: 15.5px; line-height: 1.75; margin-bottom: 6px; }

.legal-note {
  background: var(--surface-deep);
  padding: 18px 20px;
  margin: 6px 0 22px;
}
.legal-note p { font-size: 14px; line-height: 1.7; margin: 0; }

.legal-rule { border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .legal-hero { padding: 28px 0 20px; }
  .legal-hero h1 { font-size: 34px; letter-spacing: -0.9px; }
  .legal-body { padding: 22px 0 48px; }
  .legal-body h2 { font-size: 17px; margin: 26px 0 8px; }
  .legal-body p, .legal-body li { font-size: 15px; }
}

/* ==========================================================================
   Booking page — GHL calendar embed
   ========================================================================== */
.book-hero { padding: 56px 0 30px; }
.book-body { padding: 30px 0 20px; }

.book-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.book-aside { display: flex; flex-direction: column; gap: 26px; }
.book-aside-group { display: flex; flex-direction: column; gap: 6px; }
.book-aside-value { font-size: 14px; line-height: 21px; color: var(--fg); }
.book-aside-value--muted { color: var(--muted); font-size: 13px; line-height: 20px; }

.book-steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.book-step { display: flex; gap: 12px; align-items: flex-start; }
.book-step-num {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: var(--fg); color: var(--bg);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.book-step p { font-size: 13.5px; line-height: 20px; color: var(--fg); }

.book-cal { width: 100%; min-height: 780px; }
.book-cal iframe {
  width: 100%; min-height: 780px;
  border: none; border-radius: 8px; display: block; background: transparent;
}
.book-fallback { font-size: 14px; line-height: 22px; color: var(--muted); }
.book-fallback a { color: var(--fg); border-bottom: 1px solid var(--border); }

.book-alt {
  border-top: 1px solid var(--border);
  padding: 22px 0 64px;
  font-size: 14px; line-height: 22px; color: var(--muted);
}
.book-alt a { color: var(--fg); border-bottom: 1px solid rgba(26,18,8,.3); }
.book-alt a:hover { border-bottom-color: var(--fg); }

@media (max-width: 768px) {
  .book-hero { padding: 28px 0 20px; }
  .book-grid { grid-template-columns: 1fr; gap: 28px; }
  .book-aside { order: 2; }
  .book-cal-wrap { order: 1; }
  .book-cal, .book-cal iframe { min-height: 900px; }
  .book-alt { padding: 18px 0 44px; }
}

/* --------------------------------------------------------------------------
   AI showcase landing (/ai-studio)
   -------------------------------------------------------------------------- */
.ai-hero { padding: 72px 0 48px; }
.ai-hero .lede { max-width: 46ch; }
.ai-cta {
  display: inline-block; background: var(--fg); color: var(--bg);
  font-weight: 800; font-size: 15px; letter-spacing: 0.2px;
  padding: 15px 28px; border-radius: 999px; margin-top: 26px;
  transition: background-color .15s ease, color .15s ease;
}
.ai-cta:hover { background: var(--accent); color: var(--fg); }
.ai-cta--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid rgba(26,18,8,.35);
}
.ai-cta--ghost:hover { background: var(--surface-deep); color: var(--fg); }
.ai-video { padding: 8px 0 56px; }
.ai-video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--surface-deep); border-radius: 14px; overflow: hidden;
}
.ai-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.ai-video-placeholder .kicker { color: var(--muted); }
.ai-play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--fg);
  display: flex; align-items: center; justify-content: center;
}
.ai-play::after {
  content: ""; display: block; margin-left: 5px;
  border-left: 18px solid var(--bg);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.ai-video-caption { padding-top: 10px; font-size: 13px; color: var(--muted); }
.ai-examples { padding: 8px 0 26px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 26px; }
.ai-card {
  background: rgba(255,255,255,.55); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px 28px;
}
.ai-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--fg); font-weight: 800; font-size: 15px;
  margin-bottom: 16px;
}
.ai-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 10px; }
.ai-card p { font-size: 14px; line-height: 21px; color: var(--fg); }
.ai-card .ai-card-note { padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.ai-why { padding: 30px 0 56px; }
.ai-why-inner {
  background: var(--fg); color: var(--bg); border-radius: 16px;
  padding: 44px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
}
.ai-why-inner h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 12px; }
.ai-why-inner p { font-size: 14.5px; line-height: 22px; color: var(--surface-deep); }
.ai-why-points { display: flex; flex-direction: column; gap: 14px; }
.ai-why-point { border-top: 1px solid rgba(240,233,223,.18); padding-top: 12px; font-size: 14px; }
.ai-why-point b { color: var(--accent); }
.ai-band { text-align: center; padding: 26px 0 84px; }
.ai-band h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.7px; margin: 0 0 8px; }
.ai-band p { color: var(--muted); font-size: 15px; }
@media (max-width: 768px) {
  .ai-hero { padding: 40px 0 28px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-why-inner { grid-template-columns: 1fr; padding: 30px 22px; }
  .ai-band h2 { font-size: 26px; }
}
