/* ============================================
   LOCALMODEL — Fluted Glass Edition
   Vibe: teal/emerald/amber ribbed glass, liquid motion
   ============================================ */

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

:root {
  /* Core palette — warm-leaning tonal system */
  --ink:        #0A1416;
  --ink-soft:   #131F21;
  --mute:       #8FA0A2;
  --mute-2:     #6E7F81;
  /* dark surface tokens (services + why-us + cards live here) */
  --cream:      #1B2628;
  --cream-2:    #233032;
  --surface:    #1F2A2C;
  /* light tokens for text on dark surfaces */
  --paper:      #F2EDE2;
  --light:      #F2EDE2;
  --light-2:    #E6E1D4;

  /* Fluted glass hues */
  --teal-deep:  oklch(0.32 0.07 200);
  --teal:       oklch(0.48 0.09 195);
  --teal-lite:  oklch(0.72 0.08 195);
  --emerald:    oklch(0.55 0.11 165);
  --moss:       oklch(0.42 0.08 150);
  --amber:      oklch(0.72 0.15 70);
  --amber-deep: oklch(0.55 0.14 55);
  --rust:       oklch(0.48 0.14 40);

  /* Accents */
  --accent:     var(--amber);
  --accent-2:   var(--teal);

  --radius: 2px;
  --radius-lg: 4px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  background: var(--ink);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--light);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   TYPE
   ============================================ */

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--light);
}

h1 {
  font-size: clamp(56px, 10vw, 148px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h2 {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.section-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  margin-bottom: 24px;
  max-width: 18ch;
}

.section-sub {
  color: var(--mute);
  font-size: 19px;
  line-height: 1.45;
  max-width: 52ch;
  letter-spacing: -0.01em;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--emerald) 40%, var(--amber) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

.btn:hover::before { opacity: 1; }
.btn:hover { color: var(--paper); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--light);
  box-shadow: inset 0 0 0 1px rgba(242,237,226,0.35);
}
.btn-outline::before { display: none; }
.btn-outline:hover {
  background: var(--light);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--light);
}

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; padding: 18px 28px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--ink) 75%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: rgba(242,237,226,0.08);
}

.navbar .btn-sm {
  background: var(--light);
  color: var(--ink);
}
.navbar .btn-sm:hover { color: var(--light); }

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--light);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: "";
  width: 12px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      var(--teal) 0 2px,
      var(--emerald) 2px 4px);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.logo span { color: rgba(242,237,226,0.55); font-weight: 400; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(242,237,226,0.7);
  transition: color 0.25s ease;
  position: relative;
  letter-spacing: -0.005em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--light); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--light); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(242,237,226,0.2);
  border-radius: var(--radius-pill);
  padding: 2px;
  cursor: pointer;
  font-family: inherit;
}

.lang-option {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  color: rgba(242,237,226,0.55);
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
}

.lang-option.active {
  background: var(--light);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--light);
  transition: all 0.25s ease;
}

/* ============================================
   HERO — the fluted glass star of the show
   ============================================ */

.hero {
  min-height: 100svh;
  position: relative;
  padding: 120px 32px 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}

/* Base liquid gradient layer */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -3;
  background:
    radial-gradient(60% 70% at 20% 20%, oklch(0.55 0.14 70 / 0.9), transparent 60%),
    radial-gradient(50% 60% at 80% 35%, oklch(0.48 0.12 195 / 0.95), transparent 55%),
    radial-gradient(80% 80% at 50% 95%, oklch(0.42 0.11 165 / 0.95), transparent 60%),
    linear-gradient(180deg, oklch(0.28 0.06 200) 0%, oklch(0.22 0.05 180) 50%, oklch(0.18 0.05 60) 100%);
  animation: hero-drift 22s ease-in-out infinite alternate;
  filter: blur(10px) saturate(115%);
}

@keyframes hero-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}

/* Fluted glass ribbing overlay — chunky ribs with highlight + shadow edges per rib */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    /* sharp highlight at rib crest */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 22px,
      rgba(255,255,255,0.55) 23px,
      rgba(255,255,255,0.22) 25px,
      transparent 26px,
      transparent 32px
    ),
    /* deep shadow at rib join */
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.55) 0px,
      rgba(0,0,0,0.25) 2px,
      rgba(0,0,0,0) 6px,
      rgba(0,0,0,0) 26px,
      rgba(0,0,0,0.35) 30px,
      rgba(0,0,0,0.55) 32px
    ),
    /* soft curve shading across each rib */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,0.08) 10px,
      rgba(255,255,255,0.18) 16px,
      rgba(255,255,255,0.08) 22px,
      rgba(255,255,255,0) 32px
    );
  mix-blend-mode: overlay;
  opacity: 1;
  animation: flute-shimmer 10s ease-in-out infinite;
}

@keyframes flute-shimmer {
  0%, 100% { filter: brightness(1) contrast(1.05); }
  50%      { filter: brightness(1.12) contrast(1.1); }
}

/* Moving caustic light sweep across the whole hero glass */
.hero .hero-glass-sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255,245,210,0.08) 45%,
    rgba(255,245,210,0.28) 50%,
    rgba(255,245,210,0.08) 55%,
    transparent 65%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  animation: glass-sweep 14s ease-in-out infinite;
  transform: translateX(-30%);
}

@keyframes glass-sweep {
  0%   { transform: translateX(-40%); opacity: 0.4; }
  50%  { transform: translateX(40%);  opacity: 1;   }
  100% { transform: translateX(-40%); opacity: 0.4; }
}

/* Soft grain/noise for depth */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(2px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.hero-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(242,237,226,0.8);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(219,165,85,0.7);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(219,165,85,0.7); }
  100% { box-shadow: 0 0 0 14px rgba(219,165,85,0); }
}

.hero-text h1 {
  color: var(--paper);
  max-width: 15ch;
  margin-bottom: 0;
  mix-blend-mode: normal;
}

.hero-text h1 em {
  font-style: normal;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--amber);
  background: linear-gradient(90deg, var(--amber) 0%, oklch(0.78 0.12 180) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
  max-width: 360px;
  text-align: right;
}

.hero-sub {
  font-size: 16px;
  color: rgba(242,237,226,0.75);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-cta .btn {
  background: var(--paper);
  color: var(--ink);
}
.hero-cta .btn:hover { color: var(--paper); }

.hero-cta .btn-outline {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(242,237,226,0.4);
}
.hero-cta .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--paper);
}

/* Hero bottom marquee of stats / running text */
.hero-marquee {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px 0;
  border-top: 1px solid rgba(242,237,226,0.12);
  backdrop-filter: blur(8px);
  background: rgba(14,26,28,0.2);
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.7);
}

.hero-marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-left: 48px;
}

.hero-marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.hero-marquee-track span::after {
  content: "◇";
  color: var(--amber);
  margin-left: 48px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hide old hero-visual graphic */
.hero-visual { display: none; }

/* ============================================
   SCROLL PROGRESS
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--emerald), var(--amber));
  z-index: 1100;
  box-shadow: 0 0 12px rgba(219,165,85,0.4);
  transition: width 0.1s linear;
}

/* ============================================
   SECTION SCAFFOLD — shared bits
   ============================================ */

section {
  position: relative;
  padding: 140px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.section-head .section-sub {
  padding-bottom: 8px;
}

/* Fluted glass divider strip — thick 3D ribs */
.flute-divider {
  height: 64px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, oklch(0.32 0.07 200) 0%, oklch(0.45 0.09 170) 50%, oklch(0.28 0.07 60) 100%);
}
.flute-divider::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.6) 0px,
      rgba(0,0,0,0.2) 3px,
      rgba(255,255,255,0) 6px,
      rgba(255,255,255,0.25) 14px,
      rgba(255,255,255,0.6) 16px,
      rgba(255,255,255,0.25) 18px,
      rgba(255,255,255,0) 26px,
      rgba(0,0,0,0.2) 30px,
      rgba(0,0,0,0.6) 32px
    );
  mix-blend-mode: overlay;
}
.flute-divider::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,245,210,0.35) 45%,
    rgba(255,245,210,0.5) 50%,
    rgba(255,245,210,0.35) 55%,
    transparent 100%);
  mix-blend-mode: overlay;
  animation: divider-sweep 6s ease-in-out infinite;
}

@keyframes divider-sweep {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

/* ============================================
   SERVICES — glass block grid
   ============================================ */

.services {
  background: var(--ink);
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 0% 100%, oklch(0.42 0.11 165 / 0.45), transparent 60%),
    radial-gradient(50% 50% at 100% 0%, oklch(0.55 0.14 55 / 0.3), transparent 60%);
  pointer-events: none;
}

.services > * { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: rgba(242,237,226,0.08);
  border: 1px solid rgba(242,237,226,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--surface);
  padding: 40px 32px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  grid-column: span 4;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--light);
}

.card {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.4) 0px,
      rgba(0,0,0,0.15) 3px,
      rgba(255,255,255,0) 8px,
      rgba(255,255,255,0.10) 12px,
      rgba(255,255,255,0.20) 14px,
      rgba(255,255,255,0.10) 16px,
      rgba(255,255,255,0) 22px,
      rgba(0,0,0,0.22) 28px,
      rgba(0,0,0,0.4) 30px),
    var(--surface);
  padding: 40px 32px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  grid-column: span 4;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* (rib texture is now baked into .card background above) */

/* Strong refraction sweep on hover — fluted glass catches light */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.08) 0px,
      rgba(0,0,0,0.02) 2px,
      rgba(255,255,255,0.9) 11px,
      rgba(255,255,255,0.4) 14px,
      rgba(0,0,0,0.04) 22px,
      rgba(0,0,0,0.08) 24px);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklch, var(--accent-hue, var(--teal)) 75%, transparent) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  mix-blend-mode: multiply;
}

.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 0.55; }

/* Hover: swap dark surface for colorful teal→amber gradient, keep rib stripes on top */
.card:not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px,
      rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px,
      rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px,
      rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px,
      rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--moss) 45%, var(--amber-deep) 100%);
  transition: background 0.6s var(--ease);
}

/* Per-card hover gradient variations so each card hovers to a unique colorway */
.card:nth-child(6n+2):not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px, rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px, rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px, rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--moss) 0%, var(--emerald) 50%, var(--teal) 100%);
}
.card:nth-child(6n+3):not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px, rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px, rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px, rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--amber-deep) 0%, var(--rust) 50%, var(--moss) 100%);
}
.card:nth-child(6n+4):not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px, rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px, rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px, rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--teal) 0%, var(--moss) 50%, var(--emerald) 100%);
}
.card:nth-child(6n+5):not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px, rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px, rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px, rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--rust) 0%, var(--amber-deep) 50%, var(--moss) 100%);
}
.card:nth-child(6n+6):not(.feature):hover {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.18) 3px,
      rgba(255,255,255,0) 8px, rgba(255,255,255,0.16) 12px,
      rgba(255,255,255,0.28) 14px, rgba(255,255,255,0.16) 16px,
      rgba(255,255,255,0) 22px, rgba(0,0,0,0.25) 28px,
      rgba(0,0,0,0.45) 30px),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 50%, var(--amber-deep) 100%);
}

/* Suppress the radial cursor spotlight on hover (the gradient already does the heavy lifting) */
.card:not(.feature):hover::after { opacity: 0; }

.card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(242,237,226,0.5);
  letter-spacing: 0.1em;
  margin-bottom: auto;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 36px 0 28px;
  color: var(--light);
  background: none;
  border-radius: 0;
  transition: color 0.4s ease, transform 0.5s var(--ease);
}

.card:hover .card-icon {
  color: var(--amber);
  transform: rotate(-6deg) scale(1.08);
}

.card-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: var(--light);
}

.card p {
  color: rgba(242,237,226,0.65);
  font-size: 14px;
  line-height: 1.5;
}

/* Color-code cards by hue (varies refraction tint on hover) */
.card:nth-child(6n+1) { --accent-hue: var(--teal); }
.card:nth-child(6n+2) { --accent-hue: var(--emerald); }
.card:nth-child(6n+3) { --accent-hue: var(--amber); }
.card:nth-child(6n+4) { --accent-hue: var(--moss); }
.card:nth-child(6n+5) { --accent-hue: var(--rust); }
.card:nth-child(6n+6) { --accent-hue: var(--teal-deep); }

/* Feature card spans full width */
.card.feature {
  grid-column: span 12;
  min-height: 220px;
  background:
    linear-gradient(135deg, var(--teal-deep) 0%, var(--moss) 50%, var(--amber-deep) 100%);
  color: var(--paper);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.card.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.65) 0px,
      rgba(0,0,0,0.2) 3px,
      rgba(0,0,0,0) 8px,
      rgba(255,255,255,0.35) 14px,
      rgba(255,255,255,0.6) 16px,
      rgba(255,255,255,0.35) 18px,
      rgba(0,0,0,0) 24px,
      rgba(0,0,0,0.3) 28px,
      rgba(0,0,0,0.65) 30px);
  mix-blend-mode: overlay;
  opacity: 1;
  animation: flute-shimmer 10s ease-in-out infinite;
}

.card.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,245,210,0.3) 50%,
    transparent 65%
  );
  mix-blend-mode: overlay;
  animation: glass-sweep 12s ease-in-out infinite;
}

.card.feature > * { position: relative; z-index: 1; }

.card.feature h3 {
  font-size: clamp(28px, 3vw, 44px);
  color: var(--paper);
  max-width: 14ch;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.card.feature p {
  color: rgba(242,237,226,0.82);
  font-size: 15px;
  max-width: 40ch;
}

.card.feature .card-num { color: rgba(242,237,226,0.7); }
.card.feature .card-icon { color: var(--paper); margin: 0 0 24px; }
.card.feature:hover { background: linear-gradient(135deg, var(--teal-deep) 0%, var(--moss) 50%, var(--amber-deep) 100%); }

.feature-left { display: flex; flex-direction: column; }

/* ============================================
   HOW IT WORKS — vertical ticker steps
   ============================================ */

.how-it-works {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 10% 0%, oklch(0.42 0.11 165 / 0.5), transparent 60%),
    radial-gradient(50% 50% at 100% 100%, oklch(0.55 0.14 55 / 0.4), transparent 60%);
  pointer-events: none;
}

.how-it-works > * { position: relative; z-index: 1; }

.how-it-works .section-eyebrow { color: rgba(242,237,226,0.6); }
.how-it-works h2 { color: var(--paper); }
.how-it-works .section-sub { color: rgba(242,237,226,0.7); }

.steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(242,237,226,0.18);
  margin-top: 48px;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr 2fr 80px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid rgba(242,237,226,0.18);
  position: relative;
  transition: padding 0.6s var(--ease), background 0.6s var(--ease);
}

.step:hover {
  padding-left: 24px;
  background: linear-gradient(90deg, rgba(242,237,226,0.03), transparent 60%);
}

.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--emerald), transparent);
  transition: width 0.8s var(--ease);
}

.step:hover::before { width: 100%; }

.step-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.1em;
  font-weight: 500;
  background: none;
  width: auto; height: auto;
  border-radius: 0;
  display: block;
  box-shadow: none !important;
}

.step-content h3 {
  color: var(--paper);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 12ch;
}

.step-desc {
  color: rgba(242,237,226,0.7);
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
}

.step-arrow {
  color: rgba(242,237,226,0.4);
  font-size: 24px;
  transition: transform 0.4s var(--ease), color 0.4s ease;
  justify-self: end;
  align-self: center;
}

.step:hover .step-arrow {
  color: var(--amber);
  transform: translateX(6px);
}

/* ============================================
   WHY US — glass block wall
   ============================================ */

.why-us {
  background: var(--ink);
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 100% 100%, oklch(0.42 0.11 165 / 0.4), transparent 60%),
    radial-gradient(50% 50% at 0% 0%, oklch(0.55 0.14 55 / 0.25), transparent 60%);
  pointer-events: none;
}

.why-us > * { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(242,237,226,0.08);
  border: 1px solid rgba(242,237,226,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-item {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.4) 0px,
      rgba(0,0,0,0.15) 3px,
      rgba(255,255,255,0) 8px,
      rgba(255,255,255,0.10) 12px,
      rgba(255,255,255,0.20) 14px,
      rgba(255,255,255,0.10) 16px,
      rgba(255,255,255,0) 22px,
      rgba(0,0,0,0.22) 28px,
      rgba(0,0,0,0.4) 30px),
    var(--cream);
  padding: 48px 32px;
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  isolation: isolate;
  color: var(--light);
}

.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.6) 0px,
      rgba(0,0,0,0.2) 3px,
      rgba(0,0,0,0) 8px,
      rgba(255,255,255,0.4) 13px,
      rgba(255,255,255,0.75) 16px,
      rgba(255,255,255,0.4) 19px,
      rgba(0,0,0,0) 24px,
      rgba(0,0,0,0.3) 28px,
      rgba(0,0,0,0.6) 30px);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.why-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hover-bg, var(--teal-deep));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.why-item:nth-child(1) { --hover-bg: var(--teal-deep); }
.why-item:nth-child(2) { --hover-bg: var(--moss); }
.why-item:nth-child(3) { --hover-bg: var(--amber-deep); }
.why-item:nth-child(4) { --hover-bg: var(--rust); }
.why-item:nth-child(5) { --hover-bg: var(--emerald); }

.why-item:hover {
  color: var(--paper);
}
.why-item:hover::before { opacity: 0.95; }
.why-item:hover::after { opacity: 1; }

.why-item .why-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242,237,226,0.5);
  margin-bottom: auto;
}

.why-item:hover .why-num { color: rgba(242,237,226,0.7); }

.why-item h3 {
  font-size: clamp(24px, 2vw, 32px);
  margin: 48px 0 12px;
  color: inherit;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 10ch;
}

.why-item p {
  color: inherit;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.5;
}

/* First why-item spans 4 cols — deeper anchor block */
.why-item:first-child {
  grid-column: span 4;
  background: var(--ink);
  color: var(--light);
}
.why-item:first-child::after { background: var(--teal-deep); }
.why-item:first-child .why-num { color: rgba(242,237,226,0.45); }
.why-item:first-child h3 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 14ch;
}
.why-item:first-child p { color: rgba(242,237,226,0.7); opacity: 1; font-size: 16px; max-width: 42ch; }

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background:
    radial-gradient(70% 70% at 0% 100%, oklch(0.48 0.09 195 / 0.35), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, oklch(0.55 0.14 55 / 0.25), transparent 60%);
  pointer-events: none;
}

.contact > * { position: relative; z-index: 1; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.contact-text .section-eyebrow { color: rgba(242,237,226,0.6); }

.contact-text h2 {
  color: var(--paper);
  margin-bottom: 28px;
  max-width: 14ch;
  font-weight: 400;
}

.contact-text h2 em {
  font-style: italic;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  color: var(--amber);
}

.contact-text > p {
  color: rgba(242,237,226,0.7);
  font-size: 18px;
  line-height: 1.5;
  max-width: 40ch;
  margin-bottom: 48px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(242,237,226,0.18);
}

.contact-meta .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-meta .meta-row span:first-child {
  color: rgba(242,237,226,0.5);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.contact-meta .meta-row a { color: var(--paper); transition: color 0.25s ease; }
.contact-meta .meta-row a:hover { color: var(--amber); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(242,237,226,0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(242,237,226,0.18);
}
.form-row > input + input {
  border-left: 1px solid rgba(242,237,226,0.18);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 22px 4px;
  border: none;
  border-bottom: 1px solid rgba(242,237,226,0.18);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--paper);
  outline: none;
  transition: border-color 0.3s ease;
  letter-spacing: -0.005em;
}

.form-row input { border-bottom: none; }

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(242,237,226,0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--amber);
}

.form-row input:focus { border-bottom: none; box-shadow: inset 0 -1px 0 var(--amber); }

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  padding: 22px 4px;
}

.contact-form .btn {
  margin-top: 24px;
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
}

.contact-form .btn::before {
  background: linear-gradient(90deg, var(--amber), var(--emerald), var(--teal));
}

.contact-form .btn:hover { color: var(--paper); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--ink);
  color: rgba(242,237,226,0.7);
  padding-top: 40px;
  border-top: 1px solid rgba(242,237,226,0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0 60px;
  align-items: start;
}

.footer-brand .logo { margin-bottom: 16px; color: var(--paper); }
.footer-brand .logo span { color: rgba(242,237,226,0.6); }
.footer-brand p { color: rgba(242,237,226,0.6); font-size: 14px; max-width: 30ch; }

.footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.4);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(242,237,226,0.7);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover { color: var(--amber); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid rgba(242,237,226,0.12);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(242,237,226,0.45);
}

/* Giant wordmark at footer base */
.footer-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,237,226,0.15);
  text-align: center;
  padding: 40px 0 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(242,237,226,0.04) 0 3px,
      transparent 3px 9px);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================
   ANIMATIONS
   ============================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.section-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Word reveal — animate outer .word directly (avoids em text-fill-color clip issue) */
.hero-text h1 .word {
  display: inline-block;
  vertical-align: top;
  opacity: 0;
  transform: translateY(60%);
  animation: word-rise 1.1s var(--ease-out) forwards;
}

@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .card.feature { grid-template-columns: 1fr; gap: 20px; }
  .why-item { grid-column: span 3; }
  .why-item:first-child { grid-column: span 6; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { align-items: flex-start; text-align: left; max-width: 520px; }
  .hero-cta { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .step { grid-template-columns: 80px 1fr 40px; gap: 20px; }
  .step-desc { grid-column: 2 / span 2; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 90px 0; }
  .nav-container { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(242,237,226,0.1);
    transform: none;
  }
  .nav-links.open { display: flex; }
  .navbar .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 100px 20px 120px; }
  .hero-marquee { font-size: 11px; padding: 14px 0; }

  .card { grid-column: span 12; min-height: 240px; }
  .card.feature { grid-column: span 12; padding: 36px 24px; }
  .why-item,
  .why-item:first-child { grid-column: span 6; min-height: 200px; padding: 28px 20px; }
  .why-item h3 { font-size: 22px; margin-top: 28px; }
  .why-item:first-child h3 { font-size: 28px; }

  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 32px 0; }
  .step-desc { grid-column: 1 / -1; }
  .step-arrow { display: none; }
  .step-content h3 { font-size: 24px; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row > input + input { border-left: none; border-top: 1px solid rgba(242,237,226,0.18); }
  .form-row input { border-bottom: 1px solid rgba(242,237,226,0.18); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-text h1 .word > span { transform: translateY(0); }
}
