/* ================================================
   BUILT DIFFERENT — Design System & Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Ink (near-black) — all dark elements */
  --ink:          #0C0C0A;
  --ink-2:        #161614;
  --ink-3:        #1E1E1C;
  --ink-card:     #232320;

  /* Light backgrounds */
  --white:        #FFFFFF;
  --cannoli:      #F2EDE5;   /* cannoli cream */
  --off-white:    #EAE3D9;   /* slightly deeper cannoli */
  --moonlit:      #0F1822;   /* dark moonlit night */
  
  /* Brand accents */
  --bering:       #637B97;   /* Bering Sea blue */
  --pool-aqua:    #6ABDC6;   /* Pool aqua */
  --sea-pearl:    #C9BAA1;   /* Sea pearl */

  /* ── Borders ─────────────────────────────────── */
  --border:       rgba(201,186,161,0.40);   /* sea-pearl tint, light */
  --border-mid:   rgba(201,186,161,0.70);   /* sea-pearl tint, mid   */
  --border-strong:rgba(99,123,151,0.30);    /* bering tint           */

  /* ── Accent (maps to old --red token names for cascade) ── */
  --red:          #637B97;   /* NOW = Bering Sea blue    */
  --red-hover:    #7591AA;   /* lighter bering on hover  */
  --red-muted:    rgba(99,123,151,0.08);
  --red-border:   rgba(99,123,151,0.25);

  /* ── Body Text ───────────────────────────────── */
  --body:         #3A3532;   /* warm dark on cream  */
  --body-mid:     #6A6460;   /* mid-tone on cream   */
  --body-soft:    #9A9490;   /* soft/placeholder    */

  /* ── Dark section overlays (moonlit sections) ── */
  --w90:          rgba(242,237,229,0.92);   /* cannoli-tinted white */
  --w70:          rgba(242,237,229,0.72);
  --w40:          rgba(242,237,229,0.42);
  --w15:          rgba(242,237,229,0.15);
  --w07:          rgba(242,237,229,0.07);
  --dark-border:  rgba(242,237,229,0.10);
  --dark-card-bg: rgba(242,237,229,0.05);

  /* ── Typography ──────────────────────────────── */
  --font-display: 'Antic Didone', Georgia, 'Times New Roman', serif;
  --font-body:    'Avenir Next', 'Avenir', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Layout ──────────────────────────────────── */
  --section-py:     120px;
  --container-max:  1200px;
  --container-px:   40px;

  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cannoli);
  color: var(--body);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* === TYPOGRAPHY HELPERS === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;           /* Increased slightly to prevent italic clipping */
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  display: inline-block;       /* Helps browser calculate correct width for leaning letters */
  padding-right: 0.05em;       /* Room for italic overhang on the right */
  color: var(--red);
}
/* Title on dark sections */
.on-dark .section-title { color: var(--white); }
.on-dark .section-label { color: rgba(200,24,26,0.9); }
.on-dark .section-label::before { background: rgba(200,24,26,0.9); }
.on-dark .section-desc { color: var(--w70); }

.section-desc {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 64px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.26s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,24,26,0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,21,30,0.4); /* Subtle dark base so logo is visible */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease);
}
/* ── Initial state: over dark moonlit hero ── */
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;          /* Antic Didone looks best at regular weight */
  letter-spacing: 0.04em;
  color: var(--w90);
  display: flex;
  align-items: center;
  gap: 3px;
  direction: ltr !important; /* Prevent "Different Built" in RTL */
}
.nav-logo .logo-diff { color: var(--pool-aqua); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w70);
  transition: color 0.22s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--pool-aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: rgba(242,237,229,0.14) !important;
  color: var(--white) !important;
  border: 1px solid rgba(242,237,229,0.30) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: all 0.22s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--bering) !important;
  border-color: var(--bering) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--w90);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Scrolled state: over light cannoli content ── */
.nav.scrolled {
  background: rgba(242,237,229,0.99); /* Increased opacity for cleaner mobile look */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-mid);
  box-shadow: 0 1px 12px rgba(36,51,72,0.06);
}
.nav.scrolled .nav-logo { color: var(--moonlit); }
.nav.scrolled .logo-diff { color: var(--bering); } /* Deeper color for better light-mode visibility */
.nav.scrolled .nav-logo { color: var(--moonlit); }
.nav.scrolled .nav-logo .logo-diff { color: var(--bering); }
.nav.scrolled .nav-links a { color: var(--body-mid); }
.nav.scrolled .nav-links a:hover { color: var(--moonlit); }
.nav.scrolled .nav-links a::after { background: var(--bering); }
.nav.scrolled .nav-cta {
  background: var(--moonlit) !important;
  color: var(--white) !important;
  border-color: var(--moonlit) !important;
}
.nav.scrolled .nav-cta:hover { background: var(--bering) !important; border-color: var(--bering) !important; }
.nav.scrolled .nav-toggle span { background: var(--moonlit); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(242,237,229,0.99);
  border-top: 1px solid var(--border);
  padding: 16px 40px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--body);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--bering); }
.nav-mobile a:last-child { border-bottom: none; }

/* ================================================
   HERO — dark moonlit background, light text
   ================================================ */
.hero {
  min-height: 100vh;
  padding-top: 140px;          /* Offset for nav + marquee */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 160px 0 160px;
  background: var(--moonlit);
}

/* Architectural background elements */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Ghost watermark — sits on the right, balances the left-aligned text */
.hero-watermark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(180px, 22vw, 320px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,237,229,0.09);
  line-height: 0.88;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}
/* Bering blue left-edge architectural bar */
.hero-line-left {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--bering), var(--pool-aqua) 60%, transparent);
}
/* Subtle light grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,237,229,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,237,229,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 50%, black 10%, transparent 70%);
}
/* Bering blue corner gradient glow */
.hero-corner {
  position: absolute;
  top: 0; right: 0;
  width: 50vw; height: 50vw; max-width: 800px;
  background: radial-gradient(ellipse at top right, rgba(99,123,151,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Moving Marquee band — dynamically grounds the bottom of the Hero section */
.hero-marquee-track {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: var(--sea-pearl);
  padding: 12px 0;
  overflow: hidden;
  z-index: 10;
}
.hero-marquee-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marqueeScroll 36s linear infinite;
}
.hero-marquee-inner span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moonlit);
  flex-shrink: 0;
  opacity: 0.85;
}
.hero-marquee-inner .marquee-dot {
  color: var(--bering);
  opacity: 1;
  font-size: 8px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero content — full-width container, text left-aligned */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;              /* KEY: left-aligned editorial layout */
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--container-px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--w70);
  background: transparent;
  border: 1px solid var(--dark-border);
  padding: 9px 24px;
  border-radius: 100px;
  margin-bottom: 40px;
  animation: fadeUp 0.9s var(--ease) both;
}
.hero-eyebrow .canada-dot {
  font-size: 14px;             /* 🇨🇦 emoji */
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 400;            /* Antic Didone — elegant at regular weight */
  line-height: 0.97;
  color: var(--w90);
  max-width: 900px;            /* Controls line breaks: 3 clean lines */
  margin-bottom: 0;            /* replaced by .hero-rule below */
  animation: fadeUp 0.9s var(--ease) 0.12s both;
  letter-spacing: -0.01em;
}
.hero-headline em {
  display: block;
  font-style: italic;
  color: var(--pool-aqua);     /* aqua italic — the one color moment */
  margin-top: 0.04em;
}

/* Thin editorial rule — sits between headline and sub */
.hero-rule {
  width: 56px;
  height: 1px;
  background: var(--bering);
  margin: 36px 0 36px;
  animation: fadeUp 0.9s var(--ease) 0.22s both;
  opacity: 0.8;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--w70);
  max-width: 460px;            /* narrower than headline — editorial triangle */
  margin: 0 0 44px;            /* left-aligned, no auto */
  animation: fadeUp 0.9s var(--ease) 0.32s both;
  font-weight: 300;
  letter-spacing: 0.025em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: flex-start; /* left-aligned, not centered */
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.9s var(--ease) 0.44s both;
}
.hero-ctas .btn-primary {
  background: var(--cannoli);
  color: var(--moonlit);
}
.hero-ctas .btn-primary:hover {
  background: var(--white);
  box-shadow: 0 12px 40px rgba(242,237,229,0.2);
}
.hero-ctas .btn-ghost {
  color: var(--w90);
  border-color: var(--dark-border);
}
.hero-ctas .btn-ghost:hover {
  background: var(--bering);
  border-color: var(--bering);
  color: var(--white);
}

.hero-stats {
  display: flex;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(242,237,229,0.04);
  backdrop-filter: blur(12px);
  max-width: 680px;            /* matches content column width */
  animation: fadeUp 0.9s var(--ease) 0.56s both;
}
.stat {
  flex: 1;
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--dark-border);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--pool-aqua);
  margin-bottom: 6px;
  line-height: 1;
}
.stat-flag {
  font-size: 20px;
  color: var(--pool-aqua) !important;
  letter-spacing: 0;
}
.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w40);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  animation: fadeUp 1.2s var(--ease) 1s both;
  color: var(--w70);
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: -0.24em; /* Offsets letter-spacing to perfectly center */
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--pool-aqua), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 0.35; }
  50%      { transform: scaleY(0.5); opacity: 0.7; }
}

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-child.visible { opacity: 1; transform: translateY(0); }
.reveal-child:nth-child(1) { transition-delay: 0.08s; }
.reveal-child:nth-child(2) { transition-delay: 0.18s; }
.reveal-child:nth-child(3) { transition-delay: 0.28s; }
.reveal-child:nth-child(4) { transition-delay: 0.38s; }

/* ================================================
   SECTION DIVIDERS
   ================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid) 50%, transparent);
  margin: 0;
}

/* ================================================
   CONCEPT SECTION — intentionally dark for rhythm
   ================================================ */
.concept {
  padding: var(--section-py) 0;
  background: var(--moonlit);
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-strong);
}

.steps {
  display: flex;
  align-items: stretch;
  margin-bottom: 56px;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  overflow: hidden;
}
.step {
  flex: 1;
  padding: 52px 44px;
  background: var(--dark-card-bg);
  position: relative;
  transition: background 0.3s;
  border-right: 1px solid var(--dark-border);
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(200,24,26,0.05); }
.step-num {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 12px; right: 16px;
  line-height: 1;
  user-select: none;
  z-index: 1;
}
.step-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.glass-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 32, 44, 0.4);
  backdrop-filter: blur(5px) saturate(80%);
  -webkit-backdrop-filter: blur(5px) saturate(80%);
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: none; /* Disabled on desktop as requested */
}

@media (max-width: 768px) {
  .glass-overlay {
    display: block; /* Enabled on mobile */
    transition: opacity 0.15s ease !important; /* Snappy — was 0.5s */
  }
}

.step:hover .step-img-wrap {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}
.step:hover .step-img { transform: scale(1.08); }
.step:hover .glass-overlay { opacity: 0; }
.step h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.step p {
  font-size: 15px; line-height: 1.75;
  color: var(--w70);
}

.step-connector {
  display: flex; align-items: center; justify-content: center;
  width: 48px; flex-shrink: 0;
  background: var(--ink);
  font-size: 20px; color: var(--red);
}

.concept-callout {
  background: var(--red-muted);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  padding: 44px 52px;
  text-align: center;
}
.callout-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red);
  background: rgba(200,24,26,0.12);
  border: 1px solid var(--red-border);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.concept-callout p {
  font-family: var(--font-display);
  font-size: 26px; font-style: italic; line-height: 1.55;
  color: var(--w90);
}
.concept-callout em { color: var(--red); font-style: normal; font-weight: 700; }

/* ================================================
   PORTFOLIO — Horizontal Pin Scroll
   ================================================ */

/* Outer section — JS sets a tall height to create scroll room */
.portfolio-h-section {
  position: relative;
  /* height: set by phase4.js at runtime */
}

/* The sticky viewport — stays at top while user "scrolls through" the cards */
.portfolio-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cannoli);
}

/* Header inside the sticky pane */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 64px var(--container-px) 32px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.portfolio-header .section-label { margin-bottom: 8px; }
.portfolio-header .section-title {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.03;
  margin-bottom: 0;
}

/* "Scroll to Explore →" hint on the right */
.portfolio-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bering);
  opacity: 0.7;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.portfolio-scroll-arrow {
  width: 36px;
  height: 1px;
  background: var(--bering);
  position: relative;
}
.portfolio-scroll-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--bering);
  border-right: 1.5px solid var(--bering);
  transform: rotate(45deg);
}

/* Track wrapper — clips the sliding row */
.portfolio-track {
  flex: 1;
  overflow: hidden;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* The actual sliding container — JS applies translateX here */
.portfolio-track-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: 100%;
  padding: 28px var(--container-px);
  will-change: transform;
}

/* ── Individual Card ── */
.portfolio-card {
  flex-shrink: 0;
  width: clamp(380px, 36vw, 600px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s var(--ease),
    box-shadow   0.3s var(--ease),
    transform    0.3s var(--ease);
}
.portfolio-card:hover {
  border-color: var(--bering);
  box-shadow: 0 20px 60px rgba(36,51,72,0.13);
  transform: translateY(-4px);
}

/* ── Browser Chrome (macOS style) ── */
.card-browser {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0f1623;
  flex-shrink: 0;
}
.card-dots { display: flex; gap: 5px; flex-shrink: 0; }
.card-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-dots span:nth-child(1) { background: #FF5F57; }
.card-dots span:nth-child(2) { background: #FEBC2E; }
.card-dots span:nth-child(3) { background: #28C840; }
/* .card-url-bar is removed — dots-only chrome */

/* ── Card Viewport (media area) ── */
.card-media {
  position: relative;
  overflow: hidden;
  /* Match original capture ratio: 2944 × 2174 ≈ 23:17 */
  aspect-ratio: 2944 / 2174;
  width: 100%;
}

/* Video element — blurred first frame on load, clears on play */
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;                      /* hidden until metadata loads */
  filter: blur(10px);
  transform: scale(1.08);          /* prevents blur edge-bleed */
  transition:
    opacity    0.4s var(--ease),
    filter     0.5s var(--ease),
    transform  0.5s var(--ease);
}
/* Once browser has first frame (loadedmetadata event) — show blurred */
.card-video.preview {
  opacity: 1;
}
/* When playing — clear blur */
.card-video.loaded {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

/* Placeholder: sits behind video, hidden once video preview is ready */
.card-placeholder {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  animation: cardShimmer 6s ease infinite;
  transition: opacity 0.5s var(--ease);
}
/* Hide gradient once the video's blurred frame takes over */
.card-video.preview ~ .card-placeholder,
.card-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes cardShimmer {
  0%   { background-position: 0% 50%; opacity: 0.9; }
  50%  { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.9; }
}

/* Premium neutral shimmer — no loud colours */
.grad-rundle   { background: linear-gradient(135deg, #d1ddc9 0%, #a8bfa0 35%, #c8d8c0 60%, #e0ead8 100%); }
.grad-buildwise{ background: linear-gradient(135deg, #c8cfd8 0%, #a0afc0 35%, #bbc8d6 60%, #dce4ee 100%); }
.grad-lucky    { background: linear-gradient(135deg, #d8ccbc 0%, #c0b0a0 35%, #cfc4b4 60%, #e8dfd4 100%); }
.grad-yeg      { background: linear-gradient(135deg, #ccc8c0 0%, #b0aca4 35%, #c8c4bc 60%, #e0dcd8 100%); }

/* ── Play button ── */
.card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(242, 237, 229, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 2;
}
/* Triangle play icon via CSS */
.card-play-btn::after {
  content: '';
  display: block;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--moonlit);
  margin-left: 4px;
}
/* Hide play button once video is playing */
.portfolio-card:hover .card-play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
}

/* Hover overlay — dark veil with "VIEW LIVE" text nudge */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36,51,72,0.6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
}
.portfolio-card:hover .card-hover-overlay { opacity: 1; }
.card-hover-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

/* ── Card Info (name, number, link) ── */
.card-info {
  padding: 18px 22px 20px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 3px 12px;
  border-top: 1px solid var(--border);
}
.card-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bering);
  grid-column: 1;
  grid-row: 1;
}
.card-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--moonlit);
  letter-spacing: -0.01em;
  line-height: 1.1;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}
.card-live {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bering);
  white-space: nowrap;
  transition: gap 0.22s var(--ease), color 0.22s;
}
.card-live:hover { color: var(--moonlit); gap: 9px; }

/* ── Progress bar at base of sticky ── */
.portfolio-progress {
  height: 2px;
  margin: 0 var(--container-px) 24px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.portfolio-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bering);
  border-radius: 2px;
  transition: width 0.08s linear;
}



/* ================================================
   ABOUT THE FOUNDERS — Phase 6 Editorial Redesign
   ================================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--cannoli); /* warm, creates rhythm after white speed section */
}

/* ── Full-width duo photo ── */
.founders-duo {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 80px;
  border-radius: 6px;
}
.founders-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.8) saturate(0.86);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.founders-duo:hover img {
  filter: brightness(0.94) saturate(1);
  transform: scale(1.02);
}
.duo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,22,35,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 36px 44px;
}
.duo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--bering); /* bering blue — no more red */
  padding: 9px 22px;
  border-radius: 4px;
}

/* ── Founders grid — borderless editorial split ── */
.founders-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.founder-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 76px 0;
  border-top: 1px solid var(--border);
  transition: none;
  box-shadow: none;
}
.founder-card:first-child { border-top: none; }
/* Remove the old red hover state */
.founder-card:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

/* Flipped: bio left, photo right */
.founder-card-flip {
  grid-template-columns: 1fr 400px;
}
.founder-card-flip .founder-photo-wrap { order: 2; }
.founder-card-flip .founder-bio       { order: 1; }

/* ── Photo frame — sharp, architectural ── */
.founder-photo-wrap {
  width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: 4px; /* barely rounded — no pill softness */
  flex-shrink: 0;
}
.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.93) saturate(0.9);
  transition: transform 0.65s var(--ease), filter 0.4s;
}
.founder-card:hover .founder-img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

/* ── Bio column ── */
.founder-bio { display: flex; flex-direction: column; }

/* Sequence number — bering blue small caps */
.founder-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bering);
  margin-bottom: 18px;
}

/* Name — large Antic Didone, weight 400 (correct for this typeface) */
.founder-name {
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 400;
  color: var(--moonlit);
  letter-spacing: -0.022em;
  line-height: 0.9;
  margin-bottom: 20px;
}

/* Role — Jost all-caps tracked, bering blue */
.founder-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bering);
  margin-bottom: 28px;
}

.founder-bio p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Rectangular chip tags — bering border accent on hover */
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.founder-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--body-mid);
  background: var(--white);
  border: 1px solid var(--border-mid);
  padding: 6px 16px;
  border-radius: 4px; /* rectangular — no pill */
  transition: border-color 0.22s, color 0.22s;
}
.founder-tags span:hover {
  border-color: var(--bering);
  color: var(--bering);
}

/* ── Canada identity band — replaces old red-gradient canada-banner ── */
.canada-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 80px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body-mid);
  flex-wrap: wrap;
}
.canada-icon { font-size: 18px; line-height: 1; }
.canada-flag { font-size: 20px; line-height: 1; }
.canada-sep  { color: var(--border-mid); letter-spacing: 0; }



/* ================================================
   SERVICES
   ================================================ */
.services {
  padding: var(--section-py) 0;
  background: var(--warm-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.35s var(--ease);
  border-radius: 0 0 3px 0;
}
.service-card:hover { border-color: var(--border-mid); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); }
.service-card:hover::before { height: 100%; }
.service-highlight {
  border-color: var(--red-border);
  background: var(--red-muted);
}
.service-highlight::before { height: 100% !important; }
.service-highlight:hover { border-color: rgba(200,24,26,0.4); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 24px;
}
.service-highlight .service-icon {
  border-color: var(--red-border);
  color: var(--red);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px;
}
.service-card p {
  font-size: 15px; line-height: 1.75;
  color: var(--body); margin-bottom: 28px;
}
.service-price {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  color: var(--red);
}
.service-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--moonlit); background: var(--pool-aqua);
  padding: 4px 13px; border-radius: 4px;
}
.services-note {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 34px 44px;
  text-align: center;
}
.services-note p {
  font-size: 16px; line-height: 1.75;
  color: var(--body);
}

/* ================================================
   APPLY SECTION
   ================================================ */
.apply {
  padding: var(--section-py) 0;
  background: var(--off-white);
}
.apply-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.apply-left .section-title { font-size: clamp(30px, 4vw, 52px); }
.apply-left .section-desc  { margin-bottom: 40px; }
.apply-promises { display: flex; flex-direction: column; gap: 13px; }
.promise {
  font-size: 15px; font-weight: 500;
  color: var(--body);
  display: flex; align-items: center; gap: 10px;
}
.promise::before {
  content: '✓';
  color: var(--red);
  font-weight: 700; flex-shrink: 0;
}

/* --- Form --- */
.apply-form {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: 20px;
  padding: 50px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moonlit);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--warm-white);
  border: 1.5px solid var(--border-mid);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: all 0.22s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--body-soft); }
.form-group select { color: var(--body); }
.form-group select option { background: var(--white); color: var(--ink); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,24,26,0.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-disclaimer { font-size: 13px; color: var(--body-soft); text-align: center; }

/* Success state */
.form-success {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: 20px;
  padding: 80px 50px;
  text-align: center;
}
.success-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--red-muted);
  border: 2px solid var(--red);
  color: var(--red); font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
}
.form-success p { font-size: 16px; line-height: 1.75; color: var(--body); }

/* ================================================
   FOOTER — stays dark for strong visual close
   ================================================ */
.footer {
  background: var(--moonlit);
  border-top: 1px solid rgba(242,237,229,0.08);
  padding: 80px 0 44px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
.footer-logo span { color: var(--red); }
.footer-desc {
  font-size: 15px; line-height: 1.75;
  color: var(--w40); max-width: 380px;
}
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--w40); margin-bottom: 4px;
}
.footer-col a { font-size: 15px; color: var(--w70); transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 14px; color: var(--w40); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic; font-size: 14px;
  color: var(--red);
}

/* ================================================
   RESPONSIVE — Phases 1–6
   1100px  tablet landscape
    768px  tablet portrait / large phone
    480px  small phone
   ================================================ */

/* ─── 1100px — Tablet Landscape ─── */
@media (max-width: 1100px) {
  :root { --container-px: 36px; }

  /* Hero */
  .hero-sub         { max-width: 100%; }
  .hero-watermark   { font-size: clamp(120px, 16vw, 200px); }

  /* Portfolio — slightly narrower cards */
  .portfolio-card   { width: 440px; }

  /* About → single column starts here */
  .founder-card,
  .founder-card-flip { grid-template-columns: 1fr; gap: 40px; }
  .founder-card-flip .founder-photo-wrap { order: 0; }
  .founder-card-flip .founder-bio        { order: 0; }
  .founder-photo-wrap { width: 100%; height: 320px; border-radius: 4px; }
  .founder-img        { object-position: center 15%; }
  .founder-name       { font-size: 48px; margin-top: 20px; }
  .founders-duo       { aspect-ratio: 16 / 9; }
  .founder-card       { padding: 56px 0; }

  /* Wild — close the gap a little */
  .wild-grid  { gap: 48px; }

  /* Speed — stack the columns */
  .speed-grid { grid-template-columns: 1fr; gap: 0; }
  .speed-vs   { padding: 20px 0; justify-content: center; }

  /* Apply */
  .apply-inner { grid-template-columns: 1fr; gap: 52px; }
}

/* ─── 768px — Tablet Portrait + Large Phone ─── */
@media (max-width: 768px) {
  :root {
    --section-py:      80px;
    --container-px:    24px;
  }

  /* Typography */
  .section-label { font-size: 9px; }
  .section-title { font-size: 32px; line-height: 1.2; }
  .section-desc  { font-size: 16px; line-height: 1.6; margin-bottom: 40px; }

  /* ── Nav ─────────────────────────────────── */
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner  { padding: 20px 24px; }

  /* ── Hero ────────────────────────────────── */
  .hero {
    min-height: 100dvh;
    padding: 120px 24px 60px;
  }
  .hero-content  { padding: 0; max-width: 100%; }
  .hero-headline { font-size: clamp(36px, 9vw, 58px); max-width: 100%; }
  .hero-rule     { width: 40px; }
  .hero-sub      { max-width: 100%; font-size: 15px; line-height: 1.75; }
  .hero-eyebrow  { font-size: 10px; }

  /* Ghost watermark — too large on mobile, remove */
  .hero-watermark { display: none; }
  /* Left accent bar — shrink so it doesn't crowd */
  .hero-left-bar  { width: 3px; }

  /* Live ticker — pull out of absolute position into normal flow */
  .hero-live {
    position: relative;
    top: auto;
    right: auto;
    margin: 14px 0 8px;
    pointer-events: none;
  }

  /* Hero */
  .hero { padding-top: 120px; }
  .hero-sub { font-size: 1.1rem; line-height: 1.6; }
  .hero-ctas { gap: 12px; margin-bottom: 48px; }
  .btn-primary, .btn-ghost { width: 100%; padding: 14px 28px; }

  /* Stats */
  .hero-stats { flex-wrap: wrap; margin-bottom: 80px; }
  .stat {
    flex: 0 0 50%;
    padding: 24px 10px;
    border-bottom: 1px solid rgba(242,237,229,0.1);
  }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 9px; white-space: nowrap; }
  .stat-flag { transform: scale(0.9); }
  .stat:nth-child(even) { border-left: 1px solid rgba(242,237,229,0.1); }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-bottom: none; }

  /* ── Marquee / Concept ───────────────────── */
  .steps          { flex-direction: column; }
  .step-connector {
    width: 40px; height: 40px;
    transform: rotate(90deg);
    align-self: center;
  }
  .concept-callout   { padding: 32px 24px; }
  .concept-callout p { font-size: 20px; }

  /* ── Portfolio — native swipe on mobile ──── */
  /* JS guard sets section.style.height = '' on mobile,
     but add defensive CSS override too */
  .portfolio-h-section { height: auto !important; }

  .portfolio-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .portfolio-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 48px var(--container-px) 20px;
    border-bottom: none;
  }
  .portfolio-scroll-hint { display: none; }

  .portfolio-track {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--container-px);
    scrollbar-width: none;
  }
  .portfolio-track::-webkit-scrollbar { display: none; }

  .portfolio-track-inner {
    transform: none !important;   /* kill JS translateX */
    width: max-content;
    height: auto;
    padding: 20px var(--container-px) 32px;
    gap: 16px;
    align-items: flex-start;
  }
  .portfolio-card {
    width: 82vw;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
    height: auto;
  }
  .card-browser       { min-height: 220px; }
  .portfolio-progress { display: none; }

  /* Swipe hint label */
  .portfolio-sticky::after {
    content: 'Swipe to explore all builds →';
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bering);
    opacity: 0.65;
    padding-bottom: 32px;
  }

  /* ── Big Statement ───────────────────────── */
  .statement        { padding: 88px 0; }
  .statement-accent { display: none; }  /* decorative, hide on mobile */
  .statement-quote  {
    font-size: clamp(34px, 9.5vw, 52px);
    margin: 28px 0 36px;
  }
  .statement-footer    { gap: 20px; padding-top: 24px; }
  .statement-stat-num  { font-size: 28px; }
  .statement-divider   { display: none; }  /* remove vertical pipes */

  /* ── Caught in the Wild ──────────────────── */
  .wild { padding: 88px 0; }
  /* Wild Section Stacking */
  .wild-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .wild-intro { max-width: 100%; }
  .phone-col { 
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .phone        { width: 280px; margin: 0 auto; }
  .phone-screen { height: 500px; }

  /* ── Speed Proof ─────────────────────────── */
  .speed-section { padding: 64px 0; }
  .speed-grid    { grid-template-columns: 1fr; gap: 32px; }
  .speed-vs      { margin: 20px 0; font-size: 14px; }
  .speed-total   { padding: 20px; }
  .speed-col     { padding: 32px 24px; }
  .speed-col-old { border-radius: 12px 12px 0 0; }
  .speed-col-new { border-radius: 0 0 12px 12px; }
  .speed-vs {
    border-top: none;
    padding: 12px 0;
    background: var(--cannoli);
    justify-content: center;
  }

  /* ── About — Phase 6 ────────────────────── */
  .founder-card,
  .founder-card-flip {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0;
  }
  .founder-card-flip .founder-photo-wrap { order: 0; }
  .founder-card-flip .founder-bio        { order: 0; }
  .founder-photo-wrap {
    width: 100%;
    height: 280px;
    border-radius: 4px;
  }
  .founder-img    { object-position: center 15%; }
  .founder-name   { font-size: clamp(42px, 10vw, 68px); }
  .founders-duo   { aspect-ratio: 16 / 9; }
  .duo-overlay    { padding: 20px 24px; }
  .canada-band    { gap: 10px; padding: 20px 0; font-size: 10px; }

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

  /* ── Apply ───────────────────────────────── */
  .apply-form  { padding: 30px; }
  .form-row    { grid-template-columns: 1fr; }
  .apply-inner { grid-template-columns: 1fr; gap: 52px; }

  /* ── Footer ──────────────────────────────── */
  .footer { padding-bottom: 60px; }
  .footer-top    { grid-template-columns: 1fr; gap: 40px; }
  .footer-links  { flex-direction: column; gap: 24px; }
  .footer-brand  { max-width: 100%; }
  .footer-bottom { 
    flex-direction: column; 
    gap: 16px; 
    text-align: left; 
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 32px;
  }
}

/* ─── 480px — Small Phone ─── */
@media (max-width: 480px) {
  :root { --container-px: 20px; }

  /* Hero */
  .hero-headline { font-size: clamp(30px, 10.5vw, 42px); }
  .hero-live     { gap: 6px; }
  .live-text     {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    font-size: 10px;
  }

  /* Statement */
  .statement        { padding: 64px 0; }
  .statement-quote  { font-size: clamp(28px, 11vw, 44px); margin: 20px 0 28px; }

  /* Portfolio */
  .portfolio-card { width: 92vw; max-width: none; margin-right: 16px; }
  .card-browser   { min-height: 220px; }
  .card-play-btn  { transform: translate(-50%, -50%) scale(0.9); }
  .card-info      { padding: 20px; }

  /* Wild */
  .wild         { padding: 64px 0; }
  .phone        { width: 220px; }
  .phone-screen { height: 370px; }
  .msg          { font-size: 12px; padding: 7px 11px; }

  /* Speed */
  .speed-section { padding: 64px 0; }
  .speed-col     { padding: 24px 20px; }

  /* About */
  .founder-name       { font-size: clamp(36px, 11.5vw, 52px); }
  .founder-photo-wrap { height: 240px; }
  .founder-card       { padding: 40px 0; }

  /* Canada band — simplify on tiny screens */
  .canada-band  { gap: 6px; font-size: 9px; letter-spacing: 0.1em; padding: 16px 0; }
  .canada-flag  { display: none; }
  .canada-icon  { font-size: 14px; }

  /* Navigation */
  .nav-inner { padding: 18px 24px; }
  .nav-logo  { font-size: 18px; }
  
  .hero-marquee-track {
    top: 64px;                 /* Adjusted for slimmer nav */
    padding: 6px 0;            /* Slimmer marquee to save space */
  }
  .hero-marquee-inner span { font-size: 9px; }

  /* Better Close (X) target */
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

  /* Duo */
  .duo-overlay { padding: 16px 20px; }
  .duo-badge   { padding: 7px 14px; letter-spacing: 0.12em; }

  /* Apply */
  .apply-form  { padding: 24px 20px; }
}



/* ================================================
   PHASE 2 — LENIS
   ================================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ================================================
   PHASE 2 — CUSTOM CURSOR
   Desktop / hover-pointer devices only.
   Three states: hover · view (portfolio) · cta
   ================================================ */
@media (hover: hover) and (pointer: fine) {
  html, body, body * { cursor: none !important; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: left, top;
    z-index: 9998;
  }

  /* Small solid dot — snaps instantly to pointer */
  .cursor-dot {
    z-index: 9999;
    width: 7px;  height: 7px;
    margin-left: -3.5px; margin-top: -3.5px;
    background: var(--pool-aqua);
    transition:
      width    0.18s var(--ease),
      height   0.18s var(--ease),
      margin   0.18s var(--ease),
      background 0.18s var(--ease),
      opacity  0.3s;
    opacity: 0;           /* hidden until first mousemove */
  }

  /* Larger ring — lags behind (lerp in JS) */
  .cursor-ring {
    width: 40px;  height: 40px;
    margin-left: -20px; margin-top: -20px;
    border: 1.5px solid var(--bering);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      width    0.36s var(--ease),
      height   0.36s var(--ease),
      margin   0.36s var(--ease),
      background     0.3s var(--ease),
      border-color   0.3s var(--ease),
      opacity  0.3s;
    opacity: 0.55;
  }

  /* "VIEW →" label inside ring */
  .cursor-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.22s var(--ease);
  }

  /* ── STATE: hover (links, buttons) ── */
  body[data-cursor="hover"] .cursor-dot {
    width: 10px; height: 10px;
    margin-left: -5px; margin-top: -5px;
    background: var(--bering);
  }
  body[data-cursor="hover"] .cursor-ring {
    width: 54px; height: 54px;
    margin-left: -27px; margin-top: -27px;
    border-color: var(--bering);
    opacity: 0.4;
  }

  /* ── STATE: view (portfolio cards → "VIEW →") ── */
  body[data-cursor="view"] .cursor-dot {
    width: 5px; height: 5px;
    margin-left: -2.5px; margin-top: -2.5px;
    background: var(--white);
  }
  body[data-cursor="view"] .cursor-ring {
    width: 90px; height: 90px;
    margin-left: -45px; margin-top: -45px;
    background: var(--moonlit);
    border-color: transparent;
    opacity: 1;
  }
  body[data-cursor="view"] .cursor-label { opacity: 1; }

  /* ── STATE: cta (primary buttons) ── */
  body[data-cursor="cta"] .cursor-dot {
    width: 4px; height: 4px;
    margin-left: -2px; margin-top: -2px;
    background: var(--white);
    opacity: 0.7;
  }
  body[data-cursor="cta"] .cursor-ring {
    width: 72px; height: 72px;
    margin-left: -36px; margin-top: -36px;
    background: var(--bering);
    border-color: transparent;
    opacity: 0.88;
  }
}

/* ================================================
   PHASE 2 — WORD SPLIT TEXT REVEAL
   Words slide up individually with staggered delay.
   Works inside em/strong because TreeWalker is used
   ================================================ */
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Prevents gaps from overflow:hidden cutting descenders */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-text .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.72s var(--ease);
}
.split-text.revealed .word-inner {
  transform: translateY(0);
}

/* ================================================
   PHASE 2 — SECTION LABEL LINE DRAW-IN
   The ::before bar extends 0 → 18px on scroll entry.
   Double specificity beats the existing base rule.
   ================================================ */
.section-label::before,
.on-dark .section-label::before {
  width: 0 !important;
  transition: width 0.65s var(--ease) !important;
}
.section-label.line-visible::before,
.on-dark .section-label.line-visible::before {
  width: 18px !important;
}


/* ================================================
   PHASE 5 — NEW SECTIONS
   ================================================ */

/* ── Currently Building Live Ticker (in hero) ── */
.hero-live {
  position: absolute;
  top: calc(80px + 40px + 24px); /* sits below nav + marquee */
  right: var(--container-px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pool-aqua);
  flex-shrink: 0;
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}
.live-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w50);
  transition: opacity 0.42s;
}

/* ================================================
   THE BIG STATEMENT — full editorial pull-quote
   ================================================ */
.statement {
  background: var(--moonlit);
  padding: 150px 0;
  position: relative;
  overflow: hidden;
}
.statement-inner { position: relative; z-index: 1; }

/* Ghost "BD." in the upper-right corner */
.statement-accent {
  position: absolute;
  top: -80px;
  right: -30px;
  font-family: var(--font-display);
  font-size: clamp(140px, 20vw, 280px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,237,229,0.045);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* The main quote — Antic Didone at full pressure */
.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.97;
  color: var(--w90);
  letter-spacing: -0.018em;
  margin: 44px 0 64px;
  quotes: none;
  max-width: 1060px;
}
.statement-quote em {
  display: block;
  font-style: italic;
  color: var(--pool-aqua);
  margin-top: 0.03em;
}

/* Row of 4 stats below the quote */
.statement-footer {
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid rgba(242,237,229,0.09);
  padding-top: 40px;
  flex-wrap: wrap;
}
.statement-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.statement-stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--pool-aqua);
  line-height: 1;
}
.statement-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w35);
}
.statement-divider {
  width: 1px;
  height: 44px;
  background: rgba(242,237,229,0.12);
  flex-shrink: 0;
}

/* ================================================
   CAUGHT IN THE WILD — Phone Mockup Section
   ================================================ */
.wild {
  padding: 140px 0;
  background: var(--cannoli);
}
.wild-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.wild-intro {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: var(--body);
  max-width: 480px;
  margin: 24px 0 36px;
}
.wild-intro strong { color: var(--moonlit); font-weight: 600; }
.wild-callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bering);
  border-radius: 0 8px 8px 0;
  padding: 20px 28px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-style: italic;
  color: var(--moonlit);
  line-height: 1.45;
  max-width: 440px;
  quotes: none;
  margin: 0;
}

/* ── CSS-only iOS phone mockup ── */
.phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  width: 264px;
  background: #1C1C1E;
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 60px 120px rgba(36,51,72,0.28),
    0 0 0 1.5px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
/* Dynamic Island */
.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 27px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}
.phone-screen {
  background: #000;
  border-radius: 40px;
  overflow: hidden;
  height: 448px;
  display: flex;
  flex-direction: column;
}
.phone-status-bar { height: 52px; background: #000; flex-shrink: 0; }
.phone-chat-header {
  background: rgba(28,28,30,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.09);
}
.phone-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--bering), var(--pool-aqua));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  font-family: -apple-system, sans-serif;
  flex-shrink: 0;
}
.phone-contact-info { display: flex; flex-direction: column; gap: 2px; }
.phone-contact-name {
  font-family: -apple-system, 'SF Pro Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.phone-contact-sub {
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.phone-messages {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.msg {
  max-width: 83%;
  padding: 8px 12px;
  border-radius: 18px;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.msg-sent {
  background: #007AFF;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.msg-recv {
  background: #2C2C2E;
  color: rgba(255,255,255,0.92);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  align-self: center;
  font-family: -apple-system, sans-serif;
}

/* ================================================
   SPEED PROOF — Agency vs Built Differently
   ================================================ */
.speed-section {
  padding: 80px 0;
  background: var(--white);
}
.speed-header { margin-bottom: 40px; }
.speed-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: start;
  gap: 0;
}
.speed-col {
  padding: 36px 40px;
  border-radius: 12px;
}
.speed-col-old {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
}
.speed-col-new {
  background: var(--moonlit);
}
.speed-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--body-mid);
  letter-spacing: 0.08em;
  padding-top: 60px; /* align with first step */
}
.speed-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.speed-col-old .speed-col-label { color: var(--body-dark); }
.speed-col-new .speed-col-label { color: var(--pool-aqua); }

/* Steps */
.speed-timeline { display: flex; flex-direction: column; }
.speed-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  /* stagger reveal — JS adds .visible */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.speed-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.speed-col-new .speed-step { border-bottom-color: rgba(242,237,229,0.08); }
.speed-step:last-child { border-bottom: none; }
.speed-step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bering);
  width: 18px;
  flex-shrink: 0;
  padding-top: 2px;
}
.speed-col-new .speed-step-num { color: var(--pool-aqua); }
.speed-step-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}
.speed-col-new .speed-step-text { color: var(--w70); }

/* Totals row */
.speed-total {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.speed-col-new .speed-total { border-top-color: rgba(242,237,229,0.18); }
.speed-total-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.speed-col-old .speed-total-label { color: var(--body-mid); }
.speed-col-new .speed-total-label { color: var(--w35); }
.speed-total-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.speed-col-old .speed-total-num { color: var(--body); }
.speed-col-new .speed-total-num { color: var(--pool-aqua); }


/* ================================================
   PHASE 7 — LANGUAGE SWITCHER
   ================================================ */

/* ── Globe button in nav ── */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 7px 11px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-btn:hover,
.lang-switcher.open .lang-btn {
  border-color: var(--bering);
  background: rgba(74, 155, 177, 0.12);
  color: white;
}

/* When navbar has white background */
.nav.scrolled .lang-btn {
  color: var(--moonlit);
  border-color: rgba(15, 24, 34, 0.2);
}
.nav.scrolled .lang-btn:hover,
.nav.scrolled .lang-switcher.open .lang-btn {
  background: rgba(15, 24, 34, 0.04);
  color: var(--bering);
  border-color: var(--bering);
}
.lang-chevron {
  transition: transform 0.22s;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown menu ── */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  list-style: none;
  background: var(--moonlit);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  min-width: 185px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35),
              0 4px 12px rgba(0, 0, 0, 0.2);
  /* Hidden state */
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s var(--ease),
              transform 0.24s var(--ease);
  z-index: 2000;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.14s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover,
.lang-option:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.lang-option.active {
  background: rgba(74, 155, 177, 0.12);
}
.lang-option-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}
.lang-option.active .lang-option-label {
  color: var(--pool-aqua);
}
.lang-option-native {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Ticker text fade transition ── */
#liveText {
  transition: opacity 0.4s;
}

/* ── Mobile: lang switcher in nav ── */
@media (max-width: 768px) {
  .lang-menu { right: 0; left: auto; min-width: 170px; }
  .lang-btn  { font-size: 10px; padding: 6px 9px; }
}

/* ================================================
   PHASE 7 — RTL (Arabic)
   html[dir="rtl"] overrides
   ================================================ */

/* ── Global direction fixes ── */
[dir="rtl"] .hero-content {
  text-align: right;
}
[dir="rtl"] .hero-left-bar {
  left: auto;
  right: 0;
}
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .hero-ctas,
[dir="rtl"] .founder-tags,
[dir="rtl"] .canada-band {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero-ctas {
  justify-content: flex-start;
}

/* ── Btn arrow flip ── */
[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
  display: inline-block;
}

/* ── Nav links order ── */
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}

/* ── Section labels + titles ── */
[dir="rtl"] .section-label,
[dir="rtl"] .section-title,
[dir="rtl"] .section-desc {
  text-align: right;
}

/* ── Statement quote ── */
[dir="rtl"] .statement-quote {
  text-align: right;
}
[dir="rtl"] .statement-footer {
  flex-direction: row-reverse;
}
[dir="rtl"] .statement-divider {
  display: none;
}

/* ── Wild section ── */
[dir="rtl"] .wild-grid {
  direction: rtl;
}

/* ── Speed section ── */
[dir="rtl"] .speed-timeline { text-align: right; }

/* ── About / founder cards ── */
[dir="rtl"] .founder-bio {
  text-align: right;
}
[dir="rtl"] .founder-card {
  direction: rtl;
}

/* ── Footer ── */
[dir="rtl"] .footer-top,
[dir="rtl"] .footer-bottom {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* ── Concept steps ── */
[dir="rtl"] .step-connector { transform: scaleX(-1); }

/* ── Ticker ── */
[dir="rtl"] #liveText { direction: rtl; text-align: right; }
[dir="rtl"] .hero-live { flex-direction: row-reverse; }

/* ── Portfolio scroll hint ── */
.portfolio-sticky::after { content: 'Swipe to explore all builds →'; }
[dir="rtl"] .portfolio-sticky::after { content: '← تمرير لاستكشاف جميع الأعمال'; }

/* ── SEO Matrix ── */
.seo-matrix {
  font-size: 10px;
  color: #151515;  /* Invisible against --ink background */
  opacity: 0.1;
  text-align: center;
  padding-top: 10px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.02);
  user-select: none;
}

/* ================================================
   FINAL MOBILE OVERRIDES (Overrides late base styles)
   ================================================ */
@media (max-width: 768px) {
  /* 1. Hero Margins (Clears 80px nav + 40px marquee track) */
  .hero { 
    padding-top: 155px !important; 
    flex-direction: column !important;
  }

  /* 1.5 Prevent Phase 5 Ticker from overlapping the Eyebrow on mobile */
  .hero-live {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 0 24px 0 !important;
    padding: 0 var(--container-px) !important;
    align-self: flex-start !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  /* 1.7 Frame the 2nd Concept Step Image better on mobile */
  #step2 .step-img {
    object-position: center 25% !important;
  }


  /* 2. Tighten The Statement Section Spacing */
  .statement { padding: 32px 0 24px 0 !important; }
  .statement-quote { margin: 16px 0 8px 0 !important; }

  /* 2.5 Un-crop and Scale Down Founder Photos */
  .founder-photo-wrap {
    height: auto !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  .founder-img {
    height: auto !important;
  }

  /* 3. Caught In The Wild: Dense Mobile Redesign */
  .wild { padding: 48px 0 32px 0 !important; }
  .wild-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .wild-text { 
    max-width: 100% !important; 
    order: 1; 
  }
  .wild-text .section-title { margin-bottom: 12px !important; }
  .wild-intro {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  .wild-callout {
    margin-top: 16px !important;
    padding: 16px !important;
    background: rgba(0,0,0,0.03) !important;
    border-radius: 4px !important;
  }
  .phone-col { 
    display: flex !important;
    justify-content: center !important;
    order: 2;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    margin-top: 8px !important;
  }
  .phone {
    width: 280px !important;
  }
  .phone-screen {
    height: auto !important; /* Shrink-wraps the screen to the messages */
    padding-bottom: 24px !important;
  }

  /* 4. Speed Comparison: Dense Side-by-Side Mobile Layout */
  .speed-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .speed-col { 
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 12px !important; 
    border-radius: 12px !important;
  }
  
  .speed-col-old { 
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04) !important;
  }
  .speed-col-new { 
    background: var(--moonlit) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
  }
  
  .speed-vs { 
    display: none !important; /* Hide VS pill completely to save space */
  }

  .speed-col-label {
    font-size: 9px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .speed-step {
    padding: 8px 0 !important;
    gap: 8px !important;
  }
  .speed-step-text {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  .speed-step-num { width: 14px !important; }

  .speed-total {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    margin-top: auto !important; /* Aligns totals at the bottom perfectly */
    padding-top: 16px !important;
  }
  .speed-total-num {
    font-size: 16px !important;
  }

  /* 5. Founders Mobile Editorial Redesign */
  .founder-card,
  .founder-card-flip {
    gap: 32px !important;
  }
  .founder-bio {
    position: relative !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 16px !important;
  }
  .founder-num {
    position: absolute !important;
    top: -46px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 160px !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    color: var(--moonlit) !important;
    opacity: 0.04 !important; /* ultra faint watermark */
    z-index: -1 !important;
    margin: 0 !important;
    font-family: var(--font-display) !important;
  }
  .founder-name { margin-bottom: 8px !important; }
  .founder-role { margin-bottom: 24px !important; }
  .founder-tags { justify-content: center !important; }

  /* 6. Tighten Canada Band Spacing */
  .founder-card { padding-bottom: 24px !important; }
  .canada-band {
    margin-top: 16px !important;
    padding: 16px 0 !important;
    gap: 8px !important;
    font-size: 10px !important;
  }

  /* 7. Services & Pricing Mobile Editorial Redesign */
  .services { padding: 56px 0 32px 0 !important; }
  .services .section-label {
    text-align: center !important;
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    margin-bottom: 12px !important;
  }
  .services .section-title {
    text-align: center !important;
    font-size: 42px !important;
    margin-bottom: 36px !important;
    line-height: 0.95 !important;
  }
  .services .section-title em {
    display: block !important;
    color: var(--body-dark) !important;
    margin-top: -4px !important;
  }
  
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; /* Extremely dense stack */
  }
  .service-card {
    padding: 24px 20px !important;
    border-radius: 12px !important;
  }
  .service-icon { display: none !important; } /* Killed the generic boxed icons on mobile to focus on text */
  .service-badge {
    position: relative !important;
    top: auto !important; right: auto !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
  }
  .service-card h3 { 
    font-size: 18px !important; 
    margin-bottom: 8px !important;
  }
  .service-card p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }
  .service-price {
    font-size: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important; /* distinct pricing floor */
  }
  .services-note {
    padding: 24px 20px !important;
    border-radius: 12px !important;
    margin-top: 16px !important;
  }
  .services-note p { font-size: 12px !important; line-height: 1.5 !important; }

  /* 8. Footer Mobile Editorial Redesign */
  .footer { 
    padding: 64px 0 40px 0 !important; 
  }
  .footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px !important;
    padding-bottom: 40px !important;
    margin-bottom: 32px !important;
  }
  .footer-logo {
    text-align: center !important;
    font-size: 38px !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
  }
  .footer-desc {
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
  }
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
  }
  .footer-col {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-col h4 {
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    margin-bottom: 16px !important;
  }
  .footer-col a {
    font-size: 15px !important;
    line-height: 2.2 !important;
  }
  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .footer-bottom p {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
  .seo-matrix {
    margin-top: 32px !important;
  }
  .seo-matrix p {
    font-size: 9px !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  /* 9. Let's Talk & Form Mobile Redesign */
  .apply { padding: 48px 0 !important; }
  .apply-inner { 
    display: flex !important; 
    flex-direction: column !important;
    gap: 32px !important; 
  }
  
  .apply-left .section-label {
    text-align: center !important;
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    margin-bottom: 12px !important;
  }
  .apply-left .section-title {
    text-align: center !important;
    font-size: 42px !important;
    margin-bottom: 20px !important;
    line-height: 0.95 !important;
  }
  .apply-left .section-title em {
    display: block !important;
    color: var(--body-dark) !important;
    margin-top: -4px !important;
  }
  .apply-left .section-desc {
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 32px !important;
  }
  .apply-promises {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    background: var(--white) !important; /* Put all promises inside a single premium card */
    padding: 24px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03) !important;
  }
  .promise { font-size: 13px !important; }

  .apply-right { width: 100% !important; }
  .apply-form {
    padding: 32px 20px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04) !important;
    gap: 24px !important;
  }
  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .form-group label {
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    color: var(--body-dark) !important;
    opacity: 0.6 !important;
  }
  /* Strip bulky borders from form, leave only a sophisticated bottom stroke */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 0 !important;
    font-size: 16px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--border-strong) !important;
    border-radius: 0 !important; /* Forces sharp corners on bottom line */
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-bottom: 2px solid var(--red) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .form-disclaimer { margin-top: 16px !important; }

  /* 10. Hero Mobile Editorial Redesign (Option 2: Asymmetric Brutalism) */
  .hero {
    min-height: 100dvh !important;
    padding: 120px 20px 0 !important; /* marquee flows at the bottom naturally */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    overflow: visible !important; /* prevent marquee clip */
  }
  .hero-left-bar { display: none !important; } 
  
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-live {
    align-self: flex-start !important;
    margin: 0 0 32px 0 !important;
    background: rgba(255,255,255,0.05) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  .hero-eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 16px !important;
    opacity: 0.6 !important;
  }
  .hero-headline {
    font-size: 52px !important;
    line-height: 0.95 !important;
    margin-bottom: 32px !important;
    letter-spacing: -0.03em !important;
  }
  .hero-headline em { 
    display: inline !important; 
    margin-top: 0 !important; 
    color: var(--pool-aqua) !important; 
  }
  .hero-rule {
    margin: 0 0 24px 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: rgba(255,255,255,0.1) !important;
  }
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 95% !important;
    margin: 0 0 40px 0 !important;
  }
  
  /* 50/50 Control Panel CTAs */
  .hero-ctas {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 8px !important;
    margin-bottom: 48px !important;
  }
  .hero-ctas .btn {
    padding: 14px 10px !important;
    font-size: 11px !important;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  /* Dense Glass Card Stats Grid */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 8px !important;
    border: none !important;
    margin-bottom: 48px !important;
    padding: 0 !important;
  }
  .stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px 16px !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
    width: 100% !important;
  }
  .stat-num { 
    font-size: 24px !important; 
    order: 1 !important; 
    margin-bottom: 4px !important;
    color: var(--white) !important;
  }
  .stat-label { 
    font-size: 9px !important; 
    letter-spacing: 0.1em !important; 
    order: 2 !important; 
    text-transform: uppercase !important;
    opacity: 0.5 !important;
  }
}

/* ================================================
   FINAL GLOBAL EDITORIAL REDESIGN (DESKTOP + MOBILE)
   ================================================ */

/* ── Asymmetric Brutalism Hero (Desktop Scale) ── */
/* ── Split Dashboard Hero (Desktop God-Tier Redesign) ── */
@media (min-width: 769px) {
  .hero {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important; 
  }
  
  .hero-live {
    position: absolute !important;
    top: 140px !important;
    left: var(--container-px) !important;
    margin: 0 !important;
    background: rgba(255,255,255,0.05) !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    z-index: 10 !important;
  }
  
  .hero-left-bar { display: none !important; }

  .hero-content {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 0 64px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: var(--container-max) !important;
    padding-left: 0 !important;
  }

  .hero-eyebrow {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    opacity: 0.6 !important;
  }
  
  .hero-headline {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;
    font-size: clamp(52px, 6vw, 92px) !important;
    line-height: 0.95 !important;
    margin-bottom: 32px !important;
    letter-spacing: -0.03em !important;
    text-align: left !important;
    max-width: 1000px !important;
  }
  
  .hero-rule {
    grid-column: 1 / 2 !important;
    grid-row: 3 !important;
    margin: 0 0 32px 0 !important;
    width: 100% !important;
    max-width: 800px !important;
    background: rgba(255,255,255,0.1) !important;
  }
  
  .hero-sub {
    grid-column: 1 / 2 !important;
    grid-row: 4 !important;
    font-size: clamp(16px, 1.5vw, 18px) !important;
    line-height: 1.6 !important;
    max-width: 540px !important;
    margin-bottom: 48px !important;
    text-align: left !important;
  }
  
  .hero-ctas {
    grid-column: 1 / 2 !important;
    grid-row: 5 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
  }
  .hero-ctas .btn { flex: 0 0 auto !important; }

  /* Right-Side Dashboard Grid */
  .hero-stats {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 6 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-self: center !important; 
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }
  
  .hero-stats .stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 40px 24px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 12px !important;
    text-align: left !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2) !important;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease) !important;
  }
  
  .hero-stats .stat:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
  }
  
  .hero-stats .stat-num { 
    font-size: clamp(32px, 3.5vw, 44px) !important; 
    order: 1 !important; 
    margin-bottom: 8px !important; 
    color: var(--white) !important; 
  }
  
  .hero-stats .stat-label { 
    font-size: 10px !important; 
    letter-spacing: 0.15em !important; 
    order: 2 !important; 
    opacity: 0.5 !important; 
    text-transform: uppercase !important;
  }
}

/* ── Services Single Stack (Desktop) ── */
@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: 1fr 1fr !important; /* Keep 2 cols but dense */
    gap: 24px !important;
  }
  .service-icon { display: none !important; } 
  .service-card {
    padding: 40px !important;
  }
  .service-price {
    padding-top: 24px !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
  }
}

/* ── Minimalist Form & Promise Card (Desktop) ── */
@media (min-width: 769px) {
  .apply-promises {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    background: var(--white) !important;
    padding: 40px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.03) !important;
  }
  .form-group input, .form-group select, .form-group textarea {
    border: none !important;
    border-bottom: 2px solid var(--border-strong) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 12px 0 !important;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-bottom: 2px solid var(--red) !important;
  }
}

/* ── Centered Footer (Desktop) ── */
@media (min-width: 769px) {
  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-top {
    flex-direction: column !important;
    gap: 48px !important;
    align-items: center !important;
    padding-bottom: 48px !important;
    width: 100% !important;
  }
  .footer-logo { font-size: 56px !important; margin-bottom: 20px !important; }
  .footer-desc { max-width: 400px !important; margin: 0 auto !important; }
  .footer-links {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 80px !important;
  }
}

/* ── Speed Proof Split Cards (Desktop) ── */
@media (min-width: 769px) {
  .speed-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .speed-col {
    display: flex !important;
    flex-direction: column !important;
    padding: 48px !important;
    border-radius: 12px !important;
  }
  .speed-col-old {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04) !important;
  }
  .speed-col-new {
    background: var(--moonlit) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
  }
  .speed-vs { display: none !important; }
  .speed-total { margin-top: auto !important; }
}

/* ── Founders Huge Watermark Numbering (Desktop) ── */
@media (min-width: 769px) {
  .founder-bio { position: relative !important; }
  .founder-num {
    position: absolute !important;
    top: -60px !important;
    left: -20px !important;
    font-size: 280px !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    color: var(--moonlit) !important;
    opacity: 0.04 !important;
    z-index: -1 !important;
    margin: 0 !important;
    font-family: var(--font-display) !important;
  }
}

/* ── Caught in the Wild Refinements (Desktop) ── */
@media (min-width: 769px) {
  .phone-screen {
    height: auto !important;
    padding-bottom: 24px !important;
  }
  .wild-callout {
    padding: 24px !important;
    background: rgba(0,0,0,0.03) !important;
    border-radius: 8px !important;
    margin-top: 32px !important;
    border-left: none !important; /* Remove legacy blockquote border */
  }
}

/* ================================================

/* ================================================

/* ================================================
   FINAL RTL OVERRIDES FOR GOD-TIER LAYOUT
   ================================================ */
html[dir="rtl"] .hero-headline,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .hero-stats .stat,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-desc {
  text-align: right !important;
}

/* Fix desktop floating badge */
@media (min-width: 769px) {
  html[dir="rtl"] .hero-live {
    left: auto !important;
    right: var(--container-px) !important;
  }
}
html[dir="rtl"] .hero,
html[dir="rtl"] .hero-content {
  text-align: right !important;
}

/* ── Mobile Marquee Fix: flow naturally, not clipped by absolute position ── */
@media (max-width: 768px) {
  .hero-marquee-track {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    margin-top: auto !important;
    /* Edge-to-edge: break out of the hero's 20px side padding */
    width: calc(100% + 40px) !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    align-self: stretch !important;
    padding: 10px 0 !important;
  }

  .hero-content {
    flex: 1 !important;
  }

  /* Live ticker: let it wrap naturally, no artificial width cap */
  .hero-live {
    max-width: calc(100% - 24px) !important;
    white-space: normal !important;
  }
  .live-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
  }
}
