/* HOMORA — homora.be
   VOICE   warm, architectural, editorial; a boutique house journal, never SaaS.
   IDEA    the site reads like the printed guide a well-kept house gives its residents.
   PICTURE house photography in generous frames; the real app in iPhone frames.
   COLOUR  ivory ground, forest green fields edge to edge, sage support, terracotta only as a fine accent.
   TYPE    Newsreader for display and quiet italic labels; Inter for everything you read or tap.
   LAYOUT  12-column editorial grid up to 1240px; full-bleed bands; stacks to one column under 720px. */

:root {
  color-scheme: light;
  --forest: #244c3d;
  --forest-deep: #1a382d;
  --forest-ink: #16302a;
  --ivory: #f4f4ef;
  --warm-white: #fbfaf6;
  --sage: #9fb19a;
  --sage-soft: #dfe5d8;
  --sage-mist: #ebefe5;
  --charcoal: #24282a;
  --ink-soft: #50575a;
  --terracotta: #b5603c;
  --terracotta-text: #9c4d2d;
  --line: rgba(36, 40, 42, 0.13);
  --line-light: rgba(244, 244, 239, 0.22);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: max(5vw, 20px);
  --band: clamp(72px, 10vw, 148px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 17px/1.62 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.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;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2 { font-family: var(--serif); font-weight: 380; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.018em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.012em; text-wrap: balance; }
.kicker {
  display: inline-block;
  font-family: var(--sans); font-weight: 500;
  font-size: 13px; line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--sans); letter-spacing: 0.005em; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ivory { background: var(--ivory); color: var(--forest-ink); }
.btn-ivory:hover { background: #fff; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost.on-light:hover { background: rgba(36, 76, 61, 0.06); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Honest "coming soon" store badge (not Apple artwork) */
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 20px 8px 16px;
  border-radius: 12px; border: 1px solid currentColor;
  text-decoration: none; cursor: default;
}
.soon svg { width: 22px; height: 22px; flex: none; }
.soon small { display: block; font-size: 11.5px; line-height: 1.2; opacity: 0.78; }
.soon strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.25; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--charcoal);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-header.is-solid, .page-sub .site-header { background: rgba(244, 244, 239, 0.94); box-shadow: 0 1px 0 var(--line); color: var(--charcoal); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid, .page-sub .site-header { background: rgba(244, 244, 239, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
}
.page-home .site-header:not(.is-solid) { color: var(--ivory); }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 18px; letter-spacing: 0.3em;
  text-decoration: none; line-height: 1; padding-block: 8px; margin-right: -0.3em;
}
.wordmark svg { width: 28px; height: 28px; flex: none; color: var(--forest); }
.page-home .site-header:not(.is-solid) .wordmark svg, .menu .wordmark svg { color: currentColor; }
.lockup { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; text-decoration: none; }
.lockup svg { grid-row: span 2; width: 40px; height: 40px; color: var(--forest); }
.lockup b { font-weight: 500; font-size: 22px; letter-spacing: 0.3em; line-height: 1.1; color: var(--charcoal); }
.lockup small { font-size: 11.5px; letter-spacing: 0.24em; color: var(--ink-soft); text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.nav-links a:not(.btn) {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 450; padding-block: 10px;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { min-height: 42px; padding: 9px 18px; font-size: 14.5px; }
.page-home .site-header:not(.is-solid) .nav-links .btn { background: var(--ivory); color: var(--forest-ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--forest); color: var(--ivory);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.menu .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.menu-close { width: 48px; height: 48px; margin-right: -12px; border: 0; background: transparent; cursor: pointer; color: inherit; display: grid; place-items: center; }
.menu-close svg { width: 22px; height: 22px; }
.menu ul { list-style: none; margin-top: clamp(24px, 8vh, 72px); }
.menu li { border-bottom: 1px solid var(--line-light); }
.menu ul a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(32px, 9vw, 44px); line-height: 1.15; font-weight: 350;
}
.menu ul a span { font-family: var(--sans); font-size: 20px; opacity: 0.6; }
.menu .menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; font-size: 15px; }
.menu .menu-foot p { margin: 0; opacity: 0.75; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(600px, 94svh, 920px);
  display: flex; align-items: flex-end;
  color: var(--ivory);
  background: var(--forest-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media > * { width: 100%; height: 100%; object-fit: cover; object-position: 42% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 48, 42, 0.6) 0%, rgba(22, 48, 42, 0) 24%),
    linear-gradient(90deg, rgba(22, 48, 42, 0.78) 0%, rgba(22, 48, 42, 0.5) 38%, rgba(22, 48, 42, 0.08) 68%, rgba(22, 48, 42, 0) 100%),
    linear-gradient(0deg, rgba(22, 48, 42, 0.85) 0%, rgba(22, 48, 42, 0.3) 40%, rgba(22, 48, 42, 0) 70%);
}
.hero-inner { width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.hero-place { font-family: var(--serif); font-style: italic; font-size: 19px; opacity: 0.92; margin-bottom: 20px; }
.hero h1 { font-size: clamp(68px, 11.5vw, 168px); margin-bottom: clamp(20px, 3vw, 34px); }
.hero .sub { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 350; line-height: 1.2; margin-bottom: 12px; }
.hero .body { font-size: clamp(17px, 1.35vw, 19px); max-width: 30em; opacity: 0.9; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-size: 14px; opacity: 0.78; display: flex; align-items: center; gap: 10px; }
.hero-note svg { width: 16px; height: 16px; flex: none; }
.hero-phone { justify-self: end; width: min(290px, 100%); margin-bottom: -180px; position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-phone { display: none; }
}

/* ---------- Photo placeholders & frames ---------- */
.ph {
  position: relative; overflow: hidden; margin: 0;
  background: var(--sage-soft);
  border-radius: var(--radius);
}
.ph .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover .ph img { transform: scale(1.03); }
.hero .hero-credit { position: absolute; right: var(--gutter); top: 96px; font-size: 12.5px; opacity: 0.8; max-width: 18em; text-align: right; font-family: var(--serif); font-style: italic; }
@media (max-width: 600px) { .hero-credit { display: none; } }

/* ---------- iPhone frame ---------- */
.phone {
  position: relative; width: 100%;
  border-radius: 15.5% / 7.2%;
  background: #121414;
  padding: 2.7%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 0 1px #2c3130,
    0 40px 80px -24px rgba(20, 38, 32, 0.45),
    0 18px 36px -18px rgba(20, 38, 32, 0.35);
}
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; top: 4.4%; left: 50%; transform: translateX(-50%);
  width: 31%; height: 3.6%; border-radius: 999px; background: #050606; z-index: 2;
}
.screen {
  position: relative; width: 100%; aspect-ratio: 1179 / 2556; overflow: hidden;
  border-radius: 13.2% / 6.1%;
  background: var(--warm-white);
}
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Sections ---------- */
.band { padding-block: var(--band); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lede { margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* Intro */
.intro { background: var(--ivory); padding-top: clamp(96px, 14vw, 220px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.intro blockquote { margin: 0; font-family: var(--serif); font-weight: 340; font-size: clamp(32px, 3.9vw, 54px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.intro blockquote em { color: var(--forest); }
.intro-copy { padding-top: 10px; }
.intro-copy p { font-size: 18px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.facts div { padding: 26px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); line-height: 1; font-weight: 320; color: var(--forest); letter-spacing: -0.02em; }
.facts dd { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
  .facts dd { margin: 0; }
}

/* Features */
.features { background: var(--warm-white); border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center; }
.chapter + .chapter { margin-top: clamp(96px, 12vw, 180px); }
.chapter-text { grid-column: 1 / span 5; }
.chapter-visual { grid-column: 7 / span 6; display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); align-items: flex-start; }
.chapter.flip .chapter-text { grid-column: 8 / span 5; grid-row: 1; }
.chapter.flip .chapter-visual { grid-column: 1 / span 6; grid-row: 1; }
.chapter-visual .phone { width: min(280px, 46%); }
.chapter-visual.single .phone { width: min(300px, 62%); }
.chapter-visual .phone:nth-child(2) { margin-top: 72px; }
.chapter p { color: var(--ink-soft); }
.chapter .h3 { margin-bottom: 20px; }
.ticks { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--forest); }
.ticks b { font-weight: 500; color: var(--charcoal); }
.ticks span { color: var(--ink-soft); }
.chapter-visual-stage {
  position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px);
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 40px);
  background: var(--sage-mist); border-radius: var(--radius);
}
@media (max-width: 900px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; }
  .chapter-text, .chapter-visual, .chapter.flip .chapter-text, .chapter.flip .chapter-visual { grid-column: 1; grid-row: auto; }
  .chapter-visual .phone:nth-child(2) { margin-top: 48px; }
}

/* House Pot band */
.pot { background: var(--forest); color: var(--ivory); }
.pot .kicker { color: #cbd8c6; }
.pot .chapter p, .pot .ticks span { color: rgba(244, 244, 239, 0.82); }
.pot .ticks, .pot .ticks li { border-color: var(--line-light); }
.pot .ticks svg { color: #e3a785; }
.pot .ticks b { color: var(--ivory); }
.pot .chapter-visual-stage { background: rgba(255, 255, 255, 0.05); }
.pot .pot-note { margin-top: 28px; display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-light); border-radius: var(--radius); font-size: 15px; line-height: 1.55; }
.pot-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #e3a785; }

/* Our home */
.home { background: var(--ivory); }
.gallery {
  display: grid; gap: clamp(10px, 1.4vw, 20px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 14vw, 190px);
}
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery .ph { flex: 1; }
.gallery figcaption { padding-top: 10px; font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; }
.gallery figcaption b { font-weight: 500; color: var(--charcoal); }
.gallery figcaption small { font-size: 12.5px; color: #7a8083; white-space: nowrap; }
.g-ext { grid-column: 1 / span 7; grid-row: span 3; }
.g-garden { grid-column: 8 / span 5; grid-row: span 3; }
.g-k1 { grid-column: 1 / span 6; grid-row: span 2; }
.g-k2 { grid-column: 7 / span 6; grid-row: span 2; }
.g-c1 { grid-column: 1 / span 7; grid-row: span 2; }
.g-c2 { grid-column: 8 / span 5; grid-row: span 2; }
.g-w2 { grid-column: 1 / span 5; grid-row: span 2; }
.g-gym { grid-column: 6 / span 7; grid-row: span 2; }
.home-foot { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 24px; }
.home-foot p { margin: 0; max-width: 46em; color: var(--ink-soft); font-size: 15px; }
.home-foot .place { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--forest); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery figure { grid-column: span 1; grid-row: span 1; }
  .gallery .g-ext, .gallery .g-garden { grid-column: 1 / -1; grid-row: span 2; }
}

/* Privacy & independence */
.principles { background: var(--sage-mist); }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 250, 246, 0.5); }
.principle svg { width: 30px; height: 30px; color: var(--forest); margin-bottom: 26px; }
.principle h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; margin-bottom: 10px; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.principles-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.principles-foot p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 44em; }
@media (max-width: 900px) { .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .principles-grid { grid-template-columns: 1fr; } }

/* Closing call to action */
.closing { position: relative; isolation: isolate; background: var(--forest); color: var(--ivory); overflow: hidden; text-align: center; }
.closing .art { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; opacity: 0.12; color: var(--ivory); width: 100%; }
.closing h2 { font-size: clamp(48px, 7.6vw, 112px); margin-bottom: 28px; }
.closing h2 em { font-style: italic; color: #d7e2d1; }
.closing p { max-width: 34em; margin: 0 auto 36px; font-size: 18px; opacity: 0.88; }
.closing .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--warm-white); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.footer-brand p { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); max-width: 22em; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.footer-links h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.footer-links ul { list-style: none; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--ink-soft); font-size: 14px; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sub pages (privacy, support) ---------- */
.page-hero { padding-top: calc(76px + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); background: var(--ivory); }
.page-hero h1 { font-size: clamp(52px, 7.4vw, 104px); margin-bottom: 24px; }
.page-hero .lede { margin-bottom: 0; }
.page-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-soft); }

.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 96px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.toc h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; color: var(--forest); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.toc a:hover { color: var(--forest); border-left-color: var(--forest); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

.prose { max-width: 42em; }
.prose section + section { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.prose h2 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 20px; }
.prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: #3a4043; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.prose li::marker { color: var(--forest); }
.prose a { color: var(--forest); }
.prose strong { font-weight: 600; color: var(--charcoal); }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--warm-white); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; font-size: 13.5px; color: var(--ink-soft); background: var(--sage-mist); }
td:first-child { font-weight: 500; color: var(--charcoal); width: 30%; }
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; border: 0; padding: 3px 0; width: auto; }
  table.stack td::before { content: attr(data-l); display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
}

.callout { display: flex; gap: 16px; padding: 20px 22px; margin: 8px 0 28px; border-radius: var(--radius); background: var(--sage-mist); border: 1px solid #cfd9c8; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--forest); }
.callout p:last-child { margin-bottom: 0; }
.callout.warm { background: #f6ebe3; border-color: #e7cdbb; }
.callout.warm svg { color: var(--terracotta-text); }


/* Support */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.topic {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 148px;
  background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.topic:hover { border-color: var(--forest); transform: translateY(-2px); }
.topic svg { width: 26px; height: 26px; color: var(--forest); }
.topic strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin-top: auto; }
.topic span { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topic { min-height: 0; padding: 18px; } .topic strong { font-size: 19px; } .topic span { display: none; } }
@media (max-width: 340px) { .topics { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 500; font-size: 17.5px; line-height: 1.4; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg) translateY(-4px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 0 24px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px !important; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--forest); color: var(--forest);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; line-height: 1;
}

.contact-card { margin-top: 12px; padding: clamp(24px, 3vw, 36px); background: var(--forest); color: var(--ivory); border-radius: var(--radius); }
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; color: var(--ivory); }
.contact-card p { color: rgba(244, 244, 239, 0.86); }
.contact-card .address { font-family: var(--serif); font-size: 24px; color: var(--ivory); margin: 18px 0 6px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 64px; }
.notfound h1 { font-size: clamp(56px, 9vw, 120px); margin-bottom: 20px; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.12s; }
.js [data-reveal="3"] { transition-delay: 0.24s; }
.hero-media > * { animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .menu, .toc, .site-footer .footer-links { display: none !important; }
  .page-hero { padding-top: 0; }
  .doc { display: block; }
  body { background: #fff; font-size: 12pt; }
}

.menu[hidden] { display: none; }
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(22, 48, 42, 0.55) 0%, rgba(22, 48, 42, 0.35) 35%, rgba(22, 48, 42, 0.82) 70%, rgba(22, 48, 42, 0.94) 100%); }
}

/* Contact list in the support page's contact card */
.contact-list { margin: 18px 0 20px; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.contact-list dt { color: rgba(244, 244, 239, 0.78); font-size: 15px; }
.contact-list dd { margin: 0; }
.contact-list a { font-family: var(--serif); font-size: 22px; color: var(--ivory); text-decoration: underline; text-decoration-color: rgba(244, 244, 239, 0.4); text-underline-offset: 0.18em; }
.contact-list a:hover { text-decoration-color: currentColor; }
.prose th { white-space: normal; }
.versus td:first-child { width: 50%; font-weight: 400; color: #3a4043; }
@media (max-width: 600px) { table.stack.versus td:first-child { width: auto; } }
.nowrap { white-space: nowrap; }
