/* ============================================================================
   BURD & CO. — Southern California Creative Directory
   css/style.css

   Design System: Dark (default) · Light (OS / manual toggle).
   Brand colors: #0d0d0d · #ffffff · #e3120b

   Table of Contents:
   01. Reset & CSS Variables
   02. Base Typography & Body
   03. Scrollbar
   04. Custom Cursor
   05. Navigation
   06. Hero Section (Split Layout)
   07. Marquee Strip
   08. Filter Bar & Pills
   09. Directory Layout
   10. Listing Cards
   11. Buttons
   12. Footer
   13. Keyframe Animations
   14. Responsive Breakpoints
   ============================================================================ */


/* ── 01. RESET & CSS VARIABLES ──────────────────────────────────────────── */

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

/* Global focus-visible — consistent keyboard nav ring across all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Dark theme (default) ── */
:root {
  /* ── Brand Palette ── */
  --bg:           #0d0d0d;
  --bg-alt:       #111111;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* ── Frosted overlays ── */
  --bg-frosted:   rgba(13, 13, 13, 0.88);
  --bg-filter:    rgba(13, 13, 13, 0.90);

  /* ── Borders ── */
  --border:       rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);

  /* ── Text ── */
  --text:         #f0eeeb;
  --text-muted:   rgba(240, 238, 235, 0.70);
  --text-dim:     rgba(240, 238, 235, 0.60);

  /* ── Accent — brand red ── */
  --accent:       #e3120b;
  --accent-hover: #ff2929;
  --accent-dim:   rgba(227, 18, 11, 0.14);

  /* ── Typography ── */
  --f-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono:    'DM Mono', 'Courier New', monospace;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ── Layout ── */
  --max-w:     1200px;
  --gutter:    clamp(1.5rem, 5vw, 4.5rem);
  --radius:    6px;
  --radius-sm: 4px;

  /* Dynamic nav height (updated by JS) */
  --nav-h: 70px;
}

/* ── Light theme — applied via OS preference or [data-theme="light"] ── */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg:            #f5f3f0;
    --bg-alt:        #edeae7;
    --bg-card:       rgba(0, 0, 0, 0.025);
    --bg-card-hover: rgba(0, 0, 0, 0.055);
    --bg-frosted:    rgba(245, 243, 240, 0.92);
    --bg-filter:     rgba(245, 243, 240, 0.95);
    --border:        rgba(0, 0, 0, 0.10);
    --border-hover:  rgba(0, 0, 0, 0.25);
    --text:          #111111;
    --text-muted:    rgba(17, 17, 17, 0.55);
    --text-dim:      rgba(17, 17, 17, 0.45);
  }
}

html[data-theme="light"] {
  --bg:            #f5f3f0;
  --bg-alt:        #edeae7;
  --bg-card:       rgba(0, 0, 0, 0.025);
  --bg-card-hover: rgba(0, 0, 0, 0.055);
  --bg-frosted:    rgba(245, 243, 240, 0.92);
  --bg-filter:     rgba(245, 243, 240, 0.95);
  --border:        rgba(0, 0, 0, 0.10);
  --border-hover:  rgba(0, 0, 0, 0.25);
  --text:          #111111;
  --text-muted:    rgba(17, 17, 17, 0.55);
  --text-dim:      rgba(17, 17, 17, 0.45);
}


/* ── 02. BASE TYPOGRAPHY & BODY ──────────────────────────────────────────── */

html {
  /* Modern red arrow cursor — SVG data URI, hotspot at tip (2,1) */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M2 1L2 18L6.5 14L10 21L12 20L8.5 13L15 13Z' fill='%23e3120b' stroke='%23000' stroke-width='0.75' stroke-opacity='0.25' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

/* Restore default pointer on touch devices */
@media (hover: none) {
  html { cursor: auto; }
}


/* ── 03. SCROLLBAR ───────────────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(227, 18, 11, 0.4); border-radius: 2px; }


/* ── 04. THEME TOGGLE BUTTON ─────────────────────────────────────────────── */

/* Pill-shaped toggle switch — red border only, knob slides left/right */
.theme-toggle {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 100px;
  border: 2px solid var(--accent);
  background: var(--bg);
  cursor: inherit;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .2s, width .2s, height .2s;
}

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

/* Sliding knob */
.toggle-knob {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: left .22s ease, background .22s ease, width .2s, height .2s;
  pointer-events: none;
}

/* Dark mode (default): knob on right */
.toggle-knob                              { left: calc(100% - 21px); }

/* Light mode: knob on left */
html[data-theme="light"] .toggle-knob    { left: 3px; }

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .toggle-knob { left: 3px; }
}

/* Responsive: smaller toggle on mobile */
@media (max-width: 820px) {
  .theme-toggle {
    width: 40px;
    height: 24px;
  }
  .toggle-knob {
    width: 14px;
    height: 14px;
  }
  /* Recompute knob positions for smaller size */
  .toggle-knob                                               { left: calc(100% - 17px); }
  html[data-theme="light"] .toggle-knob                     { left: 2px; }
}
@media (max-width: 820px) and (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .toggle-knob                { left: 2px; }
}

@media (hover: none) {
  .theme-toggle { cursor: pointer; }
}


/* ── 05. NAVIGATION ──────────────────────────────────────────────────────── */

/* Offset all anchor jumps for the fixed nav + sticky filter bar */
html {
  scroll-padding-top: calc(var(--nav-h) + 60px);
}

.page {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--gutter) .75rem;
  gap: 0;
  transition: padding .35s ease, background .35s, border-color .35s;
}

/* Row 1: logo (left) + nav-right (right), tops aligned */
.nav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Frosted overlay on scroll — adapts to light/dark via CSS variable */
.nav.scrolled {
  padding: calc(.55rem + env(safe-area-inset-top, 0px)) var(--gutter) .45rem;
  background: var(--bg-frosted);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Logo image — two variants swapped via data-theme */
.logo-img {
  height: 59px;
  width: auto;
  display: block;
}

/* Dark mode (default): show dark logo, hide light */
.logo-img--light { display: none; }

/* Light mode: show light logo, hide dark */
[data-theme="light"] .logo-img--dark  { display: none; }
[data-theme="light"] .logo-img--light { display: block; }

/* Logo text — bold geometric, no italic */
.logo-text {
  font-family: var(--f-display);
  font-size: 2.51rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.logo-text em {
  font-style: normal;
  color: var(--accent); /* brand red on the & */
}

.footer-logo-text {
  font-size: calc(0.95rem + 21px);
}

/* Desktop nav links — Row 2, full width below logo/buttons */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding-top: .55rem;
}

.nav-links a {
  font-family: var(--f-mono);
  font-size: .77rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

/* Nav CTA */
.nav-cta {
  font-size: .77rem !important;
  padding: .48rem 1.1rem !important;
}

/* Nav right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* ── Hamburger button — hidden on desktop, shown on mobile ── */
.nav-hamburger {
  display: none;          /* desktop: invisible */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .2s;
}

.nav-hamburger:hover { border-color: var(--border-hover); }

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
}

/* X state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile nav drawer ──
   Mobile-first: always in the DOM, opacity-hidden by default.
   On desktop (> 1475px) we fully remove it with display: none.
   Avoids the display:none + opacity animation conflict.
── */
.nav-mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: var(--bg-frosted);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.5rem;
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.nav-mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-links a {
  font-family: var(--f-mono);
  font-size: .77rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.nav-mobile-links a:last-child {
  border-bottom: none;
}

.nav-mobile-links a:hover,
.nav-mobile-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav-mobile-cta {
  margin-top: 1.25rem;
}

/* On desktop: fully hide the mobile menu and hamburger; show nav-links */
@media (min-width: 1476px) {
  .nav-mobile-menu { display: none; }
  .nav-hamburger   { display: none; }

  /* Center pills; pin search to the right.
     position: sticky on .filter-bar acts as the containing block. */
  .filter-inner {
    justify-content: center;
  }

  .filter-search-wrap {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
  }
}

/* On mobile/tablet/small-desktop: hide desktop nav-links and Connect CTA; show hamburger */
@media (max-width: 1475px) {
  .nav-links        { display: none; }
  .nav-cta--desktop { display: none !important; }
  .nav-hamburger    { display: flex; }

  /* Smaller logo on mobile saves vertical space */
  .logo-img { height: 44px; }

  /* Tighten scroll offset — filter bar is collapsed on mobile */
  html { scroll-padding-top: calc(var(--nav-h) + 20px); }
}


/* ── Filter bar mobile trigger ── */

/* Hidden on desktop */
.filter-bar-trigger {
  display: none;
}

@media (max-width: 1475px) {

  /* Trigger row — replaces the scrollable pills on mobile/tablet */
  .filter-bar-trigger {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 44px;
    padding: .75rem var(--gutter);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    text-align: left;
  }

  .filter-trigger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
  }

  .filter-trigger-lines span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease, width .22s ease;
  }

  /* X state when expanded */
  .filter-bar.expanded .filter-trigger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .filter-bar.expanded .filter-trigger-lines span:nth-child(2) { opacity: 0; width: 0; }
  .filter-bar.expanded .filter-trigger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .filter-trigger-label {
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex: 1;
  }

  .filter-trigger-arrow {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .22s ease;
  }

  .filter-bar.expanded .filter-trigger-arrow {
    transform: rotate(180deg);
  }

  /* Restructure filter bar as a column */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }

  /* Collapse filter-inner by default on mobile */
  .filter-inner {
    max-height: 0;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s;
    flex-wrap: wrap;
    padding: 0 var(--gutter);
    gap: .5rem;
  }

  /* Expanded state */
  .filter-bar.expanded .filter-inner {
    max-height: 400px;
    visibility: visible;
    opacity: 1;
    overflow-x: hidden;
    padding-bottom: 1rem;
  }

  /* Larger pill tap targets on mobile */
  .pill {
    min-height: 44px;
    padding: .6rem 1.1rem;
  }

  /* Full-width search wrap + input when expanded on mobile */
  .filter-bar.expanded .filter-search-wrap {
    width: 100%;
  }
  .filter-bar.expanded .filter-search-field {
    width: 100%;
  }
  .filter-bar.expanded .filter-search-input {
    width: 100%;
    min-width: 0;
  }
}


/* ── 06. HERO SECTION ────────────────────────────────────────────────────── */

/* Full-viewport split: text left, color wheel right */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  overflow: hidden;
}

/* ─ Left column ─ */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  padding-left: clamp(1.5rem, 7vw, 6rem);
  max-width: 620px;
}

/* Mono eyebrow tag */
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: calc(.73rem + 2px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: riseUp .7s .1s ease both;
}

/* Display title — Space Grotesk Bold */
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--text);
  opacity: 0;
  animation: riseUp .9s .25s ease both;
}

/* Red & */
.hero-amp {
  color: var(--accent);
}

/* Muted period */
.hero-period {
  color: var(--text-dim);
}

/* Subtitle */
.hero-sub {
  margin-top: 1.8rem;
  max-width: 460px;
  font-size: clamp(.88rem, 1.3vw, 1rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0;
  animation: riseUp .9s .4s ease both;
}

/* CTA button row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  opacity: 0;
  animation: riseUp .9s .55s ease both;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2rem);
  margin-top: 3.5rem;
  opacity: 0;
  animation: riseUp .9s .7s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.stat-num {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
  white-space: nowrap;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: clamp(.6rem, 1.5vw, .73rem);
  letter-spacing: clamp(.08em, .5vw, .2em);
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: clamp(20px, 4vw, 30px);
  background: var(--border-hover);
  flex-shrink: 0;
}

/* Request listing text link — below hero CTAs */
.hero-request {
  margin-top: 1.35rem;
  font-family: var(--f-mono);
  font-size: calc(.69rem + 1px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: riseUp .9s .62s ease both;
}

.hero-request-link {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}

.hero-request-link:hover,
.hero-request-link:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

/* Scroll hint — bottom of left column */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 3rem;
  opacity: 0;
  animation: riseUp .9s .9s ease both;
}

.scroll-hint span {
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-shaft {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: shaftPulse 2.4s ease-in-out infinite;
}

/* ─ Right column — canvas fills the full column ─ */
.hero-visual {
  position: relative;
  overflow: hidden;
}

#colorWheel {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Hero logo mark — centered on the canvas dark circle (cx=64%W, cy=38%H+30px, r=24%W → d=48%W) */
.hero-logo-mark {
  position: absolute;
  top: calc(38% + 30px);
  left: 64%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Dark mode (default): show dark mark, hide light */
.hero-logo-mark--light { display: none; }

/* Light mode: show light mark, hide dark */
[data-theme="light"] .hero-logo-mark--dark  { display: none; }
[data-theme="light"] .hero-logo-mark--light { display: block; }


/* ── 07. MARQUEE STRIP ───────────────────────────────────────────────────── */

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  margin-bottom: 2rem;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-item {
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .9rem;
}

.marquee-item .sep {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 1;
}


/* ── 08. FILTER BAR & PILLS ──────────────────────────────────────────────── */

.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--bg-filter);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.filter-inner {
  flex: 1;
  display: flex;
  gap: .55rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

/* Filter bar search — inline with pills */
.filter-search-wrap {
  flex-shrink: 0;
}

/* Icon-only trigger — red border, pill-shaped, same dimensions as .pill */
.filter-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: inherit;
  transition: background .2s, color .2s;
  line-height: 0;
}

.filter-search-btn:hover,
.filter-search-btn:focus-visible {
  background: var(--accent-dim);
  outline: none;
}

/* Expanded search field — red border pill, hidden until .search-open */
.filter-search-field {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .38rem .85rem;
  border-radius: 100px;
  border: 2px solid var(--accent);
  background: transparent;
}

/* Only one is ever visible */
.filter-bar.search-open .filter-search-field { display: flex; }
.filter-bar.search-open .filter-search-btn   { display: none; }

.filter-search-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.filter-search-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .1em;
  padding: 0;
  outline: none;
  width: 180px;
  -webkit-appearance: none;
  appearance: none;
}

.filter-search-input::placeholder { color: var(--text-dim); }
.filter-search-input::-webkit-search-cancel-button { display: none; }

.filter-search-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .2s;
  line-height: 0;
}

.filter-search-close:hover,
.filter-search-close:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (hover: none) {
  .filter-search-btn,
  .filter-search-close { cursor: pointer; }
}

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: inherit;
  transition: all .2s ease;
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--border-hover);
  color: var(--text);
  outline: none;
}

/* Active — brand red */
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (hover: none) {
  .pill { cursor: pointer; }
}



/* ── 09. DIRECTORY LAYOUT ────────────────────────────────────────────────── */

.directory {
  padding: 2.5rem var(--gutter) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.dir-section {
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  scroll-margin-top: calc(var(--nav-h) + 60px);
}

.dir-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Section header: num · title · · · count */
.dir-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s ease;
}

/* "You are here" — accent the header border when this section is active in the scroll observer */
.dir-section--active .dir-section-header {
  border-bottom-color: rgba(227, 18, 11, 0.45);
}

.dir-num {
  font-family: var(--f-mono);
  font-size: calc(.69rem + 2px);
  letter-spacing: .22em;
  color: var(--accent);
  flex-shrink: 0;
}

.dir-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}

.dir-count {
  font-family: var(--f-mono);
  font-size: calc(.73rem + 2px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}


/* ── 10. LISTING CARDS ───────────────────────────────────────────────────── */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; /* hairline gap — creates grid-line effect */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Individual card */
.listing-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.6rem;

  background: var(--bg-card);
  border-left: 2px solid transparent; /* red accent revealed on hover */

  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  .6s ease,
    transform .6s ease,
    background .2s,
    border-left-color .2s;
}

.listing-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.listing-card:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--accent);
}

a.listing-logo {
  text-decoration: none;
}

a.listing-logo:hover {
  border-color: var(--accent);
}

a.listing-logo:hover img {
  padding: 0;
}

/* Logo box */
.listing-logo {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.listing-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  z-index: 1;
  color: transparent;
  transition: transform .35s ease-out, padding .35s ease-out;
  will-change: transform;
}

/* Real listing cards — image zooms on hover */
.listing-card:not([data-placeholder]):hover .listing-logo img {
  transform: scale(1.08);
  padding: 16px;
}

/* Placeholder cards — no image zoom, keep existing border-only effect */
.listing-card--placeholder:hover .listing-logo img {
  transform: none;
}

/* Initials fallback */
.logo-init {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-muted);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* Text block */
.listing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.listing-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.2;
}

.listing-desc {
  font-size: .855rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Logo column — wraps logo box + link + social icons */
.listing-logo-col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
}

/* Container below logo: website link + social row */
.listing-social {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

/* Social icon row */
.social-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.listing-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color .2s, gap .2s;
}

.listing-link:hover,
.listing-link:focus-visible {
  color: var(--text);
  gap: .5rem;
  outline: none;
}

.listing-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── Placeholder "Your Business Here" card ── */
.listing-card--placeholder {
  opacity: .55;
  transition:
    opacity  .3s ease,
    background .2s,
    border-left-color .2s;
}

.listing-card--placeholder:hover {
  opacity: 1;
  background: var(--bg-card-hover);
  border-left-color: var(--accent);
}

.listing-logo--placeholder {
  border: 2px dashed var(--border-hover) !important;
  background: transparent !important;
}

.listing-logo-plus {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  opacity: .7;
}

.listing-name--placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.listing-card--placeholder .listing-desc {
  font-style: normal;
}


/* ── Crew category — free badge, intro callout, inter-section strip ── */

/* "Free to List" badge in section header */
.dir-free-badge {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .2em .55em;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: .85;
}

/* Crew section intro callout — lives between header and listings grid */
.crew-intro {
  padding: 2rem 0 2.5rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crew-intro-headline {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}

.crew-intro-body {
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Inter-section callout strip — full-width band between Production and Crew */
.crew-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Space between the crew-strip bottom border and the Crew section header */
.dir-section--crew {
  margin-top: 2.5rem;
}

.crew-strip-text {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  line-height: 1.5;
}

.crew-strip-text strong {
  color: var(--text);
  font-weight: 400;
}

.crew-strip-cta {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}

.crew-strip-cta:hover { color: var(--accent-hover); }

/* Hero crew line — "Freelance crew? Your listing is free →" */
.hero-crew {
  margin-top: .7rem;
  font-family: var(--f-mono);
  font-size: calc(.69rem + 1px);
  letter-spacing: .06em;
  color: var(--text-muted);
  animation: riseUp .9s .7s ease both;
}

.hero-crew-link {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid var(--border-hover);
}

.hero-crew-link:hover,
.hero-crew-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
  outline: none;
}

/* Crew pricing note (request-listing.php) */
.crew-pricing-free {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
}

.crew-pricing-sub {
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}


/* ── 11. BUTTONS ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .78rem 1.6rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: inherit;
  transition: all .25s ease;
  white-space: nowrap;
  line-height: 1;
  font-weight: 400;
}

/* Red filled — primary action */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  outline: none;
}

/* Ghost — secondary action */
.btn-ghost {
  border-color: var(--border-hover);
  background: var(--bg);
  color: var(--text-muted);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  outline: none;
}

.btn-sm {
  font-size: .73rem;
  padding: .55rem 1.1rem;
}

@media (hover: none) {
  .btn { cursor: pointer; }
}

/* Underline listing links on touch devices — no hover state available */
@media (hover: none) {
  .listing-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(227, 18, 11, 0.35);
  }

  /* Larger tap area for small inline text links */
  .hero-request-link,
  .hero-crew-link {
    display: inline-block;
    padding: .35rem 0;
  }

  /* Crew strip stacks on small screens */
  .crew-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}



/* ── 12. FOOTER ──────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.8rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-tagline {
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
  word-break: break-word;
}

.footer-nav a:hover { color: var(--text); }

.footer-ctas {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: .71rem;
  letter-spacing: .15em;
  color: var(--text-dim);
}


/* ── 13. SEARCH — no-results & footer ───────────────────────────────────── */

/* Empty state shown by JS when search yields nothing */
.search-no-results {
  display: none;
  text-align: center;
  padding: 5rem var(--gutter) 7rem;
  font-family: var(--f-mono);
  font-size: .77rem;
  letter-spacing: .15em;
  color: var(--text-dim);
}


/* ── Reduced motion — disable/pause non-essential animations ── */
@media (prefers-reduced-motion: reduce) {
  /* Marquee */
  .marquee-track { animation-play-state: paused; }

  /* Hero text entrance animations — show immediately, no slide */
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-stats,
  .hero-request,
  .hero-crew,
  .scroll-hint {
    animation: none;
    opacity: 1;
  }

  /* Scroll shaft pulse */
  .scroll-shaft { animation: none; }

  /* Section + card reveal — show immediately */
  .dir-section,
  .listing-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Color wheel — skip the 1800ms draw-in by completing it instantly */
  /* Handled in JS via window._reducedMotion flag (see main.js) */
}

/* ── 14. KEYFRAME ANIMATIONS ─────────────────────────────────────────────── */

@keyframes riseUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shaftPulse {
  0%, 100% { opacity: .25; }
  50%       { opacity: .9; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── 15. RESPONSIVE BREAKPOINTS ──────────────────────────────────────────── */

/* Stack hero on tablet / mobile */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding-left: var(--gutter);
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3rem;
    max-width: 100%;
  }

  /* Show canvas below text, shorter height */
  .hero-visual {
    height: 50vw;
    min-height: 260px;
    max-height: 460px;
  }

  #colorWheel {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Remove the desktop +30px fine-tune — logo mark re-centres at stacked height */
  .hero-logo-mark {
    top: 38%;
  }

  /* Scroll hint is meaningless in stacked layout — hide it */
  .scroll-hint { display: none; }
}

/* Tablet — single column cards */
@media (max-width: 860px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}

/* Mobile — tighter spacing */
@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer nav: restore on mobile as a 2-col grid */
  .footer-center {
    width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem 1.5rem;
  }

  .listing-card {
    padding: 1.2rem;
    gap: 1rem;
  }

  .listing-logo {
    width: 160px;
    height: 160px;
  }

  /* Slow marquee — narrower viewport makes same speed feel faster */
  .marquee-track { animation-duration: 20s; }

  /* Section header — allow count to drop to its own line on narrow screens */
  .dir-section-header {
    flex-wrap: wrap;
    gap: .55rem 1rem;
  }

  /* Count always fills the full row so it breaks cleanly below num + title + badge */
  .dir-count {
    flex-basis: 100%;
    margin-left: 0;
    /* Indent to align under the title (past the dir-num width ~2rem + gap 1rem) */
    padding-left: calc(2.2rem + 1rem);
  }

  /* Crew intro — reduce top padding; section header already has margin-bottom */
  .crew-intro {
    padding-top: 1rem;
    padding-bottom: 1.8rem;
  }
}

/* Very narrow phones (SE, Galaxy A) */
@media (max-width: 400px) {
  /* Listing logo: shrink further so text column has room */
  .listing-logo {
    width: 110px;
    height: 110px;
  }

  /* Hero stats: allow wrap, hide dividers to prevent horizontal overflow */
  .hero-stats {
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
  }
  .stat-divider { display: none; }
  .stat-label   { white-space: normal; }
}


/* ═══════════════════════════════════════════════════════════════
   13. CONTACT FORMS
═══════════════════════════════════════════════════════════════ */

.form-section {
  flex: 1;
  padding: 9rem var(--gutter) 7rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.form-page-eyebrow {
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form-page-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: .75rem;
}

.form-page-sub {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.65;
  max-width: 520px;
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-group label {
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group label span[aria-hidden] {
  color: var(--accent);
  margin-left: .15em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 300;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: 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' stroke='rgba(240,238,235,0.52)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

[data-theme="light"] .form-group select {
  background-image: 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' stroke='rgba(17,17,17,0.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Per-field validation states — only show after user has interacted */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(227, 18, 11, 0.6);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: var(--accent);
  background: rgba(227, 18, 11, 0.04);
}

.form-group input[aria-invalid="false"],
.form-group textarea[aria-invalid="false"],
.form-group select[aria-invalid="false"] {
  border-color: #2d9e5f;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.65;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

/* Honeypot — off-screen, invisible to humans */
.website-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Feedback message */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .12em;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.form-message span {
  flex: 1;
}

.form-message--success {
  border: 2px solid #2d9e5f;
  color: #2d9e5f;
  background: rgba(45, 158, 95, .07);
}

.form-message--error {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(227, 18, 11, .07);
}

.form-message-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 .1rem;
  color: inherit;
  opacity: .7;
  transition: opacity .15s;
}
.form-message-close:hover { opacity: 1; }

/* ── Custom crew role picker ──────────────────────────────────────────────── */

.role-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: border-color .2s;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text-muted);
  min-height: 48px;
}

.role-picker:focus,
.role-picker[aria-expanded="true"] {
  border-color: var(--accent);
  outline: none;
}

.role-picker--selected {
  color: var(--text);
}

.role-picker__value {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.role-picker__chevron {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .2s ease;
}

.role-picker[aria-expanded="true"] .role-picker__chevron {
  transform: rotate(180deg);
}

.role-picker__list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  z-index: 300;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.role-picker[aria-expanded="true"] .role-picker__list {
  display: block;
}

.role-picker__list [role="option"] {
  padding: .65rem 1.1rem;
  font-family: var(--f-body);
  font-size: .925rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.role-picker__list [role="option"]:hover,
.role-picker__list [role="option"].is-focused {
  background: var(--bg-card-hover);
  color: var(--text);
}

.role-picker__list [role="option"][aria-selected="true"] {
  color: var(--accent);
  font-weight: 500;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* Submit row */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* Hide the floating reCAPTCHA v3 badge — disclosure text in .recaptcha-notice satisfies Google's policy */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.recaptcha-notice {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  line-height: 1.6;
}

.recaptcha-notice a {
  color: var(--text-dim);
  text-decoration: underline;
  transition: color .2s;
}

.recaptcha-notice a:hover { color: var(--text-muted); }


/* ── Listing pricing summary card ── */

.listing-pricing {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  margin-bottom: 2.5rem;
}

.listing-pricing-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.pricing-amount {
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.pricing-features li {
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 620px) {
  .form-row        { grid-template-columns: 1fr; }
  .form-section    { padding: 5.5rem var(--gutter) 4rem; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }

  /* Prevent iOS Safari from zooming in on input focus (requires ≥ 16px) */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;
  }

  /* Shorter textarea — submit button stays closer to visible area */
  .form-group textarea {
    min-height: 120px;
  }

  /* Consent checkbox — more breathing room for tap */
  .consent-label {
    padding: .4rem 0;
  }

  /* Cookie banner text — above WCAG minimum on small screens */
  .cookie-text {
    font-size: .875rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   14. FOOTER — LEGAL NAV STRIP
═══════════════════════════════════════════════════════════════ */

.footer-legal {
  max-width: var(--max-w);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: center;
}

.footer-legal a {
  font-family: var(--f-mono);
  font-size: .67rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a + a::before {
  content: '|';
  margin-right: 1.2rem;
  color: var(--border-strong);
  pointer-events: none;
}

.footer-legal a:hover { color: var(--text); }


/* ═══════════════════════════════════════════════════════════════
   15. LEGAL PAGES
═══════════════════════════════════════════════════════════════ */

.legal-page {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem var(--gutter) 5rem;
  width: 100%;
}

.legal-eyebrow {
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.legal-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .6rem;
}

.legal-meta {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 .65rem;
  color: var(--text);
}

.legal-content h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 .5rem;
  color: var(--text);
}

.legal-content p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.legal-content li {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: .45rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { opacity: .8; }
.legal-content strong  { color: var(--text); font-weight: 600; }

@media (max-width: 620px) {
  .legal-page { padding-top: 5.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   16. FORM CONSENT CHECKBOX
═══════════════════════════════════════════════════════════════ */

.form-consent {
  margin-top: .25rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  transition: border-color .2s, background .2s;
}

.consent-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px 2px 2px 4px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent-note {
  font-size: .83rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: .25rem;
}

.form-consent-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Logo / headshot checkbox — reuses consent-label checkbox styles */
.form-group--checkbox {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;

  /* Dark mode default: bright border so it stands out on dark bg */
  border: 1.5px solid rgba(240, 238, 235, 0.65);
}

/* Light mode: dark border on light bg */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .checkbox-label input[type="checkbox"] {
    border-color: rgba(17, 17, 17, 0.6);
  }
}
[data-theme="light"] .checkbox-label input[type="checkbox"] {
  border-color: rgba(17, 17, 17, 0.6);
}
[data-theme="dark"] .checkbox-label input[type="checkbox"] {
  border-color: rgba(240, 238, 235, 0.65);
}

/* Checked: always red box */
.checkbox-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

/* Checkmark: white in dark mode */
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px 2px 2px 4px;
  border: 2px solid #ffffff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

/* Checkmark: black in light mode */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .checkbox-label input[type="checkbox"]:checked::after {
    border-color: #0d0d0d;
  }
}
[data-theme="light"] .checkbox-label input[type="checkbox"]:checked::after {
  border-color: #0d0d0d;
}
[data-theme="dark"] .checkbox-label input[type="checkbox"]:checked::after {
  border-color: #ffffff;
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-hint {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: calc(18px + .65rem); /* indent to align under the label text */
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   17. COOKIE CONSENT BANNER
═══════════════════════════════════════════════════════════════ */

#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  /* Dark mode: white bar on dark page */
  background: #f0eeeb;
  color: #0d0d0d;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .35s ease;
}

/* Light mode: dark bar on light page */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) #cookieBanner {
    background: #0d0d0d;
    color: #f0eeeb;
    border-top-color: rgba(255, 255, 255, 0.10);
  }
}
[data-theme="light"] #cookieBanner {
  background: #0d0d0d;
  color: #f0eeeb;
  border-top-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] #cookieBanner {
  background: #f0eeeb;
  color: #0d0d0d;
  border-top-color: rgba(0, 0, 0, 0.12);
}

#cookieBanner.is-visible {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  font-size: .84rem;
  line-height: 1.6;
  color: inherit;
  opacity: .85;
  min-width: 220px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: .65rem;
  flex-shrink: 0;
}

.cookie-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin-left: .25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: .5;
  transition: opacity .2s;
  flex-shrink: 0;
}
.cookie-dismiss:hover { opacity: 1; }

@media (max-width: 560px) {
  #cookieBanner   { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   20. CREW PAGE — /crew.php
═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.crew-page-hero {
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  border-bottom: 1px solid var(--border);
}

.crew-page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.crew-eyebrow {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.crew-page-title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.crew-page-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.crew-page-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}

.crew-page-features li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.crew-feature-icon {
  color: var(--accent);
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .1em;
}

.crew-page-price {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.crew-price-amount {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.crew-price-sub {
  font-size: .85rem;
  color: var(--text-dim);
  font-family: var(--f-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Who qualifies panel ── */
.crew-page-roles {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
}

.crew-roles-label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.crew-roles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.crew-roles-list li {
  font-size: .95rem;
  color: var(--text-muted);
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}

.crew-roles-list li:last-child {
  border-bottom: none;
}

.crew-roles-note {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Form section modifier ── */
.form-section--crew {
  border-top: none;
}

/* ── Bottom note linking to business listing ── */
.crew-form-note {
  text-align: center;
  font-size: .88rem;
  color: var(--text-dim);
  margin-top: 2.5rem;
}

.crew-form-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .crew-page-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .crew-page-roles {
    order: -1;
  }

  .crew-roles-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .crew-roles-list li {
    border-bottom: none;
    padding: .4rem 0;
  }
}

@media (max-width: 560px) {
  .crew-page-hero {
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 2.5rem;
  }

  .crew-roles-list {
    grid-template-columns: 1fr;
  }
}
