﻿/* Self-hosted fonts (latin subsets). Archivo is a variable font, one file covers 400-800. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/Archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/SpaceGrotesk-var.woff2") format("woff2");
}

:root {
  --ink: #111110;
  --ink-2: #1a1a18;
  --line: #2a2a28;
  --line-2: #3a3a36;
  --cream: #f0efe8;
  --grey: #b5b4ac;
  --grey-2: #8a897f;
  --neon: #e8ff00;
  --neon-dark: #a9b800;
  --neon-ink: #1f2400;
  --neon-hover: #f2ff4a;
  --muted-on-light: #55544e;
  --ghost-border: #555;
  --nav-bg: rgba(17, 17, 16, 0.92);
  --font-display: "Archivo", sans-serif;
  /* Label/tertiary face (eyebrows, buttons, form labels, footer). */
  --font-mono: "Space Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--neon); color: var(--neon-ink); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--neon); color: var(--neon-ink);
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 0; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand .mark { height: 26px; width: auto; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-stretch: 122%;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--grey-2); text-decoration: none;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--neon); border-bottom: 1px solid var(--neon); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px 0 10px 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 14px 24px; border-radius: 6px;
  transition: transform 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--neon); color: var(--neon-ink); font-weight: 600; }
.btn-primary:hover { background: var(--neon-hover); }
.btn-ghost { border: 1px solid var(--ghost-border); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
/* Full-screen hero (index): brand strip overlays the footage; the page nav
   sits after the hero in the DOM and picks up sticky from the next section. */
.hero-full { min-height: 100dvh; display: flex; align-items: center; padding: 130px 0 100px; }
.hero-full > .wrap { width: 100%; min-width: 0; }
.logo-img { height: 40px; width: auto; display: block; }
.hero-logo { height: 64px; }
/* Hero logo tops out level with the eyebrow line, at the content's right edge. */
.hero-logo-link { position: absolute; top: 4px; right: 0; }
@media (max-width: 860px) {
  .hero-logo-link { position: static; display: inline-block; margin-bottom: 36px; }
  .hero-logo { height: 48px; }
}

/* Floating nav: fixed off-screen until the hero has scrolled past, then
   slides in and stays for the rest of the page (toggled in nav.js). */
.nav-float {
  position: fixed; top: 0; left: 0; right: 0;
  transform: translateY(-100%); transition: transform 0.35s ease;
}
.nav-float.shown { transform: translateY(0); }
.hero .wrap { position: relative; z-index: 1; }
/* Reserved right column: keeps hero copy off the right side of the frame
   (where the video footage reads clearest) without any visible element. */
@media (min-width: 861px) { .hero > .wrap { padding-right: min(34vw, 420px); } }

/* Full-bleed hero background. index.html only; the other heroes stay flat.
   Framing is done here rather than baked into the file so it stays tunable:
   object-position biases the crop down, away from the sky, as the hero gets
   wider than the 16:9 source. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero-bg.in { opacity: 1; }
/* Ramps the footage down under the copy on the left, and lands it into the
   ink background at the bottom so the next section starts clean. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(17, 17, 16, 0.86) 0%,
      rgba(17, 17, 16, 0.66) 40%,
      rgba(17, 17, 16, 0.36) 72%,
      rgba(17, 17, 16, 0.30) 100%),
    linear-gradient(180deg,
      rgba(17, 17, 16, 0.45) 0%,
      rgba(17, 17, 16, 0) 22%,
      rgba(17, 17, 16, 0) 58%,
      rgba(17, 17, 16, 0.90) 100%);
}
.eyebrow {
  color: var(--neon); font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 28px; display: block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 30px; height: 2px;
  background: var(--neon); vertical-align: middle; margin-right: 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  font-weight: 800; font-stretch: 122%; line-height: 0.98; letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--neon); }
.swap { transition: opacity 0.45s ease; }
.swap.fade { opacity: 0; }

/* ---------- Phone edition ---------- */
/* Below 720px, .d-phone/.phone-only swap in and the hero uses its own
   portrait artwork; desktop/tablet never see them. */
.d-phone, .phone-only, .hero-bg-phone { display: none; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 719px) {
  .d-full { display: none; }
  .d-phone { display: inline; }
  .phone-only { display: inline-block; }
  video.hero-bg:not(.hero-bg-phone) { display: none; }
  .hero-bg-phone { display: block; object-position: 50% 0%; }
  .hero-scrim { display: none; }
  /* Centred phone hero, per Jamie's mockup: logo, headline, lede,
     then the contractor line as a sign-off above the CTA. */
  .hero-logo-link { display: none; }
  .hero-full { align-items: flex-start; padding-top: 84px; }
  .hero-full > .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-phone-logo { height: 60px; width: auto; order: 1; margin-bottom: 48px; }
  .hero h1 { order: 2; font-size: clamp(1.7rem, 7.6vw, 2.1rem); max-width: none; }
  .hero .lede { order: 3; margin: 18px 0 0; }
  .hero .eyebrow { order: 4; margin: 30px 0 26px; }
  .hero .eyebrow::before { display: none; }
  .hero-ctas { order: 5; justify-content: center; }

  /* Light phone hero (vendors): the cubes clip keeps its white studio,
     so the copy flips dark. Olive #6b7500 is the accent that passes
     contrast on the light footage; hi-vis stays on the button only. */
  /* Join phone hero: copy at top, kit image below, the eyebrow becomes
     a sign-off pinned at the very bottom (per Jamie's mockup, no in-hero
     CTA on this page's phone view). */
  .hero.hero-phone-bottom > .wrap { min-height: calc(100dvh - 150px); }
  .hero.hero-phone-bottom .eyebrow { order: 6; margin: auto 0 4px; }
  .hero.hero-phone-bottom .hero-ctas { display: none; }
  .hero.hero-phone-bottom .lede { font-size: 16px; }

  .hero.hero-phone-light { padding-top: 60px; }
  .hero.hero-phone-light h1 { color: var(--ink); font-size: clamp(1.4rem, 6.4vw, 1.75rem); }
  .hero.hero-phone-light h1 .accent { color: #b5c241; }
  .hero.hero-phone-light .lede { color: #3a3a34; font-size: 15.5px; line-height: 1.55; margin-top: 12px; }
  .hero.hero-phone-light .lede strong { color: var(--ink); }
  .hero.hero-phone-light .eyebrow { color: #6b7500; margin: 18px 0 14px; }
  .hero.hero-phone-light .hero-phone-logo { height: 54px; margin-bottom: 26px; }
  .hero.hero-phone-light .btn-primary { background: #b5c241; color: var(--ink); }
  .hero.hero-phone-light .btn-primary:hover { background: #c3cf58; }
}
.hero .lede { color: var(--grey); font-size: 19px; max-width: 480px; margin: 32px 0 40px; }
.hero .lede strong { color: var(--cream); }

/* ---------- Statement band ---------- */
.statement { padding: 100px 0; text-align: center; }
.statement p.big {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.3;
  max-width: 22ch; margin: 0 auto 18px;
}
.statement .accent { color: var(--neon); }
.statement p.small { color: var(--grey-2); font-size: 16px; }

/* ---------- Light band (numbered steps) ---------- */
.light { background: var(--cream); color: var(--ink-2); padding: 90px 0; }
.light h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.light .sub { color: var(--muted-on-light); font-size: 15px; margin-bottom: 44px; }
.light h2 + .steps { margin-top: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
@media (min-width: 861px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 48px; }
}
.step .num {
  font-size: 44px; font-weight: 800; font-stretch: 122%; display: inline-block;
  border-bottom: 4px solid var(--neon-dark); padding-bottom: 6px; margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--muted-on-light); font-size: 15px; }

/* ---------- Deliverables marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 26px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee-track span {
  display: flex; align-items: center;
  font-weight: 800; font-stretch: 122%; text-transform: uppercase;
  font-size: 28px; white-space: nowrap; color: var(--cream);
}
.marquee-track span::after {
  content: ""; width: 8px; height: 8px; background: var(--neon); margin: 0 34px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ticker at the bottom edge of the final CTA section: seamless, outlined
   type on dark (negative margin swallows the section's bottom padding). */
.final .marquee { margin-top: 84px; margin-bottom: -120px; padding: 0 0 26px; border: 0; }
.final .marquee-track span { font-size: 20px; }
.final .marquee-track span::after { width: 6px; height: 6px; margin: 0 26px; }

/* ---------- Deployment video (cream band) ---------- */
/* The clip's whites are tinted to the band's cream in the encode, so it sits
   seamlessly on the section and its final frame reads like printed content. */
.deploy-video { max-width: 880px; margin: 72px auto 0; }
.deploy-video video { width: 100%; display: block; cursor: pointer; }

/* ---------- Dark section generic ---------- */
.section { padding: 90px 0; }
.section.bordered { border-top: 0; }
.section.invert { background: var(--neon); color: var(--neon-ink); }
.section.invert .eyebrow { color: var(--neon-ink); }
.section.invert .eyebrow::before { background: var(--neon-ink); }
.section.invert .sub { color: #3d4600; }
.section.invert ::selection { background: var(--ink); color: var(--neon); }
.section.invert h2 { color: var(--neon-ink); }
.section.invert .card { border-color: rgba(17, 17, 16, 0.3); }
.section.invert .card .tag { color: var(--neon-ink); }
.section.invert .card h3 { color: var(--neon-ink); }
.section.invert .card p { color: #3d4600; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1.1; }
.section h2 .accent { color: var(--neon); }
.section .sub { color: var(--grey-2); font-size: 16px; margin-top: 12px; }
.center { text-align: center; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
@media (min-width: 861px) {
  .cards-offers { grid-template-columns: 1fr 1fr; }
}
.card { border: 1px solid var(--line-2); padding: 32px; }
.card .tag {
  color: var(--neon); font-family: var(--font-mono); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 14px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 14.5px; }
.card .anchor-line { color: var(--grey-2); font-style: italic; font-size: 13.5px; margin-top: 16px; }
.card .price { color: var(--grey-2); font-size: 13.5px; margin-top: 16px; font-family: var(--font-mono); }
.card.featured { position: relative; border-color: var(--line-2); }
.card.featured::before, .card.featured::after {
  content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none;
}
.card.featured::before { top: -1px; left: -1px; border-top: 2px solid var(--neon); border-left: 2px solid var(--neon); }
.card.featured::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--neon); border-right: 2px solid var(--neon); }

/* ---------- Flow strip ---------- */
.flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.flow .box { border: 1px solid var(--line-2); padding: 18px 22px; font-size: 14px; }
.flow .arrow { color: var(--neon); font-size: 18px; }
.flow-note { color: var(--grey-2); font-size: 14px; margin-top: 24px; text-align: center; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  border: 1px solid var(--line-2); color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 10px 18px;
}

/* ---------- Final CTA ---------- */
.final { padding: 120px 0; text-align: center; }
.final h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; font-stretch: 122%; text-transform: uppercase; line-height: 1; }
.final h2 .accent { color: var(--neon); }
.final p { color: var(--grey-2); margin: 24px auto 36px; max-width: 52ch; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Enquiry forms ---------- */
.enquiry { max-width: 640px; margin: 0 auto; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.enquiry label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-2);
}
.enquiry input:not([type="checkbox"]), .enquiry select, .enquiry textarea {
  display: block; width: 100%; margin-top: 8px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px;
  color: var(--cream); font-family: var(--font-display); font-size: 16px;
  padding: 12px 14px; transition: border-color 0.2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--neon); }
.enquiry textarea { resize: vertical; }
.enquiry .actions { text-align: center; }
.enquiry .btn { border: 0; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #ff8a7a; font-size: 14px; margin-bottom: 18px; text-align: center; }
.form-error a { color: var(--cream); }
.form-done { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; text-align: center; padding: 40px 0; }
.form-alt { color: var(--grey-2); font-size: 13px; font-family: var(--font-mono); margin-top: 20px; text-align: center; }
.form-alt a { color: var(--grey); }
.form-alt a:hover { color: var(--cream); }

/* ---------- Legal pages ---------- */
.legal { padding: 90px 0; }
.legal .wrap { max-width: 840px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; font-stretch: 122%; text-transform: uppercase; line-height: 1; margin-bottom: 14px; }
.legal .updated {
  display: block; color: var(--grey-2); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 52px;
}
.legal h2 { font-size: 19px; font-weight: 700; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--grey); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal strong { color: var(--cream); }
.legal a { color: var(--cream); }
.legal a:hover { color: var(--neon); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer a, .footer span, .footer p { color: var(--cream); font-size: 13px; text-decoration: none; font-family: var(--font-mono); }
.footer a:hover { color: var(--neon); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 44px; align-items: start; margin-bottom: 52px;
}
.footer .logo-img { height: 54px; }
.footer-tag { display: block; margin-top: 16px; }
.footer-head {
  display: block; color: var(--grey-2); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a { display: block; margin-bottom: 10px; }
.footer-legal {
  border-top: 1px solid var(--line); padding-top: 24px;
  color: var(--grey-2); font-size: 11.5px; line-height: 1.7;
  text-align: center;
}
.footer p.footer-legal { color: var(--grey-2); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: 0s; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 30px;
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 63px); overflow-y: auto;
    background: var(--ink); border-top: 1px solid var(--line);
    padding: 44px 32px;
  }
  .nav.open .nav-links a:not(.btn) { display: block; font-size: 17px; }
}

@media (max-width: 720px) {
  .hero { padding: 70px 0 60px; }
  .section, .light, .statement { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav-toggle span, .btn { transition: none; }
  .marquee-track { animation: none; }
}
