/* The Access — theaccess.media
   Layout rules (site-wide): 1680px container, shared gutters, display type
   sized by container queries. See CLAUDE.md. */

:root {
  color-scheme: light;
  --green: #16A34A;
  --bg: #ffffff;
  --fg: #000000;
  --header-bg: rgba(255, 255, 255, 0.82);
  --overlay: rgba(0, 0, 0, 0.55);
  --modal-bg: #ffffff;
  --thumb-bg: #ececec;
  --line: #cfcfcf;
  --line-2: #d4d4d4;
  --card: #f6f6f6;
  --input-bg: #fafafa;
  --input-line: #c2c2c2;
  --chip-line: #bcbcbc;
  --muted: #444444;
  --muted-2: #4a4a4a;
  --muted-3: #4f4f4f;
  --body-2: #3a3a3a;
  --tag: #3d3d3d;
  --placeholder: #5c5c5c;
  --error: #c62828;
  --hover-fill: #000000;
  --hover-text: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3C/svg%3E");
  --toggle-track: #16A34A;
  --toggle-line: #16A34A;
  --glow: rgba(22, 163, 74, 0.32);
  --glow-2: rgba(22, 163, 74, 0.2);
  --gutter: clamp(20px, 4.6vw, 96px);
  /* Brand faces first; Archivo / JetBrains Mono are the loaded fallbacks. */
  --font-display: 'Naville', 'Naville Semi Bold', 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --font-ui: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Isra', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Dark theme — flat black / white. Only tokens change; set by the toggle
   (data-theme on <html>), never by the OS scheme. Light is the default. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --header-bg: rgba(0, 0, 0, 0.82);
  --overlay: rgba(0, 0, 0, 0.86);
  --modal-bg: #000000;
  --thumb-bg: #0c0c0c;
  --line: #333333;
  --line-2: #363636;
  --card: #0a0a0a;
  --input-bg: #080808;
  --input-line: #3a3a3a;
  --chip-line: #3d3d3d;
  --muted: #bdbdbd;
  --muted-2: #b0b0b0;
  --muted-3: #a6a6a6;
  --body-2: #c9c9c9;
  --tag: #c6c6c6;
  --placeholder: #8c8c8c;
  --error: #ff6b6b;
  --hover-fill: #ffffff;
  --hover-text: #000000;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b0b0b0' stroke-width='1.5'/%3E%3C/svg%3E");
  --toggle-track: #2a2a2a;
  --toggle-line: #3a3a3a;
  --glow: rgba(22, 163, 74, 0.22);
  --glow-2: rgba(22, 163, 74, 0.12);
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

.page {
  max-width: 1680px;
  margin: 0 auto;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: var(--green); color: #000; }

/* Section headings: the "highlighted" look (green block per line, black type)
   is the default. Selection on them inverts so highlighting still shows. */
.hl {
  background: var(--green);
  color: #000;
  padding: 0.02em 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl::selection { background: #000; color: var(--green); }

img { max-width: 100%; }

[hidden] { display: none !important; }

[id] { scroll-margin-top: 96px; }

h1, h2, h3 { margin: 0; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.green { color: var(--green); }
.dim { color: var(--muted-2); }

/* ---------- Background glows (sparse green radial gradients) ----------
   Painted on <body>, not the 1680px .page box, so they bleed to the viewport
   edges. Vertical positions are % of the full document height, pinned to
   the left/right edges: hero (top-right), stats (left), process (right),
   footer (left). */

body {
  background-image:
    radial-gradient(760px circle at 100% 5%, var(--glow), transparent 68%),
    radial-gradient(920px circle at 0% 30%, var(--glow), transparent 70%),
    radial-gradient(820px circle at 100% 74%, var(--glow), transparent 70%),
    radial-gradient(600px circle at 0% 95%, var(--glow-2), transparent 70%);
  background-repeat: no-repeat;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: transparent;
}
/* Tint + blur live on a full-viewport-width layer so the bar never ends
   mid-glow on wide screens; it is invisible at the top of the page (the hero
   glow shows through) and fades in once the page is scrolled. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.site-header.is-scrolled::before { opacity: 1; }

.brand img { width: 64px; height: 64px; display: block; }
/* Black-"A" icon on light, white-"A" icon on dark — pure CSS, no swap flash. */
.brand .only-dark { display: none; }
:root[data-theme="dark"] .brand .only-dark { display: block; }
:root[data-theme="dark"] .brand .only-light { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a { display: flex; align-items: flex-start; gap: 4px; }
.site-nav sup {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  color: var(--green);
  vertical-align: top;
  top: 0;
}

.btn-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--hover-fill); color: var(--hover-text); }
/* Keep the arrow circle visible on the inverted hover pill in both themes. */
.btn-pill:hover .pill-arrow { background: var(--hover-text); color: var(--green); }
.pill-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

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

.hero {
  container-type: inline-size;
  padding: clamp(90px, 12vw, 190px) var(--gutter) 60px;
  border-bottom: 1px solid var(--line);
}

.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; letter-spacing: 0.08em; color: var(--green); }

/* Shrink-wraps to the h1 so the meta line and MEDIA share its right edge. */
.hero-lockup { width: max-content; max-width: 100%; }
.hero-lockup h1 {
  position: relative;
  margin: 26px 0 0;
  font-size: 16.4cqw; /* still sets the ® size/offset */
  line-height: 0;
  white-space: nowrap;
}
/* The wordmark PNG (same asset as the footer) stands in for the display text. */
.hero-wordmark {
  display: block;
  width: 97cqw;
  max-width: none;
  height: auto;
}
.hero-lockup .reg {
  position: absolute;
  left: 100%;
  top: 0.06em;
  color: var(--green);
  font-size: 0.13em;
  letter-spacing: 0;
}
.hero-media-word {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 8.6cqw;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* ---------- Hero pitch (offer, sub, CTA, steps) ---------- */

.hero-pitch {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-top: clamp(64px, 8vw, 120px);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 24ch;
}
.hero-pitch-side p {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-2);
}
.hero-pitch-side .btn-pill { display: inline-flex; margin-top: 26px; }
.pitch-steps { margin-top: 18px; color: var(--green); letter-spacing: 0.12em; }

.btn-pill-lg { padding: 13px 13px 13px 24px; font-size: 17px; gap: 12px; }
.btn-pill-lg .pill-arrow { width: 30px; height: 30px; font-size: 14px; }

.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(70px, 8vw, 120px);
}

.video-frame {
  position: relative;
  margin-top: 70px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-frame wistia-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.video-caption { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted-3); }

/* Client logos (hero): rendered as flat monochrome silhouettes so five
   different brand palettes read as one system — white on dark, black on light. */
.client-row {
  --logo-h: clamp(26px, 3.2vw, 52px);
  gap: 28px clamp(20px, 3.4vw, 56px); /* six logos on one line from ~768px up */
}
.client-row img {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.client-row img.logo-stacked { height: calc(var(--logo-h) * 1.5); }
.client-row img.logo-badge { height: calc(var(--logo-h) * 1.7); }
.client-row img:hover { opacity: 1; }
:root[data-theme="dark"] .client-row img { filter: brightness(0) invert(1); }

/* ---------- Stats ---------- */

.stats {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.score-sub { margin-top: 12px; }
.stats-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 22ch;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.03em;
}
.stat-label { font-size: 10px; margin-top: 6px; }
/* Meta row spans both stats columns (proof section) */
.stats .section-meta { grid-column: 1 / -1; }
.time-copy {
  margin: 24px 0 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-2);
  max-width: 54ch;
}

/* ---------- Section headers (Showcase / Services / Process) ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.7fr);
  gap: 48px;
  align-items: start;
}
.section-head.align-end { align-items: end; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.section-head p {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-2);
}
/* Long, sentence-style display headlines (System, What You Get) */
.section-head h2.h2-long {
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 0.98;
  max-width: 18ch;
}

/* Numbered green meta row above a section (same look as .process-meta) */
.section-meta {
  color: var(--green);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.section-meta + .section-head,
.section-meta + .founder-grid { margin-top: 44px; }

/* ---------- Showcase ---------- */

.work {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.work-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.work-tile wistia-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.sound-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
body.sound-activated .sound-badge { display: none; }
.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
}
.work-index { font-family: var(--font-mono); font-size: 11px; color: var(--green); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--green);
  color: #000;
  padding: 13px 0;
  border-bottom: 1px solid var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marq 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee-group { display: flex; gap: 44px; padding-right: 44px; }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */

.services {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.service-list { margin-top: 64px; }
.service-row {
  display: grid;
  grid-template-columns: 100px 60px minmax(180px, 1fr) minmax(240px, 1.3fr);
  grid-template-areas: "thumb num title detail";
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-thumb {
  grid-area: thumb;
  height: 76px;
  border: 1px solid var(--line);
  background-color: var(--thumb-bg);
  background-size: cover;
  background-position: center;
}
.service-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  padding-top: 6px;
}
.service-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}
.service-detail { grid-area: detail; }
.service-detail p {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  padding: 7px 13px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}

/* ---------- Process ---------- */

.process {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.process-meta {
  color: var(--green);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.process .section-head { margin-top: 44px; }
/* Separate highlight boxes preserve the tight stack without painting over glyphs. */
.process .section-head h2 .hl {
  display: inline-block;
  vertical-align: top;
  padding: 0.02em 0.08em 0.04em;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}
.process-card {
  border: 1px solid var(--line-2);
  background: var(--card);
  padding: 22px;
}
.process-card.stagger-1 { margin-top: clamp(0px, 2vw, 26px); }
.process-card.stagger-2 { margin-top: clamp(0px, 4vw, 52px); }
.process-card.stagger-3 { margin-top: clamp(0px, 6vw, 78px); }
.process-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.process-card-title {
  margin-top: 70px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.process-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.4fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq-intro .mono-label { margin-bottom: 20px; color: var(--green); }
.footer-contact .mono-label { color: var(--green); }
.faq-intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.faq-intro p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28ch;
}
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line-2); background: var(--card); }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
}
.faq-toggle:hover { color: var(--green); }
.faq-sign { font-family: var(--font-mono); font-size: 18px; color: var(--green); }
.faq-answer {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Footer ---------- */

.site-footer { padding: 90px var(--gutter) 40px; } /* no fill: the body glow shows through */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 40px;
}
.footer-phone {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.footer-email {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.55vw, 26px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.footer-address {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
}
.footer-wordmark { display: block; width: 100%; height: auto; margin: 80px 0 0; }
/* wordmark-dark.png is light-grey letters + green accent on transparent. Inverting
   turns the grey dark; hue-rotate(180deg) brings the inverted accent back to green. */
.footer-wordmark,
.hero-wordmark { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .footer-wordmark,
:root[data-theme="dark"] .hero-wordmark { filter: none; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-3);
}

/* ---------- Booking modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 60px);
}
.modal-panel {
  width: 100%;
  max-width: 660px;
  background: var(--modal-bg);
  border: 1px solid var(--line-2);
  padding: clamp(22px, 3.4vw, 44px);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--chip-line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.modal-close:hover { border-color: var(--green); color: var(--green); }
.modal-panel .mono-label { font-size: 10px; letter-spacing: 0.1em; color: var(--green); }
.modal-title {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

#booking-success { padding: 34px 0; }
.success-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--green);
}
.success-copy { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

#booking-form { display: grid; gap: 12px; }
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
#booking-form input[type="text"],
#booking-form input[type="email"],
#booking-form input[type="tel"],
#booking-form select,
#booking-form textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
}
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
  border-color: var(--green);
  outline: none;
}
#booking-form ::placeholder { color: var(--placeholder); opacity: 1; }
#booking-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
#booking-form select:invalid { color: var(--placeholder); }
#booking-form option { color: var(--fg); background: var(--input-bg); }
#booking-form textarea { resize: vertical; }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: none;
}
.form-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--error);
}
.btn-submit {
  margin-top: 6px;
  padding: 16px 26px;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  color: #000;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}
.btn-submit:hover { background: var(--hover-fill); color: var(--hover-text); }
.btn-submit:disabled { opacity: 0.7; cursor: default; }

/* ---------- Theme toggle (iOS-style switch, fixed bottom-right) ---------- */

.theme-toggle {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60; /* above the sticky header (50), below the modal (100) */
  width: 52px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--toggle-line);
  border-radius: 999px;
  background: var(--toggle-track);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.theme-toggle-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;   /* knob stays white in both themes (iOS look) */
  color: #111;        /* icon colour on the white knob */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(20px);
  transition: transform 200ms ease-out;
}
.theme-toggle svg { width: 16px; height: 16px; display: none; }
.theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle-knob { transform: translateX(0); }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- What you get ---------- */

.deliverables {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* deliberate 3×2 — auto-fit orphans the 6th card */
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 860px) {
  .deliver-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .deliver-grid { grid-template-columns: 1fr; }
}
.deliver-card {
  border: 1px solid var(--line-2);
  background: var(--card);
  padding: 22px;
}
.deliver-num { color: var(--green); font-size: 10px; }
.deliver-card h3 {
  margin-top: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.deliver-card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

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

.reel {
  padding: 70px var(--gutter) 90px;
  border-bottom: 1px solid var(--line);
}
.reel .video-frame { margin-top: 0; }

/* ---------- Case studies ---------- */

.cases {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.case-card {
  border: 1px solid var(--line-2);
  background: var(--card);
  padding: 24px;
}
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.case-rows {
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}
.case-rows dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--green);
  text-transform: uppercase;
}
.case-rows dd {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.case-note {
  margin-top: 28px;
  color: var(--green);
  letter-spacing: 0.12em;
  text-align: right;
}

/* ---------- Founder ---------- */

.founder {
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.founder-quote {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.founder-quote p { margin: 0 0 0.8em; }
.founder-quote p:last-child { margin-bottom: 0; }
.founder-quote .green-line { color: var(--green); }
.founder-sig { margin-top: 28px; }
.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 500px;
  align-self: center;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Final CTA ---------- */

.cta {
  padding: clamp(100px, 12vw, 170px) var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 16ch;
}
.cta-qualifier {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.cta .btn-pill { display: inline-flex; }
.cta-alt { color: var(--green); letter-spacing: 0.1em; }
.cta-alt:hover { color: var(--fg); }

/* ---------- Touch devices: tap-to-play videos ---------- */

@media (hover: none) {
  .work-tile,
  .video-frame { cursor: pointer; }
  .work-tile::after,
  .video-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23000'/%3E%3C/svg%3E") 56% 50% / 26px 26px no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 2;
  }
  .work-tile.is-playing::after,
  .video-frame.is-playing::after { display: none; }
  .sound-badge { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
}

@media (max-width: 760px) {
  .client-row { justify-content: center; gap: 24px 36px; margin-top: clamp(56px, 10vw, 90px); }
  .hero-pitch { grid-template-columns: 1fr; gap: 28px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { margin-top: 40px; }
  .faq { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; align-items: start; }
  .hero { padding-bottom: 48px; }
  .video-frame { margin-top: 48px; }
  .reel .video-frame { margin-top: 0; }
}

@media (max-width: 860px) {
  .service-row {
    grid-template-columns: 100px 1fr;
    grid-template-areas:
      "thumb num"
      "thumb title"
      "detail detail";
    row-gap: 6px;
  }
  .service-num { padding-top: 0; }
  .service-title { padding-top: 0; }
  .service-detail { margin-top: 14px; }
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-wordmark { margin-top: 60px; }
}

@media (max-width: 640px) {
  .brand img { width: 48px; height: 48px; }
  .process-card.stagger-1,
  .process-card.stagger-2,
  .process-card.stagger-3 { margin-top: 0; }
  .process-meta span:nth-child(2) { display: none; }
  .section-meta span:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .theme-toggle, .theme-toggle-knob { transition: none; }
}
