/* ============================================================
   CEREBRO SOFTWARE — Design System v2
   Font: Hanken Grotesk (display) + Inter (body)
   Palette: #ffffff bg / #0a0a0a text
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  line-height: 1.65;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --c-bg:           #ffffff;
  --c-text:         #0a0a0a;
  --c-muted:        #888888;
  --c-muted-light:  #bbbbbb;
  --c-line:         rgba(10, 10, 10, 0.07);
  --c-line-strong:  rgba(10, 10, 10, 0.13);

  --ff-display: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --container:  1200px;
  --nav-h:      76px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section { padding: 8rem 0; }

/* ── GSAP — initial hidden state ─────────────────────────── */
.nav,
.hero-side,
.hero-scene,
.hero-progress,
.mission-eyebrow, .mission-headline, .mission-body,
.section-eyebrow, .section-headline, .section-intro,
.pricing-intro, .service-card, .product-card,
.pricing-card, .why-headline, .why-item,
.contact-eyebrow, .contact-headline, .contact-intro,
.contact-direct, .contact-hint, .contact-form,
.footer-statement-head, .footer-cta-link,
.footer-col, .footer-credits {
  opacity: 0;
}

/* ══════════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════════ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  /* Starts visible — JS will exit it */
}

/* Scan-line micro-motion: a barely-visible horizontal gradient band
   sweeps down once, giving the "system activating" feeling */
.preloader-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.preloader-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 10, 10, 0.028) 50%,
    transparent 100%
  );
  animation: preloaderScan 1.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  /* Starts from above viewport, exits below */
  transform: translateY(-100%);
}

@keyframes preloaderScan {
  from { transform: translateY(-100%); }
  to   { transform: translateY(300%); }
}

/* Center composition */
.preloader-inner {
  width: min(520px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Brand block */
.preloader-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.preloader-logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-text);
  /* GSAP animates this in */
}

.preloader-tagline {
  font-family: var(--ff-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--c-muted);
  /* GSAP animates this in */
}

/* Progress bar area */
.preloader-progress-wrap {
  /* GSAP fades this in */
}

.preloader-progress {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.preloader-track {
  flex: 1;
  height: 1px;
  background: rgba(10, 10, 10, 0.13);
  overflow: hidden;
  position: relative;
}

.preloader-fill {
  position: absolute;
  inset: 0;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: left center;
  /* width driven by JS via transform: scaleX() */
}

.preloader-pct {
  font-family: var(--ff-body);
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  /* Tabular numbers — prevents layout shift during count */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  min-width: 2.2ch;
  text-align: right;
}

/* Bottom editorial details */
.preloader-foot {
  position: absolute;
  bottom: 2.2rem;
  left: 2.5rem;
  right: 2.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted-light);
  pointer-events: none;
}

/* ── Cursor ─────────────────────────────────────────────── */
.cursor {
  display: none;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
}

.cursor-inner {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-text);
  transition: width .2s var(--ease-out), height .2s var(--ease-out);
}

.cursor-outer {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-text);
  opacity: 0.3;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s;
}

.cursor--hover .cursor-inner  { width: 12px; height: 12px; }
.cursor--hover .cursor-outer  { width: 56px; height: 56px; opacity: 0.15; }
.cursor--hidden .cursor-inner,
.cursor--hidden .cursor-outer  { opacity: 0; }

.cursor--light .cursor-inner { background: #fff; }
.cursor--light .cursor-outer { border-color: rgba(255,255,255,0.45); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background .4s, box-shadow .4s;
}

.nav--scrolled {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-line);
}

.nav-logo {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.16em;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: 0.55; }
.nav-logo:focus { outline: none; }
.nav-logo:focus-visible { outline: 1px solid var(--c-muted-light); outline-offset: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  position: relative;
  transition: opacity .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--c-text);
  transition: width .28s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { opacity: 0.65; }

.nav-link--cta {
  border: 1px solid var(--c-line-strong);
  padding: .45rem 1.1rem;
  border-radius: 2px;
  transition: background .22s, color .22s, border-color .22s;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover  {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
  opacity: 1;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--c-text);
  transition: transform .28s var(--ease-out), opacity .28s;
}
.menu-btn--open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-btn--open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--c-bg);
}

.brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero side labels ────────────────────────────────────── */
.hero-side {
  position: absolute;
  z-index: 3;
  bottom: 3.5rem;
  font-family: var(--ff-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  user-select: none;
}
.hero-side--left { left: 2.4rem; }

/* ── Hero scenes ─────────────────────────────────────────── */
/*  Each scene is absolutely positioned — GSAP crossfades them  */
.hero-scene {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* Scene 0 — Centered, lower-third introduction */
.hero-scene--0 {
  left: 50%;
  bottom: 13vh;
  transform: translateX(-50%);
  text-align: center;
  /* no width constraint — headline is nowrap, sets its own width */
}

/* Scene 1 — Lower-left, left-aligned, asymmetric */
.hero-scene--1 {
  left: 5.5vw;
  bottom: 9vh;
  text-align: left;
  max-width: 680px;
}

/* Scene 2 — Wide center, dramatic full-width headline */
.hero-scene--2 {
  left: 50%;
  bottom: 16vh;
  transform: translateX(-50%);
  text-align: center;
  width: min(1100px, 96vw);
}

/* Scene 3 — Brand ending, vertically centered */
.hero-scene--3 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(900px, 92vw);
}

/* ── Hero typography ─────────────────────────────────────── */
.hero-overline {
  position: absolute;
  top: calc(var(--nav-h) + 4.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  pointer-events: none;
}

.hero-label {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--c-text);
}

/* Word reveal spans — inline-block for GSAP transform; opacity:0 prevents flash before JS runs */
.hw { display: inline-block; opacity: 0; }

/* Scene-specific headline sizes */
.hero-scene--0 .hero-headline {
  font-size: clamp(3rem, 6vw, 7.2rem);
  margin-bottom: 2.4rem;
  white-space: nowrap; /* guarantees exactly 2 lines — only <br> breaks allowed */
}

.hero-scene--1 .hero-headline {
  font-size: clamp(3.2rem, 6.8vw, 8.5rem);
  line-height: 0.93;
}

.hero-scene--2 .hero-headline {
  font-size: clamp(3.5rem, 7.8vw, 9.8rem);
  line-height: 0.93;
}

/* Brand ending — all caps, spaced */
.hero-headline--brand {
  font-size: clamp(3.8rem, 8.5vw, 10.5rem) !important;
  line-height: 0.92 !important;
  letter-spacing: 0.02em !important;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.hero-scene-eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.4rem;
  display: block;
}

.hero-scene-sub,
.hero-scene-url {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  margin-top: 1.75rem;
}

.hero-scene-url {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* ── Right progress indicator (desktop only) ─────────────── */
.hero-progress {
  position: absolute;
  right: 2.4rem;
  bottom: 2.8rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
  user-select: none;
}

.hero-progress-line {
  width: 1px;
  height: 32px;
  background: var(--c-text);
  opacity: 0.18;
  animation: scrollPulse 2.8s ease-in-out infinite;
}

.hero-progress-count,
.hero-progress-scroll {
  font-family: var(--ff-body);
  font-size: 0.575rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

.hero-progress-scroll { opacity: 0.55; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.40; }
}

/* ── Mission ─────────────────────────────────────────────── */
.section-mission {
  border-top: 1px solid var(--c-line);
}

.mission-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  align-items: start;
}

.mission-eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-top: 0.6rem;
}

.mission-headline {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.8vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 2rem;
}
.mission-headline em {
  font-style: italic;
  font-weight: 700;
}

.mission-body p {
  font-size: 1rem;
  line-height: 1.78;
  color: #444;
  max-width: 580px;
}

/* ── Section header ──────────────────────────────────────── */
.section-header { margin-bottom: 4rem; }

.section-eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--c-text);
}

.section-products .section-headline {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
}

.section-intro {
  margin-top: 1.3rem;
  font-size: 1rem;
  color: #555;
  max-width: 540px;
  line-height: 1.72;
}

/* ── Services ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  padding: 3rem;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  transition: background .22s;
}
.service-card:hover { background: #f9f9f9; }

.service-card-index {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  color: var(--c-muted);
  margin-bottom: 1.6rem;
}

.service-card-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.service-card-desc {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.72;
  margin-bottom: 1.75rem;
  max-width: 380px;
}

.service-list { margin-bottom: 0; }

.service-list li {
  font-size: 0.88rem;
  color: #444;
  padding: .55rem 0;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.service-list li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-text);
  opacity: 0.28;
  flex-shrink: 0;
}

.card-link {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 2px;
  margin-top: auto;
  padding-top: 2rem;
  transition: gap .22s var(--ease-out), opacity .2s;
}
.card-link:hover { gap: .7rem; opacity: .65; }
.card-link .arrow { transition: transform .2s var(--ease-out); }
.card-link:hover .arrow { transform: translateX(4px); }

/* ── Products ────────────────────────────────────────────── */
.section-products {
  background: #f8f8f8;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.product-card-header { margin-bottom: 1.5rem; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-version {
  font-family: var(--ff-body);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--c-text);
  color: #fff;
  padding: .2rem .55rem;
  border-radius: 4px;
}

.product-tag {
  font-family: var(--ff-body);
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--c-muted);
  border: 1px solid var(--c-line-strong);
  padding: .2rem .55rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

.product-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.product-desc {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.72;
  margin-bottom: 1.75rem;
}

.product-features { flex: 1; margin-bottom: 2rem; }

.product-features li {
  font-size: 0.86rem;
  color: #444;
  padding: .48rem 0;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.product-features li::before {
  content: '';
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  flex-wrap: wrap;
}

.price-amount {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.82rem;
  color: var(--c-muted);
}

.price-note {
  font-size: 0.72rem;
  color: var(--c-muted);
  border: 1px solid var(--c-line-strong);
  padding: .15rem .5rem;
  border-radius: 2px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  padding: .72rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .22s, color .22s, border-color .22s, transform .18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn--outline:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

.btn--dark {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}
.btn--dark:hover { background: #222; }

.btn--white {
  background: #fff;
  color: var(--c-text);
  border-color: #fff;
}
.btn--white:hover { background: #e8e8e8; border-color: #e8e8e8; }

.btn--full { width: 100%; }

/* ── Medical / Pricing ───────────────────────────────────── */
.pricing-intro {
  margin-top: 1.3rem;
  font-size: 1rem;
  color: #555;
  max-width: 520px;
  line-height: 1.72;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pricing-card {
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.pricing-card--featured {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}
.pricing-card--featured .pricing-tier,
.pricing-card--featured .pricing-setup { color: rgba(255,255,255,0.55); }
.pricing-card--featured .price-main,
.pricing-card--featured .price-per { color: #fff; }
.pricing-card--featured .pricing-features li { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.10); }
.pricing-card--featured .pricing-features li::before { color: rgba(255,255,255,0.3); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-bottom: .35rem;
}

.price-main {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-per {
  font-size: 0.88rem;
  color: var(--c-muted);
}

.pricing-setup {
  font-size: 0.76rem;
  color: var(--c-muted);
  margin-bottom: 1.75rem;
}

.pricing-features {
  flex: 1;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-features li {
  font-size: 0.84rem;
  color: #444;
  padding: .5rem 0;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.45;
}
.pricing-features li::before {
  content: '—';
  font-size: 0.72rem;
  color: #bbb;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Why Cerebro ─────────────────────────────────────────── */
.section-why { border-top: 1px solid var(--c-line); }

.why-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
}

.why-left {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.why-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 5vw, 5.5rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.why-typewriter {
  margin-top: 2rem;
  min-height: 3.5rem;
}

.why-typewriter__text {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.why-typewriter__cursor {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--c-text);
  opacity: 1;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 767px) {
  .why-typewriter {
    margin-top: 1rem;
    min-height: 2.8rem;
  }
  .why-typewriter__text,
  .why-typewriter__cursor {
    font-size: 0.82rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}

.why-item {
  padding: 2.5rem 2.25rem;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transition: background .22s;
}
.why-item:hover { background: #f9f9f9; }

.why-number {
  font-family: var(--ff-body);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}

.why-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.why-text {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.72;
}

/* ── Contact ─────────────────────────────────────────────── */
.section-contact {
  border-top: 1px solid var(--c-line);
  background: #f8f8f8;
}

.contact-layout {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 3rem;
  align-items: start;
  overflow: visible;
}

.contact-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.5rem;
  white-space: nowrap;
  overflow: visible;
}

.contact-swap {
  display: inline-block;
  overflow: visible;
  position: relative;
}

.contact-swap__text {
  display: block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s ease;
  opacity: 1;
}

.contact-swap__text.swap-exit {
  transform: translateY(120%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s ease;
}

.contact-swap__text.swap-enter-from {
  transform: translateY(-120%);
  opacity: 0;
  transition: none;
}

.contact-swap__text.swap-enter-active {
  transform: translateY(0);
  opacity: 1;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s ease;
}

.contact-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.72;
  margin-bottom: 2.5rem;
}

.contact-direct {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.contact-email {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 2px;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .55; }

.copy-msg {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #fff;
  background: var(--c-text);
  padding: .25rem .6rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  white-space: nowrap;
}
.copy-msg.visible { opacity: 1; transform: translateY(0); }

.copy-msg--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.contact-hint {
  font-size: 0.70rem;
  color: var(--c-muted);
  letter-spacing: .03em;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  padding: 2.75rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
}

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

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

.form-label {
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.5;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus { outline: none; border-color: var(--c-text); }
.form-input::placeholder { color: #c0c0c0; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-submit {
  width: 100%;
  padding: .95rem;
  font-size: .88rem;
  letter-spacing: .04em;
}
.form-submit--sent { opacity: .5; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   FOOTER — Editorial, cinematic
══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  isolation: isolate; /* scopes canvas z-index:-1 to footer stacking context */
  background: var(--c-text);
  color: rgba(255,255,255,0.85);
  overflow: hidden; /* keeps wordmark from extending the page */
  padding-bottom: 0;
}

#footerClusterCanvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  pointer-events: none;
  z-index: -1;
}

/* Opening statement */
.footer-statement {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-statement-head {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.8rem;
  max-width: 900px;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.footer-cta-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Columns */
.footer-body {
  padding: 2.8rem 0 2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-col-label {
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: .35rem;
}

.footer-col a {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  transition: color .18s;
  display: inline-block;
}
.footer-col a:hover { color: #fff; }

.footer-email-link {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.7) !important;
}
.footer-email-link:hover { color: #fff !important; }

/* Credits */
.footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: .03em;
}

.footer-sep {
  opacity: 0.4;
  letter-spacing: .08em;
}

/* Large cropped wordmark */
.footer-wordmark-wrap {
  overflow: hidden;
  height: 0.55em;
  font-size: 16vw;
  line-height: 1;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-wordmark {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: inherit;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.14);
  white-space: nowrap;
  user-select: none;
  /* Slight upward translate adds depth to the crop */
  transform: translateY(0);
}

/* ── Mobile nav animation ────────────────────────────────── */
@keyframes navOverlayIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-left { position: static; }
}

@media (max-width: 1024px) {
  .section { padding: 6rem 0; }
  .section-header { margin-bottom: 3.5rem; }
  .why-layout { gap: 4rem; }
  .contact-layout { gap: 4rem; }
}

@media (max-width: 900px) {
  .hero-scene--1 { left: 4vw; }
  .hero-scene--2 .hero-headline { font-size: clamp(3.5rem, 8vw, 9rem); }

  .mission-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .service-card-desc { max-width: 100%; }
  .mission-body p { max-width: 100%; font-size: 0.82rem; line-height: 1.65; }
  .section-intro { max-width: 100%; }
  .product-card { padding: 2.25rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }

  /* ── Mobile nav overlay ────────────────────────────────────── */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--c-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: max(5rem, env(safe-area-inset-top));
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }
  .nav-links--open {
    display: flex;
    animation: navOverlayIn 0.38s var(--ease-out);
  }
  .nav-link {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .nav-link::after { display: none; }
  .nav-link--cta {
    border: 1px solid var(--c-line-strong);
    padding: 0.65rem 2.2rem;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 1;
  }
  .nav-menu-btn {
    display: flex;
    z-index: 100;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 6px;
    gap: 6px;
  }

  /* CEREBRO brand mark at top of overlay */
  .nav-links::before {
    content: 'CEREBRO';
    position: absolute;
    top: max(1.6rem, env(safe-area-inset-top));
    left: 0; right: 0;
    text-align: center;
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.20em;
    color: var(--c-muted);
    opacity: 0.32;
    pointer-events: none;
  }

  /* Nav link stagger on open */
  .nav-links--open .nav-link { animation: navLinkIn 0.48s var(--ease-out) both; }
  .nav-links--open .nav-link:nth-child(1) { animation-delay: 0.04s; }
  .nav-links--open .nav-link:nth-child(2) { animation-delay: 0.09s; }
  .nav-links--open .nav-link:nth-child(3) { animation-delay: 0.14s; }
  .nav-links--open .nav-link:nth-child(4) { animation-delay: 0.19s; }

  /* ── Layout ────────────────────────────────────────────────── */
  .why-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }

  /* ── Footer ─────────────────────────────────────────────────── */
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  .footer-statement { padding: 2rem 0 1.5rem; }
  .footer-statement-head {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .footer-cta-link { font-size: 0.88rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
  .footer-col { gap: 0.5rem; }
  .footer-col-label { margin-bottom: 0.2rem; }
  .footer-col a { font-size: 0.82rem; }
  .footer-body { padding: 1.5rem 0 1rem; }
  .footer-credits { gap: .3rem .6rem; font-size: 0.62rem; }
  .footer-sep { display: none; }
  .footer-wordmark-wrap {
    font-size: 20vw;
    height: 0.62em;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
  }
  .footer-wordmark {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .footer {
    padding-bottom: 0;
  }

  /* ── Misc ───────────────────────────────────────────────────── */
  .section-header { margin-bottom: 2.5rem; }
  .why-item { padding: 2rem 1.5rem; }
  .mission-headline { font-size: clamp(1.25rem, 5.2vw, 1.6rem); line-height: 1.15; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Sections */
  .section-headline { font-size: clamp(2rem, 9vw, 3rem); }
  .section-products .section-headline { font-size: clamp(1.65rem, 7.5vw, 2.4rem); }
  .mission-headline { font-size: clamp(1.25rem, 5.2vw, 1.6rem); line-height: 1.15; }
  .section-header { margin-bottom: 2rem; }
  .contact-form { padding: 1.5rem; }

  /* Footer */
  .footer-statement { padding: 1.5rem 0 1.25rem; }
  .footer-statement-head { font-size: clamp(1.85rem, 8vw, 2.5rem); margin-bottom: 0.85rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-body { padding: 1.25rem 0 0.75rem; }
  .footer-credits { font-size: 0.60rem; }
  .footer-wordmark-wrap {
    font-size: 20vw;
    height: 0.62em;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
  }
  .footer-wordmark {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    line-height: 1;
    letter-spacing: -0.03em;
  }

}

/* ── FINAL MOBILE HERO — scene-by-scene desktop-inspired layout ───────── */
@media (max-width: 768px) {
  #hero {
    display: block !important;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--c-bg);
  }

  .brain-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  /* Horizontal overline — lower, closer to brain */
  .hero-overline {
    top: calc(var(--nav-h) + 7rem);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 92vw;
    text-align: center;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.145em;
    white-space: nowrap;
    opacity: 0.78;
    z-index: 3;
  }

  /* Keep progress hidden on mobile */
  .hero-progress {
    display: none !important;
  }

  /* Vertical side label — subtle desktop vibe */
  .hero-side {
    display: block !important;
    position: absolute;
    z-index: 3;
    bottom: 0.95rem;
    font-family: var(--ff-body);
    font-size: 0.43rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--c-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    user-select: none;
    opacity: 0.48;
  }

  .hero-side--left {
    left: 0.5rem;
  }

  .hero-scene {
    z-index: 2;
    pointer-events: none;
  }

  /*
    Scene 01:
    Desktop mood: centered cinematic intro.
    Mobile: centered, close to brain, compact.
  */
  .hero-scene--0 {
    left: 50%;
    bottom: 23vh;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 92vw;
    padding: 0 0.5rem;
    text-align: center;
  }

  .hero-scene--0 .hero-headline {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    white-space: normal;
    margin-bottom: 0.9rem;
  }

  .hero-scene--0 .hero-headline .hw {
    display: inline;
  }

  .hero-scene--0 .hero-headline br {
    display: block;
  }

  .hero-meta {
    justify-content: center;
    gap: 0.52rem;
    font-size: 0.48rem;
    letter-spacing: 0.03em;
    opacity: 0.58;
  }

  /*
    Scene 02:
    Desktop mood: big left-aligned message, brain to the side.
    Mobile: left-aligned lower-left composition, not centered.
  */
  .hero-scene--1 {
    left: 1.5rem;
    right: 1.5rem;
    bottom: auto;
    top: 68vh;
    transform: none;
    width: auto;
    max-width: 88vw;
    text-align: left;
  }

  .hero-scene--1 .hero-scene-eyebrow {
    font-size: 0.50rem;
    letter-spacing: 0.135em;
    margin-bottom: 0.65rem;
    opacity: 0.75;
  }

  .hero-scene--1 .hero-headline {
    font-size: clamp(1.55rem, 6.8vw, 2.2rem);
    line-height: 0.88;
    letter-spacing: -0.052em;
    text-align: left;
  }

  /*
    Scene 03:
    Desktop mood: dramatic central statement.
    Mobile: centered but controlled.
  */
  .hero-scene--2 {
    left: 50%;
    bottom: 24vh;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 92vw;
    text-align: center;
  }

  .hero-scene--2 .hero-headline {
    font-size: clamp(1.55rem, 6.8vw, 2.2rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-align: center;
  }

  /*
    Scene 04:
    Brand ending.
  */
  .hero-scene--3 {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 94vw;
    max-width: 94vw;
    text-align: center;
  }

  .hero-headline--brand {
    font-size: clamp(2.8rem, 12vw, 4.4rem) !important;
    line-height: 0.9 !important;
  }
}

@media (max-width: 390px) {
  .hero-overline {
    top: calc(var(--nav-h) + 6.55rem);
    font-size: 0.49rem;
    letter-spacing: 0.13em;
  }

  .hero-side {
    bottom: 0.85rem;
    left: 0.45rem;
    font-size: 0.40rem;
    letter-spacing: 0.12em;
    opacity: 0.42;
  }

  .hero-scene--0 {
    bottom: 22.5vh;
    padding: 0 1rem;
  }

  .hero-scene--0 .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
    line-height: 0.94;
  }

  .hero-meta {
    font-size: 0.45rem;
    gap: 0.48rem;
  }

  .hero-scene--1 {
    left: 1.9rem;
    right: 1rem;
    bottom: 14vh;
    max-width: 84vw;
  }

  .hero-scene--1 .hero-headline {
    font-size: clamp(2.05rem, 11.5vw, 3.55rem);
    line-height: 0.88;
  }

  .hero-scene--2 {
    bottom: 23vh;
    width: 92vw;
  }

  .hero-scene--2 .hero-headline {
    font-size: clamp(2.1rem, 10.5vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .hero-scene--2 .hero-scene-sub,
  .hero-scene--2 .hero-scene-url {
    font-size: 0.46rem !important;
    letter-spacing: 0.07em !important;
    line-height: 1.4 !important;
    opacity: 0.55 !important;
    margin-top: 0.75rem !important;
  }
}

@media (max-width: 390px) {
  .hero-scene--2 .hero-scene-sub,
  .hero-scene--2 .hero-scene-url {
    font-size: 0.42rem !important;
    letter-spacing: 0.06em !important;
    opacity: 0.52 !important;
    margin-top: 0.65rem !important;
  }
}

/* ══════════════════════════════════════════════════════════
   REEL OVERLAY
══════════════════════════════════════════════════════════ */

/* ── Trigger button — sits inside hero scene 3 ───────────── */
.reel-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  padding: 0.58rem 1.5rem;
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.24s var(--ease-out),
              background 0.24s var(--ease-out),
              border-color 0.24s var(--ease-out);
  position: relative;
  z-index: 4;
}

.reel-btn::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.reel-btn:hover {
  color: #fff;
  background: var(--c-text);
  border-color: var(--c-text);
}

.reel-btn:focus-visible {
  outline: 1px solid var(--c-muted-light);
  outline-offset: 5px;
}

/* ── Fullscreen overlay ──────────────────────────────────── */
.reel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.reel-overlay.reel-overlay--open {
  opacity: 1;
  pointer-events: all;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='white'/%3E%3C/svg%3E") 8 8, auto;
}

.reel-overlay__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-overlay__close span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: background 0.2s;
}
.reel-overlay__close span:first-child { transform: rotate(45deg); }
.reel-overlay__close span:last-child  { transform: rotate(-45deg); }
.reel-overlay__close:hover span { background: #fff; }

.reel-overlay__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.reel-overlay__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Lang switcher ───────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.lang-btn {
  font-family: var(--ff-body);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.1rem;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn--active {
  color: var(--c-text);
}

.lang-sep {
  color: var(--c-muted-light);
  font-size: 0.65rem;
}

/* ── Mobile reel / lang adjustments ─────────────────────── */
@media (max-width: 767px) {
  .reel-btn {
    font-size: 0.60rem;
    padding: 0.55rem 1.2rem;
    margin-top: 2rem;
  }
  .reel-overlay__close { top: 18px; right: 18px; }
  .reel-overlay__video {
    object-fit: contain;
  }
  .lang-switcher {
    display: flex;
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
  }
  .lang-btn {
    font-size: 0.82rem;
    letter-spacing: 0.10em;
  }
  .lang-sep {
    font-size: 0.82rem;
  }
}

/* ── Method Section ───────────────────────────────────────────────── */
.section-method {
  padding: 8rem 0;
  background: #fff;
}

/* ── Method Timeline ─────────────────────────────────────────────── */
.method-timeline {
  position: relative;
  margin-top: 5rem;
  padding-left: 2.5rem;
}

.method-timeline-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0.5px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.method-timeline-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--line-progress, 0) * 100%);
  background: #000;
  transition: none;
}

.method-step {
  position: relative;
  display: flex;
  gap: 3rem;
  padding-bottom: 4rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.method-step.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.method-step:last-child { padding-bottom: 0; }

.method-step-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-3px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method-step.is-visible .method-step-dot {
  transform: translateX(-3px) scale(1.3);
}
.method-step-dot.is-lit {
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08), 0 0 0 8px rgba(0,0,0,0.04);
  transform: translateX(-3px) scale(1.5);
}

.method-step-card {
  flex: 1;
  max-width: 640px;
}

.method-number {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.method-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.method-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.55);
  max-width: 520px;
}

@media (max-width: 767px) {
  .method-timeline { padding-left: 1.5rem; }
  .method-step-dot { left: -1.5rem; }
  .method-step { gap: 1.5rem; }
  .method-title { font-size: clamp(1.55rem, 6.5vw, 2rem); }
}

/* ── Greek language — hero headline size reduction ───────── */
:lang(el) .hero-headline,
html[lang="el"] .hero-headline {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

@media (max-width: 768px) {
  :lang(el) .hero-scene--0 .hero-headline,
  html[lang="el"] .hero-scene--0 .hero-headline {
    font-size: clamp(1.55rem, 6.8vw, 2.2rem);
  }

  :lang(el) .hero-scene--1 .hero-headline,
  html[lang="el"] .hero-scene--1 .hero-headline {
    font-size: clamp(1.9rem, 8.5vw, 2.7rem);
  }

  :lang(el) .hero-scene--2 .hero-headline,
  html[lang="el"] .hero-scene--2 .hero-headline {
    font-size: clamp(1.9rem, 8.5vw, 2.7rem);
  }
}

/* ── Greek language — footer & contact headline size ─────── */
html[lang="el"] .footer-statement-head,
html[lang="el"] .contact-headline {
  font-size: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 768px) {
  html[lang="el"] .footer-statement-head {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    line-height: 1.12;
  }
}
