@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@400;500;600;700&display=swap");
@import "variables.css";

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.12);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

.header-inner {
  width: min(
    100% - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px),
    var(--max-width)
  );
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a:not(.btn) {
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-menu a:not(.btn):hover {
  color: var(--color-text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-accent);
}

.nav-phone {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    gap: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s, padding 0.3s;
  }

  .nav-menu:not(.open) {
    pointer-events: none;
  }

  .nav-menu.open {
    max-height: 100vh;
    opacity: 1;
    padding-block: 1.5rem 2rem;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .header-cta .phone-link {
    display: none;
  }

  .nav-phone {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text);
  }

  /* Logo left; menu + Book grouped on the right with reliable spacing */
  .header-inner {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .logo {
    margin-right: auto;
    min-width: 0;
    font-size: clamp(1.05rem, 4.2vw, 1.65rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
  }

  .header-cta {
    flex-shrink: 0;
    position: relative;
    z-index: 5;
  }

  .header-cta .btn {
    min-height: 44px;
    padding-inline: 1rem;
    align-items: center;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Wrapper avoids transform/sizing bugs on <video> in some browsers (blank layer). */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Default when video is on: scrim + stack. Do NOT gate on (prefers-reduced-motion:
   no-preference) — in many environments that query never matches, so the solid
   .hero-bg gradient stayed above the video and hid it completely. */
.hero--has-video .hero-bg {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.58) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(13, 148, 136, 0.1), transparent 50%);
}

.hero--has-video .hero-grid {
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(13, 148, 136, 0.08), transparent 45%),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f9 50%, #f6f8fc 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero--has-video .container {
  z-index: 2;
}

.hero--has-video h1 {
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Beat later .hero .tagline (same specificity) so color isn’t the dark muted default */
.hero.hero--has-video .tagline {
  color: #d1d5db;
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.65),
    0 0 2px rgba(0, 0, 0, 0.45);
}

.hero--has-video .hero-lead {
  color: rgba(226, 232, 240, 0.95);
}

.hero--has-video .hero-badge {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(15, 23, 42, 0.35);
}

.hero--has-video .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.hero--has-video .hero-stat strong {
  color: #f8fafc;
}

.hero--has-video .hero-stat > span:not(.hero-stat-reviews-text) {
  color: rgba(226, 232, 240, 0.85);
}

.hero--has-video .btn-outline {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.45);
}

.hero--has-video .btn-outline:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  animation: fade-up 0.8s var(--ease-out) 0.08s both;
}

.hero .tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  animation: fade-up 0.8s var(--ease-out) 0.15s both;
}

.hero-lead {
  max-width: 32rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  animation: fade-up 0.8s var(--ease-out) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s var(--ease-out) 0.28s both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  animation: fade-up 0.8s var(--ease-out) 0.35s both;
}

.hero-stats-bubble {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.25rem;
  width: fit-content;
  max-width: 100%;
  padding: 1rem 1.35rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow);
}

.hero--has-video .hero-stats-bubble {
  border-color: rgba(147, 197, 253, 0.38);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Full-height separators (stretch row); padding lives on cells so lines span full bubble height */
@media (min-width: 540px) {
  .hero-stats-bubble {
    gap: 1.25rem 0;
  }

  .hero-stats-bubble .hero-stat--bubble-cell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-stats-bubble .hero-stat--bubble-cell:first-child {
    padding-left: 0;
  }

  .hero-stats-bubble .hero-stat--bubble-cell:last-child {
    padding-right: 0;
  }

  .hero-stats-bubble .hero-stat--bubble-cell:not(:first-child) {
    border-left: 1px solid rgba(30, 58, 95, 0.14);
  }

  .hero--has-video .hero-stats-bubble .hero-stat--bubble-cell:not(:first-child) {
    border-left-color: rgba(147, 197, 253, 0.28);
  }
}

.hero-stats-bubble .hero-stat--bubble-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.hero-stats-bubble .hero-stat--bubble-cell strong {
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.hero-stat > span:not(.hero-stat-reviews-text) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero-stat--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Google reviews — same label typography as “Years experience” / “Reply time” */
.hero-stat--reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 13.5rem;
}

.hero-stat-reviews-img {
  width: 144px;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
  /* flex-end on .hero-stat--bubble-cell swallows small margin shifts; translateY is reliable */
  transform: translateY(-6px);
}

.hero-stat.hero-stat--reviews .hero-stat-reviews-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--color-text-muted);
  text-align: center;
}

.hero--has-video .hero-stat.hero-stat--reviews .hero-stat-reviews-text {
  color: rgba(226, 232, 240, 0.85);
}

.hero-stat-reviews-stars {
  color: inherit;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile / iPhone: tighter hero, hide long lead (full copy still on tablet+) */
@media (max-width: 767px) {
  .hero {
    min-height: min(100vh, 880px);
    min-height: min(100dvh, 880px);
    padding-top: calc(var(--header-height) + max(0.75rem, env(safe-area-inset-top, 0px)) + 1.5rem);
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  }

  .hero-lead {
    display: none;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.6875rem;
    padding: 0.3rem 0.7rem;
  }

  .hero .tagline {
    margin-bottom: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.65rem;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-stats {
    padding-top: 1.1rem;
  }
}

/* ----- Sections ----- */
section {
  padding: 5rem 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (max-width: 767px) {
  section {
    padding: 3.75rem 0;
  }

  section[id] {
    scroll-margin-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 0.75rem);
  }
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.section-intro {
  max-width: 42rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin: 0 0 2.5rem;
}

.bg-alt {
  background: var(--color-bg-elevated);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ----- Intro ----- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.intro-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #ffffff, #e8eef7);
  border: 1px solid var(--color-border);
}

.intro-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(37, 99, 235, 0.08));
}

.intro-visual-inner {
  position: absolute;
  inset: 12%;
  border-radius: var(--radius);
  border: 2px dashed rgba(30, 58, 95, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem;
}

/* ----- Package tabs ----- */
.package-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.package-tabs-intro {
  max-width: 42rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  margin: 0 0 2rem;
}

.package-tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.package-tab:hover,
.package-tab.is-active {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.package-panels {
  position: relative;
}

.package-panel {
  display: none;
  animation: panel-in 0.45s var(--ease-out);
}

.package-panel.is-active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.package-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: rgba(201, 162, 39, 0.45);
  position: relative;
}

.package-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.package-tier {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}

.package-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.package-scope {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  max-width: 32rem;
}

.package-scope strong {
  color: var(--color-text);
  font-weight: 600;
}

.package-shampoo-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.package-shampoo-note strong {
  color: var(--color-text);
  font-weight: 600;
}

.package-price-breakdown {
  display: grid;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  font-size: var(--text-sm);
}

.package-price-breakdown > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.package-price-breakdown dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.package-price-breakdown dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
  justify-self: end;
  text-align: right;
}

.package-price-breakdown dd.package-price-breakdown__note {
  font-weight: 600;
  font-size: var(--text-sm);
}

.package-price {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.package-price small {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.package-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
}

@media (max-width: 400px) {
  .package-lists {
    grid-template-columns: 1fr;
  }
}

.package-lists h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.package-lists ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.package-lists li {
  margin-bottom: 0.35rem;
}

/* ----- Our work: Cover Flow (center pops forward; snap + arrows + dots) ----- */
section.our-work-coverflow {
  --cover-w: min(78vw, 320px);
  padding: clamp(2rem, 5vw, 3.5rem) 0 2.5rem;
  overflow: visible;
}

section.our-work-coverflow .container {
  margin-bottom: 1.25rem;
}

section.our-work-coverflow .section-title {
  margin-bottom: 0;
}

section.our-work-coverflow .section-intro {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  section.our-work-coverflow {
    --cover-w: min(52vw, 410px);
  }
}

@media (min-width: 960px) {
  section.our-work-coverflow {
    --cover-w: min(40vw, 480px);
  }
}

.our-work-coverflow__frame {
  position: relative;
  width: min(100% - 0.75rem, min(1280px, calc(var(--max-width) + 6rem)));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 2.25rem);
}

.our-work-coverflow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.our-work-coverflow__nav:hover {
  color: var(--color-accent);
  border-color: rgba(37, 99, 235, 0.35);
  background: #fff;
}

.our-work-coverflow__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.our-work-coverflow__nav--prev {
  left: 0;
}

.our-work-coverflow__nav--next {
  right: 0;
}

.our-work-coverflow__nav span {
  display: block;
  margin-top: -0.12em;
}

.our-work-coverflow__scroller {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: clamp(2rem, 6vw, 3rem) 0 clamp(2rem, 5vw, 2.75rem);
  outline: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Let JS rAF scrolling run without fighting mandatory snap */
.our-work-coverflow__scroller.is-programmatic-scroll {
  scroll-snap-type: none;
}

.our-work-coverflow__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.our-work-coverflow__scroller:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.our-work-coverflow__cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0 max(1rem, calc(50% - var(--cover-w) / 2));
  width: max-content;
}

.our-work-coverflow__cards > li {
  flex: 0 0 var(--cover-w);
  width: var(--cover-w);
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Center slide: JS toggles .is-center — scales up in every browser (no scroll-driven CSS) */
.our-work-coverflow__cards > li.is-center {
  z-index: 15;
}

.our-work-coverflow__cards > li > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transform-origin: center center;
  transform: scale(0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.our-work-coverflow__cards > li.is-center > img {
  transform: scale(1.2);
  box-shadow:
    0 0 0 4px #fff,
    0 20px 48px rgba(15, 23, 42, 0.32);
}

.our-work-coverflow__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.25rem auto 0;
  padding: 0 1rem;
  max-width: 100%;
}

.our-work-coverflow__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.our-work-coverflow__dot:hover {
  background: rgba(30, 58, 95, 0.35);
}

.our-work-coverflow__dot.is-active {
  background: var(--color-text);
  transform: scale(1.15);
}

.our-work-coverflow__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .our-work-coverflow__scroller {
    scroll-behavior: auto;
  }

  .our-work-coverflow__cards > li > img {
    transition-duration: 0.01ms;
    transform: scale(0.92);
  }

  .our-work-coverflow__cards > li.is-center > img {
    transform: scale(1.08);
  }
}

/* ----- Feature cards ----- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
}

.feature-card .eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 0 1.25rem;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ----- Video block ----- */
.video-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  aspect-ratio: 9/16;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.process-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.video-placeholder .play {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

.video-placeholder .play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25);
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item button .icon {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
  color: var(--color-accent);
}

.faq-item.is-open button .icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-panel p {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

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

.contact-form label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

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

.form-status {
  font-size: var(--text-sm);
  min-height: 1.5rem;
}

.contact-info {
  padding: 2rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 0 1rem;
}

/* ----- Footer ----- */
.site-footer {
  padding: 3rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--color-footer-text);
}

.footer-brand span {
  color: #93c5fd;
}

.site-footer .footer-grid > div > p {
  color: var(--color-footer-muted);
}

.footer-col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  text-align: center;
}

/* —— Legal pages (privacy, terms) —— */
.legal-body {
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-header__back {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.legal-container {
  max-width: 42rem;
}

.legal-article h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.legal-article h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 2rem 0 0.75rem;
}

.legal-article h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-article p,
.legal-article li {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
}

.legal-article p {
  margin: 0 0 1rem;
}

.legal-article ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article a {
  color: var(--color-accent);
  font-weight: 600;
}

.legal-cross {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-footer .footer-bottom a {
  display: inline;
  padding: 0 0.2rem;
  color: var(--color-footer-muted);
}

.legal-footer .footer-bottom a:hover {
  color: #fff;
}
