/* Informational pages: shared typography, editorial layouts and service sequence. */
.page-content .nav,
.page-project .nav { background: var(--bg); z-index: 80; }
.page-content .content,
.page-project .project { position: relative; z-index: 0; }
.content { padding: calc(var(--nav-h) + env(safe-area-inset-top)) var(--gutter) 0; font-size: var(--fs-body); }
.content-inner { max-width: 1200px; margin: 0 auto; }
.content-title { font-family: var(--f-display); font-size: var(--fs-display); line-height: 1.14; max-width: 13em; }
.content-lead { max-width: 42em; margin-top: 28px; font-size: var(--fs-lead); line-height: 1.65; }
.content-band h2,
.split-copy h2 { font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1.3; }
/* Full-bleed band: cancels the .content gutter with negative margins
   rather than 100vw (which overflows by the scrollbar width). Horizontal
   padding lives on .content-inner (heading / intro only); the deck breaks
   out so cards sit flush on the band — no --bg gutters beside them.
   No overflow on this section or any ancestor: that would break sticky. */
.content-band {
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--bg); color: var(--ink);
}
.content-band > .content-inner { padding: 0 var(--gutter); }
/* The band is --bg now, so the split after it keeps its gold top rule
   (the rule above What you decide). */
.content-band :focus-visible { outline-color: var(--ink); }
.content-band ::selection { background: var(--ink); color: var(--bg); }
/* Band and deck share the page --bg. li is painted --bg so the side gaps
   beside a card that scales down mid-stack hide the card below it. */
.content-section-intro { max-width: 44em; margin-top: 20px; font-size: var(--fs-body); line-height: 1.85; }
.content-prose { font-size: var(--fs-body); line-height: 1.9; }
.content-prose p + p { margin-top: 1.2em; }
.service-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px; margin-top: 40px; counter-reset: service;
}
.service-list > article { counter-increment: service; min-width: 0; }
.service-list > article::before {
  content: counter(service, decimal-leading-zero);
  display: block; font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 32px); line-height: 1; color: var(--gold); margin-bottom: 16px;
}
.service-list h3 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.4; margin-bottom: 14px; }
.service-list p { max-width: 34em; line-height: 1.85; font-size: var(--fs-body); }
/* Sticky deck: each li sticks, the next one slides over it.
   --i staggers the stick point (set in reveal.js). --stack (0–1) is how far
   the next card has covered this one, and lives on .service-card so it does
   not share a transform with [data-reveal] on .service-step.
   The sticky range is the list's content box, and a sticky item's margin
   counts as part of that item: a card is released when the list's bottom
   reaches its margin-box bottom. Every card's margin box therefore ends at
   the same line (stick point + card + margin is equal for all), so the
   whole stack is released on the same scroll position and leaves together.
   The ::after block is the dwell where all ten rest before that happens.
   Travel, card height and tail were cut on 2026-10-13 (40vh → 14vh,
   78svh → 62svh, image 52svh → 42svh): each card used to cost about 1.2
   screens of scroll and the section ran to roughly 11 screens.
   --deck-card-h is the tallest card that still clears the lowest stick
   point (nav + 24px + last-index × 12px stagger) inside the viewport.
   --step-image is also capped by width (34vw, 480px max), so below about
   1280px the picture shrinks and the text column keeps room. The cap uses
   vw only: it never moves with the iOS toolbar, so the deck decision in
   reveal.js stays stable. */
.service-process {
  --stick-base: calc(var(--nav-h) + env(safe-area-inset-top) + 24px);
  --stick-gap: 12px;
  --deck-last: 9;
  --deck-travel: 14vh;
  --deck-tail: 18vh;
  --deck-slack: 32px;
  --deck-card-h: min(62svh, calc(100svh - var(--stick-base) - var(--deck-last) * var(--stick-gap) - var(--deck-slack)));
  --step-chrome: 112px;
  --step-pad: clamp(24px, 4vw, 48px);
  --step-image: min(42svh, calc(var(--deck-card-h) - var(--step-chrome)), 34vw, 480px);
  /* Break out of content-inner padding but keep ≥12px from the viewport
     edge so cards never kiss the window. */
  list-style: none; padding: 0; margin: 48px calc(-1 * var(--gutter) + 12px) 0; counter-reset: process;
}
.service-process::after {
  content: "";
  display: block;
  height: var(--deck-tail);
}
.service-process > li {
  counter-increment: process; position: sticky; min-width: 0;
  top: calc(var(--stick-base) + var(--i, 0) * var(--stick-gap));
  margin-bottom: calc(var(--deck-travel) + (var(--deck-last) - var(--i, 0)) * var(--stick-gap));
  isolation: isolate;
  /* Match the band so the side gaps beside a stacked card stay clean. */
  background: var(--bg);
}
/* Small-viewport probe for reveal.js. svh ignores the iOS toolbar. */
.deck-viewport-probe {
  position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh;
  visibility: hidden; pointer-events: none;
}
.service-card {
  position: relative;
  transform: scale(calc(1 - var(--stack, 0) * 0.06));
  transform-origin: top center;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: var(--bg);
  opacity: calc(var(--stack, 0) * 0.6);
  pointer-events: none;
}
.service-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) var(--step-image);
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 1em;
  align-items: start;
  align-content: start;
  min-width: 0;
  /* Card height follows the picture (top-aligned with the text), with no
     spare band underneath. Every card still gets the same height wherever
     the text is shorter than the picture, which the deck release needs. */
  min-height: min(var(--deck-card-h), calc(var(--step-image) + 2 * var(--step-pad)));
  background: var(--bg); border: 1px solid var(--gold); border-radius: 2px;
  padding: var(--step-pad);
}
/* Equal card heights while the deck is on (measured by reveal.js), so all
   ten release together on phones too. */
.service-process:not(.is-flat) .service-step { min-height: max(var(--deck-step-h, 0px), min(var(--deck-card-h), calc(var(--step-image) + 2 * var(--step-pad)))); }
.service-step::before {
  content: counter(process, decimal-leading-zero);
  /* The title sits on the numeral's baseline; the body hangs under the
     title, leaving the numeral column clear below. */
  grid-column: 1; grid-row: 1;
  align-self: baseline;
  font-family: var(--f-display); font-size: clamp(48px, 6vw, 80px);
  line-height: 1; color: var(--gold);
}
.service-step h3 { grid-column: 2; grid-row: 1; align-self: baseline; margin: 0; }
.service-step .content-prose { grid-column: 2; grid-row: 2; min-width: 0; }
/* The picture used to span both text rows, so those rows split its height
   and the title sat a long way above the body. It is positioned on the
   reserved third column instead (top-aligned with the numeral), and no
   longer sizes the text rows. */
.service-step .service-step-image {
  position: absolute;
  top: var(--step-pad);
  right: var(--step-pad);
  width: var(--step-image);
  height: var(--step-image);
  margin: 0;
}
.service-step-image { overflow: hidden; aspect-ratio: 1; }
.service-step-image img { width: 100%; height: 100%; object-fit: cover; }
/* Card titles use the display face like every other heading on the page. */
.service-process h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; }
.service-process .content-prose { font-size: var(--fs-lead); line-height: 1.75; }
.content-notes { --dot-size: 9px; --dot-x: 8px; list-style: none; padding-left: 0; margin: 28px 0 0; max-width: 48em; }
/* Gold circle bullet (shared rule below), centred on the first line. */
.content-notes li {
  --notes-lh: 1.85;
  /* Half the first line box: dot centre sits on the first line at any size. */
  --dot-y: calc(var(--notes-lh) * 1em / 2);
  position: relative; padding-left: 32px; line-height: var(--notes-lh);
}
.content-notes li + li { margin-top: 20px; }
/* Full-bleed split sections (What we do / What you decide / notes).
   Cancel .content gutter (not 100vw). Photo column stretches the full
   section height and fills absolute inset — flush to the gold borders and
   the left or right viewport edge. Do NOT put data-reveal on the photo:
   translateY + opacity left a cream strip under the top rule. Text keeps
   the nav logo gutter. Height is content-driven. Frame drifts via
   translate (--py × --drift), not transform. */
.split-section { margin: 0 calc(-1 * var(--gutter)); }
/* Full-width gold rules are opt-in and only mark a chapter change (hero
   into What we do, into / out of How we work, above the notes, before the
   closing CTA); other splits meet on space. */
.split-section.rule-top { border-top: 1px solid var(--gold); }
.split-section.rule-bottom { border-bottom: 1px solid var(--gold); }
/* Text measure is capped at 36em. The copy column is 48% or the capped
   text plus its padding, whichever is narrower; the photo takes the rest,
   so on very wide screens (about 1820px and up) the picture grows instead
   of the lines getting longer. */
.split-layout {
  --split-copy-pad: clamp(20px, 3vw, 48px);
  --split-copy-max: calc(36em + var(--gutter) + var(--split-copy-pad));
  display: grid;
  grid-template-columns: minmax(0, min(48%, var(--split-copy-max))) minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
  min-height: 0;
}
.split-section.is-photo-left .split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(48%, var(--split-copy-max)));
}
.split-copy > * { max-width: 36em; }
.split-copy {
  min-width: 0;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 48px) clamp(40px, 6vw, 80px) var(--gutter);
}
.split-section.is-photo-left .split-copy {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 80px) clamp(20px, 3vw, 48px);
}
@media (min-width: 1280px) {
  /* Wide screens: more air on all four sides for an editorial feel. Both
     sides grow, so the text no longer lines up with the nav gutter here. */
  .split-layout { --split-copy-max: calc(36em + 2 * clamp(72px, 6vw, 112px)); }
  .split-copy,
  .split-section.is-photo-left .split-copy {
    padding: clamp(112px, 9vw, 160px) clamp(72px, 6vw, 112px);
  }
  /* What we do: one service per row, the numeral hung in its own column
     beside title and text, like a magazine contents list. */
  .split-copy .service-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-copy .service-list > article {
    display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 20px;
  }
  .split-copy .service-list > article::before { grid-row: 1 / span 2; margin: 4px 0 0; }
  .split-copy .service-list h3 { margin-bottom: 8px; }
}
/* Services hero: a split with the photo on the right. Text keeps the logo
   gutter on the left and sits low in a tall frame, magazine-opener style;
   the lead stays a step below the display title.
   Shared hero default; Studio and Contact override it below. */
.split-section.is-hero .split-photo-frame img { object-position: 50% 35%; }
/* Services hero: show only the upper half of the photo (the book on the lit
   shelf) — anchor the cover crop to the top edge in every layout. */
.page-services .split-section.is-hero .split-photo-frame img { object-position: 50% 0%; }
.split-section.is-hero .content-lead { max-width: 22em; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.55; }
/* Side by side only; stacked splits are unchanged. */
@media (min-width: 1024px) {
  /* Corner-to-corner photos: photo-right splits (hero, What you decide, When
     you are ready) mirror the photo-left columns, so every photo's inner edge
     sits on one vertical line and meets the previous photo's opposite corner.
     The copy column takes the 1fr; text stays capped at 36em. */
  .split-section.is-photo-right .split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(48%, var(--split-copy-max)));
  }
  /* First split after the hero (What we do): its heading sits near the top
     of the photo instead of 112–160px below it. */
  .split-section.is-hero + .split-section .split-copy { padding-top: clamp(80px, 6.5vw, 96px); }
  .split-section.is-hero .split-layout { min-height: clamp(520px, 74svh, 780px); }
  .split-section.is-hero .split-copy {
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(72px, 8vw, 128px) clamp(48px, 6vw, 112px) clamp(72px, 7vw, 120px) var(--gutter);
  }
  /* Photo-left hero (About Studio): mirror the side padding, so the text
     keeps the gutter on the outer (right) edge. */
  .split-section.is-hero.is-photo-left .split-copy {
    padding-left: clamp(48px, 6vw, 112px); padding-right: var(--gutter);
  }
}
/* What you decide: the three stages read as a timeline in the half-width
   copy column — a gold dot level with each title, joined by a hairline to
   the next stage. */
.split-section .decision-list {
  --decision-gap: 36px;
  --dot-size: 9px;
  --dot-x: 8px;
  /* Explicit title line height: `normal` varies by font (Prata vs Noto
     Serif TC), which pushed the dot above the Chinese titles. */
  --decision-title-lh: 1.3;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--decision-gap); margin-top: 36px;
}
.split-section .decision-list > div {
  position: relative; min-width: 0;
  padding: 0 0 0 32px;
  /* Half the title's first line box (em math: the dot lives on the div,
     so 1lh would read the div's line height, not the h3's). */
  --dot-y: calc(var(--fs-h3) * var(--decision-title-lh) / 2);
}
.split-section .decision-list h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--decision-title-lh); margin-bottom: 14px; }
.split-section .decision-list p { line-height: 1.85; }
/* Small gold circle bullet, one rule for the What you decide timeline and
   the notes list. Each list sets --dot-size and --dot-y (first-line centre);
   --dot-x is the dot centre's inset from the text column edge, which pulls
   the dot towards its text instead of hanging half outside the column. */
.split-section .decision-list > div::before,
.content-notes li::before {
  content: ""; position: absolute; left: var(--dot-x); top: var(--dot-y);
  width: var(--dot-size); height: var(--dot-size);
  border: 1px solid var(--gold); border-radius: 50%; background: var(--bg);
  transform: translate(-50%, -50%);
}
.split-section .decision-list > div:not(:last-child)::after {
  content: ""; position: absolute; left: var(--dot-x); width: 1px; background: var(--gold);
  top: calc(var(--dot-y) + var(--dot-size) / 2);
  bottom: calc(-1 * var(--decision-gap) - var(--dot-y) + var(--dot-size) / 2);
  transform: translateX(-50%);
}
.split-photos {
  position: relative;
  margin: 0;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: var(--bg);
}
.split-photo {
  position: absolute; inset: 0; margin: 0; width: 100%; height: 100%;
  --drift: 1.1;
}
.split-photo[data-parallax] { overflow: hidden; }
.split-photo-frame {
  overflow: hidden; background: var(--bg);
  position: absolute; inset: 0; width: 100%; height: 100%;
  translate: 0 calc(var(--py, 0px) * var(--drift, 1));
  /* reveal.js caps --py at 6% of the frame height, so the drift reaches
     0.06 × --drift per side. The zoom must overhang at least that much on
     each side (plus 0.5% for sub-pixel rounding), or the cream frame shows as
     a strip at the top / bottom edge. Was 1.08 (4% per side) — too little. */
  scale: calc(1.01 + 0.12 * var(--drift, 1));
}
.split-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Closing CTA (Services "When you are ready"): display-size heading, more
   air, and Contact us as a bordered text button (52px tall). When splits
   stack the photo is dropped, so the page ends on the call to action. */
.split-section.is-closing .split-copy { padding-top: clamp(64px, 10vw, 176px); padding-bottom: clamp(64px, 10vw, 176px); }
.split-section.is-closing h2 { font-size: var(--fs-display); line-height: 1.14; }
.content-link.split-action {
  margin-top: 36px; min-height: 52px; padding: 0 28px; gap: 12px;
  border: 1px solid var(--ink); text-decoration: none;
  font-size: var(--fs-ui); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.content-link.split-action:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.content-link.split-action:hover .cta-arrow { transform: translateX(4px); }
.split-action .cta-arrow { transition: transform .25s ease; }
.content-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.content-link .cta-arrow { display: block; flex: 0 0 auto; }
.content-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.content-quote {
  margin: 32px 0 0; max-width: 28em; font-family: var(--f-display);
  font-size: var(--fs-quote); line-height: 1.6;
}
/* About Studio splits: hero (title + quote), the three studio paragraphs,
   then the Lead Designer. Crops keep each subject in frame in tall desktop
   columns and in the 16:9 / 3:2 stacked frames: the wall shelf and its
   dried flowers, the open magazine on the sofa, Lewis's face in the top third. */
.studio-bio { margin-top: 24px; }
.page-studio .split-section.is-hero .split-photo-frame img { object-position: 60% 50%; }
.studio-intro-photo img { object-position: 40% 70%; }
.studio-lead-photo img { object-position: 50% 24%; }
/* Lead Designer, side by side: a taller section with more air above and
   below the text, growing with the screen (about 123 / 154 / 173 / 230px
   at 1024 / 1280 / 1440 / 1920). After the split padding rules, so it wins. */
@media (min-width: 1024px) {
  .page-studio .studio-lead .split-copy { padding-top: clamp(120px, 12vw, 240px); padding-bottom: clamp(120px, 12vw, 240px); }
}
/* Contact splits: hero (title + quote), the contact details, then the
   enquiry form as the closing split. The hero lead keeps the approved 75%
   of --fs-quote (wins over the shared hero lead size). Crops keep the
   coffee table and the dining chairs in frame, tall or landscape. */
.page-contact .split-section.is-hero .content-quote { font-size: calc(var(--fs-quote) * 0.75); }
.page-contact .split-section.is-hero .split-photo-frame img { object-position: 35% 50%; }
.contact-info-photo img { object-position: 40% 55%; }
.contact-details { margin: 0; }
/* Fixed label column (not auto): each row is its own grid, so auto would
   size every row to its own label and the values would not line up.
   11em fits the longest label, "電話 / WhatsApp", plus the icon. */
.contact-row {
  display: grid; grid-template-columns: 11em minmax(0, 1fr);
  gap: 12px 28px; align-items: center;
  padding: clamp(20px, 3vw, 36px) 0; border-top: 1px solid var(--gold);
}
/* The section's gold rule already sits above the list. */
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact-row:last-child { padding-bottom: 0; }
/* Side by side below 1440px the copy column is too narrow for the 11em
   label column (the email broke mid-word at 1024), so each label sits
   above its value, as on phones. */
@media (min-width: 1024px) and (max-width: 1439px) {
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
}
.contact-row dt {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-body); line-height: 1.4; color: var(--muted);
}
.contact-row dt svg { display: block; flex: 0 0 auto; }
.contact-row dd { margin: 0; min-width: 0; }
/* Fixed 18px at every width (client request); the WhatsApp / Facebook /
   Instagram links keep their smaller --fs-facts size via .contact-social. */
.contact-value {
  font-family: var(--f-body); font-size: var(--fs-contact-value);
  line-height: 1.6; overflow-wrap: anywhere;
}
.contact-value a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.contact-value a:hover {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 6px;
}
.contact-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.contact-handle { margin-right: 6px; }
.contact-social {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
  font-size: var(--fs-facts);
}
.contact-sep { color: var(--muted); }
/* External-link arrow: inline SVG instead of the ↗ glyph, which rendered
   differently per device font. Sized to the glyph's ink box (~0.75em) and
   centred on the text by the link's inline-flex. */
.link-arrow { flex: 0 0 auto; width: .75em; height: .75em; margin-left: .3em; }
.contact-appointment { display: block; }
/* Enquiry form (sent to Web3Forms by js/contact-form.js). Inputs stay at
   --fs-body, which never drops below 16px, so iOS Safari does not zoom on
   focus. In the two-column layout every field reserves room for its
   longest error (two lines for inputs, one for the message), and the
   invalid 2px border trades 1px of padding, so showing or clearing errors
   never moves anything; the row gap is small because the reserved error
   line already spaces the rows. Single column (≤760px) drops the reserve. */
.contact-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 32px; max-width: 46em; margin-top: 36px; }
.form-field { display: grid; align-content: start; gap: 10px; min-width: 0; }
.form-field:has(textarea), .form-actions, .form-status { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-body); line-height: 1.4; color: var(--muted); }
.form-optional { font-size: var(--fs-meta); }
.form-field input,
.form-field textarea {
  width: 100%; margin: 0; padding: 9px 12px; border: 1px solid var(--muted); border-radius: 0;
  background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-body); line-height: 1.5;
  scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top) + 24px);
  -webkit-appearance: none; appearance: none;
}
.form-field textarea { min-height: 10em; resize: none; }
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form-field [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; padding: 8px 11px; }
.form-error { --error-lines: 2; min-height: calc(var(--error-lines) * 1.5em); margin-top: -4px; font-size: var(--fs-meta); font-weight: 500; line-height: 1.5; color: var(--ink); }
.form-field:has(textarea) .form-error { --error-lines: 1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Off-screen honeypot; see contact.html. Not display:none on purpose. */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Same 52px bordered text button as the closing .split-action, without
   the arrow. */
.form-send {
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-ui); font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.form-send:hover { background: var(--ink); color: var(--bg); }
.form-send:disabled { cursor: progress; opacity: .6; }
.form-send:disabled:hover { background: transparent; color: var(--ink); }
.form-status { font-size: var(--fs-body); line-height: 1.7; }
html[data-lang="zh"] .content { letter-spacing: .035em; }

/* Scroll reveal + image drift. Homepage does not load this file.
   Parallax writes --py every frame, so only `scale` is transitioned. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { overflow: hidden; }
[data-parallax] > img {
  transform: translate3d(0, var(--py, 0px), 0);
  scale: 1.12;
  transition: scale .6s var(--ease);
}
/* Cover image carries the cross-page view-transition-name, so it stays
   untransformed until that transition has finished. A cover that only
   gets its bitmap after first paint (cold cache) fades in. */
.p-cover:not(.is-parallax-on) > img { transform: none; scale: 1; transition: opacity .4s ease; }
.p-cover.is-parallax-on > img {
  transform: translate3d(0, var(--py, 0px), 0);
  scale: 1.12;
  transition: scale 1s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .p-shot[data-parallax]:hover > img { scale: 1.17; }
}
html.no-js [data-reveal] { opacity: 1; transform: none; transition: none; }
html.no-js [data-parallax] > img,
html.no-js .p-cover.is-parallax-on > img { transform: none; scale: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-parallax] > img,
  .p-cover.is-parallax-on > img,
  .p-shot[data-parallax]:hover > img {
    transform: none;
    scale: 1;
    transition: none;
  }
  .split-photo-frame { translate: none; scale: 1; }
}
/* Splits stack up to 1023px; 1024 (iPad landscape) stays side by side.
   Narrower, a column was ~350px of text beside a photo cropped to 1:3. Stacked, the photo keeps a landscape
   frame (16:9 on tablets, 3:2 on phones). */
@media (max-width: 1023px) {
  .split-layout,
  .split-section.is-photo-left .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Text first, photo after, in every stacked split: the page opens on
     its title, and copy / photo alternate down the page. Photos are not
     focusable, so the visual order does not change the tab order. */
  .split-copy,
  .split-section.is-photo-left .split-copy {
    order: -1;
    padding: clamp(40px, 6vw, 80px) var(--gutter);
  }
  .split-photos {
    max-width: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .split-photo { position: absolute; inset: 0; }
  .split-photo-frame { position: absolute; inset: 0; height: auto; }
  /* Closing CTA: no photo, the page ends on the call to action. */
  .split-section.is-closing .split-photos { display: none; }
  /* About Studio: more air above the Lead Designer heading. */
  .page-studio .studio-lead .split-copy { padding-top: clamp(64px, 14vw, 96px); }
}
@media (max-width: 760px) {
  .split-photos { aspect-ratio: 3 / 2; }
  /* Phone card: numeral and a small illustration share the first row, then
     title and text run full width — no long gap above a picture at the end. */
  .service-step {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none;
    min-height: 0; align-items: start; align-content: start; row-gap: .75em;
  }
  .service-step::before { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(40px, 12vw, 56px); }
  .service-step h3,
  .service-step .content-prose { grid-column: 1 / -1; grid-row: auto; }
  .service-step .service-step-image {
    grid-column: 2; grid-row: 1;
    position: static; top: auto; right: auto; transform: none;
    justify-self: end; height: auto; margin: 0;
    /* --step-image-fit is set by reveal.js only if a card would not fit. */
    width: min(112px, 30vw, var(--step-image-fit, 112px));
  }
  .service-process:not(.is-flat) .service-step { min-height: var(--deck-step-h, 0px); }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
  /* Single column: no reserved error lines. Nothing sits beside a field,
     so an error simply pushes the fields below it down; the row gap does
     the spacing the reserved lines used to. */
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form-error { min-height: 0; }
  .form-error:empty { display: none; }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
/* Deck falls back to a plain stack: reveal.js adds .is-flat when motion is
   reduced, the screen is too short, or a card would sit under the nav and
   get clipped. The media query covers the first two before JS runs. */
@media (prefers-reduced-motion: reduce), (max-height: 560px) {
  :is(.service-process, .service-process .service-card)::after { content: none; }
  .service-process > li { position: static; margin-bottom: 24px; }
  .service-card { transform: none; }
}
:is(.service-process.is-flat, .service-process.is-flat .service-card)::after { content: none; }
.service-process.is-flat > li { position: static; margin-bottom: 24px; }
.service-process.is-flat .service-card { transform: none; }
