@font-face {
  font-family: "Vietlinker Sans";
  src: url("/demos/realtor/fonts/vietlinker-sans-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Vietlinker Sans";
  src: url("/demos/realtor/fonts/vietlinker-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Vietlinker Serif";
  src: url("/demos/realtor/fonts/vietlinker-serif-normal-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Vietlinker Serif";
  src: url("/demos/realtor/fonts/vietlinker-serif-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Vietlinker Serif";
  src: url("/demos/realtor/fonts/vietlinker-serif-italic-vietnamese.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Vietlinker Serif";
  src: url("/demos/realtor/fonts/vietlinker-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --paper: #f8f2e7;
  --paper-warm: #eee3d2;
  --paper-pale: #fffaf2;
  --ink: #24342f;
  --muted: #69716c;
  --jade: #173d34;
  --jade-deep: #102f28;
  --sage: #a9bca8;
  --clay: #c96d4e;
  --clay-dark: #9e4932;
  --mustard: #e0b86e;
  --line: rgb(36 52 47 / 17%);
  --line-light: rgb(255 255 255 / 19%);
  --sans: "Vietlinker Sans", "Segoe UI", Arial, sans-serif;
  --serif: "Vietlinker Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body,
h1,
h2,
h3,
p,
figure,
figcaption,
blockquote,
ol,
ul {
  margin: 0;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgb(36 52 47 / 5%) 0.55px, transparent 0.7px),
    linear-gradient(135deg, rgb(255 255 255 / 18%), transparent 46%);
  background-size: 5px 5px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
select {
  cursor: pointer;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper-pale);
  color: var(--jade);
  font-size: 12px;
  font-weight: 760;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.demo-notice {
  position: relative;
  z-index: 30;
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 7px 18px;
  background: var(--clay);
  color: #fffaf3;
  text-align: center;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgb(248 242 231 / 92%);
  backdrop-filter: blur(15px);
  transition:
    height 260ms var(--ease),
    box-shadow 260ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  box-shadow: 0 13px 38px rgb(28 49 42 / 9%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 450;
  line-height: 1;
}

.brand-copy {
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.2em;
  line-height: 1.15;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  font-size: 6.5px;
  font-weight: 690;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 44px);
  margin-left: auto;
  margin-right: clamp(22px, 3.4vw, 48px);
  font-size: 10px;
  font-weight: 690;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 230ms var(--ease);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--jade);
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-button i {
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.35;
}

.header-cta {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  background: var(--jade);
  color: #fff;
  font-size: 9px;
  font-weight: 740;
}

.header-cta b,
.button b,
.text-link b,
.magazine-layout button b,
.submit-button b {
  transition: transform 210ms var(--ease);
}

.header-cta:hover b,
.button:hover b,
.text-link:hover b,
.magazine-layout button:hover b,
.submit-button:hover b {
  transform: translate(3px, -3px);
}

.menu-button,
.mobile-menu {
  display: none;
}

/* First viewport: editorial split + film */
.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 116px);
  grid-template-columns: minmax(370px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  padding: clamp(50px, 6vw, 90px) clamp(22px, 5vw, 82px) clamp(60px, 7vw, 105px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 8%;
  left: -8%;
  width: 33vw;
  aspect-ratio: 1;
  border: 1px solid rgb(36 52 47 / 9%);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.issue-line {
  display: grid;
  grid-template-columns: auto 45px auto;
  gap: 11px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 40px;
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.issue-line i {
  height: 1px;
  background: var(--ink);
  opacity: 0.42;
}

.eyebrow,
.section-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--clay-dark);
}

.hero h1,
.section-heading h2,
.voices h2,
.journal h2,
.services h2,
.process h2,
.contact h2,
.timeline-copy h3,
.film-card h3,
.magazine-layout h3,
.service-ledger h3,
.process-path h3 {
  font-family: var(--serif);
  text-wrap: balance;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(50px, 5.3vw, 78px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.hero h1 em,
.section-heading h2 em,
.voices h2 em,
.journal h2 em,
.services h2 em,
.process h2 em,
.contact h2 em {
  color: var(--clay);
  font-weight: 430;
}

.hero-lede {
  max-width: 570px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 0 19px;
  font-size: 9px;
  font-weight: 760;
}

.button-clay {
  background: var(--clay);
  color: #fff;
}

.button-clay:hover {
  background: var(--clay-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 11px 0 7px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 740;
}

.hero-fineprint {
  max-width: 490px;
  padding-top: 22px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.scrapbook-frame {
  position: relative;
  z-index: 2;
  padding: clamp(10px, 1.3vw, 17px);
  background: #fffaf2;
  box-shadow:
    0 30px 75px rgb(28 49 42 / 18%),
    16px 18px 0 var(--paper-warm);
  transform: rotate(0.65deg);
}

.paper-tape {
  position: absolute;
  z-index: 5;
  width: 100px;
  height: 27px;
  background: rgb(224 184 110 / 62%);
  box-shadow: inset 0 0 0 1px rgb(120 86 34 / 10%);
  transform: rotate(-7deg);
}

.tape-one {
  top: -13px;
  left: 40%;
}

.film-window {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #263a34;
}

.film-window video {
  height: 100%;
  object-fit: cover;
}

.film-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgb(9 29 24 / 70%) 100%);
  pointer-events: none;
}

.film-control {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 14px 0 8px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 999px;
  background: rgb(16 47 40 / 75%);
  color: #fff;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.control-icon {
  display: grid;
  width: 29px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  font-size: 11px;
}

.film-duration {
  position: absolute;
  right: 17px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.feature-film figcaption {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
  padding: 15px 5px 2px;
}

.feature-film figcaption > span {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.feature-film figcaption strong,
.feature-film figcaption small {
  display: block;
}

.feature-film figcaption strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.3;
}

.feature-film figcaption small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.editorial-ribbon {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 45px);
  padding: 11px 20px;
  overflow: hidden;
  background: var(--jade);
  color: #fff;
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-align: center;
  white-space: nowrap;
}

.editorial-ribbon i {
  color: var(--mustard);
  font-style: normal;
}

.section-pad {
  padding: clamp(85px, 10vw, 155px) clamp(22px, 6vw, 96px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: 9vw;
  align-items: end;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--jade);
}

.section-kicker.light {
  color: var(--sage);
}

.section-kicker span:first-child {
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.section-heading h2,
.voices h2,
.journal h2,
.services h2,
.process h2,
.contact h2 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 450;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.heading-note {
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.heading-note strong {
  color: var(--clay-dark);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.15em;
}

.heading-note p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.78;
  text-wrap: pretty;
}

/* Fictional family photo timeline */
.family-story {
  background: var(--paper-pale);
}

.story-progress {
  display: none;
}

.photo-timeline {
  position: relative;
  display: grid;
  gap: clamp(70px, 9vw, 130px);
  padding: 0;
  margin-top: clamp(72px, 9vw, 130px);
  list-style: none;
}

.photo-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 1.12fr) minmax(280px, 0.58fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.timeline-entry::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 13px;
  aspect-ratio: 1;
  border: 3px solid var(--paper-pale);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
  content: "";
  transform: translate(-50%, -50%);
}

.timeline-entry.entry-reverse {
  grid-template-columns: minmax(280px, 0.58fr) minmax(380px, 1.12fr);
}

.entry-reverse .photo-print {
  grid-column: 2;
  grid-row: 1;
}

.entry-reverse .timeline-copy {
  grid-column: 1;
  grid-row: 1;
}

.photo-print {
  position: relative;
  padding: 11px 11px 34px;
  background: #fff;
  box-shadow: 0 25px 55px rgb(34 51 45 / 16%);
}

.photo-print::after {
  position: absolute;
  top: -12px;
  left: 42%;
  width: 88px;
  height: 23px;
  background: rgb(224 184 110 / 55%);
  content: "";
  transform: rotate(-4deg);
}

.rotate-left {
  transform: rotate(-1.2deg);
}

.rotate-right {
  transform: rotate(1.1deg);
}

.photo-print img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.timeline-entry:nth-child(1) img { object-position: 68% center; }
.timeline-entry:nth-child(2) img { object-position: 70% center; }
.timeline-entry:nth-child(3) img { object-position: 67% center; }
.timeline-entry:nth-child(4) img { object-position: 66% center; }

.photo-print figcaption {
  position: absolute;
  right: 14px;
  bottom: 9px;
  color: #7c817d;
  font-family: var(--serif);
  font-size: 8px;
  font-style: italic;
  letter-spacing: 0.07em;
}

.timeline-copy {
  max-width: 450px;
}

.timeline-copy > span {
  color: var(--clay-dark);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.16em;
}

.timeline-copy h3 {
  margin: 17px 0 18px;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.timeline-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-wrap: pretty;
}

/* Fictional voices */
.voices {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(570px, 1.28fr);
  gap: 9vw;
  align-items: center;
  overflow: hidden;
  background: var(--jade-deep);
  color: #fff;
}

.voices h2 em {
  color: var(--mustard);
}

.voices-heading > p:last-child {
  max-width: 540px;
  margin-top: 29px;
  color: rgb(255 255 255 / 57%);
  font-size: 10px;
  line-height: 1.75;
}

.voice-stack {
  display: grid;
  gap: 17px;
}

.voice-note {
  position: relative;
  padding: clamp(27px, 3.3vw, 45px);
  color: var(--ink);
  box-shadow: 12px 14px 0 rgb(0 0 0 / 12%);
}

.voice-note:nth-child(1) { margin-right: 9%; transform: rotate(-0.8deg); }
.voice-note:nth-child(2) { margin-left: 8%; transform: rotate(0.7deg); }
.voice-note:nth-child(3) { margin-right: 4%; margin-left: 3%; transform: rotate(-0.35deg); }

.note-cream { background: var(--paper-pale); }
.note-clay { background: #d98a6e; }
.note-sage { background: #cbd6c7; }

.quote-mark {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--clay-dark);
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1;
  opacity: 0.7;
}

.voice-note > p {
  position: relative;
  z-index: 1;
  padding-left: 31px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.28;
}

.voice-note footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  margin-top: 21px;
  border-top: 1px solid rgb(36 52 47 / 20%);
}

.voice-note footer strong {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.voice-note footer span {
  color: rgb(36 52 47 / 65%);
  font-size: 8px;
  text-align: right;
}

/* Video library */
.film-library {
  background: var(--paper);
}

.film-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.7vw, 38px);
  margin-top: clamp(65px, 8vw, 110px);
}

.film-card {
  border-bottom: 1px solid var(--line);
}

.film-poster {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--jade);
  text-align: left;
}

.film-poster img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition:
    transform 650ms var(--ease),
    opacity 300ms ease;
}

.film-card:nth-child(1) img { object-position: 65% center; }
.film-card:nth-child(2) img { object-position: 70% center; }
.film-card:nth-child(3) img { object-position: 67% center; }

.film-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(12 39 32 / 47%) 100%);
  content: "";
}

.film-poster:hover img {
  opacity: 0.87;
  transform: scale(1.035);
}

.play-disc {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 66%);
  border-radius: 50%;
  background: rgb(19 61 52 / 72%);
  color: #fff;
  font-size: 15px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(9px);
}

.film-poster small {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.film-card-copy {
  padding: 24px 2px 28px;
}

.film-card-copy > span {
  color: var(--clay-dark);
  font-size: 7px;
  font-weight: 790;
  letter-spacing: 0.14em;
}

.film-card h3 {
  min-height: 2.6em;
  margin: 12px 0 14px;
  font-size: clamp(24px, 2.3vw, 33px);
  font-weight: 470;
  letter-spacing: -0.03em;
  line-height: 1.13;
}

.film-card-copy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.72;
}

.library-disclaimer {
  max-width: 850px;
  padding-top: 22px;
  margin: 28px 0 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
  text-align: right;
}

.video-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100svh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
}

.video-modal::backdrop {
  background: rgb(7 25 20 / 82%);
  backdrop-filter: blur(8px);
}

.modal-paper {
  position: relative;
  padding: clamp(22px, 3.2vw, 42px);
  background: var(--paper-pale);
  box-shadow: 0 35px 90px rgb(0 0 0 / 35%);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-pale);
  font-family: var(--serif);
  font-size: 26px;
}

.modal-kicker {
  padding-right: 55px;
  color: var(--clay-dark);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.15em;
}

.modal-paper h2 {
  max-width: 720px;
  margin: 16px 0 24px;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.modal-paper video {
  aspect-ratio: 16 / 9;
  background: var(--jade-deep);
}

.modal-paper > p:last-child {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

/* Magazine / reading room */
.journal {
  background: #e9ddca;
}

.journal-masthead {
  position: relative;
  display: grid;
  grid-template-columns: 0.45fr 1.45fr 0.55fr;
  gap: 35px;
  align-items: end;
  padding: 30px 0 34px;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
}

.journal-masthead > p,
.journal-masthead > span {
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.14em;
}

.journal-masthead > span {
  text-align: right;
}

.journal h2 {
  text-align: center;
}

.magazine-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 3.5vw, 52px);
  margin-top: 55px;
}

.magazine-feature {
  display: flex;
  min-height: 760px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding-right: clamp(22px, 3.4vw, 50px);
}

.magazine-feature figure {
  position: relative;
  overflow: hidden;
}

.magazine-feature figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  content: "";
}

.magazine-feature img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 67% center;
  filter: saturate(0.82) contrast(0.98);
}

.magazine-feature > div {
  padding-top: 27px;
}

.magazine-layout article span {
  color: var(--clay-dark);
  font-size: 7px;
  font-weight: 790;
  letter-spacing: 0.14em;
}

.magazine-feature h3 {
  margin: 15px 0;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 460;
  letter-spacing: -0.037em;
  line-height: 1.06;
}

.magazine-layout article p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.magazine-layout button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 8px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
  font-weight: 760;
  text-align: left;
}

.magazine-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.magazine-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgb(255 250 242 / 42%);
}

.magazine-card h3 {
  margin: 15px 0 13px;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 470;
  letter-spacing: -0.03em;
  line-height: 1.11;
}

.magazine-card button {
  margin-top: auto;
}

.magazine-card.card-photo {
  grid-row: span 2;
}

.card-photo img {
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.82);
}

.magazine-card.card-clay {
  background: var(--clay);
  color: #fff;
  transform: rotate(-0.7deg);
}

.card-clay span,
.card-clay p {
  color: rgb(255 255 255 / 74%) !important;
}

.card-clay button {
  border-top-color: rgb(255 255 255 / 30%);
}

/* Service ledger, not a card grid */
.services {
  display: grid;
  grid-template-columns: minmax(310px, 0.66fr) minmax(570px, 1.34fr);
  gap: 9vw;
  background: var(--jade);
  color: #fff;
}

.services-heading {
  position: sticky;
  top: 100px;
  align-self: start;
}

.services-heading > p:last-child {
  max-width: 500px;
  margin-top: 28px;
  color: rgb(255 255 255 / 61%);
  font-size: 11px;
  line-height: 1.78;
}

.services h2 em {
  color: var(--mustard);
}

.service-ledger {
  border-top: 1px solid var(--line-light);
}

.service-ledger article {
  display: grid;
  min-height: 210px;
  grid-template-columns: 54px minmax(220px, 0.8fr) minmax(240px, 1fr) auto;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
}

.service-ledger article > span {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  color: var(--mustard);
  font-family: var(--serif);
  font-size: 13px;
}

.service-ledger h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 470;
  letter-spacing: -0.032em;
  line-height: 1.1;
}

.service-ledger p {
  color: rgb(255 255 255 / 58%);
  font-size: 10px;
  line-height: 1.72;
}

.service-ledger a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  font-size: 8px;
  font-weight: 750;
  text-align: right;
}

.service-ledger a b {
  color: var(--mustard);
  font-size: 18px;
}

/* Process */
.process {
  background: var(--paper-pale);
}

.process-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr 0.75fr;
  gap: 4vw;
  align-items: end;
}

.process-intro .section-kicker {
  align-self: start;
}

.process-intro > p:last-child {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.72;
}

.process-path {
  display: flex;
  padding: 0;
  margin-top: clamp(65px, 8vw, 105px);
  list-style: none;
}

.process-path li {
  position: relative;
  flex: 1;
  padding: 27px 28px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-path li:last-child {
  border-right: 1px solid var(--line);
}

.process-path li > span {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 45px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-family: var(--serif);
  font-size: 12px;
}

.process-path li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 45px;
  right: -10px;
  display: grid;
  width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-pale);
  color: var(--clay-dark);
  content: "→";
  font-size: 9px;
}

.process-path h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 470;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.process-path p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

/* Safe demo contact form */
.contact {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 9vw;
  background: var(--clay-dark);
  color: #fff;
}

.contact h2 em {
  color: var(--mustard);
}

.contact-story > p:not(.section-kicker) {
  max-width: 540px;
  margin-top: 27px;
  color: rgb(255 255 255 / 65%);
  font-size: 11px;
  line-height: 1.78;
}

.safety-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  max-width: 520px;
  padding-top: 24px;
  margin-top: 33px;
  border-top: 1px solid rgb(255 255 255 / 24%);
}

.safety-note > span {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--clay-dark);
  font-weight: 850;
}

.safety-note strong {
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.14em;
}

.safety-note p {
  margin-top: 7px;
  color: rgb(255 255 255 / 59%);
  font-size: 9px;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(27px, 4vw, 56px);
  background: var(--paper-pale);
  color: var(--ink);
  box-shadow: 15px 17px 0 rgb(69 24 14 / 18%);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.form-heading p {
  color: var(--clay-dark);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.15em;
}

.form-heading span {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  font-size: 8px;
  font-weight: 740;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 11px;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--clay);
  outline: 2px solid rgb(201 109 78 / 23%);
}

.contact-form :invalid:not(:placeholder-shown) {
  border-color: #a63b2e;
}

.submit-button {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--jade);
  color: #fff;
  font-size: 10px;
  font-weight: 760;
}

.form-privacy {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.site-footer {
  padding: 65px clamp(22px, 6vw, 96px) 29px;
  background: #0b2720;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.55fr;
  gap: 6vw;
  align-items: center;
  padding-bottom: 50px;
}

.footer-main > p {
  max-width: 510px;
  color: rgb(255 255 255 / 55%);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
}

.footer-main > a:last-child {
  justify-self: end;
  font-size: 7px;
  font-weight: 690;
  letter-spacing: 0.14em;
}

.footer-legal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}

.footer-legal p {
  max-width: 1000px;
  color: rgb(255 255 255 / 43%);
  font-size: 7px;
  line-height: 1.72;
}

.footer-legal > span {
  flex: none;
  color: rgb(255 255 255 / 51%);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: min(410px, calc(100vw - 44px));
  padding: 18px 20px;
  border-left: 3px solid var(--mustard);
  background: var(--jade);
  color: #fff;
  box-shadow: 0 20px 50px rgb(13 41 35 / 28%);
  font-size: 10px;
  line-height: 1.65;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 240ms ease,
    transform 330ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

/* Gentle entrance motion for the supporting sections */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 650ms ease,
    transform 760ms var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1160px) {
  .desktop-nav { gap: 20px; margin-right: 20px; }
  .hero { grid-template-columns: minmax(340px, 0.82fr) minmax(460px, 1.18fr); gap: 45px; }
  .hero h1 { font-size: clamp(47px, 5vw, 66px); }
  .service-ledger article { grid-template-columns: 49px minmax(190px, 0.8fr) minmax(210px, 1fr); }
  .service-ledger a { display: none; }
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-cta { display: none; }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--jade);
    background: transparent;
  }

  .menu-button i {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    z-index: 24;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    padding: 19px 24px 28px;
    background: var(--paper-pale);
    box-shadow: 0 25px 45px rgb(18 58 49 / 12%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition:
      opacity 220ms ease,
      transform 280ms var(--ease);
  }

  .site-header:not(.is-scrolled) .mobile-menu { top: 82px; }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-menu a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 22px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy { max-width: 720px; }
  .feature-film { width: min(100%, 800px); margin-left: auto; }
  .section-heading,
  .voices,
  .services,
  .contact { grid-template-columns: 1fr; }
  .section-heading { gap: 36px; }
  .heading-note { max-width: 590px; margin-left: auto; }
  .photo-timeline::before { left: 18px; }
  .timeline-entry,
  .timeline-entry.entry-reverse { grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.55fr); padding-left: 52px; }
  .timeline-entry::before { left: 18px; }
  .entry-reverse .photo-print { grid-column: 1; }
  .entry-reverse .timeline-copy { grid-column: 2; }
  .voices { gap: 60px; }
  .voices-heading { max-width: 650px; }
  .film-cards { grid-template-columns: 1fr 1fr; }
  .film-card:last-child { grid-column: 1 / -1; width: calc(50% - 10px); }
  .journal-masthead { grid-template-columns: 1fr; text-align: left; }
  .journal h2 { text-align: left; }
  .journal-masthead > span { text-align: left; }
  .magazine-layout { grid-template-columns: 1fr; }
  .magazine-feature { min-height: 0; padding-right: 0; padding-bottom: 45px; border-right: 0; border-bottom: 1px solid var(--line); }
  .services-heading { position: static; max-width: 660px; }
  .service-ledger { margin-top: 30px; }
  .process-intro { grid-template-columns: 1fr; gap: 28px; }
  .process-intro > p:last-child { max-width: 560px; margin-left: auto; }
  .process-path { flex-wrap: wrap; }
  .process-path li { flex: 1 1 50%; }
  .process-path li:nth-child(2) { border-right: 1px solid var(--line); }
  .process-path li:nth-child(n + 3) { border-top: 0; }
  .process-path li:nth-child(2)::after { display: none; }
  .contact { gap: 55px; }
  .contact-story { max-width: 650px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
  .demo-notice {
    min-height: 42px;
    padding-inline: 11px;
    font-size: 6.5px;
    letter-spacing: 0.09em;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 64px;
    padding: 0 14px;
  }

  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-copy { font-size: 10px; }
  .brand-copy small { font-size: 5.5px; }
  .language-button { min-height: 38px; padding: 0 8px; }
  .menu-button { width: 38px; height: 38px; }
  .mobile-menu,
  .site-header:not(.is-scrolled) .mobile-menu { top: 64px; }

  .hero {
    gap: 46px;
    padding: 52px 16px 73px;
  }

  .issue-line { grid-template-columns: auto 26px 1fr; margin-bottom: 29px; font-size: 6px; }
  .eyebrow { margin-bottom: 16px; font-size: 7px; }
  .hero h1 { max-width: 96%; font-size: clamp(43px, 13vw, 57px); line-height: 1.02; }
  .hero-lede { margin-top: 20px; font-size: 11px; line-height: 1.72; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 24px; }
  .button { min-height: 48px; gap: 17px; padding: 0 14px; font-size: 8px; }
  .text-link { font-size: 8px; }
  .hero-fineprint { margin-top: 27px; font-size: 7px; }
  .scrapbook-frame { padding: 8px; box-shadow: 9px 11px 0 var(--paper-warm); transform: none; }
  .paper-tape { width: 74px; height: 21px; }
  .film-window { aspect-ratio: 4 / 5; }
  .film-window video { object-position: 67% center; }
  .film-control { bottom: 12px; left: 11px; min-height: 41px; font-size: 7px; }
  .control-icon { width: 27px; }
  .film-duration { right: 11px; bottom: 15px; }
  .feature-film figcaption { grid-template-columns: 47px 1fr; gap: 10px; }
  .feature-film figcaption strong { font-size: 14px; }
  .editorial-ribbon { justify-content: flex-start; gap: 18px; overflow-x: auto; font-size: 6px; scrollbar-width: none; }
  .editorial-ribbon::-webkit-scrollbar { display: none; }
  .section-pad { padding: 78px 16px; }
  .section-heading h2,
  .voices h2,
  .journal h2,
  .services h2,
  .process h2,
  .contact h2 { font-size: clamp(38px, 11.8vw, 51px); line-height: 1.05; }
  .section-kicker { margin-bottom: 20px; font-size: 7px; }
  .heading-note { margin-left: 14%; }
  .heading-note p { font-size: 10px; }

  .photo-timeline { gap: 66px; margin-top: 66px; }
  .photo-timeline::before { left: 9px; }
  .timeline-entry,
  .timeline-entry.entry-reverse { display: flex; padding-left: 29px; flex-direction: column; gap: 32px; align-items: stretch; }
  .timeline-entry::before { top: 20px; left: 9px; }
  .entry-reverse .timeline-copy { order: 2; }
  .photo-print { padding: 7px 7px 29px; transform: none; }
  .photo-print::after { width: 65px; height: 19px; }
  .photo-print img { aspect-ratio: 4 / 3; }
  .timeline-copy { padding-right: 8px; }
  .timeline-copy h3 { font-size: 31px; }
  .timeline-copy p { font-size: 10px; }

  .voices { gap: 48px; }
  .voice-note { padding: 28px 22px; margin: 0 !important; transform: none !important; }
  .voice-note > p { padding-left: 27px; font-size: 21px; }
  .voice-note footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .voice-note footer span { text-align: left; }

  .film-cards { grid-template-columns: 1fr; gap: 38px; margin-top: 55px; }
  .film-card:last-child { grid-column: auto; width: 100%; }
  .film-poster img { aspect-ratio: 4 / 3; }
  .film-card h3 { min-height: 0; font-size: 28px; }
  .library-disclaimer { font-size: 7px; text-align: left; }
  .video-modal { width: calc(100vw - 18px); }
  .modal-paper { padding: 21px 14px; }
  .modal-close { top: 10px; right: 10px; width: 37px; }
  .modal-paper h2 { padding-right: 25px; font-size: 30px; }

  .journal-masthead { gap: 18px; padding: 24px 0; }
  .magazine-layout { margin-top: 42px; }
  .magazine-feature h3 { font-size: 34px; }
  .magazine-columns { grid-template-columns: 1fr; }
  .magazine-card { min-height: 290px; padding: 21px; }
  .magazine-card.card-photo { grid-row: auto; }
  .card-photo img { aspect-ratio: 16 / 11; }

  .services { gap: 48px; }
  .service-ledger article { display: grid; min-height: 230px; grid-template-columns: 42px 1fr; gap: 13px; align-content: center; padding: 25px 0; }
  .service-ledger article > span { width: 32px; grid-row: 1; }
  .service-ledger h3 { grid-column: 2; grid-row: 1; font-size: 29px; }
  .service-ledger p { grid-column: 2; font-size: 9px; }
  .service-ledger a { display: flex; grid-column: 2; align-items: flex-start; flex-direction: row; }

  .process-intro > p:last-child { margin-left: 13%; }
  .process-path { display: grid; grid-template-columns: 1fr; margin-top: 52px; }
  .process-path li { border-right: 1px solid var(--line); border-top: 0; }
  .process-path li:first-child { border-top: 1px solid var(--line); }
  .process-path li:nth-child(n)::after { display: none; }
  .process-path li > span { margin-bottom: 27px; }

  .contact { gap: 49px; }
  .contact-form { padding: 25px 18px; box-shadow: 8px 9px 0 rgb(69 24 14 / 18%); }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 31px; padding-bottom: 36px; }
  .footer-main > p { grid-column: auto; grid-row: auto; font-size: 15px; }
  .footer-main > a:last-child { justify-self: start; }
  .footer-legal { align-items: flex-start; flex-direction: column; gap: 20px; }
  .toast { right: 11px; bottom: 11px; width: calc(100vw - 22px); }
}

/* Scroll-directed photo essay. The document keeps its normal layout until
   JavaScript confirms motion is appropriate for the visitor. */
.scroll-motion .hero-copy {
  transform: translate3d(0, var(--hero-copy-y, 0px), 0);
  will-change: transform;
}

.scroll-motion .feature-film {
  transform:
    translate3d(0, var(--hero-film-y, 0px), 0)
    rotate(var(--hero-film-rotate, 0.65deg))
    scale(var(--hero-film-scale, 1));
  transform-origin: center;
  will-change: transform;
}

.scroll-motion .hero::before {
  transform: translate3d(var(--hero-orbit-x, 0px), var(--hero-orbit-y, 0px), 0);
  will-change: transform;
}

.scroll-motion .family-story {
  --story-progress: 0;
  position: relative;
  min-height: 225svh;
  padding-block: 0;
}

.scroll-motion .story-stage {
  position: sticky;
  top: 66px;
  display: grid;
  height: calc(100svh - 66px);
  grid-template-rows: auto auto minmax(0, 1fr);
  padding-block: clamp(20px, 3svh, 36px) clamp(17px, 2.4svh, 29px);
  overflow: hidden;
}

.scroll-motion .story-stage .section-heading {
  gap: clamp(44px, 7vw, 104px);
}

.scroll-motion .story-stage .section-kicker {
  margin-bottom: clamp(12px, 1.8svh, 23px);
}

.scroll-motion .story-stage .section-heading h2 {
  font-size: clamp(38px, 4.4vw, 63px);
  line-height: 1;
}

.scroll-motion .story-stage .heading-note {
  padding-top: 12px;
}

.scroll-motion .story-stage .heading-note p {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.58;
}

.scroll-motion .story-progress {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: clamp(10px, 1.5svh, 18px);
  color: var(--clay-dark);
  font-size: 7px;
  font-weight: 790;
  letter-spacing: 0.13em;
  line-height: 1;
}

.scroll-motion .story-progress > i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-motion .story-progress > i > b {
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: scaleX(var(--story-progress, 0));
  transform-origin: left;
  will-change: transform;
}

.scroll-motion .story-progress small {
  color: var(--muted);
  font-size: inherit;
}

.scroll-motion .photo-timeline {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  margin-top: clamp(13px, 2.3svh, 27px);
}

.scroll-motion .photo-timeline::before {
  transform: scaleY(var(--story-progress, 0));
  transform-origin: top;
  will-change: transform;
}

.scroll-motion .timeline-entry,
.scroll-motion .timeline-entry.entry-reverse {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 0;
  opacity: var(--panel-opacity, 0);
  pointer-events: none;
  transform:
    translate3d(var(--panel-x, 0), var(--panel-y, 0), 0)
    scale(var(--panel-scale, 1));
  transform-origin: center;
  will-change: opacity, transform;
  z-index: var(--panel-z, 1);
}

.scroll-motion .timeline-entry {
  grid-template-columns: minmax(340px, 1.12fr) minmax(250px, 0.58fr);
}

.scroll-motion .timeline-entry.entry-reverse {
  grid-template-columns: minmax(250px, 0.58fr) minmax(340px, 1.12fr);
}

.scroll-motion .entry-reverse .photo-print {
  grid-column: 2;
  grid-row: 1;
}

.scroll-motion .entry-reverse .timeline-copy {
  grid-column: 1;
  grid-row: 1;
}

.scroll-motion .photo-print {
  align-self: center;
  transform:
    translate3d(var(--paper-x, 0), var(--paper-y, 0), 0)
    rotate(calc(var(--paper-origin, 0deg) + var(--paper-rotate, 0deg)));
  transform-origin: center;
  will-change: transform;
}

.scroll-motion .rotate-left {
  --paper-origin: -1.2deg;
}

.scroll-motion .rotate-right {
  --paper-origin: 1.1deg;
}

.scroll-motion .timeline-copy {
  transform: translate3d(0, var(--copy-y, 0), 0);
  will-change: transform;
}

@media (max-width: 960px) {
  .scroll-motion .family-story {
    min-height: 215svh;
  }

  .scroll-motion .timeline-entry,
  .scroll-motion .timeline-entry.entry-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.64fr);
    gap: clamp(30px, 6vw, 70px);
  }

  .scroll-motion .timeline-entry.entry-reverse {
    grid-template-columns: minmax(230px, 0.64fr) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .scroll-motion .family-story {
    min-height: 205svh;
    padding-inline: 16px;
  }

  .scroll-motion .story-stage {
    top: 64px;
    height: calc(100svh - 64px);
    padding-block: 13px 11px;
  }

  .scroll-motion .story-stage .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .scroll-motion .story-stage .section-kicker {
    gap: 9px;
    margin-bottom: 7px;
    font-size: 6px;
  }

  .scroll-motion .story-stage .section-kicker span:first-child {
    width: 23px;
    font-size: 8px;
  }

  .scroll-motion .story-stage .section-heading h2 {
    font-size: clamp(30px, 9.4vw, 41px);
    line-height: 0.98;
  }

  .scroll-motion .story-stage .heading-note {
    padding-top: 6px;
    margin-left: 0;
  }

  .scroll-motion .story-stage .heading-note strong {
    font-size: 6px;
  }

  .scroll-motion .story-stage .heading-note p {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.38;
  }

  .scroll-motion .story-progress {
    gap: 8px;
    margin-top: 7px;
    font-size: 5.8px;
  }

  .scroll-motion .photo-timeline {
    margin-top: 8px;
  }

  .scroll-motion .photo-timeline::before {
    right: auto;
    left: 3px;
  }

  .scroll-motion .timeline-entry,
  .scroll-motion .timeline-entry.entry-reverse {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    padding: 0 9px 0 14px;
  }

  .scroll-motion .timeline-entry::before {
    top: 35%;
    left: 3px;
  }

  .scroll-motion .photo-print,
  .scroll-motion .entry-reverse .photo-print {
    width: calc(100% - 13px);
    max-height: none;
    grid-column: 1;
    grid-row: 1;
    margin-left: 13px;
    padding: 6px 6px 24px;
  }

  .scroll-motion .photo-print img {
    height: clamp(145px, 27svh, 230px);
    aspect-ratio: auto;
  }

  .scroll-motion .timeline-copy,
  .scroll-motion .entry-reverse .timeline-copy {
    grid-column: 1;
    grid-row: 2;
    padding-right: 0;
    padding-left: 13px;
  }

  .scroll-motion .timeline-copy > span {
    font-size: 6px;
  }

  .scroll-motion .timeline-copy h3 {
    margin: 5px 0 6px;
    font-size: clamp(21px, 6.6vw, 28px);
    line-height: 1.02;
  }

  .scroll-motion .timeline-copy p {
    font-size: 8px;
    line-height: 1.43;
  }
}

/* Short landscape windows need a normal document flow so no chapter is
   trapped inside a sticky stage that is shorter than its heading and photo. */
@media (max-height: 600px) {
  .scroll-motion .family-story {
    min-height: 0;
    padding-block: clamp(64px, 9vw, 112px);
  }

  .scroll-motion .story-stage {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    padding-block: 0;
    overflow: visible;
  }

  .scroll-motion .story-stage .section-heading {
    gap: clamp(40px, 7vw, 100px);
  }

  .scroll-motion .story-stage .section-kicker {
    margin-bottom: 32px;
  }

  .scroll-motion .story-stage .section-heading h2 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.04;
  }

  .scroll-motion .story-stage .heading-note {
    padding-top: 19px;
  }

  .scroll-motion .story-stage .heading-note p {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.78;
  }

  .scroll-motion .story-progress {
    display: none;
  }

  .scroll-motion .photo-timeline {
    display: grid;
    height: auto;
    gap: clamp(70px, 9vw, 130px);
    margin-top: clamp(72px, 9vw, 130px);
  }

  .scroll-motion .photo-timeline::before {
    transform: none;
    will-change: auto;
  }

  .scroll-motion .timeline-entry,
  .scroll-motion .timeline-entry.entry-reverse {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(380px, 1.12fr) minmax(280px, 0.58fr);
    gap: clamp(50px, 8vw, 120px);
    align-items: center;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    will-change: auto;
    z-index: auto;
  }

  .scroll-motion .timeline-entry.entry-reverse {
    grid-template-columns: minmax(280px, 0.58fr) minmax(380px, 1.12fr);
  }

  .scroll-motion .photo-print,
  .scroll-motion .timeline-copy {
    transform: none;
    will-change: auto;
  }
}

@media (max-height: 600px) and (max-width: 960px) {
  .scroll-motion .timeline-entry,
  .scroll-motion .timeline-entry.entry-reverse {
    grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.55fr);
    padding-left: 52px;
  }
}

@media (max-height: 600px) and (max-width: 680px) {
  .scroll-motion .family-story {
    padding: 78px 16px;
  }

  .scroll-motion .story-stage .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .scroll-motion .story-stage .section-kicker {
    margin-bottom: 20px;
    font-size: 7px;
  }

  .scroll-motion .story-stage .section-kicker span:first-child {
    width: 34px;
    font-size: 11px;
  }

  .scroll-motion .story-stage .section-heading h2 {
    font-size: clamp(38px, 11.8vw, 51px);
    line-height: 1.05;
  }

  .scroll-motion .story-stage .heading-note {
    padding-top: 19px;
    margin-left: 14%;
  }

  .scroll-motion .story-stage .heading-note strong {
    font-size: 8px;
  }

  .scroll-motion .story-stage .heading-note p {
    margin-top: 15px;
    font-size: 10px;
    line-height: 1.78;
  }

  .scroll-motion .photo-timeline {
    gap: 66px;
    margin-top: 66px;
  }

  .scroll-motion .photo-timeline::before {
    left: 9px;
  }

  .scroll-motion .timeline-entry,
  .scroll-motion .timeline-entry.entry-reverse {
    display: flex;
    padding: 0 8px 0 29px;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .scroll-motion .timeline-entry::before {
    top: 20px;
    left: 9px;
  }

  .scroll-motion .photo-print,
  .scroll-motion .entry-reverse .photo-print {
    width: auto;
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
    padding: 7px 7px 29px;
  }

  .scroll-motion .photo-print img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .scroll-motion .timeline-copy,
  .scroll-motion .entry-reverse .timeline-copy {
    grid-column: auto;
    grid-row: auto;
    padding-right: 8px;
    padding-left: 0;
  }

  .scroll-motion .entry-reverse .timeline-copy {
    order: 2;
  }

  .scroll-motion .timeline-copy > span {
    font-size: 8px;
  }

  .scroll-motion .timeline-copy h3 {
    margin: 17px 0 18px;
    font-size: 31px;
    line-height: 1.08;
  }

  .scroll-motion .timeline-copy p {
    font-size: 10px;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .photo-print,
  .voice-note,
  .scrapbook-frame,
  .card-clay {
    transform: none !important;
  }
}
