/* ========================================================================
   ReelTour — tokens
   ======================================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-nav-scrolled: rgba(10, 10, 10, 0.82);
  --color-text-primary: #f5f2eb;
  --color-text-secondary: #a6a29a;
  --color-accent: #c9a24b;
  --color-accent-light: #e0c275;
  --color-border: rgba(245, 242, 235, 0.1);
  --color-error: #e2836b;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-height: 84px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ========================================================================
   Reset / base
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-text-primary);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ========================================================================
   Nav
   ======================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.nav.is-scrolled {
  background-color: var(--color-nav-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
}

.nav__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav__logo:focus-visible,
.nav__cta:focus-visible,
.hero__scroll:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

/* So this class also works cleanly on a <button> (the contact form's
   submit uses it too, for an identical pill regardless of element). */
.nav__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nav__cta:hover {
  background-color: var(--color-accent);
  transform: translateY(-1px);
}

/* ========================================================================
   Hero
   ======================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* --- background media stack --- */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: hero-kenburns 26s var(--ease) infinite alternate;
}

.hero__placeholder {
  position: absolute;
  /* Oversized relative to its box so the drift transform below never
     exposes an edge — and, unlike an animated background-position, a
     transform doesn't recompute against the container on every resize
     frame, so this stays smooth while the window is being dragged. */
  inset: -10%;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(circle at 30% 20%, #241f16 0%, #0a0a0a 55%),
    linear-gradient(135deg, #17130d, #0a0a0a 60%);
  background-repeat: no-repeat;
  background-size: cover;
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Revealed by js/main.js once the video actually has a source and is
   playing — until then the animated placeholder above stays visible. */
.hero__video.is-ready {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.4) 28%,
      rgba(0, 0, 0, 0.48) 62%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes hero-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, -2%, 0) scale(1.05);
  }
}

.hero__media-tag {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: 1.5rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.45);
  border: 1px solid rgba(245, 242, 235, 0.18);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  pointer-events: none;
}

/* --- content --- */

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(14px);
  animation: hero-fadeup 0.9s 0.15s var(--ease) forwards;
}

.hero__rule {
  width: 0;
  height: 1px;
  background: var(--color-accent);
  margin: 1.75rem 0 1.5rem;
  animation: hero-drawrule 1.1s 0.55s var(--ease) forwards;
}

.hero__subhead {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 32ch;
  opacity: 0;
  animation: hero-fadeup 0.8s 0.85s var(--ease) forwards;
}

@keyframes hero-fadeup {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drawrule {
  to {
    width: 64px;
  }
}

/* --- scroll indicator --- */

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: rgba(245, 242, 235, 0.55);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  opacity: 0;
  animation:
    hero-fadein 1s 1.2s var(--ease) forwards,
    hero-bob 2.2s 1.2s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--color-accent);
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes hero-fadein {
  to {
    opacity: 1;
  }
}

/* ========================================================================
   Case studies
   ======================================================================== */

.case-studies {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.case-studies__intro {
  max-width: 640px;
  margin: 0 auto clamp(3rem, 7vw, 5.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

/* Shared "section intro" typography — heading + small gold rule (+
   optional lede) — reused by every major section below the hero so the
   page reads as one system rather than one-off headings per section. */
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.section-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

.section-lede {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--color-text-secondary);
}

.case-studies__list {
  /* Plain block stacking — the entries are already block-level <article>s.
     (A flex column here previously fought with each entry's own
     `margin: 0 auto` centering: explicit auto margins on a flex child
     suppress stretch, so entries shrank to fit-content instead of filling
     the row, which badly skewed the grid column math at wide viewports.) */
  display: block;
}

/* --- individual entry --- */

.case-study {
  display: grid;
  grid-template-columns: minmax(240px, 32%) 1fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 1.75rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.case-study:not(:first-child) {
  border-top: 1px solid rgba(245, 242, 235, 0.06);
}

.case-study__header {
  grid-column: 1;
  grid-row: 1;
}

.case-study__details {
  grid-column: 1;
  grid-row: 2;
}

.case-study__media {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* even entries mirror the layout so it doesn't read as one repeated block */
.case-study:nth-child(even) {
  grid-template-columns: 1fr minmax(240px, 32%);
}

.case-study:nth-child(even) .case-study__media {
  grid-column: 1;
}

.case-study:nth-child(even) .case-study__header,
.case-study:nth-child(even) .case-study__details {
  grid-column: 2;
}

/* scroll-reveal — see js/main.js; content stays visible without JS */
.js .case-study {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .case-study.is-visible {
  opacity: 1;
  transform: none;
}

.case-study__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.case-study__location {
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* --- media / video frame --- */

.case-study__video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245, 242, 235, 0.1);
}

.case-study__video-placeholder {
  position: absolute;
  inset: -10%;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(circle at 65% 30%, #241f16 0%, #0a0a0a 60%),
    linear-gradient(135deg, #17130d, #0a0a0a 65%);
  background-repeat: no-repeat;
  background-size: cover;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.case-study__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.case-study__video.is-ready {
  opacity: 1;
}

.case-study__media-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.5);
  border: 1px solid rgba(245, 242, 235, 0.18);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
}

/* --- before photos + result --- */

.case-study__before-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.45);
  margin-bottom: 0.75rem;
}

.case-study__before-photos {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-study__photo {
  display: block;
  width: 25%;
  max-width: 92px;
  aspect-ratio: 3 / 4;
  /* Crop to fill the box instead of stretching — matters once this is a
     real <img> rather than the empty placeholder div (which this
     background is still the fallback for, e.g. while an image loads). */
  object-fit: cover;
  object-position: center;
  background: linear-gradient(155deg, #1c1a16 0%, #0e0d0b 100%);
  border: 1px solid rgba(245, 242, 235, 0.08);
}

.case-study__result {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 42ch;
}

/* ========================================================================
   Platforms marquee
   ======================================================================== */

.platforms {
  border-top: 1px solid rgba(245, 242, 235, 0.06);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.platforms__label {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.45);
}

.platforms__marquee {
  position: relative;
  overflow: hidden;
  /* Fade the row into the edges instead of a hard cut. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.platforms__track {
  display: flex;
  width: max-content;
  animation-name: platforms-scroll;
  /* Fallback for no-JS: js/main.js overrides this with a value computed
     from the actual content width, so speed stays constant regardless
     of viewport size or how many repeats it ends up cloning in. */
  animation-duration: 40s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.platforms__marquee:hover .platforms__track {
  animation-play-state: paused;
}

.platforms__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(3rem, 7vw, 6rem);
  /* Trailing gap matches the item gap, so the two groups (placed with no
     gap of their own between them) read as one continuous, evenly-spaced
     sequence — that's what lets translateX(-50%) below loop with no seam. */
  padding-right: clamp(3rem, 7vw, 6rem);
}

.platforms__item {
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-text-secondary);
  opacity: 0.55;
  white-space: nowrap;
}

@keyframes platforms-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========================================================================
   How it works
   ======================================================================== */

.how-it-works {
  border-top: 1px solid rgba(245, 242, 235, 0.06);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.how-it-works__intro {
  max-width: 640px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.how-it-works__steps-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* A quiet line threading through the three step numbers, reinforcing
   that this is one simple sequence rather than three separate ideas. */
.how-it-works__thread {
  position: absolute;
  top: 1.9rem;
  left: calc(16.6667% + clamp(1.25rem, 4vw, 3rem) * 0.6667);
  right: calc(16.6667% + clamp(1.25rem, 4vw, 3rem) * 0.6667);
  height: 1px;
  background: rgba(245, 242, 235, 0.1);
}

.how-it-works__steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);

  /* Content fades up together once the section scrolls into view — see
     js/main.js. Stays visible with no JS, same pattern as case studies. */
  opacity: 1;
  transform: none;
}

.js .how-it-works__steps {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .how-it-works__steps.is-visible {
  opacity: 1;
  transform: none;
}

.step {
  text-align: left;
}

.step__number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(245, 242, 235, 0.22);
  margin: 0 0 1.5rem;
  background: var(--color-bg);
  /* Sits on the thread without a visible seam through the digits. */
  width: fit-content;
  padding-right: 0.5rem;
}

.step__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: var(--color-text-primary);
}

.step__description {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 34ch;
}

/* ========================================================================
   Final CTA
   ======================================================================== */

.cta-final {
  border-top: 1px solid rgba(245, 242, 235, 0.06);
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.cta-final__inner {
  max-width: 560px;
  margin: 0 auto;
}

/* Slightly larger than the standard section heading — this is the page's
   closing, primary conversion moment, so it earns a touch more weight. */
.cta-final .section-heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.cta-final .section-rule {
  width: 56px;
}

.cta-final .section-lede {
  margin-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

.js .cta-final__inner {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .cta-final__inner.is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
  border-top: 1px solid rgba(245, 242, 235, 0.06);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__brand {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__link {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.65;
  text-decoration: none;
  transition:
    opacity 0.3s var(--ease),
    color 0.3s var(--ease);
}

.site-footer__link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.site-footer__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
  opacity: 1;
}

.site-footer__copyright {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 1400px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 235, 0.35);
}

/* ========================================================================
   Contact page
   ======================================================================== */

.contact {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + clamp(4rem, 10vw, 7rem)) clamp(1.25rem, 4vw, 3rem) clamp(6rem, 10vw, 8rem);
}

/* A quiet echo of the hero's warm gradient — ties this page back to the
   same cinematic language without a video, kept static and subtle. */
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 160%;
  height: 480px;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.1) 0%, rgba(201, 162, 75, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.contact__intro,
.contact-form,
.contact-form__success {
  position: relative;
  z-index: 1;
}

.contact__intro {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.55);
}

.contact-form__optional {
  text-transform: none;
  letter-spacing: normal;
  color: rgba(245, 242, 235, 0.35);
}

.contact-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: rgba(245, 242, 235, 0.04);
  border: 1px solid rgba(245, 242, 235, 0.14);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.contact-form__input::placeholder {
  color: rgba(245, 242, 235, 0.32);
}

.contact-form__input:hover {
  border-color: rgba(245, 242, 235, 0.24);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(245, 242, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}

.contact-form__input--textarea {
  min-height: 160px;
  line-height: 1.6;
  resize: vertical;
}

.contact-form__submit-row {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-form__error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-error);
}

.contact-form__error a {
  color: inherit;
}

.contact-form__success {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.contact-form__success-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-text-primary);
}

.contact-form__success-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* ========================================================================
   Reduced motion
   ======================================================================== */

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

  .hero__media,
  .hero__placeholder {
    animation: none;
  }

  .hero__headline,
  .hero__subhead {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__rule {
    animation: none;
    width: 64px;
  }

  .hero__scroll {
    animation: none;
    opacity: 1;
  }

  .case-study__video-placeholder {
    animation: none;
  }

  .js .case-study {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .platforms__track {
    animation: none;
  }

  .js .how-it-works__steps {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .cta-final__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================================================
   Small screens
   ======================================================================== */

@media (max-width: 640px) {
  .hero__media-tag {
    display: none;
  }

  /* Let the headline find its own line breaks on narrow screens instead
     of forcing the two-line split meant for wider viewports. */
  .hero__headline-break {
    display: none;
  }

  .hero__headline {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
  }

  .case-study__before-photos {
    margin-bottom: 1.25rem;
  }

  .site-footer__row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-footer__copyright {
    text-align: center;
  }
}

@media (max-width: 860px) {
  /* Single column: name → video (the proof) → before photos → result. */
  .case-study,
  .case-study:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: clamp(2.75rem, 8vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  }

  .case-study__header {
    order: 1;
  }

  .case-study__media {
    order: 2;
  }

  .case-study__details {
    order: 3;
  }

  /* Stack the steps and swap the horizontal thread for short vertical
     ticks between them — the same "connected sequence" idea, adapted to
     a single column. */
  .how-it-works__thread {
    display: none;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .step:not(:first-child) {
    position: relative;
    padding-top: 2.75rem;
  }

  .step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1.75rem;
    background: rgba(245, 242, 235, 0.15);
  }
}
