/* ==========================================================================
   CR8V Impressions — site styles
   Layout concept: an architect's sheet. Cream paper, dark-teal ink,
   gable (house-shaped) frames echo the logo, floor-plan line work marks
   the "make your floor plan work harder" idea. Terracotta = one action per view.
   ========================================================================== */

:root {
  /* Brand palette (exact hex from brand kit) */
  --teal: #2f5061;          /* Dark Teal: ink, dark bands */
  --teal-blue: #2a5d74;     /* Teal Blue: links, secondary */
  --cream: #fbf7f2;         /* Warm Ivory: page (replaces #f4eae6, which read dull) */
  --sage: #82946a;          /* Sage: decorative lines, accents */
  --mint: #d9efec;          /* Soft Mint: highlight surfaces */
  --terracotta: #cf7866;    /* Terracotta: action colour */

  /* Derived tones (same hues, adjusted only where text contrast needs it) */
  --paper: #fffdfa;         /* near-white for raised cards */
  --linen: #f3ece2;         /* Linen: alternate section background */
  --sage-ink: #5d6c48;      /* sage dark enough for small text on cream */
  --terracotta-ink: #a9503f;/* terracotta dark enough for cream button text (AA) */
  --line: rgba(47, 80, 97, 0.18);
  --line-strong: rgba(47, 80, 97, 0.55);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;   /* headings */
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;               /* body text */
  --label: "Poppins", "Helvetica Neue", Arial, sans-serif;           /* labels, buttons, menu */

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: 1.4rem;
  --step-3: clamp(1.65rem, 1.3rem + 1.4vw, 2.2rem);
  --step-4: clamp(2rem, 1.45rem + 2.4vw, 3rem);
  --step-5: clamp(2.3rem, 1.5rem + 3.4vw, 3.8rem);

  /* Space (spacious, 8pt rhythm) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --wrap: 72rem;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
a { color: var(--teal-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mint); color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
  color: var(--teal);
}
h1 { font-size: var(--step-5); font-weight: 400; }
h2 { font-size: var(--step-4); font-weight: 400; }
h3 { font-size: var(--step-2); }

/* Poppins: every small tracked label, button and menu item */
.eyebrow, .btn, .nav a, .menu-toggle, .text-link, .plan__tab, .plan__scale, .room__code,
.stage__price, .service__tag, .service__price, .tier__price small, .tier__best b, .step__when,
.quote-card figcaption, .signoff small, .partner__type, .project__meta, .placeholder-tag,
.article-card__meta, .badge, .field label, .field .label, .choice span, .footer-h,
.contact-list .k, .hero__meta, .tag-row li, .ba__label {
  font-family: var(--label);
}
h4 { font-size: var(--step-1); }
p { margin: 0; max-width: 65ch; }
em.serif, .serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--teal); color: var(--cream); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 4rem);
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap { padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: var(--s6); }
@media (min-width: 1024px) { .section { padding-block: var(--s7); } }
.section--tight { padding-block: var(--s5); }
.section--paper { background: var(--linen); }
.section--mint { background: var(--mint); }
.section--dark { background: var(--teal); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark a { color: var(--mint); }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack--sm { gap: var(--s2); }
.stack--lg { gap: var(--s5); }

/* Eyebrow / section header: tracked uppercase, the brand's "quiet navigational anchor" */
.eyebrow {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-ink);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--mint); }
.lede { font-size: var(--step-1); line-height: 1.6; max-width: 58ch; }
.muted { color: rgba(47, 80, 97, 0.82); }
.section--dark .muted { color: rgba(251, 247, 242, 0.85); }

.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s6); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--terracotta-ink); color: var(--paper); }
.btn--primary:hover { background: #924334; color: var(--paper); }
.btn--ghost { border-color: var(--line-strong); color: var(--teal); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); background: rgba(47, 80, 97, 0.06); color: var(--teal); }
.section--dark .btn--ghost { border-color: rgba(251, 247, 242, 0.5); color: var(--cream); }
.section--dark .btn--ghost:hover { background: rgba(251, 247, 242, 0.1); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.text-link {
  font-weight: 500; letter-spacing: 0.04em; text-decoration: none; color: var(--teal-blue);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.text-link:hover { color: var(--terracotta-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 247, 242, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; padding-block: 0.5rem; }
.brand img { height: 58px; width: auto; }
@media (min-width: 768px) {
  .site-header .wrap { min-height: 100px; }
  .brand img { height: 76px; }
}
@media (max-width: 420px) {
  .brand img { height: 50px; }
  .menu-toggle span { display: none; }
}

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  text-decoration: none; color: var(--teal); font-size: 0.86rem; letter-spacing: 0.02em; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 8px; height: 1px;
  background: var(--terracotta-ink); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 500; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0 0.75rem; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--teal); font: inherit; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); max-height: calc(100dvh - 84px); overflow-y: auto; }
/* The header's row layout must not apply inside the menu: pages first, full width, then the button */
.site-header .mobile-nav .wrap { display: block; min-height: 0; padding-bottom: var(--s3); }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s1) 0 var(--s3); }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-family: var(--serif); font-size: 1.3rem; text-decoration: none; color: var(--teal); border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--terracotta-ink); }
.mobile-nav ul { padding-bottom: 0; }
.mobile-nav .btn { display: flex; margin-top: var(--s3); width: 100%; font-family: var(--label); font-size: 0.95rem; color: var(--paper); border-bottom: 0; }

@media (min-width: 1280px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .nav a { padding: 0 0.55rem; }
  .nav a::after { left: 0.55rem; right: 0.55rem; }
}

/* ---------- Gable frame (house-shaped image frame from the logo) ---------- */
.gable {
  position: relative;
  clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
  overflow: hidden;
  background: var(--mint);
}
.gable img { width: 100%; height: 100%; object-fit: cover; }
.gable-outline { position: relative; }
.gable-outline::after {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: -1;
  clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
  background: var(--sage); opacity: 0.35;
}

/* Rectangular photo with an offset sage frame (for photos where a gable would crop a head) */
.photo-frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.photo-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; inset: -14px -14px 14px 14px; background: var(--sage); opacity: 0.35; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s5) var(--s6); }
.hero .wrap { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1000px) {
  .hero { padding-block: var(--s6) var(--s7); }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: var(--s6); }
}
.hero h1 em { font-style: italic; color: var(--teal-blue); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step--1); color: var(--sage-ink); letter-spacing: 0.04em; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { width: 16px; height: 16px; }

/* ---------- Floor plan widget (signature element) ---------- */
.plan { background: var(--paper); border: 1px solid var(--line); padding: var(--s3); position: relative; }
.plan__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--s2); }
.plan__caption .eyebrow::before { display: none; }
.plan__scale { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--sage-ink); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.plan__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s2); }
.plan__tab {
  min-height: 44px; padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--teal);
  font: inherit; font-size: 0.88rem; letter-spacing: 0.03em; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.plan__tab:hover { border-color: var(--teal); }
.plan__tab[aria-selected="true"] { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.plan__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  grid-template-rows: minmax(112px, auto) minmax(112px, auto) minmax(84px, auto);
  grid-template-areas:
    "bed1 living living"
    "bed2 living living"
    "entry dining kitchen";
  border: 6px solid var(--teal);
  background: var(--cream);
}
.room {
  position: relative; border: 2px solid var(--teal); padding: 1.9rem 0.75rem 0.7rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15rem; min-width: 0;
  background-image: radial-gradient(rgba(47, 80, 97, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}
.room--bed1 { grid-area: bed1; } .room--bed2 { grid-area: bed2; } .room--living { grid-area: living; }
.room--entry { grid-area: entry; } .room--dining { grid-area: dining; } .room--kitchen { grid-area: kitchen; }
.room__code { position: absolute; top: 0.45rem; left: 0.6rem; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--sage-ink); text-transform: uppercase; }
.room__label { font-family: var(--serif); font-size: 1rem; font-weight: 500; line-height: 1.15; transition: opacity 260ms var(--ease); }
.room__note { font-size: 0.78rem; line-height: 1.35; color: rgba(47, 80, 97, 0.85); transition: opacity 260ms var(--ease); }
.room.is-changing .room__label, .room.is-changing .room__note { opacity: 0; }
.room--living .room__label { font-size: 1.25rem; }
.room__door { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--sage); border-left: 0; border-bottom: 0; border-top-right-radius: 26px; }
.room--entry .room__door { right: -2px; bottom: -2px; transform: rotate(90deg); }
.room--bed1 .room__door { right: -2px; top: 30%; transform: rotate(180deg); }
.room--bed2 .room__door { right: -2px; top: 30%; transform: rotate(180deg); }
.room.is-highlight { background-color: var(--mint); }
.plan__summary { margin-top: var(--s2); font-size: 0.95rem; min-height: 3.2em; }
@media (max-width: 560px) {
  .plan { padding: var(--s2); }
  .plan__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: "living living" "bed1 bed2" "entry dining" "kitchen kitchen";
  }
  .room { min-height: 104px; }
  .room__door { display: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Life stage cards */
.stage { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line-strong); }
.stage__art { aspect-ratio: 4 / 3; max-width: 100%; }
.stage__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__name { font-size: var(--step-3); }
.stage__for { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--sage-ink); line-height: 1.35; }
.stage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.stage li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.98rem; }
.stage li::before { content: ""; width: 6px; height: 6px; background: var(--sage); flex: none; transform: rotate(45deg) translateY(-2px); }
.stage__price { margin-top: auto; padding-top: var(--s2); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-ink); }
.stage__price strong { font-family: var(--serif); font-size: 1.35rem; text-transform: none; letter-spacing: 0; color: var(--teal); font-weight: 600; margin-left: 0.3rem; font-variant-numeric: tabular-nums; }

/* Service list (catalogue rows) */
.service-list { border-top: 1px solid var(--line-strong); }
.service {
  display: grid; gap: var(--s2) var(--s4); padding-block: var(--s4);
  border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 900px) {
  .service { grid-template-columns: 3.5rem 1.1fr 1.4fr 11rem; align-items: start; }
}
.service__no { font-family: var(--serif); font-size: 1.2rem; color: var(--sage-ink); font-variant-numeric: tabular-nums; }
.service__name { font-size: var(--step-2); }
.service__tag { display: inline-block; margin-top: 0.4rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.service__body { display: grid; gap: var(--s2); }
.service__body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.service__body li::marker { color: var(--sage); }
.service__price { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-ink); }
@media (min-width: 900px) { .service__price { text-align: right; } }
.service__price strong { display: block; font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0; text-transform: none; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.service__price .quote { font-family: var(--serif); font-size: 1.1rem; font-style: italic; text-transform: none; letter-spacing: 0; color: var(--teal); display: block; }

/* Tier table */
.tiers { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.tier { background: var(--paper); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); border: 1px solid var(--line); }
@media (min-width: 900px) { .tier + .tier { border-left: 0; } }
.tier__price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tier__price small { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-ink); margin-right: 0.35rem; }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.97rem; }
.tier li::marker { color: var(--sage); }
.tier__best { margin-top: auto; padding-top: var(--s2); border-top: 1px dashed var(--line-strong); font-size: 0.92rem; }
.tier__best b { font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; color: var(--sage-ink); display: block; margin-bottom: 0.2rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s3); padding-block: var(--s4);
  border-top: 1px solid var(--line-strong); counter-increment: step;
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step__no {
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; color: var(--teal);
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); background: var(--mint);
  padding-top: 0.6rem; font-variant-numeric: tabular-nums;
}
.step--free .step__no { background: var(--terracotta); color: var(--paper); }
.step h3 { margin-bottom: 0.4rem; }
.step__when { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 0.5rem; display: block; }
.step ul { margin: var(--s2) 0 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.step li::marker { color: var(--sage); }
@media (min-width: 900px) {
  .step { grid-template-columns: 4.5rem 1fr 1.2fr; gap: var(--s5); align-items: start; }
  .step__no { width: 4.5rem; height: 4.5rem; font-size: 1.7rem; }
  .step ul { margin-top: 0; }
}
.steps--compact .step { padding-block: var(--s3); }
@media (min-width: 900px) { .steps--compact .step { grid-template-columns: 4.5rem 1fr; } }

/* Testimonials */
.quotes { display: grid; gap: var(--s4); }
@media (min-width: 1000px) { .quotes { grid-template-columns: 1.4fr 1fr; } }
.quote-card { margin: 0; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--paper); border: 1px solid var(--line); }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12rem; line-height: 1.6; }
.quote-card--feature blockquote { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
.quote-card figcaption { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.quote-card::before {
  content: "\201C"; font-family: var(--serif); font-size: 4.5rem; line-height: 0.6; color: var(--terracotta); height: 1.6rem;
}
.quotes__side { display: grid; gap: var(--s4); }
.section--dark .quote-card { background: rgba(251, 247, 242, 0.06); border-color: rgba(251, 247, 242, 0.18); }
.section--dark .quote-card figcaption { color: var(--mint); }

/* Split media blocks */
.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: var(--s6); }
  .split--flip { grid-template-columns: 1.15fr 0.85fr; }
  .split--flip > :first-child { order: 2; }
}
.portrait { aspect-ratio: 4 / 5; max-width: 100%; }
.portrait img { height: 100%; }

/* Signature (founder) */
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--teal-blue); }
.signoff small { display: block; font-family: var(--sans); font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); margin-top: 0.3rem; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principles li { display: grid; gap: 0.4rem; padding: var(--s3); border: 1px solid var(--line); background: var(--paper); }
.principles h3 { font-size: 1.25rem; }

/* Partner cards */
.partner { display: grid; gap: var(--s2); padding: var(--s4); background: var(--paper); border: 1px solid var(--line); }
.partner__type { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.partner ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.partner li { font-size: 0.85rem; padding: 0.2rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.partner-slot { display: grid; place-items: center; text-align: center; gap: var(--s1); padding: var(--s4); border: 1px dashed var(--line-strong); color: rgba(47, 80, 97, 0.8); }

/* Trusted partners: compact list of services, each opens to show the partner */
.pcats { display: grid; gap: var(--s2); align-items: start; }
@media (min-width: 720px) { .pcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pcats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcat { background: var(--paper); border: 1px solid var(--line); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.pcat:hover, .pcat[open] { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(47, 80, 97, 0.08); }
.pcat summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: var(--s3); min-height: 72px;
}
@media (max-width: 767px) { .pcat summary { padding: 0.85rem var(--s2); min-height: 60px; } .pcats { gap: 0.6rem; } }
.pcat summary::-webkit-details-marker { display: none; }
.pcat summary > span:first-child { display: grid; gap: 0.15rem; }
.pcat__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--teal); }
.pcat__who { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-ink); }
.pcat .icon { flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform 250ms var(--ease), background-color 200ms var(--ease); }
.pcat .icon svg { width: 14px; height: 14px; }
.pcat:hover .icon { background: var(--mint); }
.pcat[open] .icon { transform: rotate(45deg); background: var(--mint); }
.pcat__body { display: grid; gap: var(--s2); padding: 0 var(--s3) var(--s3); border-top: 1px dashed var(--line); padding-top: var(--s2); }
.pcat__body .text-link { justify-self: start; }

/* Portfolio */
.project { display: grid; gap: var(--s2); text-decoration: none; color: inherit; }
.project__media { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--mint); position: relative; }
.project__media img, .project__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.project:hover .project__media img, .project:hover .project__media svg { transform: scale(1.03); }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.project h3 { font-size: var(--step-2); }
.placeholder-tag {
  position: absolute; left: 0.75rem; bottom: 0.75rem; background: rgba(255, 253, 250, 0.94); color: var(--teal);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.6rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s4); }

/* Free guides (downloadable PDFs) */
.guide { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); background: var(--paper); border: 1px solid var(--line); }
.guide__cover { display: block; aspect-ratio: 800 / 1035; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(47, 80, 97, 0.12); }
.guide__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.guide__cover:hover img { transform: scale(1.03); }
.guide h3 { font-size: 1.3rem; }
.guide p { font-size: 0.97rem; }
.guide__actions { margin-top: auto; padding-top: var(--s1); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* Journal */
.article-card { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line-strong); }
.article-card__meta { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.article-card h3 { font-size: 1.35rem; }
.article-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--linen); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.article-card__img:hover img { transform: scale(1.03); }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--mint); color: var(--teal); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* FAQ */
.faq-group + .faq-group { margin-top: var(--s5); }
.faq-group h2 { font-size: var(--step-3); margin-bottom: var(--s3); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding-block: var(--s3); min-height: 56px; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform 250ms var(--ease), background-color 200ms var(--ease); }
.faq summary .icon svg { width: 14px; height: 14px; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--mint); }
.faq summary:hover { color: var(--teal-blue); }
.faq .answer { padding-bottom: var(--s4); display: grid; gap: var(--s2); max-width: 68ch; }
.faq .answer ol, .faq .answer ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* Page intro (inner pages) */
.page-intro { padding-block: var(--s5) var(--s5); border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .page-intro { padding-block: var(--s6) var(--s5); } }
.page-intro .wrap { display: grid; gap: var(--s3); }
@media (min-width: 1000px) { .page-intro .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; gap: var(--s6); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: var(--s4); position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.cta-band__plan { position: absolute; right: -40px; top: 50%; width: 420px; transform: translateY(-50%); opacity: 0.12; pointer-events: none; }
.cta-band__plan path, .cta-band__plan rect, .cta-band__plan line { stroke: var(--cream); }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* Note callout */
.note { display: flex; gap: var(--s2); padding: var(--s3); background: var(--mint); align-items: flex-start; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 0.2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s4); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.form legend { font-family: var(--serif); font-size: var(--step-2); padding: 0; margin-bottom: var(--s2); }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field .label { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; }
.req { color: var(--terracotta-ink); }
.hint { font-size: 0.85rem; color: rgba(47, 80, 97, 0.8); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--teal);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 93, 116, 0.18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #a33a2a; }
.error-msg { font-size: 0.85rem; color: #a33a2a; display: flex; gap: 0.35rem; align-items: center; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.95rem; border: 1px solid var(--line-strong);
  border-radius: 999px; cursor: pointer; font-size: 0.92rem; background: var(--paper); transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.choice input:checked + span { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.choice input:focus-visible + span { outline: 2px solid var(--terracotta-ink); outline-offset: 2px; }
.form-status { padding: var(--s3); display: flex; gap: var(--s2); align-items: flex-start; }
.form-status--ok { background: var(--mint); }
.form-status--info { background: var(--paper); border: 1px solid var(--line-strong); }
.form-status--error { background: #f6dcd5; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 0.15rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.hp { position: absolute; left: -9999px; }

.contact-card { display: grid; gap: var(--s3); padding: var(--s4); background: var(--teal); color: var(--cream); align-content: start; }
.contact-card h2, .contact-card h3 { color: var(--cream); }
.contact-card a { color: var(--mint); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 0.25rem; color: var(--mint); }
.contact-list .k { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(217, 239, 236, 0.85); }
.contact-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.5fr 1fr; } .contact-layout aside { position: sticky; top: 100px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--cream); padding-block: var(--s6) var(--s4); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer-top { display: grid; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid rgba(251, 247, 242, 0.2); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.2fr 0.8fr 0.8fr 1.3fr; gap: var(--s5); } }
.footer-logo { width: 280px; max-width: 100%; }
.footer-h { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); margin-bottom: var(--s2); font-weight: 500; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-list a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-areas { font-size: 0.92rem; color: rgba(251, 247, 242, 0.85); }
.social { display: flex; gap: 0.6rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(251, 247, 242, 0.35); border-radius: 50%; }
.social a:hover { background: rgba(251, 247, 242, 0.1); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.newsletter { display: grid; gap: var(--s2); }
.newsletter__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 200px; background: rgba(251, 247, 242, 0.08); border-color: rgba(251, 247, 242, 0.4); color: var(--cream); }
.newsletter .input::placeholder { color: rgba(251, 247, 242, 0.7); }
.newsletter .input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(217, 239, 236, 0.2); }
.newsletter label { font-size: 0.9rem; }
.newsletter .form-status { padding: var(--s2); font-size: 0.92rem; color: var(--teal); }
.site-footer .error-msg, .section--dark .error-msg { color: #f6c4b8; }
.site-footer .field.has-error .input, .section--dark .field.has-error .input { border-color: #f6c4b8; }
.newsletter select option { color: var(--teal); background: var(--paper); }
.footer-bottom { padding-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: 0.85rem; color: rgba(251, 247, 242, 0.8); }

/* ---------- Reveal motion (content is visible at rest; JS only adds a gentle lift) ---------- */
.reveal { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-pending { opacity: 0.001; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Photo hero (real project, with a small "before" inset) ---------- */
.hero__photo { position: relative; margin: 0; }
.hero__photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__before {
  position: absolute; left: -1rem; bottom: -1.5rem; width: 38%; margin: 0;
  border: 6px solid var(--paper); box-shadow: 0 10px 30px rgba(47, 80, 97, 0.18);
}
.hero__before img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__photo figcaption { margin-top: 2.25rem; font-size: 0.85rem; color: rgba(47, 80, 97, 0.82); text-align: right; }
@media (max-width: 600px) { .hero__before { left: 0.5rem; bottom: -1rem; width: 42%; border-width: 4px; } }
.ba__label {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 1; background: var(--teal); color: var(--cream);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.5rem;
}
.ba__label--after { background: var(--terracotta-ink); }

/* ---------- Full-screen photo hero with a slow "scan" across the room ---------- */
.hero--full {
  position: relative; overflow: hidden; isolation: isolate; color: var(--cream);
  min-height: clamp(560px, calc(100svh - 84px), 900px); display: flex; align-items: center;
  padding-block: var(--s6);
}
@media (min-width: 768px) { .hero--full { min-height: clamp(600px, calc(100svh - 100px), 900px); } }
.hero--full .wrap { display: block; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: hero-scan 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes hero-scan {
  from { transform: scale(1.16) translate3d(-4%, 1%, 0); }
  to   { transform: scale(1.06) translate3d(4%, -1%, 0); }
}
.hero--full.is-paused .hero__bg img { animation-play-state: paused; }
.hero--full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(31, 52, 63, 0.88) 0%, rgba(31, 52, 63, 0.68) 42%, rgba(31, 52, 63, 0.15) 78%, rgba(31, 52, 63, 0.05) 100%);
}
@media (max-width: 899px) {
  .hero--full { align-items: flex-end; }
  .hero--full::before { background: linear-gradient(0deg, rgba(31, 52, 63, 0.92) 0%, rgba(31, 52, 63, 0.75) 45%, rgba(31, 52, 63, 0.2) 100%); }
}
.hero__content { max-width: 40rem; }
.hero--full h1 { color: var(--cream); font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); line-height: 1.08; }
.hero--full h1 em { color: var(--mint); }
.hero--full .eyebrow { color: var(--mint); }
.hero--full .lede { color: rgba(251, 247, 242, 0.92); }
.hero--full .hero__meta { color: rgba(217, 239, 236, 0.95); }
.hero--full .btn--ghost { border-color: rgba(251, 247, 242, 0.6); color: var(--cream); }
.hero--full .btn--ghost:hover { background: rgba(251, 247, 242, 0.12); border-color: var(--cream); color: var(--cream); }
.hero__credit {
  position: absolute; right: 1.25rem; bottom: 1rem; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--cream); text-decoration: none; background: rgba(31, 52, 63, 0.55); padding: 0.4rem 0.75rem; border-radius: 999px;
}
.hero__credit:hover { background: rgba(31, 52, 63, 0.8); color: var(--cream); }
.hero__motion {
  position: absolute; right: 1.25rem; top: 1rem; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: rgba(31, 52, 63, 0.55); color: var(--cream); border: 1px solid rgba(251, 247, 242, 0.35); border-radius: 50%;
}
.hero__motion svg { width: 16px; height: 16px; }
@media (max-width: 899px) { .hero__credit { position: static; display: inline-block; margin: var(--s3) 0 0 1.25rem; } .hero--full { flex-wrap: wrap; align-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; transform: none; } .hero__motion { display: none; } }

/* ---------- Photo placeholder (shows where a photo belongs) ---------- */
.photo-slot {
  position: relative; display: grid; place-items: center; align-content: center; gap: 0.5rem; text-align: center;
  aspect-ratio: 4 / 3; padding: var(--s3); background: var(--linen); border: 1.5px dashed var(--line-strong); color: var(--sage-ink);
}
.photo-slot svg { width: 30px; height: 30px; }
.photo-slot strong { font-family: var(--label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.photo-slot span { font-size: 0.9rem; max-width: 30ch; color: rgba(47, 80, 97, 0.85); }
.photo-slot--portrait { aspect-ratio: 4 / 5; }
.photo-slot--wide { aspect-ratio: 16 / 9; }

/* ---------- Project galleries ---------- */
.case { display: grid; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line-strong); }
.case:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .case { grid-template-columns: 0.8fr 1.6fr; gap: var(--s6); align-items: start; } .case__text { position: sticky; top: 120px; } }
.case__text { display: grid; gap: var(--s2); }
.case__text h2 { font-size: var(--step-3); }
.case .project__meta { justify-content: flex-start; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.case__copy { display: grid; gap: var(--s2); }
.tag-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-row li { font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.2rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--linen); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery--wide a { aspect-ratio: 3 / 2; }
.gallery--boards a { aspect-ratio: 16 / 10; background: #fff; }
.gallery--boards img { object-fit: contain; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(31, 52, 63, 0.88); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto; }
.lightbox__cap { color: var(--cream); font-size: 0.9rem; text-align: center; margin: 0.75rem auto 0; }
.lightbox__close {
  position: fixed; top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--cream); color: var(--teal); border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Booking calendar (Google appointment schedule) ---------- */
.booking { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.booking iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 700px) { .booking iframe { height: 1150px; } }

/* ---------- Partner gift page: password gate ---------- */
.gate-section { min-height: 60vh; display: flex; align-items: center; }
.gate-section .wrap { display: flex; justify-content: center; }
.gate { display: grid; gap: var(--s3); max-width: 32rem; width: 100%; padding: var(--s5) var(--s4); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.gate h1 { font-size: var(--step-4); }
.gate .form { gap: var(--s2); }
.gate .input { text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Instagram videos ---------- */
.reels { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.reel { min-width: 0; }
.reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.reel__empty { aspect-ratio: 9 / 16; max-height: 520px; }
.reel__fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; aspect-ratio: 9 / 16; max-height: 520px;
  background: var(--teal); color: var(--cream); text-decoration: none; font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.08em;
}
.reel__fallback svg { width: 36px; height: 36px; }

/* ---------- Journal article page ---------- */
.article { padding-block: var(--s5) var(--s6); }
.article .wrap { max-width: 48rem; }
.article__head { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.article__head .text-link { justify-self: start; }
.article__cover { margin-bottom: var(--s5); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { display: grid; gap: var(--s3); font-size: 1.1rem; }
.article__body h2 { font-size: var(--step-3); margin-top: var(--s3); }
.article__body ul, .article__body ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.article__body li::marker { color: var(--sage); }

/* ---------- Floor plan section on the home page ---------- */
.plan-section .plan-layout { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1000px) { .plan-section .plan-layout { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); } }
.plan-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.plan-points li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: baseline; }
.plan-points b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--terracotta-ink); }

/* ==========================================================================
   Phone & tablet tuning
   ========================================================================== */

/* Swipe rows: on phones and tablets, card groups become a sideways-swipe row
   with the next card peeking in, instead of a long vertical stack. */
@media (max-width: 999px) {
  .grid.swipe, .quotes.swipe, .tiers.swipe, .reels.swipe, .principles.swipe {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(84%, 340px);
    gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; padding-bottom: 0.25rem;
    scrollbar-width: none; align-items: stretch;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; min-width: 0; }
  .quotes.swipe .quotes__side { display: contents; }
  .tiers.swipe .tier + .tier { border-left: 1px solid var(--line); }
  .swipe-hint { display: flex; align-items: center; gap: 0.4rem; margin-top: var(--s2); font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--sage-ink); }
  .section--dark .swipe-hint { color: var(--mint); }
  .swipe-hint svg { width: 16px; height: 16px; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .grid.swipe, .quotes.swipe, .tiers.swipe, .reels.swipe, .principles.swipe { grid-auto-columns: 44%; }
}
@media (min-width: 768px) and (max-width: 999px) {
  .grid.swipe, .quotes.swipe, .tiers.swipe, .reels.swipe, .principles.swipe { margin-inline: -2rem; padding-inline: 2rem; scroll-padding-inline: 2rem; }
}
@media (min-width: 1000px) { .swipe-hint { display: none; } }

/* "What's included" lists that fold away on phones */
.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-family: var(--label); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--teal-blue);
}
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
@media (min-width: 768px) { .more summary { display: none; } }

/* Project galleries: "View all photos" button */
.gallery a.is-extra { display: none; }
.gallery-more { grid-column: 1 / -1; justify-self: start; margin-top: 0.4rem; min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* Photo viewer arrows */
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(251, 247, 242, 0.92); color: var(--teal); border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
.lightbox__count { color: rgba(251, 247, 242, 0.8); font-family: var(--label); font-size: 0.75rem; text-align: center; margin-top: 0.25rem; }

/* Tablet: stacked photos stay a sensible size instead of filling the screen */
@media (max-width: 899px) {
  .split > .gable-outline, .split > .photo-frame { width: 100%; max-width: 24rem; margin-inline: auto; }
  .service { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.5rem 0.75rem; padding-block: var(--s3); }
  .service > :not(.service__no) { grid-column: 2; }
  .service__no { grid-row: 1; font-size: 1rem; padding-top: 0.3rem; }
  .service__price strong { display: inline; margin-left: 0.3rem; }
  .service__price .quote { display: inline; }
  .footer-top > div:nth-child(2) .footer-list { grid-template-columns: 1fr 1fr; column-gap: var(--s3); }
}

/* Phone: tighter rhythm, smaller jumps between sections */
@media (max-width: 767px) {
  .section { padding-block: 3.25rem; }
  .page-intro { padding-block: 2.25rem; }
  .section-head { margin-bottom: var(--s4); gap: var(--s2); }
  .stack--lg { gap: var(--s4); }
  .lede { font-size: 1.08rem; }
  .mt-5 { margin-top: var(--s4); }
  .case { padding-block: var(--s4); gap: var(--s3); }
  .step { padding-block: var(--s3); gap: var(--s2); grid-template-columns: 3rem 1fr; }
  .step__no { width: 3rem; height: 3rem; font-size: 1.15rem; }
  .step > :not(.step__no) { grid-column: 2; }
  .faq summary { padding-block: var(--s2); }
  .stage { gap: var(--s1); }
  .stage__photo { aspect-ratio: 4 / 3; }
  .site-footer { padding-block: var(--s5) var(--s3); }
  .footer-top { gap: var(--s4); padding-bottom: var(--s4); }
}
/* Phone: home page keeps a brief services list and a shorter photo; portfolio projects get compact */
@media (max-width: 767px) {
  .service-list--brief .service > p:not(.service__price) { display: none; }
  .plan-section .plan-points { display: none; }
  .photo-frame { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .gallery a, .gallery--wide a, .gallery--boards a { aspect-ratio: 1 / 1; }
  .gallery a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .case .tag-row { display: none; }
  .case__copy { position: relative; display: grid; gap: var(--s2); max-height: 9.5em; overflow: hidden; transition: max-height 300ms var(--ease); }
  .case__copy::after { content: ""; position: absolute; inset: auto 0 0; height: 3em; background: linear-gradient(transparent, var(--cream)); pointer-events: none; }
  .case__copy.is-open { max-height: 60em; }
  .case__copy.is-open::after, .case__copy.is-short::after { display: none; }
  .case__copy.is-short { max-height: none; }
  .read-more { justify-self: start; background: none; border: 0; padding: 0; min-height: 44px; font-family: var(--label); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--teal-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .footer-top > div:nth-child(2) .footer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
  .footer-list li, .footer-list a { font-size: 0.92rem; }
  .footer-list a { min-height: 30px; overflow-wrap: anywhere; }
  .footer-logo { width: 220px; }
}
@media (min-width: 768px) { .read-more { display: none; } }
/* Tablet: portfolio galleries become a wide cover with a row of four thumbnails */
@media (min-width: 768px) and (max-width: 999px) {
  .case { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s4); align-items: start; padding-block: var(--s4); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery a, .gallery--wide a, .gallery--boards a { aspect-ratio: 1 / 1; }
  .gallery a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .plan__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
  .plan__tab { padding: 0.4rem 0.15rem; font-size: 0.7rem; letter-spacing: 0; text-align: center; white-space: nowrap; }
}

/* ---------- Fold-away content: the heading stays, the rest opens on tap ---------- */
.fold > summary { list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary.btn:hover svg { transform: none; }
.fold > summary .icon { width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: transform 250ms var(--ease); }
.fold > summary .icon svg { width: 12px; height: 12px; }
.fold[open] > summary .icon { transform: rotate(45deg); }
.fold .when-open, .fold[open] .when-closed { display: none; }
.fold[open] .when-open { display: inline; }
.fold[open] > summary { margin-bottom: var(--s5); }
.section-head:has(+ .fold:not([open])) { margin-bottom: var(--s3); }
.section--fold:has(.fold:not([open])) { padding-block: var(--s5); }
@media (max-width: 767px) {
  .fold[open] > summary { margin-bottom: var(--s4); }
  .section--fold:has(.fold:not([open])) { padding-block: 2.5rem; }
}

/* Journal: upcoming article titles, no photos */
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); } }
.upcoming li { display: grid; gap: 0.4rem; align-content: start; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.upcoming h3 { font-size: 1.2rem; }
.upcoming p { margin: 0; }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; margin-inline: auto; }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
