/* ==========================================================================
   SHARP - Lead generation for Australian tradies
   Design language: industrial hi-vis. Dark theme locked page-wide.
   Accent locked to the brand lime (#BAFB04). Corner radius locked to 0.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces, built off the brand mark's #131814 */
  --surface-0: #0C100D;
  --surface-1: #131814;
  --surface-2: #1A211B;
  --surface-3: #232B24;

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Contrast against --surface-1, the darkest section fill:
     text 16.3:1 | mute 7.3:1 | dim 4.7:1. All clear WCAG AA, and --text-dim
     carries small uppercase labels so it cannot go any darker. */
  --text: #F2F5EF;
  --text-mute: #9FA7A0;
  --text-dim: #7C857E;

  --accent: #BAFB04;
  --accent-dim: #93C703;
  --accent-ink: #0C100D;

  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Radius lock: this brand is square. Do not introduce rounded corners. */
  --radius: 0;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale - the only layers on this page */
  --z-grain: 60;
  --z-nav: 50;
  --z-hero-content: 2;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  color-scheme: dark;          /* scrollbars and UA controls follow the theme */
}

/* No `scroll-behavior: smooth` here on purpose. ScrollTrigger scrolls the page
   programmatically while refreshing to measure pinned sections; smooth makes
   those scrolls async, so it measures before they land and every trigger ends
   up offset by the current scrollY. Anchor smoothing is done in js/main.js,
   where it only ever runs from a real user click. */

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* `clip`, never `hidden`. overflow-x:hidden on html/body promotes it to a
   scroll container, which breaks ScrollTrigger's scroll-position reads: a
   resize while the hero is pinned then recomputes every trigger offset by the
   current scrollY. `clip` contains overflow without that side effect. */
html,
body {
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.display-l {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Measure is set on the headline itself, where `ch` resolves against the
   display size. Constraining the flex container instead squeezes it twice. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .display-l { max-width: 16ch; }
.section-head--tight { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 1.0625rem;
  --btn-px: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;          /* CTA labels never wrap */
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.12s var(--ease);
}
.btn--sm { --btn-py: 0.8125rem; --btn-px: 1.25rem; font-size: 0.875rem; }

.btn__icon {
  width: 1.05em; height: 1.05em;
  fill: currentColor;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);      /* 4.5:1+ against lime - verified */
}
.btn--accent:hover { background: #CDFF3A; }
.btn--accent:active { transform: scale(0.985); }

.btn--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.btn--ghost:active { transform: scale(0.985); }

/* ---------- Scroll reveal (set by JS; visible by default if JS fails) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(12, 16, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 72px;                          /* nav height cap: 80px */
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand img { height: 30px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mute);
}
.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__toggle-bar {
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: rgba(12, 16, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile > a {
  padding: 0.9rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__mobile-cta {
  display: none;
  margin-top: 1.25rem;
  justify-content: center;
  border-bottom: 0 !important;
}

/* ==========================================================================
   1. HERO - pinned, video scrubs with scroll
   ========================================================================== */
.hero {
  position: relative;
  background: #000;
}

.hero__pin {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

/* Canvas is a replaced element, so object-fit applies to its bitmap exactly
   as it would to the video it replaces. */
.hero__canvas,
.hero__video,
.hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__video { display: none; }        /* desktop uses the frame sequence */

/* Left-weighted scrim: guarantees text contrast over the busy opening frames,
   and disappears into the video's own black once the helmets fade out. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 32%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0) 78%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%);
}

.hero__content {
  position: relative;
  z-index: var(--z-hero-content);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) clamp(3rem, 8vh, 6rem);
  max-width: var(--container);
  margin-inline: auto;
}

/* Sized so the widest headline phrase ("Less Guesswork.") always holds one
   line, while still clearing the helmet, which settles at ~57% of the frame. */
.hero__col {
  width: 100%;
  max-width: min(56%, 700px);
}

.hero__eyebrow { margin-bottom: clamp(1.25rem, 3vh, 2rem); }

.hero__title {
  font-size: clamp(2.25rem, 1rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.25rem, 3vh, 1.75rem);
}
/* Three deliberate lines: the copy is a parallel triplet, so each phrase owns a line. */
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line > span { display: block; }

.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 42ch;
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
}

/* The opening state is the baseline and stays in flow, so no-JS, touch and
   reduced-motion all get a complete hero for free. The resolved state and the
   scroll hint only exist during the desktop scrub, switched on by .is-scrub. */
.hero__stack { position: relative; }
.hero__title--intro { max-width: 15ch; }

/* Both states stack into a single grid cell. With only the opening state
   displayed the row collapses to its height; during the scrub the row grows to
   whichever state is taller, so the CTA row below never gets overlapped. */
.hero__states { display: grid; }
.hero__states > * { grid-area: 1 / 1; }

.hero__final { display: none; }
.hero__hint { display: none; }

.hero__stack.is-scrub .hero__final { display: block; }
.hero__stack.is-scrub .hero__hint { display: flex; }

/* One slot, two occupants. The CTA row stays in flow and reserves the height. */
.hero__slot { position: relative; }
.hero__stack.is-scrub .hero__hint {
  position: absolute;
  inset: 0 auto auto 0;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* display is owned by the .is-scrub rules above; setting it here would win on
   source order and leak the hint onto touch devices. */
.hero__hint { align-items: center; gap: 0.875rem; height: 56px; }
.hero__intro .hero__sub { margin-bottom: clamp(1.25rem, 3vh, 1.75rem); }

.hero__hint-rail {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.hero__hint-rail i {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 40%;
  background: var(--accent);
  animation: hintDrop 1.9s var(--ease) infinite;
}
@keyframes hintDrop {
  0%        { transform: translateY(-110%); }
  55%, 100% { transform: translateY(260%); }
}

.hero__hint-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Mirrors the JS breakpoint exactly: below it the hero plays the clip instead
   of scrubbing frames, so there is no opening state and no scroll hint. */
@media (max-width: 899px), (hover: none) {
  .hero__canvas { display: none; }
  .hero__video { display: block; }
  .hero__stack { position: static; }
}

/* ==========================================================================
   TRUST BAND
   ========================================================================== */
.trust {
  background: var(--surface-1);
  border-block: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  overflow: hidden;
}

.trust__inner { display: flex; justify-content: center; }

.trust__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 500;
  color: var(--text);
  text-align: center;
}
.trust__stars { display: inline-flex; gap: 2px; }
.trust__stars svg {
  width: 15px; height: 15px;
  fill: var(--accent);
}

/* Marquee: the one on this page. Breadth of trades, no item needs attention. */
.marquee {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 42s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__group b {
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  padding-inline: 1.25rem;
}
.marquee__group i {
  width: 6px; height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   2. WHY SHARP - editorial statement with a bleeding image
   ========================================================================== */
.why {
  padding-block: var(--section-y);
  background: var(--surface-0);
}

.why__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.why__head { grid-column: 1 / span 12; }
.why__head .display-l { max-width: 16ch; }

.why__figure {
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.why__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06);
}
/* Hairline lime rule anchoring the image to the grid */
.why__figure::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 38%; height: 3px;
  background: var(--accent);
}

.why__body {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-mute);
  max-width: 62ch;
}
.why__body p { font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem); line-height: 1.65; }
.why__lead {
  color: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem) !important;
  font-weight: 500;
  line-height: 1.45 !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   3. SERVICES - bento, exactly six cells for six capabilities
   ========================================================================== */
.services {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bento__cell {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--surface-1);
  border-radius: var(--radius);
  transition: background-color 0.4s var(--ease);
}
.bento__cell:hover { background: var(--surface-2); }
.bento__cell--wide { grid-column: span 7; }

.bento__icon {
  width: 28px; height: 28px;
  fill: var(--accent);
  margin-bottom: 0.5rem;
}

.bento__kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bento__title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.bento__desc {
  font-size: 0.9688rem;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 46ch;
}

/* Cell with a side image */
.bento__cell--media {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.bento__cell--media .bento__text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  justify-content: center;
}
.bento__cell--media .bento__media {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.bento__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.92);
  transition: transform 0.9s var(--ease);
}
.bento__cell--media:hover .bento__media img,
.bento__cell--stack:hover .bento__media img { transform: scale(1.04); }

/* Cell with an image stacked on top */
.bento__cell--stack { padding: 0; gap: 0; }
.bento__cell--stack .bento__media--top {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.bento__cell--stack .bento__text {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

/* The one saturated tile - bento background diversity, not a theme flip */
.bento__cell--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.bento__cell--accent:hover { background: #C7FF2B; }
.bento__cell--accent .bento__icon { fill: var(--accent-ink); }
.bento__cell--accent .bento__kicker { color: rgba(12, 16, 13, 0.65); }
.bento__cell--accent .bento__desc { color: rgba(12, 16, 13, 0.82); }

/* ==========================================================================
   4. PROCESS - pinned section, horizontal pan across five steps
   ========================================================================== */
.process {
  background: var(--surface-0);
  border-top: 1px solid var(--line);
}

.process__pin {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3.5rem);
  padding-block: clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.process__head { display: flex; flex-direction: column; gap: 1rem; }
.process__head .display-l { max-width: 18ch; }

.process__viewport { width: 100%; }

.process__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

.step {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 420px);
  min-height: clamp(300px, 40vh, 380px);
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.step:hover { border-color: var(--line-strong); background: var(--surface-2); }

.step__num {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: auto;
}

.step__title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  margin-bottom: 0.75rem;
}

.step__desc {
  font-size: 0.9688rem;
  line-height: 1.6;
  color: var(--text-mute);
}

.process__rail {
  position: relative;
  height: 2px;
  background: var(--line);
}
.process__rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================================================
   5. PROOF - display metrics, no cards
   ========================================================================== */
.proof {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}

.proof__title {
  max-width: 16ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--accent);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 1.5rem + 4.2vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  font-size: 0.9688rem;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 32ch;
}

.proof__foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--text-mute);
  max-width: 52ch;
}

/* ==========================================================================
   6. LIVE DASHBOARD - copy left, product shot bleeding off the right edge
   ========================================================================== */
.dash {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  overflow: hidden;              /* contains the bleed without a page scrollbar */
}

.dash__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.dash__copy { max-width: 34rem; }
.dash__copy .display-l { max-width: 12ch; }

.dash__body {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 46ch;
}

.dash__actions { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

.dash__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* The shot runs past the container's right edge so it reads as a window onto
   something larger, rather than a picture pasted into the page. */
.dash__shot {
  position: relative;
  display: block;
  margin-right: calc(var(--gutter) * -1 - 6vw);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-0);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.dash__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.dash__shot::after {
  /* Fades the cropped bottom edge into the section instead of ending on a
     hard cut through the next card. */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, var(--surface-1));
  pointer-events: none;
}
.dash__shot:hover { border-color: rgba(186, 251, 4, 0.45); }

/* ==========================================================================
   7. DIFFERENCE - two-column contrast, spacing not hairlines
   ========================================================================== */
.diff {
  padding-block: var(--section-y);
  background: var(--surface-0);
  border-top: 1px solid var(--line);
}

.diff__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.diff__col { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.diff__col--us { border-top-color: var(--accent); border-top-width: 2px; }

.diff__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.diff__col--us .diff__label { color: var(--accent); }

.diff__list { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.diff__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.875rem;
  align-items: start;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.45;
  color: var(--text-mute);
}
.diff__list svg { width: 17px; height: 17px; margin-top: 0.28em; }

.diff__col--them .diff__list svg { fill: var(--text-dim); }
.diff__col--us .diff__list { color: var(--text); }
.diff__col--us .diff__list svg { fill: var(--accent); }

/* ==========================================================================
   7. FAQ - accordion
   ========================================================================== */
.faq {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}

.faq__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.faq__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 120px;
}
.faq__aside .display-l { max-width: 12ch; }

.faq__list { display: flex; flex-direction: column; }

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }

.qa__mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  fill: var(--accent);
  transition: transform 0.35s var(--ease);
}
.qa[open] .qa__mark { transform: rotate(45deg); }

.qa__body {
  overflow: hidden;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.qa__body p {
  max-width: 62ch;
  color: var(--text-mute);
  line-height: 1.65;
}

/* ==========================================================================
   8. FINAL CTA - full bleed
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.05) brightness(0.55);
}
.cta__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,16,13,0.94) 0%, rgba(12,16,13,0.72) 42%, rgba(12,16,13,0.35) 72%, rgba(12,16,13,0.5) 100%),
    linear-gradient(180deg, rgba(12,16,13,0.7) 0%, rgba(12,16,13,0) 40%, rgba(12,16,13,0.85) 100%);
}

.cta__inner { width: 100%; }

.cta__block { max-width: 38rem; }
.cta__block .display-l { max-width: 14ch; }
.cta__title { margin-bottom: 1rem; }
.cta__sub {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text-mute);
  line-height: 1.55;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 38ch;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ==========================================================================
   LEGAL PAGES - a reading document, not a marketing page
   ========================================================================== */
.legal {
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: var(--section-y);
  background: var(--surface-0);
}

.legal__head {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.legal__head .display-l { max-width: 16ch; }

.legal__meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* One column at a comfortable measure. Legal text is read, not scanned. */
.legal__body {
  max-width: 68ch;
  color: var(--text-mute);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
}

.legal__body > section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.legal__body h2 {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 120px;
}
.legal__body h2::before {
  content: counter(legal-section);
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--accent);
  flex-shrink: 0;
}
.legal__body { counter-reset: legal-section; }
.legal__body section { counter-increment: legal-section; }

.legal__body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.legal__body p + p,
.legal__body ul + p,
.legal__body p + ul { margin-top: 1rem; }

.legal__body ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-left: 1.25rem;
}
.legal__body li { list-style: disc; }
.legal__body li::marker { color: var(--text-dim); }

.legal__body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(186, 251, 4, 0.5);
  transition: text-decoration-color 0.2s var(--ease);
}
.legal__body a:hover { text-decoration-color: var(--accent); }

.legal__body strong { color: var(--text); font-weight: 600; }

/* Deliberately loud. These are the values only Sharp can supply, and an
   unfilled one must be impossible to publish by accident. */
.todo {
  background: rgba(186, 251, 4, 0.16);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border: 1px dashed rgba(186, 251, 4, 0.5);
  border-radius: var(--radius);
}

/* A short table for the data-at-a-glance summary. */
.legal__table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal__table th,
.legal__table td {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal__table th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.legal__table tr:last-child th,
.legal__table tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table th,
  .legal__table td { display: block; }
  .legal__table th { border-bottom: 0; padding-bottom: 0.25rem; }
  .legal__table td { padding-top: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--surface-0);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.footer__brand img { height: 30px; width: auto; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-inline: auto;
  font-size: 0.9375rem;
  color: var(--text-mute);
}
.footer__nav a { transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 0.2s var(--ease);
}
.footer__social a:hover { color: var(--accent); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__ext { width: 13px !important; height: 13px !important; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer__policies { display: flex; gap: 1.5rem; }
.footer__policies a { transition: color 0.2s var(--ease); }
.footer__policies a:hover { color: var(--text-mute); }

/* ==========================================================================
   GRAIN - fixed, pointer-events none, never on a scrolling container
   ========================================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- Tablet / small desktop --- */
@media (max-width: 1200px) {
  .hero__col { max-width: 68%; }
}

@media (max-width: 1100px) {
  .why__figure { grid-column: 1 / span 5; }
  .why__body { grid-column: 6 / span 7; }

  .bento__cell,
  .bento__cell--wide { grid-column: span 6; }

  .proof__grid { grid-template-columns: 1fr 1fr; }
  .metric:last-child { grid-column: 1 / -1; }
}

/* --- Nav collapses --- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__mobile { display: flex; }
  .nav__mobile[hidden] { display: none; }

  .faq__inner { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}

/* --- Narrow phones: the nav CTA no longer fits beside the mark, so it
       moves into the menu panel rather than crowding the bar. --- */
@media (max-width: 680px) {
  .nav__actions > .btn { display: none; }
  .nav__mobile-cta { display: inline-flex; }
}

/* --- Mobile: high-variance layouts collapse to single column --- */
@media (max-width: 767px) {
  :root { --section-y: clamp(3.5rem, 12vw, 5rem); }

  /* Portrait viewports crop a 16:9 clip so hard that the helmet lands
     off-screen. So the hero stacks instead: the video keeps a landscape
     block where the whole shot reads, and the copy sits on solid ground. */
  .hero { background: var(--surface-0); }

  .hero__pin {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 72px;              /* clears the fixed nav */
    flex: 0 0 auto;
  }
  /* The mobile cut keeps the helmet centred the whole way through. */
  .hero__video { object-position: center; }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 62%,
      var(--surface-0) 100%
    );
  }

  .hero__content {
    position: relative;
    min-height: 0;
    align-items: flex-start;
    padding: 0 var(--gutter) clamp(3rem, 10vw, 4rem);
    margin-top: -1px;              /* seals the scrim into the section */
    background: var(--surface-0);
  }

  .hero__col { max-width: 100%; width: 100%; }
  .hero__title { font-size: clamp(2.25rem, 9vw, 3rem); }
  .hero__sub { font-size: 1rem; max-width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }

  .trust__rating { flex-direction: column; gap: 0.5rem; }

  .why__inner { display: flex; flex-direction: column; }
  .why__figure { width: 100%; aspect-ratio: 4 / 3; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell,
  .bento__cell--wide { grid-column: 1 / -1; }
  .bento__cell--media { flex-direction: column; }
  .bento__cell--media .bento__media { min-height: 220px; }

  .step { width: min(82vw, 340px); min-height: 300px; }

  .proof__grid { grid-template-columns: 1fr; }
  .metric:last-child { grid-column: auto; }

  .dash__inner { grid-template-columns: 1fr; gap: clamp(2rem, 7vw, 2.75rem); }
  .dash__copy { max-width: 100%; }
  .dash__actions .btn { width: 100%; justify-content: center; }

  /* Full width at this size renders the whole shot ~220px tall, where every
     label turns to mush. Crop to the sidebar-and-KPI corner instead so the
     thing still reads as a dashboard at a glance. */
  .dash__shot {
    margin-right: calc(var(--gutter) * -1);
    aspect-ratio: 5 / 4;
  }
  /* The image has to leave the flow, or its intrinsic height wins and
     aspect-ratio on the parent never applies. */
  .dash__shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  .diff__grid { grid-template-columns: 1fr; }

  .cta { min-height: auto; padding-block: clamp(4rem, 14vw, 6rem); }
  .cta__block { max-width: 100%; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { margin-inline: 0; }
  .footer__legal { flex-direction: column; }
}

/* ==========================================================================
   REDUCED MOTION - everything collapses to static / instant
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee__track { animation: none; transform: none; }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .process__track { transform: none !important; }
  .process__viewport { overflow-x: auto; }
  .process__pin { min-height: 0; }
}

/* Transparency-sensitive users get solid chrome instead of blur */
@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck,
  .nav__mobile {
    background: var(--surface-0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
