/* =====================================================================
   Great Tales Media — single landing page
   Design language: Grift throughout, accent words in orange,
   warm brown grounds, cream paper, orange #f17824.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Grift"; src: url("fonts/Grift-Regular.woff2") format("woff2"), url("fonts/Grift-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-Italic.woff2") format("woff2"), url("fonts/Grift-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-Medium.woff2") format("woff2"), url("fonts/Grift-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-SemiBold.woff2") format("woff2"), url("fonts/Grift-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-Bold.woff2") format("woff2"), url("fonts/Grift-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-Black.woff2") format("woff2"), url("fonts/Grift-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Grift"; src: url("fonts/Grift-BlackItalic.woff2") format("woff2"), url("fonts/Grift-BlackItalic.woff") format("woff"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brown-950: #140d05;
  --brown-900: #1c1208;
  --brown-800: #2e1d08;
  --brown-700: #3b2f18;
  --orange: #f17824;
  --orange-hi: #ff9845;
  --orange-ink: #c95a10;          /* orange text on cream (AA for large text) */
  --cream: #f6f5f3;
  --cream-2: #efe9e1;
  --sand: #f4dfc4;
  --ink: #1c1208;
  --ink-2: #4a3a28;
  --ink-3: #7a6852;
  --on-dark: #f6efe4;
  --on-dark-2: #c9b9a1;
  --line-light: rgba(28, 18, 8, 0.12);
  --line-dark: rgba(246, 239, 228, 0.14);

  --font-sans: "Grift", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .25s ease;
}
.skip-link:focus { top: 12px; }
/* Keyboard focus ring: dark brown on light sections (orange there is only 2.6:1),
   orange on dark sections (6.5:1). Only keyboard users ever see it. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .is-scrolled :focus-visible, .mrf-body :focus-visible, .lightbox :focus-visible { outline-color: var(--orange); }

/* ---------- Type system ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-ink);
}
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.on-dark .eyebrow { color: var(--orange); }

.h-display {
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: .98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* Accent words: same face and weight as the headline, just in brand orange. */
.script { color: var(--orange); }
.on-light .script { color: var(--orange); }
.lede { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--ink-2); max-width: 58ch; }
.on-dark .lede { color: var(--on-dark-2); }

.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

.on-dark { background: var(--brown-900); color: var(--on-dark); }
.on-light { background: var(--cream); color: var(--ink); }

/* ---------- Pill button (shared with the footer CTA) ---------- */
.pill {
  --mx: 0px; --my: 0px;
  --pill-bg: var(--orange); --pill-ink: #fff;
  --pill-fill: var(--brown-900); --pill-fill-ink: var(--on-dark);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink);
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(241, 120, 36, .7), 0 2px 6px -2px rgba(28, 18, 8, .25);
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 500ms cubic-bezier(.2, .9, .3, 1.2), color 450ms ease;
}
.pill::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--fx, 50%); top: var(--fy, 50%);
  width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: var(--pill-fill); transform: scale(0);
  transition: transform 650ms var(--ease-out);
}
.pill-arrow {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--orange);
  transition: background 450ms ease, color 450ms ease;
}
.pill-arrow svg { grid-area: 1 / 1; transition: transform 520ms cubic-bezier(.65, 0, .25, 1); }
.pill-arrow .a2 { transform: translateY(-220%); }
.pill:hover, .pill:focus-visible { color: var(--pill-fill-ink); }
.pill:hover::before, .pill:focus-visible::before { transform: scale(1); }
.pill:hover .pill-arrow, .pill:focus-visible .pill-arrow { background: var(--orange); color: #fff; }
.pill:hover .a1, .pill:focus-visible .a1 { transform: translateY(220%); }
.pill:hover .a2, .pill:focus-visible .a2 { transform: none; }
.pill.ghost {
  --pill-bg: transparent; --pill-ink: #fff; --pill-fill: #fff; --pill-fill-ink: var(--brown-900);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
  padding: 0 22px;
}
.pill.small { height: 42px; font-size: 12.5px; padding-left: 18px; }
.pill.small .pill-arrow { width: 28px; height: 28px; }
.pill.block { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.gt-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ink);
  background: transparent;
  transition: background 400ms ease, box-shadow 400ms ease, color 400ms ease;
}
.gt-header.is-scrolled, .menu-open .gt-header {
  color: #fff;
  background: rgba(28, 18, 8, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
/* Three columns with equal sides, so the logo always sits dead centre. */
.gt-header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.gt-nav-left { justify-self: start; }
.gt-brand { grid-column: 2; display: inline-flex; align-items: center; border-radius: 8px; }
.gt-brand img { height: 35px; width: auto; }
.gt-header-actions { grid-column: 3; justify-self: end; }
.gt-nav { display: none; gap: clamp(20px, 2.6vw, 36px); font-weight: 700; font-size: 15px; }
.gt-nav a { position: relative; opacity: .88; padding: 6px 0; transition: opacity .25s ease, color .25s ease; }
.gt-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 450ms var(--ease-out);
}
.gt-nav a:hover, .gt-nav a.is-active { opacity: 1; color: var(--orange-ink); }
.is-scrolled .gt-nav a:hover, .is-scrolled .gt-nav a.is-active { color: var(--orange-hi); }
.gt-nav a:hover::after, .gt-nav a.is-active::after { transform: scaleX(1); }
.gt-header-actions { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.gt-header .pill { display: none; }
/* Hamburger: three bars placed absolutely on a 44px button, so the open "X"
   is exact. Bars sit 6px apart; the outer two move 6px to meet the middle. */
.menu-btn {
  position: relative; display: block; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: rgba(127, 110, 90, .16); border: 0; cursor: pointer; color: inherit;
  -webkit-tap-highlight-color: transparent; transition: background .3s ease;
}
.menu-btn:hover { background: rgba(127, 110, 90, .26); }
.menu-bar {
  position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .35s var(--ease-out), opacity .2s ease;
}
.menu-bar:nth-child(1) { transform: translateY(-6px); }
.menu-bar:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-bar:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-bar:nth-child(2) { opacity: 0; }
.menu-open .menu-bar:nth-child(3) { transform: rotate(-45deg); }
.menu-open .menu-btn { background: rgba(246, 239, 228, .12); }
/* Phones/tablets: a solid scrolled header; live blur is costly to redraw while scrolling. */
@media (max-width: 959px) {
  .gt-header.is-scrolled, .menu-open .gt-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(28, 18, 8, .97); }
}
@media (min-width: 960px) {
  .gt-nav { display: flex; }
  .gt-header .pill { display: inline-flex; }
  .menu-btn { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--brown-900); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.mobile-menu nav a { width: fit-content; border-radius: 8px; }
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { color: var(--orange); }
.mobile-menu a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.mobile-menu .contact-lines { display: grid; gap: 6px; color: var(--on-dark-2); font-size: 15px; }
.mobile-menu .contact-lines a:hover { color: var(--orange); }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* Wildflowers that grow up from the bottom of the menu each time it opens. */
.mobile-menu { overflow: hidden; justify-content: flex-start; padding-top: calc(var(--header-h) + 7svh); }
.mobile-menu > nav, .mobile-menu > .contact-lines { position: relative; z-index: 1; }
.menu-botany {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  width: 100%; height: 40%; max-width: none; pointer-events: none;
}
.mb-draw {
  fill: none; stroke: rgba(246, 239, 228, .24); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  /* Hidden until its turn: round line-caps would otherwise show as dots. */
  opacity: 0;
  /* Closing: wait for the overlay to fade, then reset so they grow again next time. */
  transition: stroke-dashoffset 0s linear .4s, opacity 0s linear .4s;
}
.mb-head { stroke: rgba(241, 120, 36, .6); }
.menu-open .mb-draw {
  stroke-dashoffset: 0; opacity: 1;
  transition: stroke-dashoffset 1800ms cubic-bezier(.45, 0, .2, 1) calc(var(--d, 0) * 1ms), opacity 0s linear calc(var(--d, 0) * 1ms);
}
@media (prefers-reduced-motion: reduce) {
  .mb-draw, .menu-open .mb-draw { transition: none; }
}

/* ---------- Hero: the Meadow Rise scene at the top of the page ---------- */
.mrf-root.mrf-top {
  --mrf-hero: max(560px, calc(100svh - clamp(72px, 10svh, 110px)));
  min-height: max(640px, 100svh);
}
/* Title sits well down the sky, but never so low the buttons fall into the dark ground. */
.mrf-top .mrf-hero {
  padding-top: max(calc(var(--header-h) + 24px), min(calc(var(--header-h) + 30svh), calc(100svh - 540px)));
}
/* Phones: text sits ~30% lower than above; the 450px cap keeps the buttons clear of the dark ground. */
@media (max-width: 640px) {
  .mrf-top .mrf-hero {
    padding-top: max(calc(var(--header-h) + 24px), min(calc(var(--header-h) + 45svh), calc(100svh - 410px)));
  }
  /* Lower down, the paragraph sits over the hills: darker text keeps it legible. */
  .mrf-top .mrf-sub { color: var(--ink); }
  .mrf-top .mrf-sub .hl { color: #a8460a; }
}
.mrf-top .mrf-h { max-width: 18ch; font-size: clamp(42px, 6.4vw, 96px); }
.mrf-top .mrf-sub { max-width: 54ch; }
.mrf-top .mrf-sub strong { color: var(--ink); }
.mrf-top .mrf-sub .hl { color: var(--orange-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 640px) {
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .pill { flex: none; height: 44px; gap: 8px; font-size: 11.5px; letter-spacing: .03em; white-space: nowrap; padding-left: 15px; }
  .hero-ctas .pill .pill-arrow { width: 28px; height: 28px; }
  .hero-ctas .pill.ghost-dark { padding: 0 15px; }
}
.pill.ghost-dark {
  --pill-bg: rgba(246, 239, 228, .55); --pill-ink: var(--ink); --pill-fill: var(--brown-900); --pill-fill-ink: var(--on-dark);
  box-shadow: inset 0 0 0 2px rgba(28, 18, 8, .22); padding: 0 22px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mrf-wrap.hero-ground { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px 24px; padding-bottom: clamp(22px, 4svh, 36px); }
@media (max-width: 640px) { .hero-meta .dot { display: none; } .hero-meta { gap: 10px; } }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--on-dark-2); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hero-meta img { height: 28px; width: auto; opacity: .9; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.scroll-cue {
  display: none; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2);
}
.scroll-cue:hover { color: var(--orange); }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) { .scroll-cue { display: inline-flex; } }

/* ---------- Logo marquee ---------- */
.brands { padding: clamp(40px, 5vw, 60px) 0; border-bottom: 1px solid var(--line-light); background: var(--cream); }
.brands-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(36px, 5vw, 64px); width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 64px; width: auto; object-fit: contain; opacity: .82; filter: saturate(.85); transition: filter .35s ease, opacity .35s ease, transform .5s var(--ease-out); }
.marquee-track img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story: the showreel as a sky, with hills in front ----------
   Same idea as the hero and footer (sky + rolling hills), but the sky on the
   right half is the reel, seen through a dome-shaped window whose curved left
   edge is echoed by two thin sand and apricot bands. Hills run across the
   bottom of the whole section; the front ridge is the dark brown of the Work
   section below, so the two sections flow into each other. */
.story {
  --hills-h: clamp(120px, 13vw, 200px);
  --vid: 46vw;
  --story-pad: clamp(64px, 7vw, 96px);
  position: relative; isolation: isolate; overflow: hidden;
  /* Vertically centred on the left: equal space above the text and below it down to
     where the hills begin (the strip's top ~half is see-through sky). */
  padding-top: var(--story-pad);
  padding-bottom: calc(var(--hills-h) * 0.56 + var(--story-pad));
}
@media (min-width: 641px) {
  .story { min-height: min(680px, 82svh); display: flex; align-items: center; }
  /* Keep the copy clear of the dome: it ends ~70px before the dome's widest point. */
  .story .story-copy { max-width: min(560px, calc(100vw - var(--vid) - 70px - max(var(--gutter), (100vw - var(--container)) / 2))); }
}
@media (min-width: 641px) and (max-width: 1099px) { .story { --vid: 48vw; } }
/* The reel sits behind the right side; its left edge is hidden under solid cream. */
.story-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 38%; z-index: -2; background: var(--brown-900); }
.story-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Simple smooth gradient: solid cream behind the copy, fading to clear video on
   the right, plus a soft fade along the top edge into the section above. */
.story-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--cream) 0%, rgba(246, 245, 243, 0) 14%),
    linear-gradient(90deg,
      var(--cream) 0%, var(--cream) 48%,
      rgba(246, 245, 243, .85) 55%, rgba(246, 245, 243, .45) 64%,
      rgba(246, 245, 243, .12) 72%, rgba(246, 245, 243, 0) 78%);
}
/* Painted hills strip: the same canvas painter as the hero/footer, sky left see-through. */
.story-hills.mrf-root {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: var(--hills-h); min-height: 0;
  background: transparent; pointer-events: none;
  --mrf-hero: var(--hills-h);
}
.story-hills .mrf-hero { padding: 0; transform: none; }
.story-grid { display: grid; align-items: center; width: 100%; }
.story-copy { display: grid; gap: 20px; max-width: 560px; }
.story-copy .h-display .ast { color: var(--orange); }
/* Subtitle: a second headline line in the same upright Black as "Evergreen content", about 70% of its
   size, in orange, balanced over two lines. Its asterisk is the headline's dark brown. */
.footnote { font-weight: 900; color: var(--orange); font-size: clamp(1.55rem, 3.2vw, 2.5rem); line-height: 1.04; letter-spacing: -0.022em; margin-top: -6px; }
.footnote .ast { color: var(--ink); }
.story-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.story-points li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; color: var(--ink-2); }
.story-copy .lede, .story-points li { text-wrap: pretty; }
@media (max-width: 640px) {
  .story-copy { gap: 16px; }
  .story-copy .h-display { font-size: 2.35rem; }
  /* The script face gets scratchy at this size on a phone; Grift italic reads cleanly. */
  .story-copy .lede { font-size: 1rem; line-height: 1.65; }
  .story-points li { font-size: 15px; line-height: 1.45; }
}
.story-points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 8px 0; background: var(--orange); transform: rotate(-45deg) translateY(-1px); }
/* ---------- Work ---------- */
.work { background: var(--brown-900); overflow: hidden; }
.work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(241, 120, 36, .14), transparent 70%);
}
.work-grid { position: relative; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-card.wide { grid-column: span 2; }
}
.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--brown-800);
  aspect-ratio: 9 / 14;
}
.work-card.wide .work-media { aspect-ratio: 16 / 10; }
@media (min-width: 1040px) { .work-card.wide .work-media { aspect-ratio: 16 / 9.1; } }
.work-media img, .work-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1100ms var(--ease-out), filter 600ms ease;
  filter: saturate(.92);
}
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 3, .78), rgba(14, 9, 3, 0) 55%);
  transition: opacity .5s ease;
}
.work-media:hover img, .work-media:hover video, .work-media:focus-visible img, .work-media:focus-visible video { transform: scale(1.045); filter: saturate(1.05); }
.work-play {
  position: absolute; z-index: 2; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.work-play i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 8px 24px -8px rgba(241, 120, 36, .8);
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.4);
}
.work-media:hover .work-play i { transform: scale(1.1); }
.work-play svg { width: 16px; height: 16px; margin-left: 2px; }
.work-logo {
  position: absolute; z-index: 2; top: 16px; left: 16px; width: 40px; height: 40px;
  display: grid; place-items: center;
}
/* No box behind the logo; a soft light halo that hugs the logo's own shape keeps
   dark or thin marks (e.g. a black "M") readable over any footage. */
.work-logo img {
  width: 100%; height: 100%; object-fit: contain; transform: none !important;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 0 7px rgba(255, 255, 255, .35));
}
.work-card h3 { font-size: 1.18rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--on-dark); }
.work-card .client { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.work-card p { color: var(--on-dark-2); font-size: 15px; line-height: 1.55; }

.partners { position: relative; margin-top: clamp(40px, 5vw, 64px); }

/* Mobile: show three projects, the rest drop down behind "See more work". */
.work-more-wrap { display: none; justify-content: center; margin-top: 28px; }
.work-more {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-dark); background: rgba(246, 239, 228, .06); color: var(--on-dark);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s ease, border-color .3s ease;
}
.work-more:hover { background: rgba(241, 120, 36, .16); border-color: rgba(241, 120, 36, .6); }
.work-more svg { color: var(--orange); transition: transform .45s var(--ease-out); }
.work-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 640px) {
  .work-more-wrap { display: flex; }
  .work-grid:not(.is-expanded) .work-card:nth-child(n+4) { display: none; }
  .work-grid.is-expanded .work-card:nth-child(n+4) { animation: drop-in .7s var(--ease-out) both; }
  .work-grid.is-expanded .work-card:nth-child(5) { animation-delay: .08s; }
  .work-grid.is-expanded .work-card:nth-child(6) { animation-delay: .16s; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.partner-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.partner {
  position: relative; display: grid; gap: 14px 28px; align-items: center;
  grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line-dark); overflow: hidden;
}
@media (min-width: 860px) { .partner { grid-template-columns: 64px minmax(220px, .8fr) 2fr; } }
.partner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background-image: linear-gradient(90deg, rgba(28, 18, 8, .96) 30%, rgba(28, 18, 8, .7)), var(--bg);
  background-size: cover; background-position: center;
  transition: opacity .6s ease;
}
.partner:hover::before { opacity: 1; }
.partner > * { position: relative; z-index: 1; }
.partner-logo { width: 56px; height: 56px; display: grid; place-items: center; }
@media (min-width: 860px) { .partner-logo { width: 64px; height: 64px; } }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner h3 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.partner p { grid-column: 1 / -1; color: var(--on-dark-2); font-size: 15px; }
@media (min-width: 860px) { .partner p { grid-column: auto; max-width: 64ch; } }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 0 1px 0 rgba(28, 18, 8, .04), 0 24px 48px -32px rgba(28, 18, 8, .35);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(28, 18, 8, .04), 0 36px 60px -32px rgba(28, 18, 8, .45); }
.service-media { aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.service-media video { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: grid; gap: 10px; padding: 22px 22px 26px; }
.service-num { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--orange-ink); }
.service h3 { font-size: 1.3rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.015em; }
.service p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- Testimonials: staggered cards ----------
   A fan of cards; the centre one is raised in brand brown, the rest tilt
   alternately. JS sets each card's --pos (0 = centre). Cards are square with
   a cut top-right corner; on the centre card an orange fold line runs across it. */
.quote { background: var(--cream-2); overflow: hidden; padding-bottom: clamp(40px, 5vw, 64px); }
.tst-title { text-align: center; margin: 0 auto clamp(8px, 2vw, 24px); }
.tst {
  --card: 365px; --cut: 50px;
  position: relative; height: 600px; width: 100%;
}
@media (max-width: 639px) { .tst { --card: 290px; --cut: 40px; height: 520px; } }
.tst-stage { position: absolute; inset: 0; }
.tst-card {
  --pos: 0; --lift: 0px; --tilt: 0deg;
  position: absolute; left: 50%; top: 50%; width: var(--card); min-height: var(--card);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--card) / 1.5 * var(--pos)))
    translateY(var(--lift))
    rotate(var(--tilt));
  transition: transform 550ms cubic-bezier(.4, 0, .2, 1), filter 550ms ease;
  cursor: pointer; z-index: 0;
}
.tst-card.is-center {
  z-index: 2; cursor: default;
  /* Solid orange offset shadow; a drop-shadow survives the clipped corners. */
  filter: drop-shadow(0 10px 0 var(--orange));
}
.tst-card.no-anim { transition: none; }
.tst-panel {
  position: relative; min-height: var(--card); padding: 30px; overflow: hidden;
  display: flex; flex-direction: column;
  background: #f8f3ec; color: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 2px var(--line-light);
  transition: background .45s ease, color .45s ease;
}
.tst-card:not(.is-center):hover .tst-panel { box-shadow: inset 0 0 0 2px rgba(241, 120, 36, .5); }
.tst-card.is-center .tst-panel { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(241, 120, 36, .35); }
/* Fold line across the cut corner. */
.tst-fold {
  position: absolute; right: -2px; top: calc(var(--cut) - 2px); width: calc(var(--cut) * 1.4142); height: 2px;
  background: var(--line-light); transform-origin: top right; transform: rotate(45deg);
}
.tst-card.is-center .tst-fold { background: var(--orange); }
.tst-logo { flex: none; width: 52px; height: 52px; object-fit: contain; margin-bottom: 18px; }
/* Clients without a logo file get an initials badge. */
.tst-initials { border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--brown-900); font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.tst-card.is-center .tst-initials { background: var(--orange); color: #fff; }
.tst-panel blockquote {
  margin: 0; font-weight: 700; font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.45; letter-spacing: -0.005em;
}
.tst-panel blockquote::before { content: "\201C"; color: var(--orange); font-weight: 900; margin-right: 1px; }
.tst-panel blockquote::after { content: "\201D"; color: var(--orange); font-weight: 900; margin-left: 1px; }
/* The name sits below the quote, pushed to the card's foot; long quotes grow the card instead of overlapping. */
.tst-by { margin: auto 0 0; padding-top: 22px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.tst-by b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.tst-card.is-center .tst-by { color: var(--ink-3); }
.tst-card.is-center .tst-by b { color: var(--orange); }
@media (max-width: 639px) {
  .tst-panel { padding: 24px; }
  .tst-panel blockquote { font-size: 14.5px; }
}
.tst-nav { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.tst-nav[hidden] { display: none; }
.tst-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--line-light);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.tst-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.tst-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* One testimonial: a single centred card, no fan, no arrows. */
.tst.is-single { height: auto; padding: 40px 0 30px; }
.tst.is-single .tst-stage { position: relative; display: flex; justify-content: center; }
.tst.is-single .tst-card { position: relative; left: auto; top: auto; transform: none; cursor: default; }
@media (prefers-reduced-motion: reduce) { .tst-card { transition: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-photo { position: relative; max-width: 500px; width: 100%; justify-self: center; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 500 / 556; object-fit: cover; border-radius: var(--radius-lg); background: var(--cream-2); }
.about-photo .badge {
  position: absolute; right: clamp(-10px, -1vw, 0px); bottom: 24px; max-width: 220px;
  background: var(--brown-900); color: var(--on-dark); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); font-size: 13px; line-height: 1.45;
}
.about-photo .badge b { display: block; font-weight: 800; color: var(--orange); font-size: 1.1rem; line-height: 1.2; margin-bottom: 4px; }
.about-copy { display: grid; gap: 20px; }
.about-copy p { color: var(--ink-2); }
.about-copy .pull { font-weight: 800; color: var(--ink); font-size: 1.15rem; line-height: 1.4; }
.about-sign { font-weight: 800; color: var(--orange); font-size: 1.3rem; line-height: 1.2; }

/* ---------- Pricing ---------- */
.pricing { background: var(--brown-900); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(246, 239, 228, .07); border: 1px solid var(--line-dark); margin-bottom: 36px; }
.tab {
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  color: var(--on-dark-2); font-size: 14px; font-weight: 700; transition: background .3s ease, color .3s ease;
}
.tab:hover { color: var(--on-dark); }
.tab[aria-selected="true"] { background: var(--orange); color: #fff; }
/* Mobile: an even three-way segmented control instead of a wrapping pill row. */
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 4px; padding: 4px; border-radius: 18px; }
  .tab { height: 52px; padding: 0 6px; border-radius: 14px; font-size: 12.5px; line-height: 1.15; text-align: center; }
}
.price-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price-grid[hidden] { display: none; }
.price {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px;
  border-radius: var(--radius-lg); background: rgba(246, 239, 228, .045); border: 1px solid var(--line-dark);
}
.price.featured { background: linear-gradient(180deg, rgba(241, 120, 36, .16), rgba(241, 120, 36, .04)); border-color: rgba(241, 120, 36, .55); }
.price.featured::after {
  content: "Most popular"; position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.price h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.price-amt { display: flex; align-items: baseline; gap: 6px; }
.price-amt b { font-size: clamp(2.2rem, 3.4vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price-amt span { color: var(--on-dark-2); font-size: 14px; font-weight: 600; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: baseline; color: var(--on-dark); font-size: 15px; }
.price li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 7px 0; background: var(--orange); transform: rotate(-45deg) translateY(-1px); }
.price .pill { --pill-fill: #fff; --pill-fill-ink: var(--brown-900); }
.price:not(.featured) .pill { --pill-bg: rgba(246, 239, 228, .1); --pill-ink: var(--on-dark); box-shadow: none; }
.price:not(.featured) .pill .pill-arrow { background: var(--orange); color: #fff; }
.price:not(.featured) .pill:hover .pill-arrow { background: var(--brown-900); color: #fff; }
.pricing-note { margin-top: 26px; color: var(--on-dark-2); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-side { display: grid; gap: 22px; }
.contact-photo { border-radius: var(--radius-lg); overflow: hidden; max-width: 420px; aspect-ratio: 500 / 556; background: var(--cream-2); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-direct { display: grid; gap: 4px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; width: fit-content; }
.contact-direct a:hover { color: var(--orange-ink); }
.contact-direct svg { width: 18px; height: 18px; color: var(--orange); }
.contact-card {
  position: relative; border-radius: var(--radius-lg); background: #fff; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 rgba(28, 18, 8, .04), 0 40px 80px -48px rgba(28, 18, 8, .45);
}
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-light); border-radius: 14px; background: var(--cream);
  padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(241, 120, 36, .15); }
.field [aria-invalid="true"] { border-color: #c2410c; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-status { font-size: 14px; font-weight: 600; color: #b4380a; min-height: 1.2em; }
.form-done { display: none; text-align: center; padding: 40px 10px; gap: 14px; justify-items: center; }
.form-done .big { font-weight: 900; color: var(--orange); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.contact-card.is-done .form { display: none; }
.contact-card.is-done .form-done { display: grid; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; color: var(--orange-ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100vw - 32px, 1100px); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: #000; color: #fff; overflow: visible;
}
.lightbox.portrait { width: min(100vw - 32px, calc((100svh - 96px) * 9 / 16)); }
.lightbox::backdrop { background: rgba(12, 8, 3, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox video { width: 100%; max-height: calc(100svh - 96px); border-radius: 20px; background: #000; }
.lightbox-close {
  position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.lightbox-close:hover { background: var(--orange); }
.lightbox-title { position: absolute; top: -44px; left: 4px; right: 56px; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Background grain (sections past the hero) ----------
   A faint, static film grain over each section, generated from a tiny tiled
   SVG noise pattern (no image downloads). Warm-brown specks on light sections,
   cream specks on dark ones. It sits behind the content: z-index -1 inside each
   section's own stacking context paints it over the section colour (and the
   Evergreen reel/fade, which come earlier) but under text, photos and cards. The hero and footer already have grain in
   their painted hills, so they're left alone. Contact is left plain too, so it
   blends straight into the footer's sky without a texture seam. */
.brands, #story, #work, #services, #testimonials, #about, #pricing { position: relative; isolation: isolate; }
.brands::after, #story::after, #work::after, #services::after, #testimonials::after, #about::after, #pricing::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.07  0 0 0 0 0.03  1.8 0 0 0 -0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: .25;
}
#work::after, #pricing::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.89  1.8 0 0 0 -0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .16;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px);
  transition: opacity 900ms ease, transform 1100ms var(--ease-out), filter 900ms ease;
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

/* =====================================================================
   Meadow Rise footer (.mrf-*) — ported, recoloured for Great Tales
   ===================================================================== */
.mrf-root {
  --mrf-hero: clamp(480px, 66svh, 700px);
  --mrf-ground: #1c1208;
  --mrf-ink: #1c1208;
  --mrf-sub: #4d3b27;
  --mrf-pill: #f17824;
  --mrf-pill-ink: #ffffff;
  --mrf-text: #f6efe4;
  --mrf-muted: #bba98f;
  --mrf-line: rgba(246, 239, 228, 0.15);
  --mrf-n: 3;
  --mrf-max: 1180px;
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; min-height: 1000px;
  overflow: hidden; background: var(--mrf-ground); color: var(--mrf-text); font-family: var(--font-sans);
}
.mrf-root *, .mrf-root *::before, .mrf-root *::after { box-sizing: border-box; }
.mrf-scene {
  position: absolute; inset: 0 0 auto 0; height: var(--mrf-hero); z-index: 0; pointer-events: none;
}
/* Sky fallback for visitors without JavaScript (the canvas paints it otherwise). */
.mrf-root:not(.mrf-js) .mrf-scene { background: linear-gradient(#f7f2ea, #f4dfc4 70%, #1c1208); }
.mrf-scene canvas { display: block; width: 100%; height: 100%; max-width: none; }
.mrf-hero {
  position: relative; z-index: 2; height: var(--mrf-hero); flex: none;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(64px, 12%, 124px) 20px 0; text-align: center;
  transform: translate3d(0, calc((1 - var(--mrf-k, 1)) * 56px), 0);
}
.mrf-eyebrow { margin-bottom: 18px; justify-content: center; text-align: center; }

/* ---------- Hero banner plane (scripts/sky-plane.js) ----------
   Sits over the painted sky, under the headline. Hidden between passes. */
.sky-plane {
  position: absolute; inset: 0 0 auto 0; height: var(--mrf-hero); z-index: 1;
  overflow: hidden; pointer-events: none;
}
.sky-plane:not(.is-flying) .sp-group { visibility: hidden; }
.sp-group { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.sp-plane { position: absolute; left: 0; top: 0; width: 88px; transform-origin: 55% 50%; }
.sp-plane svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-banner { position: absolute; display: block; max-width: none; }
.sp-prop { transform-box: fill-box; transform-origin: center; animation: sp-spin .08s linear infinite alternate; }
.sp-scarf { transform-box: fill-box; transform-origin: 0% 60%; animation: sp-scarf .5s ease-in-out infinite alternate; }
@keyframes sp-spin { from { transform: scaleY(1); } to { transform: scaleY(.12); } }
@keyframes sp-scarf { from { transform: rotate(-6deg) scaleX(.92); } to { transform: rotate(5deg) scaleX(1.06); } }
@media (prefers-reduced-motion: reduce) { .sky-plane { display: none; } }

/* Footer: shorter, and its sky fades up into the cream contact section above. */
.mrf-root.mrf-foot { --mrf-hero: clamp(380px, 50svh, 500px); min-height: 0; }
.mrf-foot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(90px, 14svh, 140px); z-index: 1; pointer-events: none;
  background: linear-gradient(var(--cream), rgba(246, 245, 243, 0));
}
.mrf-foot .mrf-hero { padding-top: clamp(24px, 4vw, 56px); }
.mrf-foot .mrf-h { font-size: clamp(34px, 5.2vw, 76px); max-width: 22ch; }
/* The footer's reveal runs quicker than the hero's. */
.mrf-js.mrf-foot .mrf-wi { transition-duration: 800ms; }
.mrf-js.mrf-foot .mrf-acc .mrf-wi { transition-duration: 1000ms; }
.mrf-js.mrf-foot .mrf-r { transition-duration: 600ms, 700ms, 600ms; }
.mrf-js.mrf-foot .mrf-rule { transition: transform 1000ms cubic-bezier(.65, 0, .25, 1) 500ms; }
.mrf-foot .mrf-wrap { padding-top: clamp(20px, 3vw, 36px); }
.mrf-foot .mrf-spacer { flex-basis: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { .mrf-eyebrow::before { display: none; } }
.mrf-h {
  margin: 0; max-width: 15ch; font-weight: 900;
  font-size: clamp(40px, 6.2vw, 92px); line-height: 1; letter-spacing: -0.03em; color: var(--mrf-ink); text-wrap: balance;
}
.mrf-line { display: block; white-space: normal; }
.mrf-w { display: inline-block; overflow: hidden; padding: 0.04em 0.06em 0.18em; margin: -0.04em -0.06em -0.18em; vertical-align: top; }
.mrf-wi { display: inline-block; }
.mrf-acc .mrf-wi { color: var(--orange); }
.mrf-sub { margin: clamp(16px, 2.2vw, 26px) 0 0; max-width: 46ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; font-weight: 500; color: var(--mrf-sub); }
.mrf-cta-wrap { margin-top: clamp(20px, 2.6vw, 30px); }
.mrf-cta { --pill-bg: var(--mrf-pill); --pill-ink: var(--mrf-pill-ink); --pill-fill: var(--mrf-ground); --pill-fill-ink: var(--mrf-text); }
.mrf-cta:focus-visible { outline: 2px solid var(--mrf-ink); outline-offset: 3px; }

/* Reveal states only apply once the script is running (.mrf-js). */
.mrf-js .mrf-wi {
  transform: translate3d(0, 108%, 0) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1150ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms);
}
/* Orange phrase: one continuous left-to-right "trim path" sweep with a hard
   edge, as if it's being drawn. The mask is twice the phrase's width, half
   solid and half clear, and slides from fully clear to fully solid.
   Padding (cancelled by negative margin) grows the masked box so descenders,
   overhangs and the full stop are never cut off; the parent no longer crops. */
.mrf-acc { overflow: visible; }
.mrf-acc .mrf-wi { padding: 0.1em 0.14em 0.28em; margin: -0.1em -0.14em -0.28em; }
.mrf-js .mrf-acc .mrf-wi {
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
          mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1600ms cubic-bezier(.6, 0, .3, 1), mask-position 1600ms cubic-bezier(.6, 0, .3, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.mrf-js.mrf-in .mrf-wi { transform: none; }
.mrf-js.mrf-in .mrf-acc .mrf-wi { -webkit-mask-position: 0 0; mask-position: 0 0; }
.mrf-js .mrf-r {
  opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(4px);
  transition: opacity 900ms ease, transform 1100ms var(--ease-out), filter 900ms ease;
  transition-delay: calc(var(--d, 0) * 1ms);
}
.mrf-js.mrf-in .mrf-r { opacity: 1; transform: none; filter: blur(0); }
/* Phones: the hero text is simply there on load, no reveal animation.
   (Desktop keeps the reveal; the footer headline still animates everywhere.) */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
  .mrf-js.mrf-top .mrf-wi,
  .mrf-js.mrf-top .mrf-r { opacity: 1; transform: none; filter: none; transition: none; }
  .mrf-js.mrf-top .mrf-acc .mrf-wi { -webkit-mask-image: none; mask-image: none; transition: none; }
}

.mrf-body { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; }
.mrf-botany {
  position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); height: 92%;
  transform: translateX(-50%); max-width: none; color: var(--mrf-text); opacity: 0.085; pointer-events: none; z-index: 0;
}
.mrf-stem { transform-box: view-box; animation: mrf-sway 9s ease-in-out infinite alternate; animation-delay: calc(var(--sd, 0) * -1s); }
@keyframes mrf-sway { from { transform: rotate(-0.9deg); } to { transform: rotate(1.1deg); } }
.mrf-draw {
  fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2400ms cubic-bezier(.45, 0, .2, 1); transition-delay: calc(var(--d, 0) * 1ms);
}
.mrf-botany .mrf-draw { vector-effect: non-scaling-stroke; stroke-width: 1.15; }
.mrf-in .mrf-draw { stroke-dashoffset: 0; }

.mrf-wrap {
  position: relative; z-index: 1; width: 100%; max-width: calc(var(--mrf-max) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) 26px; display: flex; flex: 1 0 auto; flex-direction: column;
}
.mrf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
@media (min-width: 1100px) { .mrf-grid { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 56px; } }
.mrf-col { min-width: 0; }
@media (max-width: 639px) { .mrf-col:last-child { grid-column: 1 / -1; } }
.mrf-col a { overflow-wrap: anywhere; }
.mrf-brand { max-width: 360px; }
.mrf-logo { display: inline-flex; border-radius: 8px; }
.mrf-logo img { height: 52px; width: auto; transition: transform .8s var(--ease-out); }
.mrf-logo:hover img { transform: rotate(-3deg) scale(1.04); }
.mrf-logo:focus-visible { outline: 2px solid var(--mrf-text); outline-offset: 4px; }
.mrf-tag { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--mrf-muted); max-width: 34ch; }

.mrf-form { position: relative; margin-top: 26px; display: flex; align-items: center; gap: 10px; height: 46px; max-width: 340px; }
.mrf-form-label { display: block; margin-top: 26px; font-size: 13px; font-weight: 700; color: var(--mrf-text); }
.mrf-form-label + .mrf-form { margin-top: 4px; }
.mrf-form::before, .mrf-form::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.mrf-form::before { background: var(--mrf-line); }
.mrf-form::after { background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease-out); }
.mrf-form:focus-within::after { transform: scaleX(1); }
.mrf-form[data-state="error"]::after { background: #f0a383; transform: scaleX(1); }
.mrf-form[data-state="error"] { animation: mrf-shake 420ms cubic-bezier(.36, .07, .19, .97); }
@keyframes mrf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.mrf-form > svg { flex: none; color: var(--mrf-muted); }
.mrf-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--mrf-text); font: inherit; font-size: 15px; }
.mrf-input::placeholder { color: var(--mrf-muted); opacity: .8; }
.mrf-input:disabled { opacity: 1; }
.mrf-send {
  flex: none; position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: var(--orange); color: #fff; cursor: pointer; overflow: hidden;
  transition: transform 450ms cubic-bezier(.2, .9, .3, 1.3), background 300ms ease;
}
.mrf-send:hover { transform: scale(1.1); }
.mrf-send:focus-visible { outline: 2px solid var(--mrf-text); outline-offset: 3px; }
.mrf-send > * { grid-area: 1 / 1; transition: transform 500ms cubic-bezier(.65, 0, .25, 1), opacity 300ms ease; }
.mrf-send .a2 { transform: translate(-150%, 150%); }
.mrf-send:hover .a1 { transform: translate(150%, -150%); }
.mrf-send:hover .a2 { transform: none; }
.mrf-spin, .mrf-check { opacity: 0; transform: scale(0.4); }
.mrf-spin { animation: mrf-rot 800ms linear infinite; }
@keyframes mrf-rot { to { rotate: 360deg; } }
.mrf-form[data-state="sending"] .a1, .mrf-form[data-state="sending"] .a2,
.mrf-form[data-state="done"] .a1, .mrf-form[data-state="done"] .a2 { opacity: 0; transform: scale(0.4); }
.mrf-form[data-state="sending"] .mrf-spin { opacity: 1; transform: none; }
.mrf-form[data-state="done"] .mrf-check { opacity: 1; transform: none; }
.mrf-form[data-state="done"] .mrf-send { cursor: default; transform: none; }
.mrf-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 500ms 150ms ease; }
.mrf-form[data-state="done"] .mrf-check path { stroke-dashoffset: 0; }
.mrf-msg {
  position: absolute; left: 0; top: calc(100% + 9px); margin: 0; font-size: 13px; line-height: 1.4; color: var(--mrf-muted);
  opacity: 0; transform: translateY(-4px); transition: opacity 400ms ease, transform 500ms var(--ease-out);
}
.mrf-msg[data-show="true"] { opacity: 1; transform: none; }
.mrf-form[data-state="error"] .mrf-msg { color: #f0a383; }

.mrf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
@media (min-width: 640px) { .mrf-cols { grid-template-columns: repeat(var(--mrf-n), minmax(0, 1fr)); } }
.mrf-col h3 { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.mrf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mrf-link {
  position: relative; display: inline-flex; align-items: center; font-size: 15px; line-height: 1.35; color: var(--mrf-muted);
  border-radius: 4px; transition: color 350ms ease, transform 500ms var(--ease-out);
}
.mrf-link::before {
  content: ""; position: absolute; left: -13px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 6px 0;
  background: var(--orange); opacity: 0; transform: scale(0.2) rotate(-45deg);
  transition: opacity 300ms ease, transform 500ms var(--ease-out);
}
.mrf-link:hover, .mrf-link:focus-visible { color: var(--mrf-text); transform: translateX(8px); }
.mrf-link:hover::before, .mrf-link:focus-visible::before { opacity: 1; transform: none; }
.mrf-link:focus-visible { outline: 2px solid var(--mrf-text); outline-offset: 3px; }
.mrf-plain { font-size: 15px; color: var(--mrf-muted); line-height: 1.35; }
/* Social links (WhatsApp, Instagram): icon + label; the icon picks up the orange on hover. */
.mrf-icon-link { gap: 9px; }
.mrf-icon-link svg { flex: none; transition: color .35s ease; }
.mrf-icon-link:hover svg, .mrf-icon-link:focus-visible svg { color: var(--orange); }
.mrf-casa { margin-top: 16px; height: 26px; width: auto; opacity: .75; filter: brightness(0) invert(1); }

.mrf-bottom {
  position: relative; margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; font-size: 13px; color: var(--mrf-muted);
}
.mrf-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--mrf-line); }
.mrf-js .mrf-rule { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1800ms cubic-bezier(.65, 0, .25, 1) 1500ms; }
.mrf-js.mrf-in .mrf-rule { transform: none; }
.mrf-bottom p { margin: 0; }
.mrf-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.mrf-legal .mrf-link { font-size: 13px; }
.mrf-spacer { flex: 1 0 clamp(48px, 9vw, 120px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .scroll-cue::after { animation: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  .mrf-hero { transform: none; }
  .mrf-wi, .mrf-acc .mrf-wi, .mrf-r, .mrf-draw, .mrf-rule, .pill, .mrf-link { transition: none !important; }
  .mrf-stem, .mrf-form[data-state="error"] { animation: none; }
}
