/* ==========================================================================
   Seed to Site — marketing site
   Structure: tokens → base → layout → components → sections → responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --color-bg-dark: #0B0B0F;
  --color-bg-light: #FAFAF8;
  --color-bg-white: #FFFFFF;
  --color-card-dark: #17171C;
  --color-border-dark: #232329;
  --color-border-dark-subtle: #1E1E23;
  --color-border-light: #E7E7E2;
  --color-text-dark-primary: #F5F5F2;
  --color-text-dark-secondary: #9B9BA3;
  --color-text-dark-muted: #6C6C74;
  --color-text-light-primary: #101012;
  --color-text-light-secondary: #6C6C74;
  --color-accent: #C6FF3D;      /* the one accent: used sparingly and consistently */
  --color-accent-ink: #0B0B0F;  /* text on top of the accent */

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Radii */
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-sm: 12px;

  /* Spacing */
  --space-section-desktop: 100px 80px;
  --space-section-tablet: 80px 40px;
  --space-section-mobile: 64px 24px;
  --container-max: 1280px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* keep anchored sections clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-dark-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }

/* Visible keyboard focus. Lime on dark surfaces, ink on light ones. */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-light :focus-visible,
.stats :focus-visible { outline-color: var(--color-text-light-primary); }
.section-light .btn-primary:focus-visible { outline-color: var(--color-text-light-primary); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section { padding: var(--space-section-mobile); }
.section-dark  { background: var(--color-bg-dark);  color: var(--color-text-dark-primary); }
.section-light { background: var(--color-bg-light); color: var(--color-text-light-primary); }

/* ---------- 4. Components ---------- */

/* Logo: SEED • SITE */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--color-text-dark-primary);
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.logo-sm { font-size: 1.0625rem; }
.logo-sm .logo-dot { width: 6px; height: 6px; }

/* Buttons: pill, bold, generous horizontal padding */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn-primary:hover { background: #d6ff6b; }

.btn-outline {
  border-color: #3a3a42;
  color: var(--color-text-dark-primary);
}
.btn-outline:hover { border-color: var(--color-text-dark-primary); }

/* Eyebrow label. Lime on dark; on light it becomes a dark chip so it stays legible. */
.eyebrow {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.section-light .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-dark);
}

.section-title {
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

/* Cards: 1px border, no heavy shadow */
.card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  background: var(--color-bg-white);
}

/* Text link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.text-link span[aria-hidden] { transition: transform .2s; }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }
.text-link-accent { color: var(--color-accent); }

/* Small pill tag */
.pill {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #3a3a42;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-dark-primary);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-dark-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding-inline: 24px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-header { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }

/* Mobile-first: nav is a dropdown panel under the header */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 8px 24px 20px;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-dark-subtle);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border-dark-subtle);
  font-weight: 600;
  color: var(--color-text-dark-secondary);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--color-text-dark-primary); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text-dark-primary);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { padding-block: 56px 72px; }
.hero-grid { display: grid; gap: 48px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dark-secondary);
}
.badge-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

.hero-title {
  font-size: clamp(2.375rem, 11vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.accent { font-style: normal; color: var(--color-accent); }

.hero-sub {
  max-width: 52ch;
  margin-top: 28px;
  font-size: 1.0625rem;
  color: var(--color-text-dark-secondary);
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-dark-muted);
}
/* Dots between the three service labels */
.hero-services li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 14px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero-visual { display: none; color: var(--color-accent); }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- 7. Services ---------- */
.section-light .section-title { color: var(--color-text-light-primary); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--color-text-light-primary); transform: translateY(-2px); }
.service-card h3 { margin-top: 24px; font-size: 1.25rem; letter-spacing: -0.01em; }
.service-card p {
  flex: 1;
  margin: 12px 0 20px;
  font-size: 0.9375rem;
  color: var(--color-text-light-secondary);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-dark);
  color: var(--color-accent);
}
.icon-tile svg { width: 24px; height: 24px; }

.service-card .text-link { color: var(--color-text-light-primary); }
.service-card .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 8. Selected work ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
.work-more { margin-top: 32px; text-align: center; }
.work-card {
  overflow: hidden;
  background: var(--color-card-dark);
  border-color: var(--color-border-dark);
  transition: border-color .2s, transform .2s;
}
.work-card:hover { border-color: #3a3a42; transform: translateY(-2px); }

/* Placeholder thumbnail: diagonal stripes until real screenshots exist */
.work-thumb {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(
    135deg,
    var(--color-bg-dark) 0 14px,
    #121217 14px 28px
  );
  border-bottom: 1px solid var(--color-border-dark);
}
/* Real screenshot inside the thumbnail */
.work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.work-body { padding: 24px 24px 28px; }
.work-body h3 { margin-top: 16px; font-size: 1.25rem; letter-spacing: -0.01em; }
.work-body p { margin-top: 8px; font-size: 0.9375rem; color: var(--color-text-dark-secondary); }

/* ---------- 9. Stats bar ---------- */
/* Replaces a numeric stats grid until there are real figures to show (see index.html). */
.stats {
  padding: 48px 24px;
  background: var(--color-bg-light);
  color: var(--color-text-light-primary);
  border-block: 1px solid var(--color-border-light);
}
.stats-note { max-width: 640px; margin-inline: auto; text-align: center; }
.stats-note-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  letter-spacing: -0.01em;
}
.stats-note-sub { margin-top: 8px; font-size: 0.9375rem; color: var(--color-text-light-secondary); }

/* ---------- 10. Testimonial ---------- */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  display: block;
  height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-accent);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.avatar {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  background: var(--color-card-dark);
  object-fit: cover; /* crops a real photo to the circle instead of squashing it */
}
.cite { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.cite-name { font-weight: 700; }
.cite-role { font-size: 0.875rem; color: var(--color-text-dark-secondary); }

/* ---------- 11. Contact ---------- */
.contact-grid { display: grid; gap: 40px; align-items: center; }
.contact-sub {
  max-width: 46ch;
  margin: 20px 0 32px;
  font-size: 1.0625rem;
  color: var(--color-text-light-secondary);
}
.contact-copy .section-title { max-width: 16ch; }

.contact-card {
  padding: 8px 28px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-card);
  background: var(--color-bg-dark);
  color: var(--color-text-dark-primary);
}
.contact-row { padding: 20px 0; border-bottom: 1px solid var(--color-border-dark); }
.contact-row:last-child { border-bottom: 0; }
.contact-row dt {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.contact-row dd { font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- 12. Footer ---------- */
.site-footer {
  padding: 40px 24px;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-dark-subtle);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.copyright { font-size: 0.875rem; color: var(--color-text-dark-muted); }
.footer-nav { display: flex; gap: 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
}
.footer-nav a:hover { color: var(--color-text-dark-primary); }

/* ==========================================================================
   Responsive
   Mobile ≤767px (base) · Tablet 768–1023px · Desktop ≥1024px
   ========================================================================== */

/* ---- Tablet and up ---- */
@media (min-width: 768px) {
  .section { padding: var(--space-section-tablet); }
  .header-inner { padding-inline: 40px; }
  .stats { padding-inline: 40px; }
  .site-footer { padding-inline: 40px; }
  .btn-header { padding: 0 24px; font-size: 0.9375rem; }

  /* Nav becomes inline; hamburger disappears */
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav ul { display: flex; gap: 8px; }
  .site-nav a { min-height: 44px; padding: 0 14px; border: 0; }

  .hero { padding-block: 72px 88px; }
  .hero-title { font-size: 4.25rem; }
  .hero-visual { display: block; max-width: 460px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .work-body { padding: 20px 20px 24px; }

  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }


  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .section { padding: var(--space-section-desktop); }
  .header-inner { padding-inline: 80px; }
  .stats { padding-inline: 80px; }
  .site-footer { padding-inline: 80px; }
  .site-nav ul { gap: 20px; }

  .hero { padding-block: 96px 112px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
  .hero-title { font-size: clamp(3.25rem, 5.2vw, 4.5rem); }
  .hero-visual { max-width: none; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .work-grid { gap: 24px; }
}

/* ---- Small phones: keep logo + CTA + hamburger on one row ---- */
@media (max-width: 767px) {
  .hero-buttons .btn { flex: 1 1 auto; }

  /* Stack the service labels so a wrapped dot never starts a line */
  .hero-services { flex-direction: column; gap: 10px; }
  .hero-services li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 12px 0 0;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--color-accent);
  }
}
@media (max-width: 400px) {
  .header-inner { padding-inline: 16px; }
  .logo { font-size: 1.125rem; }
  .btn-header { padding: 0 14px; font-size: 0.8125rem; }
  .site-nav { padding-inline: 16px; }
}

/* ---------- 13. Glowing cursor (added by script.js on mouse devices) ---------- */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button { cursor: none; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.cursor-active .cursor-dot,
.cursor-active .cursor-ring { opacity: 1; }

/* The wrapper is moved with transform; the visible shape is a pseudo-element centred on the pointer. */
.cursor-dot::before,
.cursor-ring::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  transition: width .2s, height .2s, margin .2s, background-color .2s;
}
.cursor-dot::before {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--color-accent);
  /* thin dark edge keeps the dot visible on light sections, then the glow */
  box-shadow: 0 0 0 1px rgba(11, 11, 15, .55), 0 0 10px 3px rgba(198, 255, 61, .75), 0 0 24px 8px rgba(198, 255, 61, .35);
}
.cursor-ring::before {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 0 14px 1px rgba(198, 255, 61, .45), inset 0 0 12px rgba(198, 255, 61, .25);
}
.cursor-ring.is-hover::before {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(198, 255, 61, .12);
}

/* ==========================================================================
   14. Section utilities + long-form page intro (privacy.html)
   ========================================================================== */

/* Two dark sections back to back (Hero -> Get Started): a hairline keeps them distinct */
.section-dark + .section-dark { border-top: 1px solid var(--color-border-dark-subtle); }

.section-sub {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--color-text-dark-secondary);
}

/* Current page, in either the header or footer nav */
.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] { color: var(--color-accent); }

/* Contact: small email fallback under the button */
.contact-alt { margin-top: 20px; font-size: 0.9375rem; color: var(--color-text-light-secondary); }
.contact-alt a { font-weight: 700; color: var(--color-text-light-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Dark intro band used by privacy.html (and, before it redirected, booking.html) */
.page-intro { padding-block: 64px 72px; }
.page-title {
  max-width: 14ch;
  font-size: clamp(2.375rem, 9vw, 4.5rem);
  line-height: 1.04;
}
.page-intro .hero-sub { margin-top: 24px; }

/* Needed wherever a `hidden` element also has its own `display` rule (e.g. .lead-form,
   .lead-success): a class's `display` would otherwise beat the UA stylesheet's [hidden] rule. */
[hidden] { display: none !important; }

/* ---------- Lead capture form (Get Started section) ---------- */
/* Submits to the Netlify Function in netlify/functions/lead.mjs (see js/seed-leads.js). */
.lead-wrap { margin-top: 48px; }
#get-started .lead-wrap { margin-top: 64px; }

.lead-form,
.lead-success {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-card);
  background: var(--color-card-dark);
  color: var(--color-text-dark-primary);
  color-scheme: dark;
}
.lead-head h3,
.lead-success h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.lead-head p,
.lead-success p { max-width: 56ch; margin-top: 8px; color: var(--color-text-dark-secondary); }
.lead-fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field-full { grid-column: 1 / -1; }

.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--color-text-dark-primary); }
.field .opt { font-weight: 500; color: var(--color-text-dark-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #2f2f37;
  border-radius: var(--radius-sm);
  background: var(--color-bg-dark);
  color: var(--color-text-dark-primary);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-dark-muted); }
.field [aria-invalid="true"] { border-color: #ff6b6b; }

/* Honeypot: off-screen for people, still in the DOM for bots to fill in */
.lead-hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--color-text-dark-secondary);
}
.lead-consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--color-accent); }
.lead-consent a { color: var(--color-text-dark-primary); text-decoration: underline; text-underline-offset: 3px; }

.lead-actions { display: grid; gap: 12px; justify-items: start; }
.form-status { min-height: 1.5em; font-size: 0.9375rem; color: var(--color-text-dark-secondary); }
.form-status[data-state="error"] { color: #ff9a9a; }

.lead-wa-alt { display: inline-block; margin-top: 20px; font-size: 0.9375rem; color: var(--color-text-dark-secondary); }
.lead-wa-alt:hover { color: var(--color-text-dark-primary); }

/* The form is a dark card even inside the light Contact section, so keep focus rings lime */
.lead-form :focus-visible,
.lead-success :focus-visible,
.lead-form .btn-primary:focus-visible,
.lead-success .btn-primary:focus-visible { outline-color: var(--color-accent); }
.lead-form .field input:focus-visible,
.lead-form .field select:focus-visible,
.lead-form .field textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-color: var(--color-accent); }

/* Cursor effect: use the normal cursor over text fields; keep the glow over clickable things */
.has-custom-cursor input,
.has-custom-cursor textarea { cursor: text; }
.has-custom-cursor select { cursor: auto; }
.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring { opacity: 0 !important; }

@media (min-width: 768px) {
  /* Five nav links plus the CTA need tighter link padding on tablet */
  .site-nav a { padding: 0 10px; }

  .lead-form,
  .lead-success { padding: 36px; }
  .lead-fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-nav a { padding: 0 14px; }
  .page-intro { padding-block: 88px 96px; }
}

/* ==========================================================================
   15. Expandable service cards ("Learn more")
   ========================================================================== */
.service-toggle {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.service-toggle .toggle-arrow { display: inline-block; transition: transform .25s; }
.service-card .service-toggle:hover .toggle-arrow { transform: translateX(4px); }
.service-card .service-toggle[aria-expanded="true"] .toggle-arrow,
.service-card .service-toggle[aria-expanded="true"]:hover .toggle-arrow { transform: rotate(90deg); }

/* Panel animates open with the 0fr → 1fr grid trick; visibility keeps collapsed links out of the tab order */
.service-more {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  visibility: hidden;
  transition: grid-template-rows .3s ease, visibility 0s .3s;
}
.service-more.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .3s ease, visibility 0s;
}
.service-more-inner { min-height: 0; overflow: hidden; }
.service-more-inner > :first-child { padding-top: 20px; border-top: 1px solid var(--color-border-light); }

.service-more-lead { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-light-primary); }
.service-card .service-more-lead { flex: none; margin: 16px 0 0; font-size: 0.8125rem; color: var(--color-text-light-primary); }
.service-more-list { display: grid; gap: 10px; margin: 14px 0 8px; }
.service-more-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--color-text-light-secondary);
}
.service-more-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-light-primary);
}
.service-more .text-link { color: var(--color-text-light-primary); font-weight: 700; }
.service-more .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* While a card is open, don't stretch its neighbours to the same height */
.services-grid.has-open { align-items: start; }

/* Project title as a link (Selected Work) */
.work-body h3 a { overflow-wrap: anywhere; }
.work-body h3 a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }

/* Wide screenshots: keep the left side (logo + buttons) in frame when cropped to the card ratio */
.work-thumb img.thumb-left { object-position: left center; }


/* ==========================================================================
   16. Scroll animations (driven by reveal.js)
   Only opacity and translate (compositor-friendly) are animated. `translate` is used
   instead of `transform` so it never fights the hover lift on cards.
   The hidden starting state applies only when JS is running (html.js), so
   the page stays fully visible without JavaScript.
   ========================================================================== */
:root {
  --reveal-distance: 48px;
  --reveal-duration: .8s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-stagger: .1s;   /* gap between cards in a grid */
}

/* Headline lines / words: each part arrives one after another */
.reveal-lines { --line-step: .12s; }   /* hero: whole lines */
.reveal-words { --line-step: .05s; }   /* section headings: word by word */
.reveal-words .reveal-line { display: inline-block; }

.js .reveal,
.js .reveal-line {
  opacity: 0;
  translate: 0 var(--reveal-distance);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    translate var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s);
}
.js .reveal-line { --reveal-delay: calc(var(--line-index, 0) * var(--line-step, .12s)); }

.js .reveal.is-visible,
.js .is-visible .reveal-line {
  opacity: 1;
  translate: 0 0;
}

/* Cards: staggered arrival, while keeping their own hover transitions */
.js .reveal.reveal-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    translate var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    border-color .2s,
    transform .2s;
}
.reveal-card:nth-child(1) { --reveal-delay: 0s; }
.reveal-card:nth-child(2) { --reveal-delay: calc(1 * var(--reveal-stagger)); }
.reveal-card:nth-child(3) { --reveal-delay: calc(2 * var(--reveal-stagger)); }
.reveal-card:nth-child(4) { --reveal-delay: calc(3 * var(--reveal-stagger)); }
.reveal-card:nth-child(5) { --reveal-delay: calc(4 * var(--reveal-stagger)); }
.reveal-card:nth-child(6) { --reveal-delay: calc(5 * var(--reveal-stagger)); }

/* Mobile: same mechanism, lighter. Shorter travel, quicker, headline moves as one block. */
@media (max-width: 767px) {
  :root {
    --reveal-distance: 24px;
    --reveal-duration: .5s;
    --reveal-stagger: .05s;
  }
  .reveal-lines,
  .reveal-words { --line-step: 0s; }
}

/* Anyone who asked for less motion sees everything immediately */
@media (prefers-reduced-motion: reduce), print {
  .js .reveal,
  .js .reveal-line {
    opacity: 1;
    translate: none;
    transition: none;
  }
}


/* ==========================================================================
   17. Selected Work: "let this be our next..." invite cards
   Used for slots that don't have a real project yet, instead of a bracketed placeholder.
   ========================================================================== */
.work-thumb-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #3a3a42;
  background: none; /* override the striped placeholder pattern */
  color: var(--color-text-dark-muted);
}
.cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #3a3a42;
  border-radius: 50%;
  color: var(--color-accent);
}
.cta-icon svg { width: 18px; height: 18px; }
.cta-thumb-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }

.work-card-cta:hover { border-color: var(--color-accent); }
.work-card-cta:hover .work-thumb-cta { border-color: var(--color-accent); }

/* ==========================================================================
   19. Long-form content pages (privacy.html)
   ========================================================================== */
.prose { max-width: 720px; }
.prose h3 {
  margin-top: 40px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-text-light-primary);
}
.prose p { margin-top: 14px; color: var(--color-text-light-secondary); line-height: 1.7; }
.prose ul { margin-top: 14px; padding-left: 20px; list-style: disc; color: var(--color-text-light-secondary); line-height: 1.7; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--color-text-light-primary); }
.prose a { color: var(--color-text-light-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose-meta { margin-top: 8px; font-size: 0.875rem; color: var(--color-text-light-secondary); }

/* ==========================================================================
   20. booking.html redirect stub
   ========================================================================== */
.redirect-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--color-bg-dark);
}
.redirect-box { display: grid; gap: 20px; justify-items: center; text-align: center; }
.redirect-box p { color: var(--color-text-dark-secondary); }

/* ==========================================================================
   21. "See it in action" showcase page (demos/see-it-in-action.html)
   Lime is used exactly once per view here: the eyebrow label in the dark
   intro band, and the single WhatsApp button in the closing CTA. Everything
   else (tabs, stage chrome, captions) stays neutral ink/paper/slate.
   ========================================================================== */
.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text-dark-secondary);
}
.demo-back span[aria-hidden] { transition: transform .2s; }
.demo-back:hover { color: var(--color-text-dark-primary); }
.demo-back:hover span[aria-hidden] { transform: translateX(-4px); }

/* Tab list: a row of pill buttons choosing which demo is in the stage below */
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.demo-tab {
  padding: 11px 20px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  background: var(--color-bg-white);
  color: var(--color-text-light-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
}
.demo-tab:hover { border-color: var(--color-text-light-primary); }
.demo-tab[aria-selected="true"] {
  background: var(--color-text-light-primary);
  color: var(--color-bg-white);
  border-color: var(--color-text-light-primary);
}

/* The "stage": a bordered card with a mock browser chrome bar above the live iframe */
.demo-stage {
  margin-top: 20px;
  overflow: hidden;
  background: var(--color-bg-white);
  border-radius: 0; /* edge-to-edge on mobile; rounded again at tablet width below */
  border-left: 0;
  border-right: 0;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.75rem;
  color: var(--color-text-light-secondary);
}
.demo-dots { display: flex; gap: 6px; flex: none; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-light); }
.demo-url {
  flex: 1;
  min-width: 0;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 5px 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.demo-full { flex: none; font-weight: 700; color: var(--color-text-light-primary); text-decoration: underline; text-underline-offset: 3px; }
.demo-frame { display: block; width: 100%; height: min(78vh, 780px); min-height: 520px; border: 0; background: #fff; }

/* Three short captions describing whichever demo is active */
.demo-caps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.demo-cap { padding: 16px; }
.demo-cap h3 { font-size: 1rem; letter-spacing: -0.01em; }
.demo-cap p { margin-top: 4px; font-size: 0.9375rem; color: var(--color-text-light-secondary); }

.demo-hint { margin-top: 18px; font-size: 0.875rem; color: var(--color-text-light-secondary); }

/* Closing CTA band */
.demo-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 32px;
}
.demo-end h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.demo-end p { margin-top: 4px; font-size: 0.9375rem; color: var(--color-text-dark-secondary); }

@media (min-width: 768px) {
  .demo-stage { border-radius: var(--radius-card); border-left: 1px solid var(--color-border-light); border-right: 1px solid var(--color-border-light); }
  .demo-caps { grid-template-columns: repeat(3, 1fr); }
}
