/* ==========================================================================
   Vast Media — site styles
   Brand colors come from the logo. Fonts: Fraunces (brand serif) +
   Amsi Pro (brand sans). Barlow Condensed stands in for Amsi Pro until an
   Adobe Fonts kit is added (see README).
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6f6f8;
  --white: #ffffff;
  --mist: #ebecf3;
  --mist-deep: #dcdee8;
  --navy: #383b4c;
  --night: #232537;
  --night-soft: #2e3145;
  --gold: #cdaf4e;
  --gold-soft: #e6d6a3;
  --stone: #696b7a;
  --line: rgba(56, 59, 76, .16);
  --line-light: rgba(246, 246, 248, .18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "amsi-pro", "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --step--1: .9rem;
  --step-0: 1.1875rem;               /* 19px body */
  --step-1: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  --step-2: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(3rem, 1.6rem + 5.6vw, 7.25rem);

  --wrap: min(1240px, calc(100% - clamp(40px, 8vw, 112px)));
  --measure: 34em;
  --gap: clamp(20px, 3vw, 40px);
  --section: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--step-0);
  font-variation-settings: "opsz" 14;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 400; letter-spacing: -.005em; line-height: 1.2; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--section); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 28em; font-variation-settings: "opsz" 40; }
.muted { color: var(--stone); }
.measure { max-width: var(--measure); }
.label {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--stone);
  margin: 0 0 .9rem;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--paper); padding: 10px 16px;
  font-family: var(--sans);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  font-family: var(--sans); font-size: 1.15rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--night); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 248, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; width: 168px; }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { min-height: 44px; padding: 0 1.2em; border-bottom: 0; }
.nav-toggle { display: none; }

/* Header over the home hero */
.is-home .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; color: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .3s, color .3s, border-color .3s; }
.is-home .site-header .brand-dark { display: none; }
.is-home .site-header .btn-primary { background: var(--paper); color: var(--navy); }
.is-home.scrolled .site-header { background: rgba(246, 246, 248, .94); color: var(--navy); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.is-home.scrolled .site-header .brand-dark { display: block; }
.is-home.scrolled .site-header .brand-light { display: none; }
.is-home.scrolled .site-header .btn-primary { background: var(--navy); color: var(--paper); }
.brand-light { display: none; }
.is-home .brand-light { display: block; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
    font-family: var(--sans); font-size: 1.15rem; font-weight: 500; cursor: pointer; padding: 10px 0;
  }
  .nav-toggle span[aria-hidden] { display: block; width: 22px; height: 2px; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; margin-right: 4px; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); color: var(--navy); padding: 12px 24px 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { font-size: 1.5rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; width: 100%; min-height: 54px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .is-home .nav .btn-primary, .is-home.scrolled .nav .btn-primary { background: var(--navy); color: var(--paper); }
  .is-home.nav-open .site-header { background: var(--paper); color: var(--navy); }
  .is-home.nav-open .brand-dark { display: block; }
  .is-home.nav-open .brand-light { display: none; }
  .brand { width: 140px; }
}

/* ---------- Hero (home) — letterboxed cinemascope frame ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--paper);
  padding-top: clamp(96px, 12vh, 132px);
  overflow: hidden;
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  max-height: 74vh;
  overflow: hidden;
  background: #000;
}
.hero-frame video, .hero-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,37,55,0) 55%, rgba(35,37,55,.55) 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--gap);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 {
  margin: -0.62em 0 0; /* headline sits across the bottom edge of the frame */
  font-size: clamp(3.6rem, 1.2rem + 8.4vw, 10.5rem);
  line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  text-wrap: balance;
}
.hero-side { max-width: 22em; padding-bottom: .4em; }
.hero-side p { color: rgba(246,246,248,.82); font-size: 1.05rem; }
.hero-side .btn-row { margin-top: 1.4rem; }
.hero .btn-ghost { color: var(--paper); }
.hero-sound {
  position: absolute; z-index: 3; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(35,37,55,.55); color: var(--paper); border: 1px solid var(--line-light);
  border-radius: 2px; padding: 8px 12px; font-family: var(--sans); font-size: 1rem; cursor: pointer;
}
@media (max-width: 860px) {
  .hero-frame { aspect-ratio: 4 / 5; max-height: 70vh; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero h1 { margin-top: -0.55em; }
}

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.page-head h1 { max-width: 12em; }
.page-head .lede { margin-top: 1.2rem; }

/* ---------- Intro statement ---------- */
.statement { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.statement-text p:first-child { font-size: var(--step-2); line-height: 1.22; font-weight: 300; font-variation-settings: "opsz" 96; letter-spacing: -.01em; }
.statement-media { position: relative; }
.statement-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.statement-media figcaption { margin-top: 10px; font-family: var(--sans); font-size: 1rem; color: var(--stone); }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } .statement-media img { aspect-ratio: 3/2; } }

/* ---------- Film section (dark) ---------- */
.dark { background: var(--night); color: var(--paper); }
.dark .muted, .dark .label { color: rgba(246,246,248,.66); }
.dark a.text-link { color: var(--paper); }
.film-feature { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.film-head { display: flex; justify-content: space-between; align-items: end; gap: var(--gap); flex-wrap: wrap; }
.film-head h2 { margin: 0; max-width: 11em; }

.film { margin: 0; }
.film-player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 0; padding: 0; cursor: pointer;
}
.film-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.film-player:hover img { transform: scale(1.02); }
.film-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(246,246,248,.92); display: grid; place-items: center;
  transition: background-color .2s;
}
.play::before { content: ""; margin-left: 6px; border-left: 20px solid var(--night); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.film-player:hover .play { background: var(--gold); }
.film figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--sans); font-size: 1.1rem; letter-spacing: .02em; }
.film figcaption strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); letter-spacing: -.01em; }
.film figcaption span { color: var(--stone); align-self: end; }
.dark .film figcaption span { color: rgba(246,246,248,.62); }
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.film-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .film-grid, .film-grid.two { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.pillars-intro { position: sticky; top: 120px; }
.pillars-intro img { margin-top: 2rem; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.pillar-list { list-style: none; margin: 0; padding: 0; }
.pillar { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding-block: 32px; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--stone); font-size: 1.05rem; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars-intro { position: static; }
  .pillars-intro img { display: none; }
  .pillar { grid-template-columns: 110px 1fr; gap: 18px; }
}

/* ---------- Frames strip (cinemascope stills) ---------- */
.frames { overflow: hidden; padding-block: 0 var(--section); }
.frames-track {
  display: flex; gap: 14px; width: max-content;
  animation: drift 90s linear infinite;
}
.frames:hover .frames-track { animation-play-state: paused; }
.frames-track img { height: clamp(150px, 18vw, 250px); width: auto; aspect-ratio: 2.39 / 1; object-fit: cover; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Collection teaser ---------- */
.collection { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.price-display { font-size: clamp(4rem, 2rem + 7vw, 8.5rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; font-variation-settings: "opsz" 144, "SOFT" 50; margin: .1em 0 .2em; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; columns: 2; column-gap: 28px; }
.check-list li { break-inside: avoid; padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--line); font-size: 1.05rem; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.collection-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collection-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.collection-media img:last-child { margin-top: 18%; }
@media (max-width: 860px) { .collection { grid-template-columns: 1fr; } .check-list { columns: 1; } }

/* ---------- Process steps (a real sequence → numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: var(--step-2); font-weight: 300; line-height: 1; margin-bottom: 14px; color: var(--gold); font-variation-settings: "opsz" 144; }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 1rem; color: var(--stone); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.process-detail { display: grid; gap: clamp(56px, 8vw, 120px); }
.process-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-row:nth-child(even) .process-media { order: 2; }
.process-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.process-num { font-size: var(--step-3); font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: .3em; font-variation-settings: "opsz" 144; }
@media (max-width: 860px) { .process-row { grid-template-columns: 1fr; } .process-row:nth-child(even) .process-media { order: 0; } }

/* ---------- Areas ---------- */
.areas { font-size: var(--step-2); line-height: 1.3; font-weight: 300; font-variation-settings: "opsz" 96; max-width: 30em; }
.areas span { color: var(--stone); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--paper); background: var(--night); overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.cta-band .wrap { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.cta-band h2 { font-size: var(--step-4); max-width: 9em; letter-spacing: -.03em; }
.cta-band p { max-width: 28em; color: rgba(246,246,248,.86); margin-bottom: 2rem; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(23,24,36,.94);
  display: grid; place-items: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; width: auto; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: none; border: 1px solid var(--line-light); color: var(--paper); padding: 8px 14px; font-family: var(--sans); font-size: 1.05rem; cursor: pointer; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.values div { padding-block: 28px; border-top: 1px solid var(--line); }
.values p { color: var(--stone); font-size: 1.05rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.split-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: var(--step-1); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; line-height: 1; color: var(--stone); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: var(--measure); color: var(--stone); }

/* ---------- Inquire ---------- */
.inquire-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hb-wrap { background: var(--white); padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); min-height: 640px; }
.inquire-aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.estimate-card { background: var(--night); color: var(--paper); padding: 26px; }
.estimate-card pre { white-space: pre-wrap; font-family: var(--serif); font-size: 1rem; line-height: 1.55; margin: 12px 0 18px; color: rgba(246,246,248,.86); }
.estimate-card .total { font-size: var(--step-2); font-weight: 300; line-height: 1; margin: 6px 0 0; }
.estimate-card .btn { width: 100%; }
.estimate-card small { display: block; margin-top: 10px; color: rgba(246,246,248,.66); font-size: .92rem; }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.next-steps li::before { content: counter(n); color: var(--gold); font-weight: 400; }
.contact-lines { font-family: var(--sans); font-size: 1.2rem; letter-spacing: .02em; line-height: 1.8; }
@media (max-width: 960px) { .inquire-layout { grid-template-columns: 1fr; } .inquire-aside { position: static; order: -1; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding-block: clamp(64px, 8vw, 112px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.footer-grid img { width: 200px; margin-bottom: 22px; }
.footer-grid p { color: rgba(246,246,248,.72); font-size: 1rem; max-width: 26em; }
.footer-grid h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: .03em; color: rgba(246,246,248,.6); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 1.2rem; letter-spacing: .02em; line-height: 2; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-light); font-family: var(--sans); font-size: 1rem; color: rgba(246,246,248,.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Single orchestrated load moment (home hero) ---------- */
.hero h1, .hero-side { animation: rise 1.1s var(--ease) both; }
.hero-side { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .frames-track { flex-wrap: wrap; width: auto; }
}

/* ==========================================================================
   Pricing calculator
   ========================================================================== */
.calc-section { padding-top: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.calc-group { font-size: var(--step-2); margin: clamp(56px, 7vw, 88px) 0 8px; }

.calc-base { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--white); border: 1px solid var(--line); }
.calc-base > img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.calc-base-body { padding: clamp(22px, 3vw, 36px); }
.calc-base-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.calc-base-head h2 { font-size: var(--step-2); margin: 0; }
.calc-base-price { font-size: var(--step-2); font-weight: 300; margin: 0; font-variation-settings: "opsz" 144; }
.calc-base .check-list { columns: 1; margin-bottom: 0; }
@media (min-width: 1100px) { .calc-base .check-list { columns: 2; } }
@media (max-width: 640px) { .calc-base { grid-template-columns: 1fr; } .calc-base > img { min-height: 0; aspect-ratio: 16/9; } }

.calc-item { display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.calc-group + .calc-item { border-top: 1px solid var(--navy); margin-top: 18px; }
.calc-item p { color: var(--stone); font-size: 1.02rem; max-width: 32em; }
.calc-item h3 { margin-bottom: .3em; }
.price-note { font-family: var(--sans); font-size: 1.1rem !important; letter-spacing: .02em; color: var(--navy) !important; margin-top: .6em; }
.calc-item-control { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 640px) { .calc-item { grid-template-columns: 1fr; } .calc-item-control { align-items: flex-start; } }

.shelf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 200px; min-height: 34px; }
.glyph { width: 30px; height: 34px; color: var(--navy); }
.glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.glyph.is-added { color: #9b8130; animation: pop .35s var(--ease); }
.glyph.is-added svg { fill: rgba(205,175,78,.22); }
@keyframes pop { from { transform: translateY(6px) scale(.8); opacity: 0; } }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--navy); }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--mist); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-family: var(--sans); font-size: 1.1rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 58px; height: 32px; border-radius: 99px; background: var(--mist-deep); transition: background-color .2s; }
.switch-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(35,37,55,.3); transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(26px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }

.calc-moments-head { display: grid; gap: 6px; margin-bottom: 22px; }
.calc-moments-head .calc-group { margin-bottom: 0; }
.calc-moments-head p { margin: 0; max-width: 34em; }
.moment-count { font-family: var(--sans); font-size: 1.1rem; letter-spacing: .02em; }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.moment { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.moment img { width: 100%; aspect-ratio: 2.39/1; object-fit: cover; filter: saturate(.55); transition: filter .3s; }
.moment-text { display: grid; gap: 2px; padding: 14px 16px 18px; }
.moment-text strong { font-weight: 400; font-size: 1.15rem; }
.moment-text span { font-size: .95rem; color: var(--stone); line-height: 1.4; }
.moment-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(246,246,248,.9); border: 1px solid var(--line); }
.moment:hover img, .moment[aria-pressed="true"] img { filter: none; }
.moment[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.moment[aria-pressed="true"] .moment-check { background: var(--gold); border-color: var(--gold); }
.moment[aria-pressed="true"] .moment-check::after { content: ""; position: absolute; left: 9px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg); }
@media (max-width: 760px) { .moments { grid-template-columns: 1fr; } .moment { flex-direction: row; } .moment img { width: 40%; aspect-ratio: 4/3; } }
.custom-row { display: flex; gap: 10px; margin-top: 12px; }
.custom-row input { flex: 1; min-height: 50px; padding: 0 14px; border: 1px solid var(--navy); background: var(--white); font: inherit; font-size: 1.05rem; border-radius: 0; }
.custom-row button { border: 0; background: none; font-family: var(--sans); font-size: 1.05rem; color: var(--stone); cursor: pointer; text-decoration: underline; }
.add-moment { background: none; border: 0; padding: 0; margin-top: 20px; cursor: pointer; }

/* Summary panel */
.calc-summary { position: sticky; top: 100px; background: var(--night); color: var(--paper); padding: clamp(24px, 3vw, 36px); }
.calc-summary .label { color: rgba(246,246,248,.66); margin-bottom: 4px; }
.calc-total { font-size: clamp(3.4rem, 2rem + 4vw, 5.2rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; margin: 0 0 22px; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144, "SOFT" 50; }
.bar { display: flex; height: 14px; gap: 2px; margin-bottom: 18px; }
.seg { display: block; flex-basis: 0; min-width: 4px; transition: flex-grow .45s var(--ease); }
.seg-base { background: var(--paper); }
.seg-books { background: var(--gold); }
.seg-raw { background: var(--gold-soft); }
.seg-moments { background: repeating-linear-gradient(135deg, var(--gold) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px var(--gold); }
.legend { list-style: none; padding: 0; margin: 0 0 30px; font-size: 1rem; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-light); }
.legend .swatch { width: 12px; height: 12px; display: inline-block; }
.legend small { display: block; color: rgba(246,246,248,.6); font-size: .88rem; }
.legend-amt { font-variant-numeric: tabular-nums; }
.summary-h { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: .03em; color: rgba(246,246,248,.66); margin: 0 0 12px; }
.takehome { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.takehome li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border: 1px solid var(--line-light); font-size: .95rem; }
.takehome svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex: none; }
.takehome svg path[fill], .takehome svg rect[fill], .takehome svg circle[fill] { fill: var(--gold); }
.plan-bar { display: flex; height: 8px; gap: 2px; margin-bottom: 14px; }
.plan-bar span { flex-basis: 0; transition: flex-grow .45s var(--ease); }
#retainer-bar { background: var(--gold); }
#balance-bar { background: rgba(246,246,248,.28); }
.plan-rows { display: grid; gap: 12px; font-size: .98rem; color: rgba(246,246,248,.8); }
.plan-rows > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; }
.plan-amt { color: var(--paper); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.plan-rows strong { color: var(--paper); font-weight: 400; }
.date-field { display: grid; gap: 6px; margin-top: 18px; font-family: var(--sans); font-size: 1.05rem; letter-spacing: .02em; }
.date-field .muted { color: rgba(246,246,248,.55); }
.date-field input { min-height: 46px; padding: 0 12px; background: transparent; color: var(--paper); border: 1px solid var(--line-light); font: inherit; color-scheme: dark; }
.calc-cta { width: 100%; margin-top: 30px; }
.calc-actions { display: flex; justify-content: space-between; margin-top: 16px; }
.calc-actions button { background: none; border: 0; padding: 0; color: var(--paper); cursor: pointer; }
.fine { font-size: .88rem; color: rgba(246,246,248,.55); margin-top: 18px; }

.mobile-total { display: none; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; scroll-margin-top: 90px; }
  .mobile-total {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    padding: 12px 18px; background: var(--night); color: var(--paper); text-decoration: none; font-family: var(--sans); font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(35,37,55,.3);
  }
  .mobile-total strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
  .mobile-total-cta { margin-left: auto; text-decoration: underline; text-decoration-color: var(--gold); }
}

/* ---------- Refinements after review ---------- */
.dark .steps li { border-top-color: rgba(246,246,248,.5); }
.dark .steps p { color: rgba(246,246,248,.72); }
.frames-track img { --h: clamp(150px, 18vw, 250px); height: var(--h); width: calc(var(--h) * 2.39); max-width: none; }
.calc-base { grid-template-columns: 1fr; }
.calc-base > img { min-height: 0; aspect-ratio: 2.39 / 1; height: auto; }
.calc-base .check-list { columns: 2; }
@media (max-width: 560px) { .calc-base .check-list { columns: 1; } }
.moment img { aspect-ratio: 16 / 9; }
@media (min-width: 961px) { .calc-summary { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; } }
.page-head.compact { padding-bottom: clamp(28px, 4vw, 48px); }
.page-head.compact h1 { font-size: var(--step-3); max-width: 16em; }
.split-media img { aspect-ratio: 3 / 4; height: auto; }
.split-media img:last-child { margin-top: 22%; }
.dark .values div { border-top-color: var(--line-light); }
.dark .values p, .dark .faq details > div { color: rgba(246,246,248,.74); }
.dark .faq details, .dark .faq details:last-child { border-color: var(--line-light); }
.dark .faq summary::after { color: var(--gold); }
