/* =========================================================
   Brittanié Russell — Brand stylesheet
   Palette: white sand #F7F4EF | sage #B4BEB3 | tan #BC8D65
   Type:    Montserrat (display) | Arimo (body) | Cormorant (accent italic)
   ========================================================= */

:root {
  /* Brand palette (per the official brand guide) */
  --sand: #F7F4EF;          /* WHITE SAND — backgrounds */
  --sage: #B4BEB3;          /* SAGE — logo & text */
  --tan:  #BC8D65;          /* TAN — accents & text */

  /* Working tints derived from the brand palette */
  --sand-deep: #EFEAE2;
  --sand-warm: #ECE5DA;
  --sage-soft: #C9D1C8;
  --sage-deep: var(--sage); /* alias — kept for legacy refs */
  --sage-night: #3F4A3D;    /* deep sage for high-contrast surfaces (testimonials) */
  --tan-deep: var(--tan);   /* alias — kept for legacy refs */

  --ink: #1F1D1A;
  --ink-soft: #4A453E;
  --ink-mute: #6E6860;
  --line: #DCD6CA;
  --white: #FFFFFF;

  --f-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Arimo', 'Helvetica Neue', Arial, sans-serif;
  --f-accent: 'Cormorant Garamond', 'Times New Roman', serif;

  --max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--sand);
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Page-load gate (with CSS-only failsafe) ---------- */
@keyframes page-fade-in { to { opacity: 1; } }
html:not(.is-ready) body > section,
html:not(.is-ready) body > header,
html:not(.is-ready) body > footer {
  opacity: 0;
  animation: page-fade-in .8s var(--ease-out) 1.5s forwards;
}
html.is-ready body > section,
html.is-ready body > header,
html.is-ready body > footer {
  opacity: 1;
  animation: none;
  transition: opacity .8s var(--ease-out);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4 { margin: 0; font-family: var(--f-display); font-weight: 300; letter-spacing: -.005em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
p { margin: 0 0 .85rem; color: var(--ink-soft); font-size: 1rem; }
.italic, em { font-family: var(--f-accent); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--tan); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(2.75rem, 5vw, 5rem); position: relative; }
.section-tight { padding-block: clamp(1.75rem, 3.5vw, 3.25rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1.85rem;
  font-family: var(--f-display);
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--tan);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--sand); }
.btn-primary:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--sand); }
.btn-light { background: var(--sand); color: var(--ink); }
.btn-light::before { background: var(--ink); }
.btn-light:hover { color: var(--sand); }
.btn-tan { background: var(--tan); color: var(--white); }
.btn-tan::before { background: var(--ink); }
.btn-tan:hover { color: var(--sand); }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }

.text-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
  position: relative; padding-bottom: .35rem;
  transition: color .25s;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform-origin: right;
  transition: transform .55s var(--ease-out), background .25s ease;
}
.text-link:hover { color: var(--tan-deep); }
.text-link:hover::after { background: var(--tan); transform-origin: left; transform: scaleX(1.05); }
.text-link .arrow { transition: transform .45s var(--ease-out); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ---------- Page transition ---------- */
.page-transition {
  position: fixed; inset: 0;
  z-index: 9500;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(100%);
  transition: transform .55s var(--ease-out);
  pointer-events: none;
}
.page-transition .pt-mark {
  font-family: var(--f-accent); font-style: italic;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--sage); letter-spacing: .1em;
  opacity: 0;
}
.page-transition .pt-mark em { color: var(--tan); font-style: italic; }
.page-transition.is-in {
  transform: translateY(0);
  transition: transform .5s var(--ease-out);
}
.page-transition.is-in .pt-mark { opacity: 1; transition: opacity .35s ease .15s; }
.page-transition.is-out {
  transform: translateY(-100%);
  transition: transform .65s var(--ease-out);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  padding-block: 1.1rem;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
/* Transparent state (only over the video hero) — add a subtle gradient scrim so nav reads on any frame */
.site-header:not(.is-solid)::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 70%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header.is-solid {
  background: rgba(247,244,239,.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .75rem;
}

/* Light text + drop-shadow when over the video hero */
.site-header:not(.is-solid) .nav-list a,
.site-header:not(.is-solid) .nav-list a::before {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.site-header:not(.is-solid) .nav-list a::after { background: var(--white); }
.site-header:not(.is-solid) .brand-mark .wm {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.85rem, 2vw, 2.2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  font-family: var(--f-display);
  font-size: .76rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: .35rem;
  display: inline-block;
  overflow: hidden;
}
.nav-list a span {
  display: inline-block;
  transition: transform .55s var(--ease-out);
}
.nav-list a::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  font-family: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: inherit;
  color: var(--tan-deep);
  transition: transform .55s var(--ease-out);
}
.nav-list a:hover span { transform: translateY(-100%); }
.nav-list a:hover::before { transform: translateY(-100%); }
.nav-list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--tan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav-list a.is-active::after { transform: scaleX(1); }

.brand-mark {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: .95;
}
.brand-mark .wm {
  font-family: var(--f-accent);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.nav-cta {
  justify-self: end;
}

/* Mobile nav (≤980px): two tidy rows — brand + Book on row 1, all six
   page links across row 2. Predictable two-row stack at any width with
   no hamburger and no scroll-collapse. */
@media (max-width: 980px) {
  .site-header { padding-block: .45rem; }
  .site-header.is-solid { padding-block: .35rem; }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: .35rem .75rem;
  }
  .brand-mark {
    grid-column: 1; grid-row: 1;
    justify-self: start;
    padding: .15rem 0;
    touch-action: manipulation;
  }
  .brand-mark .wm { font-size: .82rem; letter-spacing: .2em; }
  .nav-cta {
    grid-column: 2; grid-row: 1;
    justify-self: end;
    padding: .55rem .95rem;
    font-size: .58rem;
    letter-spacing: .22em;
    min-height: 34px;
    touch-action: manipulation;
  }

  .nav-list {
    grid-column: 1 / -1; grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .15rem clamp(.55rem, 2.5vw, 1.1rem);
    margin: 0; padding: 0;
    width: 100%;
  }
  .nav-list a {
    font-size: .64rem;
    letter-spacing: .16em;
    padding: .45rem .2rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
  }

  /* Push interior page headers below the stacked nav (two rows ≈ 80–110px) */
  .page-head { padding-top: clamp(7rem, 20vw, 9rem); }
}

/* Very narrow screens: keep links on a clean line by tightening further */
@media (max-width: 420px) {
  .nav-list { gap: .1rem .5rem; }
  .nav-list a { font-size: .58rem; letter-spacing: .12em; padding: .4rem .15rem; }
  .brand-mark .wm { font-size: .72rem; letter-spacing: .16em; }
  .nav-cta { padding: .5rem .8rem; font-size: .54rem; letter-spacing: .2em; }
}

/* ---------- HERO (fullscreen video) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.32) 35%, rgba(0,0,0,.32) 65%, rgba(0,0,0,.6) 100%),
    rgba(0,0,0,.15);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  letter-spacing: -.012em;
  font-weight: 300;
  color: var(--white);
  line-height: .98;
  text-shadow:
    0 2px 14px rgba(0,0,0,.55),
    0 1px 3px rgba(0,0,0,.5);
}
.hero-headline .alt {
  display: inline;
  font-family: var(--f-accent); font-style: italic; font-weight: 500;
  font-size: 1.05em; letter-spacing: 0;
  color: var(--white);
}
.hero-eyebrow {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
  font-weight: 600;
  letter-spacing: .32em;
}
.hero-lede {
  max-width: 48ch;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.55;
  text-shadow:
    0 1px 10px rgba(0,0,0,.6),
    0 1px 2px rgba(0,0,0,.4);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
}
/* On dark hero, ghost button needs light treatment */
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost::before { background: var(--white); }
.hero .btn-ghost:hover { color: var(--ink); }

.hero-meta-bar {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 2.5rem;
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  z-index: 3;
  text-shadow:
    0 1px 8px rgba(0,0,0,.7),
    0 1px 2px rgba(0,0,0,.5);
}
.hero-meta-bar span::before { content: "✦  "; color: var(--tan); }

/* Mobile tweaks (video stays on) */
@media (max-width: 768px) {
  .hero-content { gap: 1.1rem; padding-bottom: 4rem; }
  .hero-headline { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero-lede { font-size: 1rem; }
  .hero-cta { width: 100%; flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-meta-bar {
    bottom: 1.25rem;
    gap: 1.25rem; font-size: .58rem;
    flex-wrap: wrap; justify-content: center; max-width: 90%;
  }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding-top: clamp(5rem, 9vw, 7.5rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
  text-align: center;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); color: var(--ink); }
.page-head h1 .alt { display: inline; font-family: var(--f-accent); font-style: italic; font-weight: 400; color: var(--sage-deep); }
.page-head p { margin: 1rem auto 0; max-width: 580px; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--sage-night);
  color: var(--sand);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: .76rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 500;
  border-top: 1px solid var(--sage-deep);
  border-bottom: 1px solid var(--sage-deep);
}
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 38s linear infinite; padding-left: 3rem; }
.marquee-track span::before { content: "✦"; margin-right: 3rem; color: var(--tan); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Asymmetric Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  gap: 0;
  align-items: center;
}
.intro-grid .col-text { padding-right: clamp(1rem, 4vw, 3rem); }
.intro-grid .col-img-stack { position: relative; min-height: 460px; }
.intro-grid .col-img-stack .img-a {
  position: absolute; top: 0; left: 0; width: 70%; aspect-ratio: 3/4;
  background: var(--sage-soft);
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-out);
}
.intro-grid .col-img-stack .img-b {
  position: absolute; bottom: 0; right: 0; width: 55%; aspect-ratio: 4/5;
  background: var(--sand-deep);
  overflow: hidden;
  border: 8px solid var(--sand);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-out) .25s;
}
.intro-grid .col-img-stack img { width: 100%; height: 100%; object-fit: cover; }
.intro-grid.is-in .col-img-stack .img-a,
.intro-grid .col-img-stack.is-in .img-a,
.is-in .img-a { clip-path: inset(0 0 0 0); }
.intro-grid.is-in .col-img-stack .img-b,
.intro-grid .col-img-stack.is-in .img-b,
.is-in .img-b { clip-path: inset(0 0 0 0); }
.intro-grid h2 { margin-bottom: 1rem; }
.intro-grid h2 .alt { display: inline; font-family: var(--f-accent); font-style: italic; color: var(--sage-deep); }
.intro-signature { margin-top: 1.25rem; font-family: var(--f-accent); font-style: italic; font-size: 1.4rem; color: var(--ink); }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-grid .col-text { padding-right: 0; }
  .intro-grid .col-img-stack { min-height: 420px; }
  /* The middle column is an empty spacer <div> — collapse it on mobile
     so it doesn't create a dead gap between the text and the images */
  .intro-grid > div:empty { display: none; }
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 16ch; }
.section-head h2 .alt { font-family: var(--f-accent); font-style: italic; color: var(--sage-deep); display: inline; }
.section-head .lede { max-width: 460px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
/* Add-ons / "little extras" on services.html — force a tidy 2x2 grid on
   mobile so all four short cards stay visible side-by-side instead of
   stacking into a tall column. */
@media (max-width: 720px) {
  .extras-grid {
    grid-template-columns: 1fr 1fr;
  }
  .extras-grid .service-card {
    padding: 1.1rem 1rem;
    gap: .5rem;
  }
  .extras-grid .service-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }
  .extras-grid .service-card p {
    font-size: .82rem;
    line-height: 1.45;
  }
}
.service-card {
  background: var(--sand);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: .75rem;
  transition: background .55s var(--ease-out), transform .55s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--tan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .65s var(--ease-out);
}
.service-card:hover { background: var(--white); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .num { font-family: var(--f-accent); font-style: italic; color: var(--tan-deep); font-size: 2.2rem; line-height: 1; font-weight: 500; }
.service-card h3 { font-family: var(--f-display); font-weight: 300; color: var(--ink); }
.service-card p { color: var(--ink-soft); }
.service-card .price { font-family: var(--f-display); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-top: auto; padding-top: .5rem; }
.service-card .price strong { color: var(--tan-deep); font-weight: 600; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 1px solid var(--line); }
.service-detail.flip { direction: rtl; }
.service-detail.flip > * { direction: ltr; }
.service-detail .img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease-out);
  will-change: transform;
  position: relative;
  overflow: hidden;
  background-color: var(--sand-deep);
}
.service-detail .img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.service-detail .body {
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 4.5vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.service-detail h3 { margin: .5rem 0 .85rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }
.service-detail p { color: var(--ink-soft); }
.service-detail .pricing-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  margin: 1rem 0 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.service-detail .pricing-row > div { font-family: var(--f-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.service-detail .pricing-row span { display: block; color: var(--ink-mute); margin-bottom: .35rem; font-size: .68rem; }
.service-detail .pricing-row strong { color: var(--tan-deep); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; }
@media (max-width: 800px) {
  .service-detail, .service-detail.flip { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Portfolio gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery-grid .tile {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  display: block;
}
.gallery-grid .tile::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--sand-deep);
  z-index: 1;
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1s var(--ease-out);
}
.gallery-grid .tile.is-in::before { transform: scaleY(0); }
/* Tiles using fx-origin-anchored bring their own reveal — suppress the legacy curtain */
.gallery-grid .tile.fx-origin-anchored::before { display: none; }
.gallery-grid .tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .6s ease;
  position: relative;
  filter: saturate(.95);
}
.gallery-grid .tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-grid .tile.t1 { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-grid .tile.t2 { grid-column: span 7; aspect-ratio: 5/4; }
.gallery-grid .tile.t3 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .tile.t4 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .tile.t5 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .tile.t6 { grid-column: span 7; aspect-ratio: 5/4; }
.gallery-grid .tile.t7 { grid-column: span 5; aspect-ratio: 4/5; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .gallery-grid .tile { grid-column: span 1 !important; aspect-ratio: 3/4 !important; }
}

/* ---------- Testimonials (improved contrast: deep sage) ---------- */
.testimonials {
  background: var(--sage-night);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(180,190,179,.18), transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(188,141,101,.12), transparent 50%);
  pointer-events: none;
}
.testimonials .eyebrow { color: var(--tan); }
.testimonials h2 { color: var(--sand); }
.testimonials h2 .alt { color: var(--sage); }
.testimonials .lede { color: rgba(247,244,239,.85); }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.testi {
  background: rgba(255,255,255,.04);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: .75rem;
  transition: background .5s var(--ease-out), transform .5s var(--ease-out), border-color .5s ease;
  position: relative;
}
.testi:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-4px);
  border-color: var(--tan);
}
.testi .stars { color: var(--tan); letter-spacing: .25em; font-size: .9rem; }
.testi blockquote {
  margin: 0;
  font-family: var(--f-accent);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--sand);
  font-style: italic;
}
.testi cite {
  font-family: var(--f-display);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
  margin-top: auto;
  font-weight: 500;
}
/* Mobile testimonials: swipeable one-card carousel with snap + dot pagination.
   Built so each quote gets the full width and proper breathing room rather
   than collapsing into a tall vertical stack. */
@media (max-width: 850px) {
  .testi-track {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: .5rem var(--gutter) 1rem;
    margin-inline: calc(-1 * var(--gutter));
    scroll-padding-inline: var(--gutter);
  }
  .testi-track::-webkit-scrollbar { display: none; }
  .testi {
    flex: 0 0 calc(100% - var(--gutter));
    scroll-snap-align: center;
    padding: 2rem 1.5rem;
    min-height: 280px;
  }
  .testi blockquote { font-size: 1.25rem; line-height: 1.5; }
  .testimonials .testi-dots {
    display: flex; gap: .55rem; justify-content: center;
    margin-top: 1.25rem; padding: 0; list-style: none;
  }
  .testimonials .testi-dots button {
    width: 8px; height: 8px; padding: 0;
    border-radius: 50%;
    background: rgba(247,244,239,.28);
    border: 0;
    cursor: pointer;
    transition: background .35s ease, transform .35s ease;
  }
  .testimonials .testi-dots button.is-active {
    background: var(--tan);
    transform: scale(1.3);
  }
}
@media (min-width: 851px) {
  .testimonials .testi-dots { display: none; }
}

/* ---------- Process ---------- */
/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.stats .stat { text-align: center; }
.stats .stat .figure { font-family: var(--f-accent); font-style: italic; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--tan-deep); line-height: 1; font-weight: 500; }
.stats .stat .label { font-family: var(--f-display); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); margin-top: .65rem; font-weight: 500; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  text-align: center;
  color: var(--white);
  overflow: hidden;
  /* Dark base colour acts as a guaranteed fallback if the image fails to load */
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(31,29,26,.55), rgba(31,29,26,.72)),
    url('../images/Camber%20Autumn%20(349%20of%20415).jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); max-width: 18ch; margin: 0 auto 1rem; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.cta-banner h2 .alt { font-family: var(--f-accent); font-style: italic; color: var(--sage); display: inline; }
.cta-banner p { color: rgba(255,255,255,.95); max-width: 540px; margin: 0 auto 2rem; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.cta-banner .eyebrow { color: var(--tan); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ---------- Affiliate product cards ---------- */
.aff-card {
  display: flex;
  flex-direction: column;
  background: var(--sand);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .55s var(--ease-out), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.aff-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--tan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
  z-index: 2;
}
.aff-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 14px 40px rgba(31,29,26,.08);
}
.aff-card:hover::after { transform: scaleX(1); }

.aff-img {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.aff-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12%;
  transition: transform .8s var(--ease-out);
  background: var(--white);
}
.aff-card:hover .aff-img img { transform: scale(1.06); }
.aff-img .aff-badge {
  position: absolute;
  top: .85rem; left: .85rem;
  background: var(--sand);
  padding: .4rem .7rem;
  border: 1px solid var(--line);
}

.aff-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  flex: 1;
}

.aff-brand {
  font-family: var(--f-display);
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding: .3rem .55rem;
  border: 1px solid var(--ink);
  align-self: flex-start;
}
.aff-badge {
  font-family: var(--f-display);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tan);
}
.aff-name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.aff-blurb {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
.aff-foot {
  display: flex; flex-direction: column; gap: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  margin-top: .35rem;
}
.aff-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--f-display);
}
.aff-size { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.aff-price { font-family: var(--f-accent); font-style: italic; font-size: 1.4rem; color: var(--tan); font-weight: 500; }
.aff-cta {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--f-display);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  transition: color .25s ease, border-color .25s ease;
}
.aff-cta .arrow { transition: transform .35s var(--ease-out); }
.aff-card:hover .aff-cta { color: var(--tan); border-color: var(--tan); }
.aff-card:hover .aff-cta .arrow { transform: translateX(5px); }

/* Affiliate disclosure strip */
.aff-disclosure {
  font-size: .78rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line);
  background: var(--sand-deep);
}
.aff-disclosure strong { color: var(--ink); font-weight: 600; }

/* ---------- Shop ---------- */
.shop-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
}
.shop-bar .count { font-family: var(--f-display); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.shop-bar select {
  border: 1px solid var(--line); background: var(--sand);
  padding: .7rem 2.4rem .7rem 1.2rem; border-radius: 999px;
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231F1D1A' fill='none' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
}
/* Full shop page: 2-column grid on mobile so cards stay side-by-side and
   the page doesn't become an endless vertical list. */
@media (max-width: 720px) {
  .product-grid[data-shop-grid] {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem .85rem;
  }
  .product-grid[data-shop-grid] .aff-body {
    padding: .85rem .9rem;
    gap: .45rem;
  }
  .product-grid[data-shop-grid] .aff-img img { padding: 14%; }
  .product-grid[data-shop-grid] .aff-brand {
    padding: .2rem .4rem; font-size: .55rem; letter-spacing: .22em;
  }
  .product-grid[data-shop-grid] .aff-name {
    font-size: .92rem; line-height: 1.2;
  }
  .product-grid[data-shop-grid] .aff-blurb {
    font-size: .76rem; line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-grid[data-shop-grid] .aff-foot {
    gap: .5rem;
    padding-top: .55rem;
    margin-top: .25rem;
  }
  .product-grid[data-shop-grid] .aff-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }
  .product-grid[data-shop-grid] .aff-price { font-size: 1.05rem; }
  .product-grid[data-shop-grid] .aff-size { font-size: .6rem; letter-spacing: .18em; }
  .product-grid[data-shop-grid] .aff-cta {
    font-size: .58rem; letter-spacing: .2em; gap: .35rem;
    padding-bottom: .2rem;
  }
  .product-grid[data-shop-grid] .aff-img .aff-badge {
    top: .45rem; left: .45rem;
    padding: .22rem .45rem;
    font-size: .5rem; letter-spacing: .15em;
  }
}

/* Homepage featured strip on mobile: compact horizontal card (image left,
   body right) so all three products fit cleanly without sideways scrolling
   or an exhausting vertical list. Full shop page grid stays unchanged. */
@media (max-width: 720px) {
  .product-grid.featured-products {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 1rem;
  }
  .product-grid.featured-products .aff-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: stretch;
  }
  .product-grid.featured-products .aff-img {
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .product-grid.featured-products .aff-img img { padding: 14%; }
  .product-grid.featured-products .aff-body {
    padding: 1rem 1.1rem;
    gap: .5rem;
  }
  .product-grid.featured-products .aff-brand { padding: .22rem .45rem; font-size: .58rem; }
  .product-grid.featured-products .aff-name { font-size: 1rem; line-height: 1.2; }
  .product-grid.featured-products .aff-blurb {
    font-size: .8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-grid.featured-products .aff-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding-top: .55rem;
    margin-top: .25rem;
  }
  .product-grid.featured-products .aff-meta { gap: .5rem; }
  .product-grid.featured-products .aff-price { font-size: 1.15rem; }
  .product-grid.featured-products .aff-cta {
    font-size: .6rem; letter-spacing: .2em;
    padding-bottom: .25rem; gap: .35rem;
  }
  .product-grid.featured-products .aff-img .aff-badge {
    top: .5rem; left: .5rem;
    padding: .25rem .5rem;
    font-size: .55rem; letter-spacing: .16em;
  }
}
/* ---------- Forms / Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.form-preview { min-width: 0; }
/* Mobile: stack the two cards vertically like the other pages, and turn
   the info-card's five sections into a tidy 2-column grid so they fit
   side-by-side rather than piling into a tall list. */
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.info-card { display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 800px) {
  .info-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem 1rem;
    padding: 1.2rem 1.1rem;
    background: var(--sand);
    border: 1px solid var(--line);
  }
  .info-card .info-row { min-width: 0; }
  .info-card .info-row h4 { font-size: .66rem; letter-spacing: .22em; margin-bottom: .3rem; }
  .info-card .info-row p { font-size: .85rem; line-height: 1.45; margin: 0; word-wrap: break-word; overflow-wrap: anywhere; }
  /* Rows that contain a button get the full row width */
  .info-card .info-row:has(.btn) { grid-column: 1 / -1; }
  .info-card .info-row .btn {
    padding: .65rem 1rem; font-size: .6rem; letter-spacing: .22em;
    white-space: normal; text-align: center;
  }
  .info-card .info-row .text-link { font-size: .64rem; letter-spacing: .22em; }
}
.info-card .info-row h4 { color: var(--tan-deep); margin-bottom: .5rem; font-weight: 600; }
.info-card a { color: var(--ink); transition: color .25s ease; }
.info-card a:hover { color: var(--tan-deep); }

.form { display: flex; flex-direction: column; gap: 1.4rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field {
  display: flex; flex-direction: column; gap: .4rem;
  position: relative;
}
.field label { font-family: var(--f-display); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.field input, .field textarea, .field select {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: .8rem 0;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  font-family: var(--f-body);
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--tan); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  transition: padding .35s ease;
}
.faq details[open] { padding-bottom: 1.8rem; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .02em;
  transition: color .25s ease;
}
.faq summary:hover { color: var(--tan-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center/10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 10px no-repeat;
  color: var(--ink);
  transition: transform .45s var(--ease-out), background .35s ease, border-color .35s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(currentColor, currentColor) center/10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 10px no-repeat;
  border-color: var(--tan);
  color: var(--tan-deep);
}
.faq details p { margin-top: 1rem; max-width: 75ch; color: var(--ink-soft); animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--sand);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  margin-top: 0;
  position: relative;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 1100px) {
  footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
/* Mobile: keep the four columns visible as a tidy 2x2 grid so the footer
   doesn't become a giant vertical stack. Tighten typography + spacing. */
@media (max-width: 800px) {
  footer { padding-block: 1.75rem; }
  footer .cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
  }
  footer .brand-block { grid-column: 1 / -1; }
  footer .brand-block p { font-size: .85rem; max-width: none; margin-top: .65rem; }
  footer .brand-block .wm { font-size: 1.4rem; }
  footer h4 { margin-bottom: .65rem; font-size: .68rem; letter-spacing: .25em; }
  footer ul { gap: .4rem; }
  footer ul a, footer ul li { font-size: .82rem; }
  footer .legal { padding-top: .9rem; font-size: .62rem; letter-spacing: .12em; gap: .5rem; flex-direction: column; align-items: flex-start; }
  .socials { margin-top: .75rem; gap: .5rem; }
  .socials a { width: 34px; height: 34px; }
}
footer h4 { color: var(--tan); margin-bottom: 1.25rem; font-size: .76rem; letter-spacing: .3em; font-weight: 600; }
footer .brand-block .wm {
  font-family: var(--f-accent);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.05;
}
footer .brand-block p { color: rgba(247,244,239,.78); font-size: .92rem; margin-top: 1rem; max-width: 28ch; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
footer ul a, footer ul li { color: rgba(247,244,239,.85); font-size: .94rem; transition: color .25s; }
footer ul a:hover { color: var(--tan); }
footer .legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,239,.7);
}
footer .legal a { color: rgba(247,244,239,.7); }
footer .legal a:hover { color: var(--tan); }
footer .legal .credit { font-size: .62rem; letter-spacing: .18em; color: rgba(247,244,239,.45); }
footer .legal .credit a { color: rgba(247,244,239,.55); }
footer .legal .credit a:hover { color: var(--tan); }

.socials { display: flex; gap: .75rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .35s var(--ease-out), border-color .35s ease, transform .35s ease;
  color: rgba(247,244,239,.9);
}
.socials a:hover { background: var(--tan); border-color: var(--tan); transform: translateY(-3px); color: var(--white); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

.mask-reveal { position: relative; overflow: hidden; }
.mask-reveal::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--sand);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1s var(--ease-out);
}
.mask-reveal.is-in::after { transform: scaleX(0); }

/* Split text animation */
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
[data-split].is-in .word-inner,
.is-in [data-split] .word-inner { transform: translateY(0); }
[data-split] .word:nth-child(1) .word-inner { transition-delay: .05s; }
[data-split] .word:nth-child(2) .word-inner { transition-delay: .12s; }
[data-split] .word:nth-child(3) .word-inner { transition-delay: .19s; }
[data-split] .word:nth-child(4) .word-inner { transition-delay: .26s; }
[data-split] .word:nth-child(5) .word-inner { transition-delay: .33s; }
[data-split] .word:nth-child(6) .word-inner { transition-delay: .4s; }
[data-split] .word:nth-child(7) .word-inner { transition-delay: .47s; }
[data-split] .word:nth-child(8) .word-inner { transition-delay: .54s; }
[data-split] .line { display: block; }

/* Stagger groups */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.stagger > *.is-in { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .19s; }
.stagger > *:nth-child(4) { transition-delay: .26s; }
.stagger > *:nth-child(5) { transition-delay: .33s; }
.stagger > *:nth-child(6) { transition-delay: .4s; }
.stagger > *:nth-child(7) { transition-delay: .47s; }
.stagger > *:nth-child(8) { transition-delay: .54s; }
.stagger > *:nth-child(9) { transition-delay: .61s; }

/* Parallax helper */
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0), 0); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.flex { display: flex; }
.gap-1 { gap: 1rem; }
.bg-deep { background: var(--sand-deep); }
.bg-warm { background: var(--sand-warm); }
.bg-sage { background: var(--sage); color: var(--white); }
.full-bleed { margin-inline: calc(var(--gutter) * -1); }

/* =========================================================
   v2 — Editorial entry patterns, lightbox, sticky pill,
   signature, timeline, link/CTA polish.
   All motion uses transform/opacity/clip-path/filter only
   and collapses to a soft fade under reduced-motion.
   ========================================================= */

:root {
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quint: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Lenis takes over the scroll — disable native smooth */
html.lenis,
html.lenis body { scroll-behavior: auto !important; }
html.lenis.lenis-scrolling { cursor: grabbing; }
html.lenis-smooth { scroll-behavior: auto; }

/* ---------- Photo entry: vertical mask + slow zoom (workhorse) ---------- */
.fx-mask-zoom {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease-expo);
  isolation: isolate;
}
.fx-mask-zoom > img,
.fx-mask-zoom > picture > img,
.fx-mask-zoom > .fx-inner {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-expo);
}
.fx-mask-zoom.is-in { clip-path: inset(0 0 0 0); }
.fx-mask-zoom.is-in > img,
.fx-mask-zoom.is-in > picture > img,
.fx-mask-zoom.is-in > .fx-inner { transform: scale(1); }

/* ---------- Photo entry: origin-anchored fade-zoom (3-tile studio grid) ---------- */
.fx-origin-anchored {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .9s var(--ease-expo), transform .95s var(--ease-expo);
}
.fx-origin-anchored.is-in { opacity: 1; transform: scale(1); }
.fx-origin-anchored--bl { transform-origin: 18% 88%; }
.fx-origin-anchored--t  { transform-origin: 50% 8%;  }
.fx-origin-anchored--br { transform-origin: 82% 88%; }
.fx-origin-anchored:nth-child(2) { transition-delay: .12s; }
.fx-origin-anchored:nth-child(3) { transition-delay: .24s; }

/* ---------- Photo entry: letterbox curtain (one hero photo) ---------- */
.fx-letterbox {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.fx-letterbox::before,
.fx-letterbox::after {
  content: "";
  position: absolute; left: 0; right: 0;
  background: var(--sand-deep);
  z-index: 2;
  transition: transform .95s var(--ease-quint);
}
.fx-letterbox::before { top: 0;    height: 50%; transform: translateY(0); }
.fx-letterbox::after  { bottom: 0; height: 50%; transform: translateY(0); }
.fx-letterbox.is-in::before { transform: translateY(-100%); }
.fx-letterbox.is-in::after  { transform: translateY(100%); }
.fx-letterbox > img,
.fx-letterbox > .fx-inner {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.5s var(--ease-expo);
}
.fx-letterbox.is-in > img,
.fx-letterbox.is-in > .fx-inner { transform: scale(1); }

/* ---------- Text entry: per-word blur dissolve (extends [data-split]) ---------- */
[data-split].fx-blur .word { overflow: visible; }
[data-split].fx-blur .word-inner {
  transform: translateY(14px);
  filter: blur(8px);
  opacity: 0;
  transition: transform .75s var(--ease-expo),
              filter .7s ease,
              opacity .7s ease;
}
[data-split].fx-blur.is-in .word-inner,
.is-in [data-split].fx-blur .word-inner {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}
/* Slightly slower word stagger for editorial pace (overrides default .07s steps) */
[data-split].fx-blur .word:nth-child(1) .word-inner { transition-delay: .15s; }
[data-split].fx-blur .word:nth-child(2) .word-inner { transition-delay: .19s; }
[data-split].fx-blur .word:nth-child(3) .word-inner { transition-delay: .23s; }
[data-split].fx-blur .word:nth-child(4) .word-inner { transition-delay: .27s; }
[data-split].fx-blur .word:nth-child(5) .word-inner { transition-delay: .31s; }
[data-split].fx-blur .word:nth-child(6) .word-inner { transition-delay: .35s; }
[data-split].fx-blur .word:nth-child(7) .word-inner { transition-delay: .39s; }
[data-split].fx-blur .word:nth-child(8) .word-inner { transition-delay: .43s; }
[data-split].fx-blur .word:nth-child(9) .word-inner { transition-delay: .47s; }
[data-split].fx-blur .word:nth-child(10) .word-inner { transition-delay: .51s; }

/* ---------- Text entry: line clip reveal (lede / body paragraphs) ---------- */
.fx-line-clip .fx-line {
  display: block;
  overflow: hidden;
}
.fx-line-clip .fx-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform .85s var(--ease-expo);
}
.fx-line-clip.is-in .fx-line-inner,
.is-in .fx-line-clip .fx-line-inner { transform: translateY(0); }
.fx-line-clip.is-in .fx-line:nth-child(1) .fx-line-inner,
.is-in .fx-line-clip .fx-line:nth-child(1) .fx-line-inner { transition-delay: .35s; }
.fx-line-clip.is-in .fx-line:nth-child(2) .fx-line-inner,
.is-in .fx-line-clip .fx-line:nth-child(2) .fx-line-inner { transition-delay: .43s; }
.fx-line-clip.is-in .fx-line:nth-child(3) .fx-line-inner,
.is-in .fx-line-clip .fx-line:nth-child(3) .fx-line-inner { transition-delay: .51s; }
.fx-line-clip.is-in .fx-line:nth-child(4) .fx-line-inner,
.is-in .fx-line-clip .fx-line:nth-child(4) .fx-line-inner { transition-delay: .59s; }
.fx-line-clip.is-in .fx-line:nth-child(5) .fx-line-inner,
.is-in .fx-line-clip .fx-line:nth-child(5) .fx-line-inner { transition-delay: .67s; }

/* ---------- Text entry: eyebrow pre-roll (clip wipe L→R) ---------- */
.fx-eyebrow {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .85s var(--ease-expo);
  will-change: clip-path;
}
.fx-eyebrow.is-in,
.is-in .fx-eyebrow { clip-path: inset(0 0 0 0); }

/* ---------- Link underlines: handwritten L→R draw on hover ---------- */
.aff-cta,
footer ul a,
.info-card a:not(.btn):not(.text-link) {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.aff-cta::after,
footer ul a::after,
.info-card a:not(.btn):not(.text-link)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease-expo), opacity .35s ease;
}
.aff-cta:hover::after,
footer ul a:hover::after,
.info-card a:not(.btn):not(.text-link):hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ---------- CTA arrow nudge (refined) ---------- */
.btn .arrow,
.text-link .arrow,
.aff-cta .arrow { transition: transform .5s var(--ease-expo); }
.btn:hover .arrow,
.text-link:hover .arrow,
.aff-cta:hover .arrow { transform: translateX(8px); }

/* ---------- Sticky Book pill ---------- */
.book-pill {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.4rem;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--f-display);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(31,29,26,.22), 0 2px 6px rgba(31,29,26,.12);
  opacity: 0;
  transform: translateY(20px) scale(.95);
  pointer-events: none;
  transition: opacity .55s var(--ease-expo),
              transform .55s var(--ease-expo),
              background .35s ease, color .35s ease;
}
.book-pill.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.book-pill:hover { background: var(--tan); color: var(--white); }
.book-pill .arrow { transition: transform .5s var(--ease-expo); display: inline-block; }
.book-pill:hover .arrow { transform: translateX(6px); }
.book-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tan);
  animation: pill-pulse 2.4s ease-in-out infinite;
}
.book-pill:hover .dot { background: var(--sand); animation: none; }
@keyframes pill-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@media (max-width: 600px) {
  .book-pill { padding: .8rem 1.1rem; font-size: .62rem; letter-spacing: .22em; gap: .45rem; }
}

/* ---------- Signature draw-in (homepage hero) ---------- */
.signature-mark {
  display: inline-block;
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  padding-bottom: .15em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.signature-mark .sig-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease-expo) .15s;
  will-change: clip-path;
}
.signature-mark .sig-flourish {
  display: block;
  height: 2px;
  width: 0;
  margin-top: .15em;
  background: linear-gradient(90deg, transparent, var(--tan) 30%, var(--tan) 70%, transparent);
  transition: width .9s var(--ease-expo) 1.4s;
  opacity: .85;
}
.signature-mark.is-in .sig-text { clip-path: inset(0 0 0 0); }
.signature-mark.is-in .sig-flourish { width: 100%; }

/* ---------- What-to-expect timeline ---------- */
.expect-timeline {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}
.expect-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
}
.expect-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: var(--timeline-progress, 0%);
  background: var(--tan);
  transition: height .25s linear;
  box-shadow: 0 0 8px rgba(188,141,101,.45);
}
.expect-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo);
  position: relative;
  max-width: 760px;
}
.expect-step.is-in { opacity: 1; transform: translateY(0); }
.expect-step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
  top: 1.1rem;
  width: 12px; height: 12px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateX(-5px);
  transition: background .45s ease, border-color .45s ease, transform .45s var(--ease-expo);
  z-index: 2;
}
.expect-step.is-in::before {
  background: var(--tan);
  border-color: var(--tan);
  transform: translateX(-5px) scale(1.15);
}
.expect-step .step-media {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 340px;
  overflow: hidden;
  background: var(--sand-deep);
}
.expect-step .step-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.95);
  transition: transform 1.2s var(--ease-expo);
}
.expect-step:hover .step-media img { transform: scale(1.04); }
.expect-step .step-body { display: flex; flex-direction: column; gap: .55rem; }
.expect-step .step-num {
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--tan-deep);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
}
.expect-step .step-kicker {
  font-family: var(--f-display);
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.expect-step h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--ink);
}
.expect-step p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
  max-width: 50ch;
}
@media (max-width: 800px) {
  .expect-step {
    gap: .85rem;
  }
  .expect-step .step-media { max-height: 220px; aspect-ratio: 16/9; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9600;
  background: rgba(31,29,26,.85);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-stage {
  position: relative;
  width: min(92vw, 1100px);
  height: min(80vh, 1100px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.lightbox-img.is-animating {
  transition: transform .42s var(--ease-expo), opacity .35s ease;
}
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: -2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  opacity: 0;
  transition: opacity .4s ease .2s;
}
.lightbox.is-open .lightbox-caption { opacity: 1; }
.lightbox-caption-text {
  font-family: var(--f-display);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(247,244,239,.7);
  font-weight: 500;
  max-width: 80vw;
}
.lightbox-caption-text:empty { display: none; }
.lightbox-external {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  font-family: var(--f-display);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
  background: rgba(247,244,239,.08);
  border: 1px solid rgba(247,244,239,.22);
  border-radius: 999px;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .35s var(--ease-expo);
}
.lightbox-external:hover {
  background: var(--tan);
  border-color: var(--tan);
  color: var(--white);
  transform: translateY(-2px);
}
.lightbox-external svg { color: currentColor; }
.lightbox-external[hidden] { display: none; }
@media (max-width: 700px) {
  .lightbox-caption { bottom: -3.5rem; gap: .4rem; }
  .lightbox-caption-text { font-size: .62rem; letter-spacing: .22em; }
  .lightbox-external { padding: .45rem .85rem; font-size: .6rem; letter-spacing: .22em; }
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(247,244,239,.08);
  border: 1px solid rgba(247,244,239,.18);
  color: var(--sand);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .35s var(--ease-expo);
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(247,244,239,.18); border-color: var(--tan); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-nav  { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }
.lightbox-nav:hover.prev { transform: translateY(-50%) translateX(-3px); }
.lightbox-nav:hover.next { transform: translateY(-50%) translateX(3px); }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: .5rem; }
  .lightbox-nav.next { right: .5rem; }
  .lightbox-close { top: .75rem; right: .75rem; }
}
body.lb-open { overflow: hidden; }

/* Lightbox-able tiles show a small zoom hint cursor */
[data-lightbox] { cursor: zoom-in; }

/* ---------- Reduced motion: collapse everything to a soft fade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fx-mask-zoom,
  .fx-letterbox { clip-path: inset(0) !important; }
  .fx-letterbox::before,
  .fx-letterbox::after { display: none; }
  .fx-mask-zoom > img,
  .fx-letterbox > img,
  .fx-origin-anchored { opacity: 1 !important; transform: none !important; }
  [data-split].fx-blur .word-inner { filter: none !important; opacity: 1 !important; transform: none !important; }
  .fx-line-clip .fx-line-inner { transform: none !important; }
  .fx-eyebrow { clip-path: inset(0) !important; }
  .signature-mark .sig-text { clip-path: inset(0) !important; }
  .signature-mark .sig-flourish { width: 100% !important; }
  .book-pill { opacity: 1; transform: none; }
}

/* Focus — visible only for keyboard navigation (not mouse clicks) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-to-content link: hidden until focused with Tab */
.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  padding: .85rem 1.25rem;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--f-display);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--tan);
  outline-offset: 2px;
}

/* ---------- Small-screen polish ---------- */
@media (max-width: 600px) {
  /* Tighter buttons */
  .btn { padding: .9rem 1.4rem; font-size: .68rem; letter-spacing: .22em; }
  .btn .arrow { margin-left: .25rem; }

  /* Marquee — slow it down + shrink */
  .marquee { font-size: .66rem; letter-spacing: .32em; padding-block: .85rem; }
  .marquee-track { animation-duration: 56s; }

  /* Section heads single column */
  .section-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .section-head .lede { max-width: 100%; }

  /* Service detail: less side padding */
  .service-detail .body { padding: 1.5rem 1.25rem; }
  .service-detail .pricing-row { gap: .75rem 1.5rem; }
  .service-detail .pricing-row > div { font-size: .72rem; }

  /* Stats — figures slightly smaller */
  .stats { padding: 1.25rem 0; gap: 1rem; }
  .stats .stat .figure { font-size: clamp(2rem, 9vw, 3rem); }
  .stats .stat .label { font-size: .64rem; letter-spacing: .22em; margin-top: .35rem; }

  /* Testimonials wrap nicer */
  .testi { padding: 1.5rem 1.25rem; }
  .testi blockquote { font-size: 1.2rem; }

  /* CTA banner — tighter */
  .cta-banner p { font-size: .98rem; }

  /* Page-head h1 */
  .page-head h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .page-head .eyebrow { letter-spacing: .25em; font-size: .68rem; }

  /* Intro signature smaller */
  .intro-signature { font-size: 1.25rem; }
}

/* Avoid horizontal scroll on tiny screens */
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Instagram feed grid + reels rail
   Used on portfolio.html and index.html — fed live by the
   Netlify ig-feed function, with static markup as fallback.
   ========================================================= */
.ig-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1vw, 1rem);
}
@media (max-width: 1100px) { .ig-feed { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .ig-feed { grid-template-columns: repeat(2, 1fr); } }

.ig-post {
  position: relative;
  aspect-ratio: 4 / 5;            /* Instagram portrait standard */
  overflow: hidden;
  background: var(--sand-deep);
  display: block;
  isolation: isolate;
}
.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s var(--ease-out), filter .5s ease;
  filter: saturate(.96);
}
.ig-post:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

/* ---------- Reels rail ---------- */
.reels-rail {
  position: relative;
  overflow: hidden;
  padding-block: .5rem 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reels-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: reels-scroll 90s linear infinite;
  will-change: transform;
}
.reels-rail:hover .reels-track,
.reels-track:focus-within { animation-play-state: paused; }
@keyframes reels-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reels-track { animation: none; }
  .reels-rail { overflow-x: auto; scroll-snap-type: x mandatory; }
  .reel-card { scroll-snap-align: start; }
}

.reel-card {
  flex: 0 0 auto;
  width: clamp(190px, 26vw, 260px);
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  border-radius: 4px;
  display: block;
  isolation: isolate;
}
.reel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.reel-card:hover img { transform: scale(1.06); }
.reel-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.reel-card .play-icon {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  color: white;
}
.reel-card .play-icon svg { display: block; }
.reel-card .reel-meta {
  position: absolute;
  left: 1rem; right: 1rem; bottom: .9rem;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.reel-card .reel-caption {
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}
.reel-card .reel-views {
  font-family: var(--f-display);
  font-size: .65rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.78);
  margin-top: .35rem;
  display: flex; align-items: center; gap: .3rem;
}
.reel-card .reel-views::before {
  content: "▶";
  font-size: .55rem;
  color: var(--tan);
}
@media (max-width: 600px) {
  .reels-track { animation-duration: 60s; gap: .65rem; }
  .reel-card { width: 180px; border-radius: 2px; }
}
