/* === css/tokens.css === */
/* ============================================================================
   TOKENS — the whole design system's dial board.
   This is the ONLY file another project needs to edit to retheme.
   Names are intentionally brand-neutral (--accent, not --coral) so the
   component layer stays portable.
   ============================================================================ */
:root {
  /* --- Brand ------------------------------------------------------------- */
  --accent:          #F2585F;   /* primary: buttons, nav, headings */
  --accent-strong:   #E8474E;   /* darker end of accent gradients */
  --accent-soft:     #F5A5A9;   /* tints */
  --secondary:       #8B9269;   /* sage, sparingly */
  --secondary-deep:  #6E7553;

  /* --- Surfaces ---------------------------------------------------------- */
  --surface:         #FEFCF8;   /* page background (warm paper) */
  --surface-warm:    #FDFAF3;   /* recessed panels */
  --surface-card:    #FFFFFF;   /* cards sitting on --surface */

  /* --- Text -------------------------------------------------------------- */
  /* NOTE: Big String deliberately uses a rose-tinted body text rather than a
     near-black. A new project should almost certainly set --text to something
     like #1a1a1a and leave --text-strong/--text-muted as they are. */
  --text:            #cd5e5e;
  --text-strong:     #1a1a1a;   /* card headings, prices */
  --text-muted:      #888888;   /* secondary copy, notes */
  --text-on-accent:  #ffffff;

  /* --- Lines ------------------------------------------------------------- */
  --border:          #E6E8EE;
  --border-card:     #E5E7EB;
  /* Derived from --text so retheming carries through (was hardcoded rgba) */
  --border-subtle:   color-mix(in srgb, var(--text) 20%, transparent);

  /* --- Typography -------------------------------------------------------- */
  --font-family:     "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-size-base:  16px;      /* was 7.5px — see STYLE.md */
  --weight-regular:  400;
  --weight-medium:   600;
  --weight-black:    900;
  --tracking-caps:   0.05em;    /* uppercase labels/buttons */

  /* Type scale (fluid). Use these instead of ad-hoc clamp() calls. */
  --step-display:    clamp(40px, 6vw, 64px);   /* page h1 */
  --step-hero:       clamp(32px, 5vw, 56px);   /* hero heading */
  --step-h2:         clamp(24px, 4vw, 32px);
  --step-h3:         clamp(18px, 2vw, 22px);
  --step-lead:       clamp(16px, 2vw, 20px);
  --step-body:       16px;
  --step-small:      14px;
  --step-xs:         13px;

  /* --- Spacing & shape --------------------------------------------------- */
  --gap:             22px;                     /* grid gutter */
  --edge:            clamp(20px, 4vw, 56px);   /* page side padding */
  --section-y:       clamp(40px, 6vw, 80px);   /* vertical section rhythm */
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       20px;
  --radius-pill:     999px;

  /* --- Elevation --------------------------------------------------------- */
  --shadow-card:     0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-accent:   0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);

  /* --- Motion ----------------------------------------------------------- */
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --ease-elastic:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Component accents ------------------------------------------------ */
  --feature-bg:            #E8F1F9;
  --pricing-bg:            #F7F9FE;
  --pricing-accent:        #4F46E5;
  --pricing-accent-hover:  #3F35D5;
  --card-cta-bg:           #F0F0F0;
  --card-cta-bg-hover:     #E0E0E0;
}

@media (max-width: 480px) {
  :root {
    --edge: 16px;
  }
}

/* === css/base.css === */
/* ============================================================================
   BASE — reset, document defaults, layout scaffolding.
   Portable: depends only on tokens.css.
   ============================================================================ */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--font-size-base);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Respect the user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------------------
   Layout scaffolding — decorative background sits at z-index 0, all real
   content at z-index 1. Every new section needs `position: relative` and
   `z-index: 1` or the squiggles will paint over it.
   ---------------------------------------------------------------------------- */
.squiggle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.squiggle {
  position: absolute;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

main {
  padding: 12px var(--edge);
}

/* A section that spans the full viewport width regardless of its container */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Available to screen readers, invisible on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  main {
    padding: var(--section-y) var(--edge);
  }
}

/* === css/components.css === */
/* ============================================================================
   COMPONENTS — reusable chrome and UI pieces.
   Portable: depends only on tokens.css + base.css. No page-specific rules here.
   ============================================================================ */

/* ============================================================================
   1. TOP BAR / BANNER / HEADER NAV
   ============================================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 99;
}

.banner {
  width: 100%;
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  padding: 8px var(--edge);
  font-size: 18px;
  font-weight: var(--weight-medium);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0 var(--edge);
  transition: background var(--transition-base);
  pointer-events: auto;
  z-index: 100;
}

/* Applied by page-init.js once the hero has scrolled past */
header.has-bg {
  background: var(--surface);
}

/* NOTE: 68px is the height this logo has actually been rendering at. The old
   stylesheet declared clamp(168px, 24vw, 240px) earlier in the file, but a
   later `.logo { height: 68px }` rule for the client carousel overrode it at
   equal specificity. Scoped explicitly here so it can be changed on purpose. */
.site-logo {
  height: 68px;
  width: auto;
  transition: transform var(--transition-base);
}

.site-logo:hover {
  transform: scale(1.08);
}

.nav {
  display: flex;
  gap: clamp(24px, 4vw, 32px);
}

.nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav a:hover,
.nav a:focus-visible {
  transform: scale(1.1);
  opacity: 0.8;
  outline: none;
}

.nav a[aria-current="page"] {
  opacity: 0.65;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  color: var(--accent);
  cursor: pointer;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-caps);
  list-style: none;
  text-transform: uppercase;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: " +"; }
.nav-menu[open] summary::after { content: " −"; }
.nav-menu summary:hover,
.nav-menu summary:focus-visible { opacity: .8; outline: none; transform: scale(1.06); }
.nav-menu summary[aria-current="page"] { opacity: .65; }

.platform-nav > summary {
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text-on-accent);
}

.platform-nav > summary[aria-current="page"] { opacity: 1; }

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.nav-submenu a {
  padding: 11px 14px;
  font-size: 12px;
  transform: none !important;
}

.nav-submenu a + a { border-top: 1px solid var(--border-card); }
.nav-submenu a:hover,
.nav-submenu a:focus-visible { background: var(--surface-warm); }

.contact-modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-card); color: var(--text-strong); box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.contact-modal::backdrop { background: rgba(19, 15, 15, .64); backdrop-filter: blur(4px); }
.contact-modal-form { display: grid; gap: 12px; padding: clamp(28px, 6vw, 48px); }
.contact-modal-form h2 { margin: 0 0 8px; font-size: clamp(32px, 6vw, 52px); line-height: .95; }
.contact-modal-kicker { margin: 0; color: var(--accent); font-weight: var(--weight-black); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.contact-modal-form label { font-size: var(--step-small); font-weight: var(--weight-medium); }
.contact-modal-form input,
.contact-modal-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-card); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-strong); font: inherit; }
.contact-modal-form textarea { resize: vertical; }
.contact-modal-form .cta-button { width: auto; margin: 8px 0 0; }
.contact-modal-note { margin: 0; color: var(--text-muted); font-size: 12px; }
.contact-modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; color: var(--text-strong); font: 30px/1 inherit; cursor: pointer; }

/* ============================================================================
   2. BUTTONS
   ============================================================================ */
.cta-button {
  display: inline-block;
  position: relative;
  z-index: 2;
  width: 150px;
  padding: 12px;
  margin-left: var(--edge);
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--step-body);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.cta-button:hover,
.cta-button:focus-visible {
  opacity: 0.9;
  transform: scale(1.05);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Pill variant */
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: var(--step-small);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.pill-button:hover,
.pill-button:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
  outline: none;
}

.sticky-footer {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.sticky-footer.show {
  opacity: 1;
  pointer-events: auto;
}

.sticky-footer .cta-button {
  margin: 0;
}

.chat-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 98;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.chat-button:hover,
.chat-button:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  outline: none;
}

.chat-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}

/* ============================================================================
   3. LOGO STRIP
   Sizes are per-logo because source artwork has wildly different padding.
   Add a modifier rather than an :nth-child rule when adding a client.
   ============================================================================ */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 0;
  overflow: visible;
}

.logo-strip .cell {
  height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}

.client-logo {
  height: 136px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

.client-logo--sm {
  height: 34px;
}

.client-logo--md {
  height: 60px;
}

.client-logo--invert {
  filter: invert(1);
}

/* ============================================================================
   4. TILE GRID
   ============================================================================ */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.tile {
  display: block;
  position: relative;
  flex: 1 1 calc(25% - var(--gap));
  min-width: 150px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--surface-warm);
  border-radius: var(--radius);
  transition: transform 0.35s cubic-bezier(.2, .7, .3, 1);
}

/* Soft glow behind the play glyph */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

/* Play triangle, cut out of a white disc */
.tile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 3;
  pointer-events: none;
  background: var(--surface-card);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  clip-path: polygon(35% 25%, 35% 75%, 75% 50%);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile.landscape {
  aspect-ratio: 16 / 9;
  flex-basis: calc(50% - var(--gap));
}

.tile.square {
  aspect-ratio: 1 / 1;
}

.tile.featured {
  aspect-ratio: 16 / 9;
  flex-basis: calc(50% - var(--gap));
}

/* Tiles rendered as <button> need their chrome stripped */
.tile--button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tile--spacer {
  background: transparent;
  cursor: default;
}

.tile--spacer::before,
.tile--spacer::after {
  display: none;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  outline-offset: 6px;
}

.tile:focus-visible {
  outline-color: var(--accent);
  outline-width: 2px;
}

@media (max-width: 900px) {
  .tile {
    flex-basis: calc(33.333% - var(--gap));
  }
  .tile.landscape,
  .tile.featured {
    flex-basis: calc(66.666% - var(--gap));
  }
}

@media (max-width: 620px) {
  .tile {
    flex-basis: calc(50% - var(--gap));
  }
  .grid {
    gap: 14px;
  }
  header {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
  .tile:hover,
  .tile:focus-visible {
    transform: none;
  }
}

/* ============================================================================
   5. CARDS
   ============================================================================ */

/* 5a. Feature card — tall, tinted, image bleeding off the bottom edge */
.features {
  background: var(--surface);
  padding: clamp(40px, 5vw, 60px) var(--edge);
  position: relative;
  z-index: 1;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 32px;
  background: var(--feature-bg);
  border-radius: 18px;
  overflow: hidden;
}

.feature-card h3 {
  margin: 0 0 28px 0;
  min-height: 2.6em;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-strong);
}

.feature-card h3 span {
  color: var(--text-muted);
}

.feature-media {
  flex: 1;
  min-height: 340px;
  margin: 28px 0 -32px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 900px) {
  .features-container {
    grid-template-columns: 1fr;
  }
  .feature-card h3 {
    min-height: 0;
  }
}

/* 5b. Service card — square-ish, white, hover lift */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  aspect-ratio: 1 / 1.3;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface-card);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-item h3 {
  margin: 0 0 12px 0;
  font-size: var(--step-h3);
  font-weight: var(--weight-medium);
  color: var(--accent);
}

.service-item p {
  margin: 0;
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* 5c. Price card */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  width: 100%;
  height: 420px;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
}

.price-card.featured {
  border-color: var(--pricing-accent);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--pricing-accent) 12%, transparent);
  transform: translateY(-8px);
}

.price-card .badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  padding: 4px 12px;
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

.price-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}

.price {
  margin: 0;
  font-size: 36px;
  font-weight: var(--weight-black);
  color: var(--text-strong);
}

.price .period {
  margin-left: 4px;
  font-size: var(--step-small);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}

.card-description {
  margin: 0;
  font-size: var(--step-small);
  color: var(--text-muted);
}

.card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-features li {
  position: relative;
  padding-left: 20px;
  font-size: var(--step-small);
  color: var(--text-strong);
}

.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pricing-accent);
  font-weight: bold;
}

.card-cta {
  margin-top: auto;
  padding: 12px 16px;
  background: var(--card-cta-bg);
  color: var(--text-strong);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--step-small);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.card-cta:hover,
.card-cta:focus-visible {
  background: var(--card-cta-bg-hover);
  outline: none;
}

.card-cta.primary {
  background: var(--pricing-accent);
  color: var(--text-on-accent);
}

.card-cta.primary:hover,
.card-cta.primary:focus-visible {
  background: var(--pricing-accent-hover);
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: none;
  }
}

/* ============================================================================
   6. FORMS
   ============================================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: var(--step-small);
  font-weight: var(--weight-medium);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: var(--surface-card);
  color: var(--text);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--step-small);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================================
   7. CAROUSEL + TESTIMONIALS
   ============================================================================ */
.testimonials {
  background: var(--surface);
  padding: 12px var(--edge);
  position: relative;
  z-index: 1;
}

.testimonials-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-prev,
.carousel-next {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 0.8;
}

.carousel-prev:focus-visible,
.carousel-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-prev:disabled,
.carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent);
}

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

.carousel-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-inline: calc((100vw - clamp(320px, 56vw, 900px)) / 2);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 clamp(320px, 56vw, 900px);
  scroll-snap-align: center;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.video-card {
  position: relative;
  aspect-ratio: 2 / 1;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.branded-lockup {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lockup-divider {
  width: 1px;
  height: 28px;
  background: var(--surface-card);
  opacity: 0.6;
}

.lockup-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.testimonial-content {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: start;
}

.testimonial-quote {
  margin: 0;
  max-width: 60ch;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.testimonial-quote::before {
  content: '"';
  margin-right: 4px;
}

.testimonial-quote::after {
  content: '"';
  margin-left: 4px;
}

.testimonial-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px;
  background: var(--surface-card);
  border-radius: var(--radius);
}

.testimonial-logo-box img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Full-bleed accent variant — inverts everything onto the brand gradient */
.testimonials-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(60px, 8vw, 100px) var(--edge);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.testimonials-full .carousel-prev,
.testimonials-full .carousel-next {
  color: var(--text-on-accent);
}

.testimonials-full .carousel-prev:disabled,
.testimonials-full .carousel-next:disabled {
  opacity: 0.3;
}

.testimonials-full .carousel-dot {
  background: rgba(255, 255, 255, 0.4);
}

.testimonials-full .carousel-dot.active {
  background: var(--text-on-accent);
}

.testimonials-full .video-poster {
  opacity: 0.9;
}

.testimonials-full .testimonial-quote {
  color: var(--text-on-accent);
}

.testimonials-full .testimonial-logo-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }
  .play-button:hover {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 760px) {
  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .carousel-prev,
  .carousel-next {
    display: none;
  }
  .carousel-track {
    padding-inline: calc((100vw - 86vw) / 2);
  }
  .testimonial-slide {
    flex: 0 0 86vw;
  }
  .testimonial-content {
    grid-template-columns: 1fr;
  }
  .testimonial-logo-box {
    width: 100%;
  }
}

/* ============================================================================
   8. VIDEO MODAL
   ============================================================================ */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-on-accent);
  font-size: 36px;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.video-modal-close:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .video-modal-content {
    max-width: 100%;
  }
  .video-modal-close {
    top: 10px;
    right: 10px;
    z-index: 201;
  }
}

/* ============================================================================
   9. PAGE HERO (non-video pages)
   ============================================================================ */
.page-hero {
  max-width: 900px;
  margin: 0 auto clamp(60px, 10vw, 100px);
}

.page-hero h1 {
  margin: 0 0 24px 0;
  font-size: var(--step-display);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  color: var(--text);
}

.page-hero .lead {
  max-width: 600px;
  font-size: var(--step-lead);
  color: var(--text);
}

/* ============================================================================
   10. FOOTER
   ============================================================================ */
footer {
  padding: 24px var(--edge);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--step-xs);
  color: var(--text);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr;
  gap: 32px;
  align-items: flex-start;
  max-width: 1200px;
}

.footer-content > .footer-section:nth-child(3),
.footer-content > .footer-section:nth-child(4) {
  text-align: right;
}

.footer-section h3 {
  margin: 0 0 12px 0;
  font-family: var(--font-family);
  font-size: var(--step-small);
  font-weight: var(--weight-medium);
  color: var(--text);
}

.footer-section p {
  margin: 6px 0;
  font-size: var(--step-xs);
  line-height: 1.5;
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-section a:hover,
.footer-section a:focus-visible {
  opacity: 0.7;
  outline: none;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  display: block;
  flex-shrink: 0;
  max-width: 120px;
}

.footer-logo img {
  height: clamp(100px, 15vw, 140px);
  width: auto;
}

.footer-tagline {
  margin: 0 0 16px 0;
  font-size: var(--step-xs);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.email-signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-signup input {
  padding: 10px 12px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: var(--step-xs);
}

.email-signup input::placeholder {
  color: #999;
}

.email-signup button {
  padding: 10px 16px;
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: var(--step-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.email-signup button:hover {
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text);
}

.copyright {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a {
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  opacity: 0.7;
  outline: none;
}

/* ============================================================================
   11. RESPONSIVE CHROME
   ============================================================================ */
@media (max-width: 768px) {
  header {
    top: 44px;
    flex-wrap: wrap;
  }
  .nav {
    gap: 20px;
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-submenu { right: auto; left: 0; }
  .site-logo {
    order: 1;
  }
  .chat-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .sticky-footer {
    bottom: 70px;
  }
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 12px;
  }
  .cta-button {
    width: 140px;
    padding: 10px;
    font-size: 12px;
  }
  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-strip .cell {
    height: 140px;
  }
}

/* === css/site.css === */
/* ============================================================================
   SITE — Big String specific layout. NOT portable; do not copy to a new
   project. Anything that becomes generally useful should move up into
   components.css instead.
   ============================================================================ */

/* ============================================================================
   1. VIDEO HERO (home)
   ============================================================================ */
.hero-section {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Matches the page rather than pure white, so any gap before the poster
     paints is not a bright flash. */
  background: var(--surface);
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-heading {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 200px 0 0 0;
  padding: 0 var(--edge);
  font-family: var(--font-family);
  font-size: var(--step-hero);
  font-weight: var(--weight-black);
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  color: var(--accent);
  animation: elasticDropIn 0.8s var(--ease-elastic);
}

@keyframes elasticDropIn {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#rotating-word {
  display: inline-block;
  min-width: 160px;
  color: var(--accent);
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.partner-text {
  flex-basis: 100%;
}

.sub-heading {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-left: var(--edge);
  font-family: var(--font-family);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: var(--weight-regular);
  color: var(--accent);
}

@media (max-width: 768px) {
  .gallery-heading {
    margin: 200px 0 0 0;
  }
}

@media (max-width: 480px) {
  .gallery-heading {
    font-size: clamp(24px, 4vw, 40px);
    margin: 150px 0 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-heading {
    animation: none;
  }
}

/* ============================================================================
   2. SECTION WRAPPERS
   ============================================================================ */
.clients-section,
.services-section {
  position: relative;
  z-index: 1;
  padding: 12px var(--edge);
  background: transparent;
}

.clients-section h2 {
  display: none;
}

.gallery {
  padding: var(--section-y) var(--edge);
}

/* ============================================================================
   3. PRICING PAGE LAYOUT
   ============================================================================ */
.pricing-page {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 120px) var(--edge);
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2.2fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--section-y) var(--section-y);
}

.pricing-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.pricing-left h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-strong);
}

.pricing-left h2 span {
  color: var(--accent);
}

.pricing-note {
  margin: 0;
  font-size: var(--step-xs);
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .pricing-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: clamp(20px, 4vw, 40px);
  }
  .pricing-left h2 {
    font-size: var(--step-h2);
  }
}

/* ============================================================================
   4. CONTACT PAGE LAYOUT
   ============================================================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-y) var(--edge);
}

.contact-info h2,
.contact-form-wrapper h2 {
  margin: 0 0 32px 0;
  font-size: var(--step-h2);
  font-weight: 700;
  color: var(--accent);
}

.info-item {
  margin-bottom: 24px;
}

.info-item h3 {
  margin: 0 0 8px 0;
  font-size: var(--step-body);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
}

.info-item p {
  margin: 0;
  font-size: var(--step-body);
  line-height: 1.6;
  text-align: left;
  color: var(--accent);
}

.info-item a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.info-item a:hover {
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .cta-button {
  align-self: flex-start;
  padding: 10px 24px;
  font-size: var(--step-small);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Big String leaves a deep run-off below the footer so the animated background
   keeps playing past the end of the content. Not part of the portable kit. */
footer {
  margin-bottom: 400px;
}

/* ============================================================================
   5. WORDMARK / MISC
   ============================================================================ */
.wordmark {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--weight-medium);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.tagline {
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--secondary-deep);
}

.rule {
  display: none;
}

.rule + .rule {
  margin-top: 3px;
}
