/* ============================================================
   ROOT
   ============================================================ */
:root {
  --black: #060606;
  --ink:   #0A0A0A;
  --soot:  #141414;
  --steel: #2A2A2A;
  --ash:   #5A5A5A;
  --bone:  #B8B8B6;
  --paper: #F4F3EE;
  --white: #FFFFFF;
  --accent: #0088cc; /* safety orange, used sparingly */

  --font-display: 'Big Shoulders Display', 'Archivo', sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;
  --font-mono:    'Oswald', 'Archivo', sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* ============================================================
   GLOBAL FILM GRAIN OVERLAY (industrial texture)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   TYPE SYSTEM
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.display--xl { font-size: clamp(56px, 11vw, 168px); }
.display--lg { font-size: clamp(44px, 7vw, 104px); }
.display--md { font-size: clamp(34px, 4.6vw, 72px); }
.display--sm { font-size: clamp(26px, 3.2vw, 48px); }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
}
.mono--lg { font-size: 13px; }

.body-lg { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 400; color: var(--steel); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--steel); }

/* ============================================================
   CONTAINER + UTIL
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule { height: 1px; background: var(--ink); opacity: 0.12; width: 100%; }
.rule--white { background: var(--white); opacity: 0.18; }

/* ============================================================
   FLOATING NAV (hidden until scroll)
   ============================================================ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -80px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 22px 12px 22px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  transition: transform .55s var(--ease-out), opacity .4s var(--ease-out);
  opacity: 0;
  pointer-events: none;
}
.nav.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 22px;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.72);
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }

@media (max-width: 720px) {
  .nav { gap: 16px; padding: 10px 16px; max-width: calc(100vw - 20px); flex-wrap: nowrap; }
  .nav__links { gap: 12px; flex-wrap: nowrap; }
  .nav__links a { font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 90svh;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hero media placeholder — swap with <video autoplay muted loop playsinline> later */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, #1a1a1a 0%, #060606 70%),
    #060606;
  overflow: hidden;
}
.hero-media::before {
  /* Subtle scan/architecture lines hinting at industrial drone footage */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px),
    repeating-linear-gradient(90deg, transparent 0, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
  pointer-events: none;
}
.hero-media::after {
  /* Soft vignette */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.hero-top, .hero-bottom {
  position: relative;
  z-index: 2;
  padding: 28px 0;
}
.hero-top { display: flex; justify-content: center; align-items: center; gap: 24px; }
.hero-top .mono { color: rgba(255,255,255,0.6); }

/* Licensed • Bonded • Insured badge */
.hero-licensed-bar {
  position: relative;
  z-index: 2;
  display: none; /* hidden on desktop */
  justify-content: center;
  align-items: center;
  padding: 6px 0 10px;
}
.hero-licensed-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-licensed-badge::before,
.hero-licensed-badge::after {
  content: '';
  width: 32px;
  height: 2px;
  background: #0088cc;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hero-licensed-bar { display: flex; }
}

/* Hero Button Group */
.hero-btn-group {
  display: flex;
  max-width: 815px;
  width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  padding: 0 20px;
  box-sizing: border-box;
  gap: 0;
}
.btn-group-call, .btn-group-book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.btn-group-call {
  background: #0088cc;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.btn-group-book {
border: 1px solid #fff;
border-top-right-radius: 4px;
    border-left: none;
border-bottom-right-radius: 4px;
}
.btn-group-call:hover, .btn-group-book:hover {
  opacity: 0.9;
}
.btn-group-call svg, .btn-group-book svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .btn-group-call, .btn-group-book {
    font-size: 14px;
    padding: 14px 10px;
  }
}

.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding: 40px 0;
  margin-top: 8vh; */
}
.hero-eyebrow {
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--white);
}
.hero-title .amp { font-weight: 300; font-style: italic; opacity: 0.7; }

.hero-tagline {
  margin-top: 38px;
  max-width: 800px;
  color: rgba(255,255,255,0.9);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.3;
  font-weight: 600;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
  color: rgba(255,255,255,0.55);
}
.hero-bottom .meta-block { display: flex; flex-direction: column; gap: 6px; }
.hero-bottom .meta-block .mono { color: rgba(255,255,255,0.4); }
.hero-bottom .meta-block .meta-val { font-family: var(--font-body); color: var(--white); font-size: 14px; }
.hero-bottom .center { text-align: center; }
.hero-bottom .right { text-align: right; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: drop 1.8s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Zip Checker */
.zip-checker {
  max-width: 815px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.zip-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
}
.zip-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.zip-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 4px;
  border: none;
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
}
.zip-btn {
  background: #0088cc;
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zip-btn-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.zip-btn:hover {
  background: #0077b3;
}
.zip-result {
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}
.zip-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}
.zip-footer svg {
  width: 14px;
  height: 14px;
  color: #0088cc;
}

/* ============================================================
   APPOINTMENT MODAL (Light Theme: White/Blue/Black-Grey)
   ============================================================ */
.appt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
}
.appt-overlay.active { display: block; }

.appt-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  z-index: 9001;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.appt-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.appt-step { display: none; }
.appt-step.active { display: block; }

.appt-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(0,0,0,0.35);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.appt-close:hover { color: #111111; }

.appt-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  text-align: center;
}
.appt-icon svg { width: 64px; height: 64px; }

.appt-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #111111;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}
/* Center title only for zip result & success steps */
#apptStep1 .appt-title,
#apptStep9 .appt-title { text-align: center; }

.appt-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 24px;
  text-align: center;
}

/* Progress bar */
.appt-progress {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 99px;
  margin-bottom: 8px;
  overflow: hidden;
}
.appt-progress-fill {
  display: block;
  height: 100%;
  background: #0088cc;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.appt-step-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-align: left;
}

/* Fields container */
.appt-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}
.appt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .appt-row { grid-template-columns: 1fr; } }

.appt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.appt-field label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555555;
}
.appt-field .req { color: #e74c3c; }

/* Input styling — using class for specificity */
.appt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  color: #111111;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.appt-input:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}
.appt-input::placeholder { color: rgba(0,0,0,0.35); }
.appt-textarea {
  resize: vertical;
  min-height: 100px;
}
.appt-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%235A5A5A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* Backwards compat: old field inputs without class */
.appt-field input,
.appt-field select,
.appt-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  color: #111111;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.appt-field input:focus,
.appt-field select:focus,
.appt-field textarea:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
  background-color: #ffffff;
}
.appt-field textarea { resize: vertical; }
.appt-field select { cursor: pointer; }

/* Service radio grid */
.appt-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 480px) { .appt-service-grid { grid-template-columns: 1fr 1fr; } }
.appt-service-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.appt-service-opt:hover { border-color: #0088cc; background: rgba(0,136,204,0.04); }
.appt-service-opt:has(input:checked) {
  border-color: #0088cc;
  background: rgba(0,136,204,0.08);
  color: #0088cc;
  font-weight: 600;
}
.appt-service-opt input { accent-color: #0088cc; }

/* Navigation row */
.appt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.appt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #0088cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex: 1;
  margin-bottom: 0;
}
.appt-btn-primary:hover { background: #0077b3; transform: translateY(-1px); }
.appt-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: transparent;
  color: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex: 1;
}
.appt-btn-ghost:hover { border-color: #0088cc; color: #0088cc; }

/* Step 1 & success: full-width stacked buttons */
#apptStep1 .appt-btn-primary,
#apptStep1 .appt-btn-ghost,
#apptStep9 .appt-btn-primary {
  display: block;
  width: 100%;
  flex: none;
  margin-bottom: 10px;
  text-align: center;
}

/* Review card */
.appt-review-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  margin: 4px 0 20px;
}
.appt-review-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.appt-review-row:last-child { border-bottom: none; }
.appt-review-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  min-width: 70px;
  padding-top: 1px;
  flex-shrink: 0;
}
.appt-review-val {
  font-size: 14px;
  color: #111111;
  font-weight: 500;
}

/* Success step */
.appt-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(74,222,128,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.appt-success-icon svg { width: 40px; height: 40px; }
.appt-success-checks {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}
.appt-success-checks span {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
}

#apptStep9 .appt-title,
#apptStep9 .appt-desc { text-align: center; }


@media (max-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .hero-bottom .center, .hero-bottom .right { text-align: left; }
  .zip-btn { padding: 0 20px; }
  .zip-btn-text { display: none; }
  .zip-btn-icon { display: block; }
}

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.marquee-section {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 28px 0 0;
  overflow: hidden;
}
.marquee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  color: var(--ash);
}
.marquee {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marq 48s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee-track-wrap {
  overflow: hidden;
  background: transparent;
  padding: 25px 0 25px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marq-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.78;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marq-item::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 0;
  opacity: 0.85;
}

/* ============================================================
   SECTION HEADER PATTERN
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 80px;
}
.section-head__label { color: var(--ash); }
.section-head__label .mono::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #0088cc;
  margin-right: 12px;
  vertical-align: 1px;
}
.section-head__title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; line-height: 0.96; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; padding-bottom: 28px; }
}

/* ============================================================
   WORK / SHOWCASES
   ============================================================ */
.work {
  background: var(--white);
  padding: 140px 0 120px;
  color: var(--ink);
}

.showcase {
  margin-bottom: 160px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.showcase:last-child { margin-bottom: 0; }

.showcase-meta {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.showcase-meta .col .mono { color: var(--ash); display: block; margin-bottom: 8px; }
.showcase-meta .col .val { font-family: var(--font-body); font-size: 15px; color: var(--ink); font-weight: 500; }
.showcase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 50px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.98;
  white-space: normal;
}
.showcase-desc {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--steel);
  /* max-width: 560px; */
  line-height: 1.55;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--paper);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.showcase-frame-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.08);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  padding: clamp(28px, 5vw, 80px) clamp(20px, 4vw, 60px);
  overflow: hidden;
}
.showcase-frame-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.03), transparent 60%);
  pointer-events: none;
}
.showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}

/* Laptop frame */
.laptop {
  position: relative;
  width: 100%;
}
.laptop__screen {
  position: relative;
  background: var(--ink);
  border-radius: 12px 12px 4px 4px;
  padding: 8px 8px 0 8px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.25),
    0 10px 30px -10px rgba(0,0,0,0.15);
}
.laptop__notch {
  width: 60px;
  height: 4px;
  background: #000;
  border-radius: 0 0 4px 4px;
  margin: 0 auto 4px;
}
.laptop__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.laptop__base {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #d8d8d6 0%, #b3b3b1 100%);
  border-radius: 0 0 14px 14px;
  margin: 0 -14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.laptop__base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #9a9a98;
  border-radius: 0 0 6px 6px;
}

/* Phone frame */
.phone {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin-left: auto;
}
.phone__body {
  position: relative;
  background: var(--ink);
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    0 24px 50px -16px rgba(0,0,0,0.3),
    0 8px 20px -8px rgba(0,0,0,0.15);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}
.phone__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 9/19.5;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

/* Device Gallery Crossfade */
.device-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}
.device-gallery .device-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.device-gallery .device-img.active {
  opacity: 1;
}

/* Site mockup content — these are abstracted micro-mockups
   suggesting each client's site without needing real screenshots */
.mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}
.mock--barricade { background: linear-gradient(180deg, #0A1F3D 0%, #061429 100%); color: #fff; }
.mock--brochure  { background: #F4F3EE; color: #1a1a1a; }
.mock--kuhlco    { background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%); color: #fff; }
.mock--bearstate { background: linear-gradient(180deg, #2d2517 0%, #1a1308 100%); color: #f0e8d5; }

.mock__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6% 7%;
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mock__nav-logo { font-weight: 800; font-size: 7px; }
.mock__nav-links { display: flex; gap: 6%; opacity: 0.8; }
.mock__hero {
  padding: 0 7%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mock__hero h1 {
  font-family: var(--font-display);
  font-size: 7%;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4%;
}
.mock--brochure .mock__hero h1 { color: #C8102E; }
.mock--bearstate .mock__hero h1 { color: #d4a942; }
.mock__hero p { font-size: 7px; opacity: 0.7; max-width: 65%; line-height: 1.5; }
.mock__cta {
  display: inline-block;
  margin-top: 5%;
  font-size: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  width: fit-content;
  opacity: 0.85;
}
.mock__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  padding: 5% 7%;
  border-top: 1px solid currentColor;
}
.mock__strip .item { font-size: 6px; opacity: 0.6; }
.mock--barricade .mock__strip { border-color: rgba(255,255,255,0.15); }
.mock--brochure .mock__strip { border-color: rgba(0,0,0,0.12); }
.mock--kuhlco .mock__strip { border-color: rgba(255,255,255,0.12); }
.mock--bearstate .mock__strip { border-color: rgba(240,232,213,0.15); }

/* Phone variants — tighter mockup */
.phone .mock__nav { padding: 16% 8% 4%; }
.phone .mock__hero { padding: 0 8%; }
.phone .mock__hero h1 { font-size: 11%; }
.phone .mock__hero p { font-size: 5px; max-width: 100%; }
.phone .mock__strip { display: none; }

@media (max-width: 820px) {
  .showcase-meta { grid-template-columns: 1fr; gap: 12px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .phone { margin: 0 auto; }
  .showcase { margin-bottom: 100px; }
}

/* ============================================================
   TAGLINE MOMENT
   ============================================================ */
.tagline-block {
  background: var(--black);
  color: var(--white);
  padding: clamp(120px, 18vw, 220px) 0;
  position: relative;
  overflow: hidden;
}
.tagline-block::before {
  /* Industrial photo placeholder */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.04), transparent 50%),
    repeating-linear-gradient(135deg, transparent 0, transparent 60px, rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 61px);
  pointer-events: none;
}
.tagline-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}
.tagline-block .mono { color: rgba(255,255,255,0.45); margin-bottom: 32px; }
.tagline-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.8vw, 108px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 1200px;
}
.tagline-sub {
  margin-top: 36px;
  color: rgba(255,255,255,0.6);
  font-size: clamp(15px, 1.3vw, 19px);
  /* max-width: 540px; */
  line-height: 1.5;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--paper);
  padding: 140px 0 160px;
  color: var(--ink);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
}
.pillar {
  background: var(--paper);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background .35s var(--ease);
}
.pillar:hover { background: #ece9df; }
.pillar__num { color: #0088cc; }
.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: auto;
  color: var(--ink);
}
.pillar__body { color: var(--steel); font-size: 15px; line-height: 1.55; }

/* Arrow row */
.pillar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pillar-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0088cc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}
.pillar-arrow svg { width: 18px; height: 18px; }
.pillar:hover .pillar-arrow { transform: translateX(4px) scale(1.08); background: #0088cc; }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--white);
  padding: 140px 0;
  color: var(--ink);
}
.service-list { border-top: 1px solid rgba(0,0,0,0.12); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 120px;
  gap: 24px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  transition: padding .4s var(--ease);
  cursor: default;
}
.service:hover { padding-left: 16px; padding-right: 16px; background: var(--paper); }
.service__num { color: var(--ash); }
.service__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.service__desc { color: var(--steel); font-size: 15px; line-height: 1.5; }
.service__arrow {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ash);
}

@media (max-width: 820px) {
  .service { grid-template-columns: 50px 1fr; row-gap: 4px; }
  .service__desc { grid-column: 1 / -1; padding-left: 0; margin-top: 0; }
  .service__arrow { display: none; }
  .service:hover { padding-left: 0; padding-right: 0; background: none; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--ink);
  color: var(--white);
  padding: 140px 0;
}
.testimonials .section-head { border-color: rgba(255,255,255,0.15); }
.testimonials .section-head__label { color: rgba(255,255,255,0.55); }
.testimonials .section-head__title { color: var(--white); }

.testimonials-slider-wrap {
  overflow: hidden;
  position: relative;
}
.testimonials-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.t-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: calc((100% - 48px) / 3);
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.t-card:hover { border-color: #0088cc; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

@media (max-width: 768px) {
  .t-card { min-width: calc((100% - 24px) / 2); }
}
@media (max-width: 500px) {
  .t-card { min-width: 100%; }
}

/* Stars */
.t-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
}
.t-stars svg { width: 18px; height: 18px; }

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.slider-arrow svg { width: 18px; height: 18px; }
.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.t-quote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  letter-spacing: 0;
  color: #222222;
  flex: 1;
}
.t-quote-inner {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-read-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.t-read-more:hover {
  color: #ff9838;
}

/* Review Modal */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.review-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.review-modal-content {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  color: #222222;
  max-height: 90vh;
  overflow-y: auto;
}
.review-modal-overlay.active .review-modal-content {
  transform: translateY(0);
}
.review-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ash);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}
.review-modal-close:hover {
  color: #111111;
}
.review-modal-quote {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.t-quote::before {
  content: '“';
  display: block;
  font-size: 60px;
  line-height: 0.4;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.t-logo {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f5f5f5;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 50%;
}
.t-attrib { display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 600; font-size: 14px; color: #111111; }
.t-company { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #555555; }

@media (max-width: 820px) {
  .t-grid { grid-template-columns: 1fr; }
  .t-card { min-height: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 100px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 60px, rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 61px);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .display {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .built { color: var(--accent); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }

/* ============================================================
   LOGO PLACEHOLDERS — HERO + FOOTER
   ============================================================ */
.hero-logo-placeholder,
.hero-logo {
width: clamp(200px, 0vw, 457px);
    height: clamp(135px, 17vw, 135px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  object-fit: contain;
}
.hero-logo-placeholder {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.hero-logo-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* Override v1 hero-tagline to be the prominent statement */
.hero-tagline {
  margin-top: clamp(32px, 4.5vw, 56px);
  max-width: 860px;
  color: rgba(255,255,255,0.94);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.hero-sub {
  margin-top: 14px;
  max-width: 620px;
    color: rgba(255, 255, 255, 0.85);
      font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.01em;
}

.footer-logo-placeholder,
.footer-logo {
  width: clamp(220px, 28vw, 360px);
  height: clamp(110px, 11vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  object-fit: contain;
}
.footer-logo-placeholder {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.footer-logo-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ============================================================
   CLIENT LOGO MARQUEE — PLACEHOLDER SLOTS
   ============================================================ */
.marquee { gap: 28px; }
.logo-slot {
width: 135px;
    height: 30px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 1;
}
.logo-slot::after { display: none !important; }
.logo-slot span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
}
.logo-img {
  width: 200px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
}

/* ============================================================
   BROCHURE MOCKUP — CAL UNDERGROUND
   ============================================================ */
.showcase-frame-wrap--brochure {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 120px);
}
.brochure-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1800px;
}
.brochure {
  display: flex;
  transform: rotateX(8deg) rotateY(-10deg);
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 32px 50px rgba(0,0,0,0.25))
    drop-shadow(0 12px 22px rgba(0,0,0,0.12));
}
.brochure__panel {
  width: clamp(140px, 19vw, 240px);
  aspect-ratio: 7/12;
  background: #F4F3EE;
  position: relative;
  padding: clamp(14px, 1.6vw, 22px) clamp(12px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
  overflow: hidden;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.brochure__panel:last-child { border-right: 0; }
.brochure__panel + .brochure__panel {
  box-shadow: -10px 0 14px -10px rgba(0,0,0,0.18);
}
.brochure__panel--center {
  background: #1a1a1a;
  color: #f4f3ee;
}

.bro-mono {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  display: block;
}
.bro-mono--light { color: rgba(244,243,238,0.55); }

.bro-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 14px;
  margin-bottom: 10px;
}
.bro-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #C8102E;
  margin-top: 16px;
  margin-bottom: 14px;
}
.bro-list { list-style: none; padding: 0; margin: 0; }
.bro-list li {
  font-family: var(--font-body);
  font-size: clamp(8px, 0.85vw, 11px);
  line-height: 1.8;
  opacity: 0.78;
  padding-left: 10px;
  position: relative;
}
.bro-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.55;
}
.bro-body {
  font-family: var(--font-body);
  font-size: clamp(8px, 0.85vw, 11px);
  line-height: 1.55;
  opacity: 0.72;
}
.bro-tag {
  font-family: var(--font-body);
  font-size: clamp(9px, 0.95vw, 12px);
  line-height: 1.45;
  opacity: 0.78;
  max-width: 95%;
}
.bro-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px solid rgba(244,243,238,0.18);
  opacity: 0.9;
}
.bro-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 720px) {
  .brochure { transform: rotateX(4deg) rotateY(-4deg); }
  .brochure__panel { width: 26vw; }
}

/* ============================================================
   MOBILE PASS — spillover fixes + tighter rhythm
   ============================================================ */
@media (max-width: 720px) {
  .work { padding: 88px 0 72px; }
  .process { padding: 88px 0 96px; }
  .services { padding: 88px 0; }
  .testimonials { padding: 88px 0; }
  .footer { padding: 72px 0 28px; }
  .tagline-block { padding: 96px 0; }

  .section-head__title { white-space: normal; font-size: clamp(38px, 11.5vw, 54px); }
  .showcase-title { white-space: normal; font-size: clamp(28px, 8vw, 36px); }
  .showcase { margin-bottom: 72px; gap: 32px; }
  .showcase-frame-wrap { padding: 24px 16px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }

  .hero-top { flex-wrap: wrap; gap: 6px 16px; justify-content: center; text-align: center; }
  .hero-logo-placeholder, .hero-logo { width: min(80vw, 520px); }

  /* one full-bleed video on phones instead of three cramped columns */
  .hero-videos .hero-video-col:nth-child(2),
  .hero-videos .hero-video-col:nth-child(3) { display: none; }

  .pillar { padding: 28px 22px; min-height: 0; }
  .pillar__title { margin-top: 10px; }

  .t-card { padding: 28px 20px; gap: 22px; }

  .footer-grid { gap: 32px; padding-bottom: 44px; }

  .marquee-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .logo-slot, .logo-img { width: 97px; height: 35px; }

  .contact-modal__panel { width: calc(100% - 28px); padding: 44px 20px 22px; }
  .contact-modal__btn { gap: 12px; padding: 16px 14px; }
  .contact-modal__btn-value { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
}

@media (max-width: 400px) {
  .nav { gap: 10px; padding: 9px 12px; max-width: calc(100vw - 16px); flex-wrap: nowrap; }
  .nav__logo { font-size: 14px; }
  .nav__links { gap: 8px; flex-wrap: nowrap; }
  .nav__links a { font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .scroll-cue .line { animation: none; }
  .cu-flip__stage, .cu-flip__view { transition: none; }
}

/* ============================================================
   SCREEN VIDEO — laptop + phone viewports
   ============================================================ */
.laptop__viewport,
.phone__viewport {
  background: #0A0A0A; /* dark base so the fallback reads cleanly */
}

.screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop-fit so any aspect ratio fills cleanly */
  object-position: center top;
  display: block;
  z-index: 2;
  background: #0A0A0A;
}

/* Fallback placeholder shown when video source is missing */
.screen-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, #1a1a1a 0%, #060606 80%);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 20px;
}
.screen-fallback .mono {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.screen-fallback__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: lowercase;
}
.phone__viewport .screen-fallback .mono { font-size: 9px; }
.phone__viewport .screen-fallback__hint { font-size: 8px; }

/* ============================================================
   HERO — THREE 9:16 VIDEO COLUMNS
   ============================================================ */
.hero-videos {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: 0;
}
.hero-video-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #060606;
}
.hero-video-col + .hero-video-col {
  border-left: 1px solid rgba(255,255,255,0.05);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #060606 80%);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 20px;
}
.hero-video-fallback .mono {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.22em;
}
.hero-video-fallback__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: lowercase;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* background color/opacity is now set inline in index.php via admin settings */
}

/* ============================================================
   SECTION HEAD — wrap each title line on overflow
   ============================================================ */
.section-head__title {
  white-space: normal;
  font-size: clamp(26px, 6.5vw, 96px);
}

/* ============================================================
   CONTACT MODAL — opens on Inquire button click
   ============================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.contact-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: clamp(320px, 92%, 480px);
  background: var(--white);
  padding: 52px 40px 36px;
  border: 1px solid rgba(0,0,0,0.08);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .35s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.contact-modal.is-open .contact-modal__panel {
  transform: translate(-50%, -50%) scale(1);
}
.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: var(--ash);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.contact-modal__close:hover {
  color: var(--ink);
  background: var(--paper);
}
.contact-modal__eyebrow {
  color: var(--ash);
  display: block;
  margin-bottom: 12px;
}
.contact-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ink);
}
.contact-modal__intro {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.contact-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
}
.contact-modal__btn {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s, padding .25s var(--ease);
}
.contact-modal__btn:hover {
  background: var(--paper);
  padding-left: 30px;
}
.contact-modal__btn-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  width: 44px;
  flex-shrink: 0;
}
.contact-modal__btn-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.contact-modal__btn-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--ash);
  transition: color .2s, transform .25s var(--ease);
}
.contact-modal__btn:hover .contact-modal__btn-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Make service rows feel clickable */
.service { cursor: pointer; }
.service__arrow {
  transition: color .2s, transform .25s var(--ease);
}
.service:hover .service__arrow {
  color: var(--accent);
  transform: translateX(4px);
}


/* ============================================================
   FLIP BROCHURE — Cal Underground
   3-state cycle: closed → inside → back → closed.
   Six panel image slots:
     panel-1-front-cover.png
     panel-2-inside-flap.png
     panel-3-utilities.png
     panel-4-septic.png
     panel-5-dirt-work.png
     panel-6-back-cover.png
   ============================================================ */
.cu-flip {
  --panel-w: clamp(170px, 21vw, 240px);
  --panel-h: calc(var(--panel-w) * 2.18);
  perspective: 2400px;
  perspective-origin: 50% 50%;
  cursor: pointer;
  user-select: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
}

.cu-flip__stage {
  position: relative;
  width: var(--panel-w);
  height: var(--panel-h);
  transform-style: preserve-3d;
  transition:
    width 1.05s cubic-bezier(0.55, 0.05, 0.2, 1),
    transform 1.05s cubic-bezier(0.55, 0.05, 0.2, 1);
  filter:
    drop-shadow(0 36px 56px rgba(0,0,0,0.32))
    drop-shadow(0 12px 22px rgba(0,0,0,0.14));
}

/* State transforms — each state has its own 3D angle so it always reads as a physical brochure */
.cu-flip[data-state="closed"] .cu-flip__stage {
  width: var(--panel-w);
  transform: rotateY(-22deg) rotateX(6deg);
}
.cu-flip[data-state="inside"] .cu-flip__stage {
  width: calc(var(--panel-w) * 3);
  transform: rotateY(-8deg) rotateX(4deg);
}
.cu-flip[data-state="back"] .cu-flip__stage {
  width: calc(var(--panel-w) * 3);
  transform: rotateY(8deg) rotateX(4deg);
}

/* Each view is a layered panel inside the stage */
.cu-flip__view {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #0a0a0a;
  overflow: hidden;
  opacity: 0;
  transition: opacity .45s cubic-bezier(0.55, 0.05, 0.2, 1);
  pointer-events: none;
  display: flex;
}

.cu-flip__view--cover {
  width: var(--panel-w);
}
.cu-flip__view--inside,
.cu-flip__view--back {
  width: 100%;
}

/* Individual panels inside each view */
.cu-flip__panel {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}
/* Fold-line divider between panels in the open spreads */
.cu-flip__view--inside .cu-flip__panel + .cu-flip__panel,
.cu-flip__view--back   .cu-flip__panel + .cu-flip__panel {
  box-shadow: -1px 0 0 rgba(0,0,0,0.55), -10px 0 14px -10px rgba(0,0,0,0.45);
}

/* Show only the active view */
.cu-flip[data-state="closed"] .cu-flip__view--cover { opacity: 1; }
.cu-flip[data-state="inside"] .cu-flip__view--inside { opacity: 1; }
.cu-flip[data-state="back"]   .cu-flip__view--back   { opacity: 1; }

/* Image */
.cu-flip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}
.cu-flip__img--missing { display: none; }

/* Placeholder shown when image file missing */
.cu-flip__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(ellipse at center, #2a2a2a 0%, #0a0a0a 80%);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
}
.cu-flip__placeholder--cover {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
}
.cu-flip__placeholder-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cu-flip__placeholder-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.32);
  text-transform: lowercase;
}

/* Hint below brochure */
.cu-flip__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color .25s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cu-flip__hint-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
  display: block;
}
.cu-flip[data-state="closed"] .cu-flip__hint-text::before { content: 'Click to open'; }
.cu-flip[data-state="inside"] .cu-flip__hint-text::before { content: 'Click to flip over'; }
.cu-flip[data-state="back"]   .cu-flip__hint-text::before { content: 'Click to close'; }
.cu-flip:hover .cu-flip__hint,
.cu-flip:focus .cu-flip__hint { color: var(--accent); }

@media (max-width: 720px) {
  .cu-flip { --panel-w: min(25vw, 100px); }
  .cu-flip[data-state="inside"] .cu-flip__stage,
  .cu-flip[data-state="back"] .cu-flip__stage { transform: rotateY(0deg) rotateX(3deg); }
}

.btn-primary{
color: white;
background-color: #3AA0E4;
border: none;
padding: 20px;
border-radius: 15px;
}
.mt-3{
  margin-top: 15px;
}