/* ==========================================================================
   Udgam Media, version 3 (cinematic)
   Sunrise video hero, marquee of the three stages, a quiet night quote band,
   stacking stage panels, a film slate for the showreels, and a night contact
   section with an enquiry form. Colours and fonts follow Brand Sheets 1 and 2.
   ========================================================================== */

:root {
  /* Colour */
  --night: #1A1411;          /* Espresso Night */
  --ink: #111111;            /* Ink Black */
  --ivory: #F6F1E9;          /* Warm Ivory */
  --sand: #E4D6C0;           /* Champagne Sand */
  --orange: #D2682A;         /* Udgam Orange */
  --sienna: #9E4A1B;         /* Burnt Sienna (orange for small text on light) */
  --gold: #B8955A;           /* Antique Gold, thin details only */
  --body-on-light: #3D3935;
  --muted-on-light: #5E5953;
  --muted-on-dark: #A39D93;

  /* Type */
  --font-display: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --section-space: clamp(4.5rem, 10vw, 9rem);
  --header-h: 4.5rem;
}

/* 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(--night);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote, address { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* Shared type ------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button--solid {
  background: var(--orange);
  color: var(--ink);
}
.button--solid:hover { background: #E07A38; }

.button--line {
  border-color: rgba(246, 241, 233, 0.55);
  color: var(--ivory);
}
.button--line:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink);
}

.text-link {
  color: var(--sienna);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.text-link:hover { color: var(--ink); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(26, 20, 17, 0.75), rgba(26, 20, 17, 0));
  color: var(--ivory);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(26, 20, 17, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(184, 149, 90, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; }
.brand img { height: 2.75rem; width: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.site-nav a:hover { background-size: 100% 1px; }

.site-nav ul { align-items: center; }

/* Header call to action */
.site-nav .nav-cta {
  min-height: 2.75rem;
  padding: 0.6rem 1.4rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 500;
  transition: background-color 0.25s ease;
}
.site-nav .nav-cta:hover { background: #E07A38; }

.nav-toggle { display: none; }

@media (max-width: 51.99em) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid rgba(246, 241, 233, 0.4);
    color: var(--ivory);
    font: 500 0.95rem var(--font-body);
    letter-spacing: 0.03em;
    cursor: pointer;
  }

  .nav-toggle__bars {
    position: relative;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle__bars::before { top: -5px; }
  .nav-toggle__bars::after { top: 5px; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 2rem;
    background: rgba(26, 20, 17, 0.97);
    box-shadow: 0 1px 0 rgba(184, 149, 90, 0.25);
  }
  .js .site-header.is-open .site-nav { display: block; }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .js .site-nav li { border-bottom: 1px solid rgba(246, 241, 233, 0.12); }
  .js .site-nav a {
    display: block;
    padding-block: 1rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    background: none;
  }

  .js .site-nav .site-nav__cta {
    margin-top: 1.5rem;
    border-bottom: 0;
  }
  .js .site-nav .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--orange);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
  }
  .js .site-nav .nav-cta:hover { background: #E07A38; }
}

/* Extra tokens ------------------------------------------------------------ */

:root {
  --olive: #657433;          /* Field Olive (Brand Sheet 2) */
  --on-olive: #FBF8F2;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section { padding-block: var(--section-space); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--night { background: var(--night); color: var(--ivory); }
.section--sand { background: var(--sand); color: var(--ink); }

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 70% 58%, rgba(210, 104, 42, 0.45), rgba(210, 104, 42, 0) 70%),
    url("../assets/img/hero-poster.jpg") center / cover no-repeat,
    var(--night);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}
.js .hero__video {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.js .hero.has-video .hero__video { opacity: 1; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 20, 17, 0.72) 0%, rgba(26, 20, 17, 0.25) 55%, rgba(26, 20, 17, 0) 80%),
    linear-gradient(180deg, rgba(26, 20, 17, 0.55) 0%, rgba(26, 20, 17, 0) 28%, rgba(26, 20, 17, 0) 60%, rgba(26, 20, 17, 0.85) 100%);
}

.hero__content { padding-bottom: clamp(2rem, 5vw, 4rem); }

.hero__title {
  max-width: 11ch;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.4rem, 0.6rem + 12.5vw, 11rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

/* Word-by-word mask reveal: the one orchestrated moment on load */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  vertical-align: top;
}
.hero__title .w > span {
  display: inline-block;
  animation: word-up 1.1s var(--ease) both;
}
.hero__title .w:nth-child(1) > span { animation-delay: 0.2s; }
.hero__title .w:nth-child(2) > span { animation-delay: 0.38s; }
.hero__title .w:nth-child(3) > span { animation-delay: 0.56s; }

.hero__lede {
  max-width: 30ch;
  margin-top: 1.75rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.3;
  color: var(--sand);
  animation: fade-up 1s var(--ease) 0.95s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  animation: fade-up 1s var(--ease) 1.15s both;
}

.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: 6.5rem;
  display: none;
  width: 1px;
  height: 4.5rem;
  background: rgba(246, 241, 233, 0.25);
  overflow: hidden;
}
.hero__cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--ivory);
  animation: cue 2.2s ease-in-out infinite;
}

.hero__toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 4.9rem;
  z-index: 2;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(26, 20, 17, 0.55);
  border: 1px solid rgba(246, 241, 233, 0.4);
  color: var(--ivory);
  font: 500 0.85rem var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.hero__toggle:hover { background: rgba(26, 20, 17, 0.85); }

@media (min-width: 52em) {
  .hero__cue { display: block; }
  .hero__toggle { left: auto; right: calc(var(--gutter) + 2.5rem); bottom: 6.5rem; }
}

/* Marquee of the three stages */

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(184, 149, 90, 0.35);
  background: rgba(26, 20, 17, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.marquee__track { display: flex; width: max-content; }

.marquee__group {
  display: flex;
  flex-shrink: 0;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sand);
}
.marquee__group li::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
}

/* Without JS the second copy would just be a repeat, so hide it */
.marquee__group--copy { display: none; }
.js .marquee__group--copy { display: flex; }
.js .marquee__track { animation: marquee 40s linear infinite; }

/* About ------------------------------------------------------------------ */

.about__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.about__body {
  display: grid;
  gap: 1.6rem;
  max-width: 40rem;
}

.about__lead {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.5;
  color: var(--ink);
}

.about__text {
  color: var(--body-on-light);
  line-height: 1.8;
}

.about--after { padding-top: clamp(3rem, 6vw, 5rem); }

@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .about__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Quote band */

.quote {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 14vw, 12rem);
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
}
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 60% at 82% 50%, rgba(210, 104, 42, 0.34), rgba(210, 104, 42, 0) 70%);
}

.quote__text {
  max-width: 17ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 0.8rem + 7.6vw, 7.5rem);
  line-height: 1.02;
}

/* What we do: stacking panels --------------------------------------------- */

.stages__intro { padding-block: clamp(3.5rem, 7vw, 6rem); }

.stages__intro-grid {
  display: grid;
  gap: 1.5rem;
}

.stages__lede {
  max-width: 34ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--sand);
}

@media (min-width: 56em) {
  .stages__intro-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 3rem;
  }
}

.stages__list { position: relative; }

.stage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 6rem);
}

.stage--olive { background: var(--olive); color: var(--on-olive); }
.stage--sienna { background: var(--sienna); color: var(--on-olive); }
.stage--night { background: var(--night); color: var(--ivory); }

.stage__ghost {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(9rem, 6rem + 30vw, 34rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 248, 242, 0.28);
  pointer-events: none;
  user-select: none;
}
.stage--night .stage__ghost { -webkit-text-stroke-color: rgba(184, 149, 90, 0.4); }

.stage__inner { position: relative; z-index: 1; }

.stage__count {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.stage__count span { opacity: 0.65; }

.stage__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1rem + 5.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.stage__line {
  margin-block: 1rem 1.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.2;
}
.stage--night .stage__line { color: var(--gold); }

.stage__text {
  max-width: 36rem;
  line-height: 1.75;
  font-size: 1.0625rem;
}
.stage--night .stage__text { color: var(--sand); }

/* Sticky stacking only where there is room; stacked normally elsewhere */
@media (min-width: 56em) and (min-height: 40rem) {
  .stage {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    box-shadow: 0 -1.5rem 3rem rgba(17, 17, 17, 0.28);
  }
  .stage__inner { padding-right: 30%; }
}

.stages__closing { padding-block: clamp(4rem, 9vw, 8rem); }

.stages__close {
  max-width: 20ch;
  padding-top: 2rem;
  border-top: 1px solid var(--gold);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem);
  line-height: 1.1;
  color: var(--ink);
}

/* Work: film slate -------------------------------------------------------- */

.slate {
  --stripe: 1.75rem;
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.slate__stick {
  position: relative;
  z-index: 1;
  height: 3.5rem;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 var(--stripe), var(--ivory) var(--stripe) calc(var(--stripe) * 2));
  border: 2px solid var(--ink);
  transform-origin: 0 100%;
}

.slate__body {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 0.4rem;
  background: var(--ink);
  color: var(--ivory);
  border: 2px solid var(--ink);
}

.slate__fields { display: grid; gap: 0; }

.slate__fields > div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(246, 241, 233, 0.2);
}
.slate__fields > div:last-child { border-bottom: 0; }

.slate__fields dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.slate__fields dd {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  line-height: 1.15;
}

.slate__status dd { color: var(--orange); }

@media (min-width: 40em) {
  .slate__fields > div {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.js .slate__stick { transform: rotate(-16deg); }
.js .slate.is-clapped .slate__stick {
  transform: none;
  transition: transform 0.28s cubic-bezier(0.5, 0, 0.9, 0.6);
}

/* Contact ---------------------------------------------------------------- */

.contact { background: var(--sand); }

.wave {
  overflow: hidden;
  height: clamp(2.5rem, 6vw, 5rem);
  line-height: 0;
  background: var(--sand);
}
.wave__svg {
  width: 200%;
  max-width: none;
  height: 100%;
  fill: var(--night);
}
.js .wave__svg { animation: wave 14s linear infinite; }

.contact__panel {
  margin-top: -1px;
  background: var(--night);
  color: var(--ivory);
}

.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.contact__title {
  max-width: 14ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact__list { display: grid; gap: 2rem; }

.contact__item dt {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact__big {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 4rem);
  line-height: 1.05;
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact__big:hover { color: var(--orange); }

.contact__mail {
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--gold);
}
.contact__mail:hover { color: var(--orange); }

.contact address {
  max-width: 26rem;
  margin-bottom: 0.75rem;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--sand);
}

.contact .text-link { color: var(--orange); }
.contact .text-link:hover { color: var(--ivory); }

/* Enquiry form */

.enquiry {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(184, 149, 90, 0.35);
}

.enquiry__intro {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--sand);
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid rgba(246, 241, 233, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: 400 1.1rem/1.5 var(--font-body);
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
  box-shadow: 0 1px 0 var(--orange);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ivory);
  -webkit-box-shadow: 0 0 0 40px var(--night) inset;
}

.field--invalid input,
.field--invalid textarea { border-bottom-color: var(--sand); box-shadow: 0 1px 0 var(--sand); }

/* Honeypot, hidden from people */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry__submit { justify-self: start; cursor: pointer; }
.enquiry__submit[disabled] { opacity: 0.6; cursor: wait; }

.enquiry__status {
  min-height: 1.5rem;
  color: var(--sand);
}
.enquiry__status.is-ok { color: var(--ivory); }

@media (min-width: 56em) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

/* Footer */

.site-footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--night);
  border-top: 1px solid rgba(184, 149, 90, 0.2);
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer img { height: 2.25rem; width: auto; }

.site-footer__top {
  color: var(--ivory);
  text-underline-offset: 0.2em;
}

/* Scroll reveals (only when JS is running) -------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Keyframes --------------------------------------------------------------- */

@keyframes word-up {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes wave {
  to { transform: translateX(-50%); }
}

/* Motion preferences ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .w > span,
  .hero__lede,
  .hero__actions,
  .hero__cue span,
  .js .marquee__track,
  .js .wave__svg { animation: none; }
  .js .hero__video { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .slate__stick,
  .js .slate.is-clapped .slate__stick { transform: none; transition: none; }
  .js .marquee__group--copy { display: none; }
  .marquee__track { width: auto; }
}

/* Quote band extras ------------------------------------------------------- */

.eyebrow--light { color: var(--gold); }

.quote__sun {
  position: absolute;
  right: clamp(-16rem, -11vw, -5rem);
  top: 50%;
  width: clamp(14rem, 34vw, 32rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 clamp(1.5rem, 3vw, 3rem) rgba(210, 104, 42, 0.14), 0 0 0 clamp(3rem, 6vw, 6rem) rgba(210, 104, 42, 0.07);
  opacity: 0.9;
  z-index: -1;
}
.quote .container { position: relative; }
.quote__text { text-shadow: 0 0 2rem rgba(26, 20, 17, 0.6); }

/* How we work: Begin / Flow / Ocean --------------------------------------- */

.flow {
  position: relative;
  display: grid;
  gap: 2.25rem;
  margin-top: 0.5rem;
  padding-left: 2.25rem;
}
.flow::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0.3rem;
  width: 1px;
  background: var(--gold);
}
.flow li { position: relative; display: grid; gap: 0.25rem; }
.flow li::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: -2.25rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
}
.flow__word {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1.05;
  color: var(--ink);
}
.flow__note {
  max-width: 22ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--sienna);
}

/* YouTube background (optional) ------------------------------------------- */

.hero__yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

/* ==========================================================================
   Motion layer (all of it switched off under prefers-reduced-motion)
   ========================================================================== */

/* Scroll progress line */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
}

/* Header slides away on scroll down */
.site-header { transition: transform 0.45s var(--ease), background-color 0.3s ease; }
.site-header.is-hidden { transform: translateY(-110%); }

/* Hero: slow push-in and gentle fade as you scroll away */
.hero__media { transform: scale(calc(1 + var(--hp, 0) * 0.14)); will-change: transform; }
.hero__content {
  opacity: calc(1 - var(--hp, 0) * 1.4);
  transform: translateY(calc(var(--hp, 0) * -3.5rem));
}
@keyframes drift {
  0%, 100% { transform: scale(1.04); }
  50% { transform: scale(1.1); }
}
.js .hero__video { animation: drift 24s ease-in-out infinite; }

/* Marquee slows to a stop on hover */
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Buttons: lift, glow, arrow */
.button { position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.button--solid:hover { transform: translateY(-3px); box-shadow: 0 0.8rem 2rem rgba(210, 104, 42, 0.35); }
.button--line:hover { transform: translateY(-3px); }
.button--solid::after,
.button--line::after {
  content: "\2192";
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s var(--ease), margin-left 0.3s var(--ease), opacity 0.3s ease;
}
.button--solid:hover::after,
.button--line:hover::after { max-width: 1.5rem; margin-left: 0.6rem; opacity: 1; }
.site-nav .nav-cta::after { content: none; }

/* Word-by-word reveals (headings, the quote, the closing line) */
.js [data-split] .sw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-split].is-in .sw { opacity: 1; transform: none; }

/* About lead: words light up as you read down the page */
.js .fw { opacity: 0.2; transition: opacity 0.35s ease; }
.js .fw.is-on { opacity: 1; }

/* Quote band: the sun breathes and drifts with the scroll */
@keyframes breathe {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.045); }
}
.quote__sun {
  translate: 0 calc(var(--qp, 0) * -6rem);
  animation: breathe 7s ease-in-out infinite;
}

/* How we work: the line draws itself, steps arrive one by one */
.flow::before { transform-origin: 0 0; transform: scaleY(var(--flow, 1)); }
.flow li:nth-child(2) { transition-delay: 0.12s; }
.flow li:nth-child(3) { transition-delay: 0.24s; }

/* Stages: ghost word slides in, copy staggers up */
.stage__ghost { transform: translateX(calc((1 - var(--gp, 1)) * 28%)); }
.js .stage__inner > * {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .stage.is-in .stage__inner > * { opacity: 1; transform: none; }
.js .stage__inner > :nth-child(2) { transition-delay: 0.1s; }
.js .stage__inner > :nth-child(3) { transition-delay: 0.2s; }
.js .stage__inner > :nth-child(4) { transition-delay: 0.3s; }

/* Slate: fields print in after the clap */
.js .slate__fields > div {
  opacity: 0;
  transform: translateX(-1.25rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .slate.is-clapped .slate__fields > div { opacity: 1; transform: none; }
.js .slate.is-clapped .slate__fields > div:nth-child(1) { transition-delay: 0.3s; }
.js .slate.is-clapped .slate__fields > div:nth-child(2) { transition-delay: 0.5s; }
.js .slate.is-clapped .slate__fields > div:nth-child(3) { transition-delay: 0.7s; }

/* Contact: staggered arrival */
.contact__item:nth-child(2) { transition-delay: 0.1s; }
.contact__item:nth-child(3) { transition-delay: 0.2s; }

/* Form fields: label lifts colour, line grows on focus */
.field:focus-within label { color: var(--orange); }
.field label { transition: color 0.25s ease; }

@media (prefers-reduced-motion: reduce) {
  .progress span { transform: scaleX(var(--sp, 0)); }
  .site-header { transition: none; }
  .site-header.is-hidden { transform: none; }
  .hero__media,
  .hero__content,
  .stage__ghost,
  .flow::before { transform: none; }
  .hero__content { opacity: 1; }
  .js .hero__video,
  .quote__sun { animation: none; translate: none; }
  .js [data-split] .sw,
  .js .fw,
  .js .stage__inner > *,
  .js .slate__fields > div { opacity: 1; transform: none; transition: none; }
  .button,
  .button--solid:hover,
  .button--line:hover { transform: none; transition: none; }
}

/* Hero: animated U mark ---------------------------------------------------- */

.hero__mark {
  position: absolute;
  right: 11%;
  top: 50%;
  z-index: 0;
  display: none;
  width: clamp(11rem, 22vw, 21rem);
  aspect-ratio: 200 / 316;
  transform: translateY(-46%);
  pointer-events: none;
}
.hero__mark svg { position: relative; width: 100%; height: 100%; overflow: visible; }

.hero__mark-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, rgba(210, 104, 42, 0.38), rgba(210, 104, 42, 0) 70%);
  animation: glow-in 1.2s ease 0.3s both, glow-breathe 6s ease-in-out 1.8s infinite;
}

.u-line {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: u-draw 0.9s var(--ease) 0.15s forwards;
}


@media (min-width: 52em) { .hero__mark { display: block; } }

@keyframes u-draw { to { stroke-dashoffset: 0; } }
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

/* Calmer video behind the mark so the logo reads first */
.hero__shade {
  background:
    linear-gradient(90deg, rgba(26, 20, 17, 0.78) 0%, rgba(26, 20, 17, 0.45) 55%, rgba(26, 20, 17, 0.35) 100%),
    linear-gradient(180deg, rgba(26, 20, 17, 0.55) 0%, rgba(26, 20, 17, 0.1) 28%, rgba(26, 20, 17, 0.1) 60%, rgba(26, 20, 17, 0.85) 100%);
}

/* Showreel dialog ---------------------------------------------------------- */

button.button { font-family: var(--font-body); cursor: pointer; }
button.button--line { background: transparent; }

.reel {
  width: min(100% - 2rem, 70rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid rgba(184, 149, 90, 0.4);
  background: var(--ink);
  color: var(--ivory);
}
.reel::backdrop { background: rgba(17, 17, 17, 0.88); }

.reel__video { width: 100%; max-height: calc(100vh - 6rem); background: #000; aspect-ratio: 16 / 9; }

.reel__close {
  display: block;
  margin: 0.75rem 0.75rem 0.75rem auto;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  background: none;
  border: 1px solid rgba(246, 241, 233, 0.45);
  color: var(--ivory);
  font: 500 0.9rem var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.reel__close:hover { background: var(--ivory); color: var(--ink); }

.reel__note {
  padding: 2rem 1.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  color: var(--sand);
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark-glow { animation: none; }
  .u-line { animation: none; stroke-dashoffset: 0; }
  .u-dot { animation: none; opacity: 1; }
}

.reel__video[hidden],
.reel__note[hidden] { display: none; }

/* Keep the headline clear of the U mark on wide screens */
@media (min-width: 52em) {
  .hero__title { font-size: clamp(3.4rem, 0.4rem + 9.2vw, 8.75rem); max-width: 10ch; }
}

/* ==========================================================================
   Hero, as designed: flat espresso night, animated U on the right,
   calm Jost headline. Optional light theme for header + hero.
   ========================================================================== */

.hero {
  background: var(--night);
  justify-content: space-between;
  padding-top: 0;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  color: var(--gold);
  animation: fade-up 1s var(--ease) 0.1s both;
}

.hero__title {
  max-width: 13ch;
  font-weight: 300;
  font-size: clamp(3.1rem, 1rem + 6.8vw, 6.6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
}
@media (min-width: 52em) {
  .hero__title { font-size: clamp(3.1rem, 1rem + 6.2vw, 6.6rem); max-width: 13ch; }
}

.hero__lede {
  max-width: 28rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--sand);
}

.button--gold {
  border-color: var(--gold);
  color: var(--ivory);
}
.button--gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }

.hero__mark { right: 9%; }
.hero__mark-glow { inset: -30%; background: radial-gradient(closest-side, rgba(210, 104, 42, 0.26), rgba(210, 104, 42, 0.1) 55%, rgba(210, 104, 42, 0) 78%); }

/* Header tools: nav + theme toggle */
.site-header__tools { display: flex; align-items: center; gap: 1.25rem; }

.brand__light { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid rgba(246, 241, 233, 0.4);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle path { fill: currentColor; }
.theme-toggle:hover { background: var(--ivory); color: var(--ink); }

/* Light theme (header + hero only; the page below already runs on ivory) */
html[data-theme="light"] .brand__dark { display: none; }
html[data-theme="light"] .brand__light { display: block; }
html[data-theme="light"] .site-header { color: var(--ink); background: linear-gradient(180deg, rgba(246, 241, 233, 0.85), rgba(246, 241, 233, 0)); }
html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] .site-header.is-open { background: rgba(246, 241, 233, 0.95); box-shadow: 0 1px 0 rgba(17, 17, 17, 0.12); }
html[data-theme="light"] .theme-toggle { border-color: rgba(17, 17, 17, 0.4); color: var(--ink); }
html[data-theme="light"] .theme-toggle:hover { background: var(--ink); color: var(--ivory); }
html[data-theme="light"] .nav-toggle { border-color: rgba(17, 17, 17, 0.4); color: var(--ink); }
html[data-theme="light"] .hero {
  background: radial-gradient(34% 46% at 76% 52%, rgba(210, 104, 42, 0.18), rgba(210, 104, 42, 0) 70%), var(--ivory);
  color: var(--ink);
}
html[data-theme="light"] .hero__eyebrow { color: var(--sienna); }
html[data-theme="light"] .hero__lede { color: var(--body-on-light); }
html[data-theme="light"] .button--gold { color: var(--ink); border-color: var(--ink); }
html[data-theme="light"] .button--gold:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
html[data-theme="light"] .u-line { stroke: var(--ink); }
html[data-theme="light"] .hero__cue { background: rgba(17, 17, 17, 0.2); }
html[data-theme="light"] .hero__cue span { background: var(--ink); }
html[data-theme="light"] .marquee { background: var(--sand); border-top-color: rgba(17, 17, 17, 0.15); }
html[data-theme="light"] .marquee__group li { color: var(--ink); }

@media (max-width: 51.99em) {
  html[data-theme="light"] .js .site-nav { background: rgba(246, 241, 233, 0.98); box-shadow: 0 1px 0 rgba(17, 17, 17, 0.12); }
  html[data-theme="light"] .js .site-nav li { border-bottom-color: rgba(17, 17, 17, 0.12); }
  .site-header__tools { gap: 0.75rem; }
}

/* Closing line, last on the page and quieter than before */
.closing {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--night);
  border-top: 1px solid rgba(184, 149, 90, 0.25);
  color: var(--ivory);
}
.closing__text {
  max-width: 30ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  line-height: 1.25;
  color: var(--sand);
}

/* YouTube showreel frame */
.reel__frame { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.reel__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Showreel player (Work section) */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 62rem;
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  border: 2px solid var(--ink);
  background: #000;
  overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__alt { max-width: 62rem; margin: 1.25rem auto 0; }
.player__alt a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sienna);
  border-bottom: 1px solid currentColor;
}
.player__alt a::after { content: "\2197"; font-size: 1.1em; transition: transform 0.25s var(--ease); }
.player__alt a:hover { color: var(--ink); }
.player__alt a:hover::after { transform: translate(2px, -2px); }

/* The U as a pot: the orange dot (the story) rises out of it and floats */

.u-dot {
  fill: var(--orange);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: dot-brew 1.1s cubic-bezier(0.25, 1.1, 0.45, 1) 0.85s forwards, dot-float 4s ease-in-out 2s infinite;
}

@keyframes dot-brew {
  0% { opacity: 0; transform: translateY(190px) scale(0.35); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes dot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .u-dot { animation: none; opacity: 1; }
}

/* Local-file fallback: thumbnail that opens YouTube */
.player__link { position: absolute; inset: 0; display: block; }
.player__link img { width: 100%; height: 100%; object-fit: cover; }
.player__link::after { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, 0.3); transition: background-color 0.3s ease; }
.player__link:hover::after { background: rgba(17, 17, 17, 0.1); }
.player__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(4rem, 9vw, 6rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
}
.player__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.5rem;
  border-color: transparent transparent transparent var(--ink);
}
