/* ==========================================================================
   BXTA – ACCUR8 landing page
   Design reference: Figma "BXTA Accurate" node 4:1652 (1790px artboard)
   ========================================================================== */

:root {
  --green: #006d46;
  --dark: #163029;
  --orange: #ee7623;
  --white: #fff;
  --placeholder: #d9d9d9;
  --footer-green: #2c673c;
  --footer-bar: #1f2f2a;

  --font: "ariana-pro", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --content: 1376px;      /* 207px → 1583px on the artboard */
  --content-wide: 1616px; /* 87px → 1703px on the artboard */
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--orange); color: var(--white);
}
.skip-link:focus { top: 16px; }

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

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

.section { position: relative; }
.section--dark { background: var(--dark); }
.section--green { background: var(--green); }

/* ---------- Shared type & UI ---------- */
.eyebrow {
  color: var(--orange);
  font-size: 26px;
  line-height: 29px;
  letter-spacing: 0.13px;
  margin-bottom: 20px;
}
.eyebrow--caps {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.h2 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.h2 sup { font-size: 17px; vertical-align: top; position: relative; top: 0.2em; margin-left: 4px; }

.rule {
  border: 0;
  border-top: 2px solid var(--orange);
  margin: 22px 0 23px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 228px;
  height: 50px;
  padding: 0 22px 0 20px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease;
}
.btn img { width: 12.22px; height: 5.7px; transition: transform .2s ease; }
.btn:hover { background: rgba(238, 118, 35, .15); }
.btn:hover img { transform: translateX(4px); }

/* Play button (circle + triangle from the design) */
.play-btn {
  position: relative;
  display: block;
  width: 86px;
  height: 86px;
  transition: transform .2s ease;
}
.play-btn-circle { width: 100%; height: 100%; mix-blend-mode: multiply; }
.play-btn-tri {
  position: absolute;
  left: 50%; top: 50%;
  width: 39.912px;
  height: 40.466px;
  transform: translate(-50%, -50%) rotate(92deg);
}
.play-btn-tri img {
  position: absolute;
  top: 0; bottom: 25%; left: 6.7%; right: 6.7%;
  width: 86.6%; height: 75%;
}
.play-btn--lg { width: 100px; height: 100px; }
.play-btn--lg .play-btn-tri { width: 46.409px; height: 47.054px; }

/* ---------- Scalable "stage" for composed artwork ----------
   Children are placed in Figma coordinates (--x, --y, --w, --h) relative to
   a --sw × --sh artboard and scale with the stage width via container units.
   Optional --ox/--oy shift the visible window, to crop the artboard. */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sw) / var(--sh);
  container-type: inline-size;
}
.stage > .ann {
  position: absolute;
  left:   calc((var(--x) - var(--ox, 0)) * 100cqw / var(--sw));
  top:    calc((var(--y) - var(--oy, 0)) * 100cqw / var(--sw));
  width:  calc(var(--w) * 100cqw / var(--sw));
  height: calc(var(--h) * 100cqw / var(--sw));
  max-width: none;
}
.ann > span { position: absolute; display: block; }
.ann > span > img,
.ann > img { width: 100%; height: 100%; max-width: none; }
.ann--rot180 { transform: rotate(180deg); }
.ann--tilt { transform: rotate(-11.4deg); }
.ann.crop { overflow: hidden; }
.ann.crop > img { position: absolute; width: auto; height: auto; }
.crop--flip { transform: scaleX(-1); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--white); color: var(--dark); position: relative; z-index: 10; }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 105px;
}

.brand { position: relative; display: block; margin-top: 25px; flex-shrink: 0; }
.brand img:first-child { width: 148px; height: auto; }
.brand-x { position: absolute; left: 20.9%; top: 54%; width: 19.15%; height: auto; }

.header-menus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 22px;
}

.country-select {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 25px;
  text-decoration: none;
}
.country-select img { width: 20px; height: 13px; object-fit: cover; border-radius: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin-top: 21px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  line-height: 25px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--orange); }

.search-btn {
  display: grid; place-items: center;
  width: 24px; height: 25px;
  padding: 0; border: 0; background: none;
  font-size: 15px; color: #000;
}

.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .header-inner { min-height: 84px; align-items: center; }
  .brand { margin-top: 0; }
  .brand img:first-child { width: 110px; }

  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; background: none;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after  { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

  .header-menus {
    position: absolute;
    top: 100%; left: 0; right: 0;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
  .header-menus:not(.is-open) { display: none; }
  .country-select { order: 2; margin-top: 16px; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .main-nav a { display: block; padding: 10px 0; font-size: 17px; }
  .search-btn { margin-top: 8px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--green); overflow: hidden; }

.hero-inner {
  position: relative;
  max-width: 1790px;
  margin-inline: auto;
  aspect-ratio: 1790 / 871;
  container-type: inline-size;
}

.hero-brand {
  position: absolute;
  left: calc(84 * 100cqw / 1790);
  top: calc(66 * 100cqw / 1790);
  width: calc(362.31 * 100cqw / 1790);
  z-index: 2;
}
.hero-brand h1 { font-weight: 400; }
.hero-brand img { width: 100%; height: auto; }
.hero-tagline {
  display: block;
  margin-top: calc(13 * 100cqw / 1790);
  padding-left: 3%;
  text-align: center;
  font-size: max(13px, calc(17 * 100cqw / 1790));
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-art {
  --sw: 1095; /* Figma artboard for the device, curve and dot */
  --sh: 782;
  position: absolute;
  left: calc(348 * 100cqw / 1790);
  top: calc(8 * 100cqw / 1790);
  width: calc(1095 * 100cqw / 1790);
}

/* ---------- Hero turnaround scrubber ---------- */
.hero-arc { overflow: visible; pointer-events: none; }
.hero-arc-line { fill: none; stroke: var(--orange); stroke-width: 2; }
/* Wide invisible stroke so the curve itself can be clicked/dragged */
.hero-arc-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 32px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}
.hero-turn-poster,
.hero-turn-canvas { pointer-events: none; }
.stage > [hidden] { display: none; } /* beats the global img { display: block } */

.hero-dot {
  --x: 461;  /* centre, in artboard units: design position (frame 39); JS keeps it on the curve */
  --y: 713;
  position: absolute;
  left: calc((var(--x) - var(--ox, 0)) * 100cqw / var(--sw));
  top: calc((var(--y) - var(--oy, 0)) * 100cqw / var(--sw));
  z-index: 1;
  width: max(14px, calc(26 * 100cqw / var(--sw)));
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
/* 44px touch target regardless of the dot's drawn size */
.hero-dot::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-dot[role="slider"] { cursor: grab; transition: box-shadow 0.2s ease; }
.hero-dot[role="slider"]:hover,
.is-scrubbing .hero-dot { box-shadow: 0 0 0 6px rgb(238 118 35 / 0.3); }
.is-scrubbing .hero-dot { cursor: grabbing; }
.is-scrubbing { -webkit-user-select: none; user-select: none; }
.hero-dot:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.hero-claim {
  position: absolute;
  left: calc(1311 * 100cqw / 1790);
  top: calc(331 * 100cqw / 1790);
  width: calc(290 * 100cqw / 1790);
  font-size: max(18px, calc(28 * 100cqw / 1790));
  line-height: 1.357;
}

.hero-outro {
  position: absolute;
  left: calc(92 * 100cqw / 1790);
  top: calc(760 * 100cqw / 1790);
  font-size: max(13px, calc(18 * 100cqw / 1790));
  line-height: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile + tablet: stacked, at least 90% of the screen height (560px floor),
   with the device as large as the space allows */
@media (max-width: 1024px) {
  .hero-inner {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    min-height: max(560px, 90vh);
    min-height: max(560px, 90svh);
    padding: 40px var(--gutter) 48px;
  }
  .hero-brand, .hero-claim, .hero-outro { position: static; }
  .hero-brand { width: min(260px, 70%); }
  .hero-art {
    /* Crop the artboard to just the device and curve so they fill the width */
    --sw: 670;
    --sh: 600;
    --ox: 212;
    --oy: 140;
    position: relative; /* positioning box for the artwork and scrubber dot */
    inset: auto;
    /* Full width, unless that's too tall for the banner: leave ~300px for
       the logo, copy and padding */
    width: min(100%, calc((max(560px, 90vh) - 300px) * 670 / 600));
    width: min(100%, calc((max(560px, 90svh) - 300px) * 670 / 600));
    margin: auto; /* centred in the space between logo and copy */
  }
  .hero-claim { width: auto; margin-top: 24px; font-size: clamp(24px, 3.4vw, 30px); }
  .hero-outro { margin-top: 24px; font-size: 15px; }
}

/* Landscape tablets: stacking leaves the device short, so put the logo and copy
   in a left column and give the device the full banner height */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    grid-template-rows: auto 1fr auto auto;
    column-gap: 24px;
  }
  .hero-brand { grid-area: 1 / 1; }
  .hero-claim { grid-area: 3 / 1; }
  .hero-outro { grid-area: 4 / 1; }
  .hero-art {
    grid-area: 1 / 2 / -1 / 3;
    /* As tall as the banner (its height minus the 40 + 48 vertical padding),
       but never wider than the room beside the copy column (220px + 24px gap)
       – on narrower or taller landscape screens the height-based size
       overflowed to the right. 100cqw is .hero-inner's content width. */
    width: min(calc((max(560px, 90vh) - 88px) * 670 / 600), calc(100cqw - 244px));
    width: min(calc((max(560px, 90svh) - 88px) * 670 / 600), calc(100cqw - 244px));
  }
}

/* ==========================================================================
   Split rows (media + copy)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 136fr) minmax(0, 680fr);
  align-items: center;
}
.split-media { grid-column: 1; grid-row: 1; }
.split-body  { grid-column: 3; grid-row: 1; }
.split-body > p:not(.eyebrow) { max-width: 677px; }
.split-body .btn { margin-top: 18px; }

.split--reverse { grid-template-columns: minmax(0, 680fr) minmax(0, 136fr) minmax(0, 560fr); }
.split--reverse .split-media { grid-column: 3; }
.split--reverse .split-body  { grid-column: 1; }
.split--reverse .split-body > p:not(.eyebrow) { max-width: 633px; }

@media (max-width: 900px) {
  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-media, .split-body,
  .split--reverse .split-media,
  .split--reverse .split-body { grid-column: 1; grid-row: auto; }
}

/* Features (dark, with video placeholders) */
.features { padding: 145px 0 158px; }
.features .split + .split { margin-top: 155px; }

.video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 560 / 383;
  padding: 0;
  border: 0;
  background: var(--placeholder);
}
.video-placeholder:hover .play-btn,
.video-band-trigger:hover .play-btn { transform: scale(1.08); }

@media (max-width: 900px) {
  .features { padding: 80px 0; }
  .features .split + .split { margin-top: 80px; }
  .split--reverse .split-media { order: -1; }
}

/* Detection (green) */
.detection { padding: 146px 0 135px; }
.detection-art { width: 77.86%; margin-left: 13.57%; }
.bullets { margin-top: 28px; padding-left: 27px; }
.bullets li + li { margin-top: 28px; }

@media (max-width: 900px) {
  .detection { padding: 80px 0; }
  .detection-art { width: min(436px, 100%); margin-inline: auto; }
}

/* ==========================================================================
   Video band
   ========================================================================== */
.video-band { background: var(--green); }
.video-band-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1790 / 845;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #cfe0e2;
}
.video-band-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 3.6%;
}
.video-band .play-btn { position: relative; }

@media (max-width: 767px) {
  .video-band-trigger { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Green by design (castor)
   ========================================================================== */
.castor { padding: 116px 0; }
.castor-grid {
  display: grid;
  grid-template-columns:
    max(var(--gutter), calc((100% - var(--content)) / 2))
    minmax(0, 638fr)
    minmax(0, 945fr);
  align-items: center;
}
.castor-body { grid-column: 2; padding-right: 32px; max-width: 470px; }
.castor-body .h2 { max-width: 461px; }
.castor-body .rule { max-width: 405px; }
.castor-body > p:not(.eyebrow) { max-width: 402px; }
.castor-body .btn { margin-top: 18px; }

.castor-media {
  grid-column: 3;
  position: relative;
  aspect-ratio: 945 / 646;
  overflow: hidden;
  container-type: inline-size;
}
/* Crop matches the Figma mask: image 1414.57×972.85 offset (-16.96, -70.15) in a 945×646 frame */
.castor-img {
  position: absolute;
  left: -1.795%;
  top: -10.86%;
  width: 149.69%;
  height: 150.6%;
  max-width: none;
}
.castor-stat {
  position: absolute;
  left: calc(138 * 100cqw / 945);
  top: calc(60 * 100cqw / 945);
  width: calc(654 * 100cqw / 945);
  height: calc(525 * 100cqw / 945);
  padding: calc(39 * 100cqw / 945) calc(71 * 100cqw / 945);
  background: rgba(0, 0, 0, .7);
  mix-blend-mode: normal;
  font-size: max(20px, calc(40 * 100cqw / 945));
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.castor-stat-lead { font-weight: 700; }
.castor-stat-figure {
  font-weight: 700;
  font-size: max(72px, calc(200 * 100cqw / 945));
  line-height: 0.8;
  letter-spacing: 1px;
  margin: 0.12em 0 0.18em;
}
.castor-stat-sub { margin-top: 0.3em; max-width: 12em; }

@media (max-width: 900px) {
  .castor { padding: 80px 0 0; }
  .castor-grid { grid-template-columns: var(--gutter) 1fr var(--gutter); row-gap: 48px; }
  .castor-body { grid-column: 2; padding-right: 0; }
  .castor-media { grid-column: 1 / -1; aspect-ratio: auto; padding: 48px var(--gutter); }
  .castor-img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
  .castor-stat { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 32px; }
  .castor-stat { font-size: 26px; }
  .castor-stat-figure { font-size: 96px; }
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits { padding: 103px 0 102px; }
.benefits-logo img { width: 264px; height: auto; }
.benefits .rule { margin: 36px 0 66px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(32px, 7vw, 129px);
}
.arrow-list { list-style: none; padding: 0; }
.arrow-list li {
  position: relative;
  padding-left: 31.6px;
  max-width: 372px;
}
.arrow-list li + li { margin-top: 34px; }
.arrow-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 19.78px; height: 9.23px;
  background: url("../img/bullet-arrow.svg") no-repeat center / contain;
}
.benefits-cta { display: flex; justify-content: center; margin-top: 64px; }

@media (max-width: 900px) {
  .benefits { padding: 80px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .arrow-list + .arrow-list { margin-top: 34px; }
}

/* ==========================================================================
   Key features timeline
   ========================================================================== */
.timeline-section { padding: 180px 0 117px; overflow: hidden; }

.timeline { position: relative; }
.tl-list { list-style: none; padding: 0; }

.tl-row {
  display: grid;
  grid-template-columns: minmax(0, 738fr) minmax(0, 78fr) minmax(0, 560fr);
  align-items: stretch;
}
.tl-row + .tl-row { margin-top: clamp(80px, 21.5vw, 385px); }

/* Figure is 785px wide on a 738px column (bleeds 47px to the left).
   The device photo with that row's overlay artwork on top (same 785×613 frame). */
.tl-figure { position: relative; grid-column: 1; width: calc(100% * 785 / 738); margin-left: calc(-100% * 47 / 738); }
.tl-device { width: 100%; height: auto; }
.tl-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Rule sits on the row's vertical centre, heading above, copy below */
.tl-text {
  grid-column: 3;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}
.tl-heading {
  align-self: end;
  padding-right: 40px;
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.tl-desc { align-self: start; max-width: 416px; margin-top: 22px; padding-right: 40px; }

.tl-rule {
  position: relative;
  display: block;
  height: 2px;
  margin-left: -3px;
  background: var(--orange);
}
.tl-marker {
  position: absolute;
  right: -17px; top: 50%;
  width: 34px; height: 34px;
  margin-top: -17px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--green);
  z-index: 1;
}

/* Vertical line + dot, positioned by JS. The line runs first → last stop;
   the dot sits on the active row's rule. */
.tl-track {
  position: absolute;
  right: -1px; top: 0;
  width: 2px;
  background: var(--orange);
  will-change: transform;
}
.tl-stop {
  position: absolute;
  left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--green);
}
.tl-tracker {
  position: absolute;
  right: -17px; top: 0;
  width: 34px; height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--orange);
  z-index: 2;
  will-change: transform;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
}

/* Stacked fallback: the rows' own markers mark the line */
.timeline-section:not(.is-pinned) .tl-stop { display: none; }

/* ---------- Pinned: section sticks, rows cross-fade in place ---------- */
.timeline-section.is-pinned { padding: 0; overflow: visible; } /* height set by JS */
.is-pinned .tl-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.is-pinned .tl-list { display: grid; }
.is-pinned .tl-row { grid-area: 1 / 1; }
.is-pinned .tl-row + .tl-row { margin-top: 0; }
.is-pinned .tl-marker { display: none; } /* the line's stops take over */
/* The line follows the scroll frame by frame, so no easing on it or the dot */
.is-pinned .tl-tracker { transition: none; }

/* The device stays put: only the first row's copy is shown (the rest sit
   exactly underneath it), so it never fades. Overlays and copy change. */
.is-pinned .tl-row + .tl-row .tl-device { visibility: hidden; }

/* Scroll-linked cross-fade between rows. JS sets, per row, from the scroll
   position (and so also during the snap glide):
     --tl-v      how present the row is, 0–1
     --tl-shift  which way it's drifting: -1 (leaving, above) … 0 … 1 (arriving, below)
   First half of the way to the next dot: the current row fades out, drifting
   up, and its rule draws back into the dot. Second half: the next row fades
   in, rising into place, and its rule draws out, completing on the dot. */
.is-pinned .tl-row { --tl-v: 0; --tl-shift: 0; }
.is-pinned .tl-overlay,
.is-pinned .tl-heading,
.is-pinned .tl-desc { opacity: var(--tl-v); }
.is-pinned .tl-heading,
.is-pinned .tl-desc { transform: translate3d(0, calc(var(--tl-shift) * 12px), 0); }
.is-pinned .tl-row:not(.is-active) { pointer-events: none; }

.is-pinned .tl-rule {
  transform: scaleX(var(--tl-v));
  transform-origin: right center; /* draws out of, and back into, the dot */
}

.timeline.no-transition .tl-track,
.timeline.no-transition .tl-tracker { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tl-tracker { transition: none; }
  .is-pinned .tl-heading,
  .is-pinned .tl-desc { transform: none; } /* plain fade, no movement */
}

@media (max-width: 900px) {
  .timeline-section { padding: 80px 0; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-row + .tl-row { margin-top: 72px; }
  .tl-figure { grid-column: 1; width: calc(100% - 24px); margin-left: -4%; }
  .tl-text { grid-column: 1; margin-top: 16px; }
  .tl-heading { font-size: 26px; }
  .tl-desc { font-size: 16px; line-height: 25px; }
}

/* ==========================================================================
   FAQs + contact
   ========================================================================== */
.contact { padding: 166px 0 224px; }
.faqs { padding-left: 16px; min-height: 640px; }
.faq-question {
  margin-top: 41px;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 50px;
  letter-spacing: 0.15px;
}

.divider { border: 0; border-top: 1px solid var(--orange); margin: 0; }

.contact-title {
  margin: 145px 0 65px 5px;
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 400;
  line-height: 55px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 653fr) minmax(0, 656fr);
  column-gap: clamp(24px, 5vw, 67px);
  row-gap: 67px;
}
.field { display: flex; flex-direction: column; border-bottom: 1px solid var(--orange); }
.field label {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.field input {
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 18px;
}
.field input:focus { outline: none; }
.field:focus-within { border-bottom-color: var(--white); }

.checkbox {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: -6px;
  font-size: 18px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  flex-shrink: 0;
  width: 32px; height: 32px;
  margin: 0;
  border: 1px solid var(--orange);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.checkbox input::after {
  content: "";
  width: 9px; height: 16px;
  margin-top: -4px;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.checkbox input:checked::after { transform: rotate(45deg) scale(1); }

.form-actions { grid-column: 1 / -1; margin-top: 13px; }

@media (max-width: 767px) {
  .contact { padding: 80px 0 96px; }
  .faqs { min-height: 0; padding: 0 0 80px; }
  .contact-title { margin: 80px 0 40px; }
  .contact-form { grid-template-columns: 1fr; row-gap: 40px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--white);
  color: var(--footer-green);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, #4d9144 50%, var(--footer-green) 50%) 1;
}
.footer-inner { padding: 52px 0 78px; }
.footer-logo { margin: 0 0 0 23px; width: 299px; }
.footer-logo img:first-child { width: 100%; }

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 684fr) minmax(0, 331fr) minmax(0, 338fr);
  margin-top: 56px;
  padding-left: 23px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: 177px auto;
  row-gap: 14px;
  list-style: none;
  padding: 0;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-address,
.footer-contact {
  border-left: 1px solid var(--footer-green);
  padding-left: 32px;
  font-style: normal;
}
.footer-address { padding-top: 10px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.footer-contact > a { text-decoration: underline; }

.socials { display: flex; gap: 16px; list-style: none; padding: 0; margin-top: 15px; }
.social {
  display: grid; place-items: center;
  width: 31px; height: 31px;
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s ease;
}
.social:hover { transform: translateY(-2px); }
.social--fb { background: #4d9144; }
.social--ig { background: var(--footer-green); }
.social--in { background: #f7d046; }
.social--x  { background: #e07a3a; }

.footer-bar { background: var(--footer-bar); color: var(--white); }
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 31px;
  padding: 17px 0 17px 23px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }
.footer-bar p { margin-right: 10px; }

@media (max-width: 900px) {
  .footer-logo { width: 200px; margin-left: 0; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 32px; padding-left: 0; }
  .footer-bar-inner { padding-left: 0; }
}

/* ==========================================================================
   Video modal
   ========================================================================== */
.video-modal {
  /* fit 16:9 video + close button inside the viewport */
  width: min(1200px, 100vw - 32px, (100dvh - 140px) * 16 / 9);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(10, 22, 18, .88); }
.video-modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } }

.video-modal-inner { position: relative; }
.video-modal-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-modal-close {
  position: absolute;
  right: 0; bottom: 100%;
  margin-bottom: 8px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 20px;
}
.video-modal-close:hover { background: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .video-modal[open] { animation: none; }
  .btn, .btn img, .play-btn, .social { transition: none; }
}
