:root {
  --bg-0: #0A0A0A;
  --bg-1: #111111;
  --bg-2: #171717;
  --bg-3: #1E1E1E;
  --surface: rgba(255,255,255,0.035);
  --line: rgba(255,248,235,0.1);
  --line-soft: rgba(255,248,235,0.06);
  --text: #f6f0e6;
  --text-head: #f8f4ec;
  --text-dim: rgba(246,240,230,0.72);
  --text-soft: rgba(246,240,230,0.44);
  --gold: #E2A84D;
  --gold-soft: rgba(226,168,77,0.14);
  --coral: #D06A50;
  --teal: #45B08C;
  --danger: #C45048;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --max: 1180px;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: "Epilogue", system-ui, sans-serif;
  --font-hero: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-accent: var(--font-hero);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

em {
  font-style: normal;
}

a { color: inherit; text-decoration: none; }
.hidden-until-launch.hidden-until-launch { display: none !important; }

/* ─── LAYOUT ─── */
.page { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

/* ─── NAV ─── */
.lib-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(calc(100% - 48px), var(--max));
  margin: 16px auto 0;
  padding: 12px 20px;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lib-nav-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.lib-nav-brand img {
  display: block;
  width: 145px;
  max-width: 145px;
  height: auto;
}
.lib-nav-brand span { color: var(--text-soft); font-weight: 500; margin-left: 8px; font-size: 0.75rem; letter-spacing: 0; }
.lib-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.lib-nav-links::-webkit-scrollbar { display: none; }
.lib-nav-links a {
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.lib-nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.lib-nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-left: 24px;
}
.lib-nav-phone:hover {
  border-color: rgba(226,168,77,0.38);
  background: rgba(226,168,77,0.08);
  color: var(--gold);
}
.lib-nav-links .btn-primary {
  margin-left: 14px;
}
.lib-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lib-nav-dropdown > summary {
  list-style: none;
}
.lib-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}
.lib-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.lib-nav-dropdown-trigger:hover,
.lib-nav-dropdown[open] .lib-nav-dropdown-trigger,
.lib-nav-dropdown:focus-within .lib-nav-dropdown-trigger {
  border-color: rgba(226,168,77,0.38);
  background: rgba(226,168,77,0.08);
  color: var(--gold);
}
.lib-nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
  transition: transform 0.2s ease;
}
.lib-nav-dropdown[open] .lib-nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.lib-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(6,8,11,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.38);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1200;
}
.lib-nav-dropdown:hover .lib-nav-dropdown-menu,
.lib-nav-dropdown:focus-within .lib-nav-dropdown-menu,
.lib-nav-dropdown[open] .lib-nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lib-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.lib-nav-dropdown-menu a:hover {
  background: rgba(226,168,77,0.08);
  color: var(--gold);
}
.lib-desktop-services {
  display: flex;
  flex-direction: column;
}
.lib-mobile-menu-only {
  display: none !important;
}
.lib-mobile-services {
  display: none;
}
.lib-mobile-services > summary {
  list-style: none;
}
.lib-mobile-services > summary::-webkit-details-marker {
  display: none;
}
.lib-mobile-services-trigger {
  display: none;
}
.lib-mobile-services-menu {
  display: none;
}

/* ─── SECTION (two-tone alternating) ─── */
.lib-section {
  padding: 120px 0;
  position: relative;
}
.lib-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.lib-section:nth-child(even)::before {
  background: var(--bg-1);
  opacity: 1;
}
.lib-section:nth-child(even) {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ─── CARD OVERLAY SECTION (Owner.com-style stacking) ─── */
.card-overlay {
  position: relative;
  margin-top: -100px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding-top: 140px;
  padding-bottom: 200px;
  border-radius: 60px 60px 0 0;
  background: var(--bg-1);
  box-shadow:
    0 -40px 100px rgba(0,0,0,0.7),
    0 -8px 30px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,248,235,0.08);
}
/* Alternate shade for visible stacking contrast */
.card-overlay.--dark {
  background: var(--bg-0);
}
/* Inner glow at the top edge — makes the "card" feel tangible */
.card-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  border-radius: 60px 60px 0 0;
  background: linear-gradient(180deg,
    rgba(255,248,235,0.03) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
/* "Going under" variant — this section gets covered by the NEXT section */
.card-overlay.--recede {
  z-index: auto !important; /* let it sit below the next card */
}

/* Remove the default even-section ::before bg on card-overlay sections */
.card-overlay.lib-section::before {
  display: none !important;
}
/* The section right before a card-overlay needs extra bottom padding
   so its content isn't hidden behind the overlap */
.card-overlay-spacer {
  padding-bottom: 200px !important;
}

/* ─── SECTION TRANSITION ─── */
/* Atmospheric gradient fade zone — not a line, a breath between sections.
   A tall invisible bleed with a barely-perceptible luminance shift at center. */
.seam-divider {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  z-index: 2;
  height: 96px;
  background: transparent;
  pointer-events: none;
}
/* Top fade — pulls down from the section above */
.seam-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    var(--bg-0) 0%,
    transparent 100%
  );
}
/* Bottom fade — pushes up from the section below */
.seam-divider::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(0deg,
    var(--bg-0) 0%,
    transparent 100%
  );
}
/* The luminance whisper — a single-pixel horizon line at the midpoint */
.seam-luminance {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(255,248,235,0.04) 25%,
    rgba(255,248,235,0.07) 50%,
    rgba(255,248,235,0.04) 75%,
    transparent 95%
  );
}

.lib-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.lib-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.lib-section-sub {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 48ch;
  margin-bottom: 48px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.04em; margin: 0; }
.display-xl { font-family: var(--font-hero); font-size: clamp(2.8rem, 5vw, 5rem); line-height: 0.96; font-weight: 800; letter-spacing: -0.05em; }
.display-lg { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 0.95; font-weight: 800; }
.display-md { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.1; font-weight: 700; }
.accent-serif { font-family: var(--font-hero); font-style: normal; font-weight: 500; letter-spacing: 0; }
.text-glow {
  background: linear-gradient(
    115deg,
    #C6943A 0%,
    #F2D688 18%,
    #ffef9d 38%,
    #F2D688 52%,
    #C6943A 68%,
    #8B6914 82%,
    #C6943A 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-gold 6s ease-in-out infinite;
}
@keyframes shimmer-gold {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}
.label {
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.body-text { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,248,235,0.18); }
.btn-primary {
  border-color: rgba(226,168,77,0.3);
  background: linear-gradient(135deg, rgba(226,168,77,0.2), rgba(208,106,80,0.18));
  color: #f8f2e8;
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(226,168,77,0.15); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* ─── CHIPS / BADGES ─── */
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-teal { background: rgba(69,176,140,0.14); color: #6DC4A6; }
.badge-danger { background: rgba(196,80,72,0.14); color: #E07A70; }

/* ─── HERO BADGE ─── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(226,168,77,0.2);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

/* ─── INPUT ─── */
.input {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}
.input::placeholder { color: var(--text-soft); }

/* ─── SECTION LABEL WITH LINE ─── */
.section-label-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label-line::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ─── NOTE ─── */
.note {
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ─── SWATCHES ─── */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.swatch-box {
  height: 80px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.swatch-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.swatch-box:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.4); border-color: rgba(255,248,235,0.15); }
.swatch-box:hover::after { opacity: 1; }
.swatch-name { font-weight: 600; font-size: 0.88rem; margin-top: 10px; }
.swatch-hex { font-size: 0.78rem; color: var(--text-soft); }

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ─── STAT CARD ─── */
.stat-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,248,235,0.08), transparent);
}
.stat-card:hover { border-color: rgba(226,168,77,0.25); transform: translateY(-2px); }
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #C6943A 0%, #F2D688 25%, #ffef9d 45%, #F2D688 65%, #C6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-card p { font-size: 0.82rem; color: var(--text-soft); margin-top: 6px; }

/* ─── FEATURE CARD ─── */
.feature-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(226,168,77,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover { border-color: rgba(226,168,77,0.25); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-card .label { margin-bottom: 10px; position: relative; z-index: 1; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.feature-card p { font-size: 0.84rem; color: var(--text-dim); line-height: 1.55; position: relative; z-index: 1; }

/* ─── HERO DEMO ─── */
.hero-demo {
  position: relative;
  padding: 100px 48px 80px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-0);
}
.hero-demo::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(226,168,77,0.1) 0%, transparent 55%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-demo::after {
  content: "";
  position: absolute;
  bottom: 0; right: -5%;
  width: 40%; height: 50%;
  background: radial-gradient(ellipse, rgba(163,86,64,0.07) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-demo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-demo-copy h1 { margin-bottom: 20px; }
.hero-demo-copy p { max-width: 46ch; margin-bottom: 28px; }
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 320px;
}
.photo-cell {
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.photo-cell:hover { border-color: rgba(226,168,77,0.25); transform: scale(1.02); z-index: 2; position: relative; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell--span { grid-row: span 2; }
.photo-cell:nth-child(1) { background: linear-gradient(135deg, #16201c, #0b110e); }
.photo-cell:nth-child(2) { background: linear-gradient(135deg, #241c0e, #161008); }
.photo-cell:nth-child(3) { background: linear-gradient(135deg, #18131e, #0c0a10); }
.stat-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.stat-mini {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  text-align: center;
  transition: border-color 0.25s;
}
.stat-mini:hover { border-color: rgba(226,168,77,0.25); }
.stat-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(115deg, #C6943A 0%, #F2D688 25%, #ffef9d 45%, #F2D688 65%, #C6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-mini span { font-size: 0.6rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── CLIENT LOGOS ─── */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo-placeholder {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.logo-placeholder:hover { border-color: rgba(226,168,77,0.25); color: var(--gold); }

/* ─── CINEMATIC MEDIA ─── */
.cinema-section {
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 4;
}
.cinema-section .lib-section-label,
.cinema-section .lib-section-title,
.cinema-section .lib-section-sub {
  padding-left: 0;
  padding-right: 0;
}
.cinema-header {
  padding: 100px 0 48px;
}

.cinema-strip {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 40px;
}

/* Each cinematic frame */
.cinema-frame {
  position: relative;
  width: 62%;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  will-change: transform, width, border-radius;
  background: linear-gradient(180deg, rgba(20,24,29,0.95), rgba(9,11,14,0.98));
}

.cinema-frame-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
}

.cinema-frame-inner video,
.cinema-frame-inner img,
.cinema-frame-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.18);
  transform-origin: center;
}

.cinema-frame-placeholder {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.cinema-frame:nth-child(1) .cinema-frame-placeholder { background: linear-gradient(135deg, #16221e, #0b110e, rgba(226,168,77,0.06)); }
.cinema-frame:nth-child(2) .cinema-frame-placeholder { background: linear-gradient(135deg, #241c0e, #161008, rgba(226,168,77,0.04)); }
.cinema-frame:nth-child(3) .cinema-frame-placeholder { background: linear-gradient(135deg, #18131e, #0c0a10, rgba(226,168,77,0.05)); }

/* Gradient overlay for text readability */
.cinema-frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, transparent 40%, rgba(10,10,10,0.75) 80%, rgba(10,10,10,0.92));
  pointer-events: none;
  z-index: 1;
}

/* Text overlay on media */
.cinema-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px 40px;
  will-change: transform;
}
.cinema-copy .label { margin-bottom: 8px; }
.cinema-copy h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 32ch;
}
.cinema-copy p {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 44ch;
  margin-top: 8px;
  line-height: 1.5;
}

/* Scroll progress indicator on each frame */
.cinema-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  width: 0%;
  z-index: 3;
  transform-origin: left;
}

@media (max-width: 900px) {
  .cinema-frame { width: 85%; }
  .cinema-copy { padding: 20px 24px; }
  .cinema-strip { gap: 80px; }
}

/* ─── HORIZONTAL SCROLL STORYTELLING ─── */
.hscroll-section {
  position: relative;
  padding: 0;
  z-index: 4;
  /* Break out of .page max-width constraint so pin/track are full viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bg-0);
  /* no overflow hidden — let ScrollTrigger pin cleanly */
}

.hscroll-intro {
  padding: 100px 0 40px;
  position: relative;
  z-index: 2;
  background: var(--bg-0);
}
.hscroll-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 22%,
    rgba(255,248,235,0.04) 35%,
    rgba(255,248,235,0.08) 44%,
    rgba(255,248,235,0.04) 53%,
    transparent 66%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Smooth fade-in zone before pin engages */
.hscroll-entry {
  height: 12vh;
  position: relative;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-0));
  pointer-events: none;
}

.hscroll-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 4;
  background: var(--bg-0);
}

.hscroll-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hscroll-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Alternating panel backgrounds — subtle contrast */
.hscroll-panel:nth-child(odd) { background: var(--bg-0); }
.hscroll-panel:nth-child(even) { background: #090b0e; }

/* Clerk-style diagonal gradient light wash — 135° highlight strip */
.hscroll-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 28%,
    rgba(255,248,235,0.035) 40%,
    rgba(255,248,235,0.07) 50%,
    rgba(255,248,235,0.035) 60%,
    transparent 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* Offset the strip on alternating panels for variety */
.hscroll-panel:nth-child(even)::before {
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 38%,
    rgba(255,248,235,0.028) 48%,
    rgba(255,248,235,0.055) 55%,
    rgba(255,248,235,0.028) 62%,
    transparent 74%,
    transparent 100%
  );
}

/* Interstitial cinematic overlays between panels */
.hscroll-interstitial {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -60px;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 100;
  pointer-events: none;
  will-change: transform, opacity;
}

.hscroll-interstitial svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.5;
  filter: drop-shadow(0 0 12px rgba(226,168,77,0.2));
}

.hscroll-interstitial-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.hscroll-interstitial-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(226,168,77,0.15);
  display: grid;
  place-items: center;
  position: relative;
}
.hscroll-interstitial-ring::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(226,168,77,0.1);
}

/* Floating decorative icons that drift between panels */
.hscroll-float-icon {
  position: absolute;
  z-index: 100;
  opacity: 0;
  will-change: transform, opacity;
  color: var(--gold);
}
.hscroll-float-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 16px rgba(226,168,77,0.25));
}

/* Diagonal slash divider between panels */
.hscroll-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 3px;
  z-index: 100;
}
.hscroll-divider::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(226,168,77,0.2) 30%, rgba(226,168,77,0.3) 50%, rgba(226,168,77,0.2) 70%, transparent);
}

/* Exit zone after horizontal scroll unpins */
.hscroll-exit {
  height: 12vh;
  position: relative;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-0));
}

/* Panel inner layout */
.hscroll-panel-inner {
  width: min(1100px, calc(100% - 80px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hscroll-panel-inner.--reverse { direction: rtl; }
.hscroll-panel-inner.--reverse > * { direction: ltr; }

/* Panel copy */
.hscroll-copy {
  will-change: transform, opacity;
}
.hscroll-copy .label { margin-bottom: 14px; }
.hscroll-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hscroll-copy p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 40ch;
  margin-bottom: 24px;
}

/* Panel visual (image/video area) */
.hscroll-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
  will-change: transform, opacity;
}
.hscroll-visual-inner {
  width: 100%;
  height: 100%;
  will-change: transform;
}
.hscroll-visual video,
.hscroll-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hscroll-visual-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.hscroll-panel:nth-child(1) .hscroll-visual-placeholder { background: linear-gradient(135deg, #16221e, #0b110e); }
.hscroll-panel:nth-child(2) .hscroll-visual-placeholder { background: linear-gradient(135deg, #241c0e, #161008); }
.hscroll-panel:nth-child(3) .hscroll-visual-placeholder { background: linear-gradient(135deg, #18131e, #0c0a10); }
.hscroll-panel:nth-child(4) .hscroll-visual-placeholder { background: linear-gradient(135deg, #1e1916, #100d0b); }

/* Panel number indicator */
.hscroll-num {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255,248,235,0.03);
  z-index: 0;
  will-change: transform;
}

/* Progress bar (fixed at bottom of pinned section) */
.hscroll-progress-track {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: rgba(255,248,235,0.08);
  border-radius: 2px;
  z-index: 10;
  overflow: hidden;
}
.hscroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  border-radius: 2px;
  will-change: width;
}

/* Panel dots */
.hscroll-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hscroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,248,235,0.15);
  transition: background 0.3s, transform 0.3s;
}
.hscroll-dot.--active {
  background: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(226,168,77,0.4);
}

/* Stat callout inside a panel */
.hscroll-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.hscroll-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #C6943A 0%, #F2D688 25%, #ffef9d 45%, #F2D688 65%, #C6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hscroll-stat span {
  font-size: 0.76rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .hscroll-panel-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    width: calc(100% - 48px);
  }
  .hscroll-panel-inner.--reverse { direction: ltr; }
  .hscroll-visual { aspect-ratio: 16 / 10; }
  .hscroll-num { font-size: 4rem; top: 24px; left: 24px; }
  .hscroll-copy h2 { font-size: 1.4rem; }
}

/* ─── PAIN / SOLUTION ─── */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}
.pain-grid::before {
  content: "";
  position: absolute;
  left: 50%; top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-soft), rgba(226,168,77,0.2), var(--line-soft), transparent);
  transform: translateX(-50%);
}
.pain-grid::after {
  content: "→";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  background: var(--bg-0);
  border: 1px solid rgba(226,168,77,0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 16px;
  z-index: 1;
}
.pain-col-head {
  padding-left: 12px;
  border-left: 2px solid var(--line-soft);
  margin-bottom: 20px;
}
.pain-col-head.--active { border-left-color: var(--gold); }
.pain-col-head span { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.pain-col-head.--active span { color: var(--gold); }
.pain-col-head h3 { font-size: 1.05rem; font-weight: 700; }
.pain-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.pain-item:hover { transform: translateX(3px); }
.pain-item.--active {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.94), rgba(14,17,21,0.97)) padding-box,
    linear-gradient(160deg, rgba(226,168,77,0.18) 0%, rgba(226,168,77,0.04) 50%, transparent 100%) border-box;
}
.pain-item.--active:hover {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.9), rgba(14,17,21,0.95)) padding-box,
    linear-gradient(160deg, rgba(226,168,77,0.3) 0%, rgba(226,168,77,0.08) 50%, transparent 100%) border-box;
  box-shadow: 0 4px 20px rgba(226,168,77,0.06);
}
.pain-icon {
  flex: 0 0 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-soft);
}
.pain-icon.--active {
  background: linear-gradient(135deg, rgba(226,168,77,0.16), rgba(208,106,80,0.12));
  border-color: rgba(226,168,77,0.25);
  color: var(--gold);
}
.pain-item h4 { font-size: 0.84rem; font-weight: 600; margin-bottom: 2px; }
.pain-item p { font-size: 0.76rem; color: var(--text-soft); line-height: 1.4; }

/* ─── CASE CARD ─── */
.case-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.case-scroll::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 300px;
  min-height: 400px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 24px 22px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(160deg, rgba(226,168,77,0.2) 0%, rgba(226,168,77,0.06) 35%, transparent 70%) border-box;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s, box-shadow 0.3s, background 0.4s;
}
.case-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 50%;
  background: radial-gradient(ellipse at 20% 10%, rgba(226,168,77,0.06) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 50px rgba(226,168,77,0.08), 0 0 0 1px rgba(226,168,77,0.15);
  background:
    linear-gradient(180deg, rgba(20,24,29,0.88), rgba(12,14,18,0.94)) padding-box,
    linear-gradient(160deg, rgba(226,168,77,0.35) 0%, rgba(226,168,77,0.12) 35%, transparent 70%) border-box;
}
.case-card:hover::after { opacity: 1.5; }
.case-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(200deg, rgba(208,106,80,0.2) 0%, rgba(208,106,80,0.06) 35%, transparent 70%) border-box;
}
.case-card:nth-child(2)::after {
  left: auto; right: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(208,106,80,0.06) 0%, transparent 70%);
}
.case-card:nth-child(2):hover {
  box-shadow: 0 8px 50px rgba(208,106,80,0.08), 0 0 0 1px rgba(208,106,80,0.15);
  background:
    linear-gradient(180deg, rgba(20,24,29,0.88), rgba(12,14,18,0.94)) padding-box,
    linear-gradient(200deg, rgba(208,106,80,0.35) 0%, rgba(208,106,80,0.12) 35%, transparent 70%) border-box;
}
.case-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(170deg, rgba(69,176,140,0.2) 0%, rgba(69,176,140,0.06) 35%, transparent 70%) border-box;
}
.case-card:nth-child(3)::after {
  background: radial-gradient(ellipse at 30% 5%, rgba(69,176,140,0.06) 0%, transparent 70%);
}
.case-card:nth-child(3):hover {
  box-shadow: 0 8px 50px rgba(69,176,140,0.08), 0 0 0 1px rgba(69,176,140,0.15);
  background:
    linear-gradient(180deg, rgba(20,24,29,0.88), rgba(12,14,18,0.94)) padding-box,
    linear-gradient(170deg, rgba(69,176,140,0.35) 0%, rgba(69,176,140,0.12) 35%, transparent 70%) border-box;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.case-tag::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}
.case-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.case-card > p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; }
.case-metrics {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.case-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.case-metric span { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
  transition: gap 0.2s;
}
.case-card:hover .case-link { gap: 10px; }
.case-link::after { content: "→"; }
.case-image {
  margin: auto -22px 0;
  height: 130px;
  position: relative;
}
.case-image-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(0,0,0,0.4);
}
.case-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft);
}
.case-card:nth-child(1) .case-placeholder { background: linear-gradient(135deg, #1a4a3a, #0d2820); }
.case-card:nth-child(2) .case-placeholder { background: linear-gradient(135deg, #4a3a1a, #2a2010); }
.case-card:nth-child(3) .case-placeholder { background: linear-gradient(135deg, #1a3a5a, #0d2030); }

/* ─── PROCESS (GOLD) ─── */
.process-demo {
  padding: 48px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
/* Subtle 135° diagonal light wash matching h-scroll panels */
.process-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 25%,
    rgba(226,168,77,0.04) 40%,
    rgba(226,168,77,0.07) 50%,
    rgba(226,168,77,0.04) 60%,
    transparent 75%,
    transparent 100%
  );
  pointer-events: none;
}
.process-demo * { position: relative; z-index: 1; }
.process-demo .lib-section-label { color: var(--gold); }
.process-demo h2 { color: var(--text-head); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; }
.process-demo > p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 28px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-grid--4 { grid-template-columns: repeat(4, 1fr); }
.process-step {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.process-step:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(226,168,77,0.2);
  transform: translateY(-2px);
}
.process-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.process-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(226,168,77,0.15), rgba(226,168,77,0.05));
  border: 1px solid rgba(226,168,77,0.2);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-head); margin-bottom: 6px; }
.process-step p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
.process-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.process-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(226,168,77,0.2));
}
.process-icon path,
.process-icon circle,
.process-icon line,
.process-icon polyline,
.process-icon rect {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* ─── SERVICE CARD ─── */
.service-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover { border-color: rgba(226,168,77,0.25); transform: translateY(-2px); }
.service-img {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.service-img-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft);
}
.service-card:nth-child(1) .service-img-ph { background: linear-gradient(135deg, #16201c, #0b110e); }
.service-card:nth-child(2) .service-img-ph { background: linear-gradient(135deg, #1a1a25, #0d0d15); }
.service-img::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 48px;
  background: linear-gradient(to top, var(--bg-0), transparent);
  pointer-events: none;
}
.service-body {
  padding: 22px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(226,168,77,0.14), rgba(226,168,77,0.04));
  border: 1px solid rgba(226,168,77,0.2);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 12px;
}
.service-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.service-body p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 14px; }
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.service-list li::before { content: "→"; color: var(--gold); font-weight: 600; }
.service-body .btn { margin-top: auto; align-self: flex-start; }

/* ─── TESTIMONIAL ─── */
.testimonial-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 14px; right: 18px;
  font-size: 56px;
  font-family: var(--font-hero);
  color: rgba(226,168,77,0.08);
  line-height: 1;
}
.testimonial-card:hover { border-color: rgba(226,168,77,0.25); transform: translateY(-2px); }
.testimonial-text { font-size: 0.86rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(226,168,77,0.25);
  background: linear-gradient(135deg, rgba(226,168,77,0.18), rgba(226,168,77,0.04));
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.testimonial-info h4 { font-size: 0.84rem; font-weight: 600; }
.testimonial-info span { font-size: 0.72rem; color: var(--text-soft); }
.restaurant-name { color: var(--gold); }

/* ─── TEAM CARD ─── */
.team-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color 0.25s, transform 0.25s;
}
.team-card:hover { border-color: rgba(226,168,77,0.25); transform: translateY(-2px); }
.team-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 2px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(226,168,77,0.14), rgba(226,168,77,0.04));
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: var(--gold);
  transition: border-color 0.25s;
}
.team-card:hover .team-photo { border-color: rgba(226,168,77,0.25); }
.team-card h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.team-role { font-size: 0.72rem; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.team-card p { font-size: 0.76rem; color: var(--text-soft); line-height: 1.4; }

/* ─── TESTIMONIAL MARQUEE (Owner.com-style) ─── */
.proof-marquee-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
/* Fade edges */
.proof-marquee-wrap::before,
.proof-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.proof-marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.proof-marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }

.proof-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.proof-marquee-track.--left { animation: marquee-left 45s linear infinite; }
.proof-marquee-track.--right { animation: marquee-right 50s linear infinite; }
.proof-marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.proof-card {
  flex: 0 0 420px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.proof-card:hover {
  border-color: rgba(226,168,77,0.2);
  transform: translateY(-3px);
}

.proof-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof-card-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(226,168,77,0.2);
  flex-shrink: 0;
}
.proof-card-photo-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(226,168,77,0.18), rgba(226,168,77,0.04));
  border: 2px solid rgba(226,168,77,0.2);
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.proof-card-info h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}
.proof-card-info span {
  font-size: 0.72rem;
  color: var(--text-soft);
}
.proof-card-info .restaurant-name { color: var(--gold); }

.proof-card-quote {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.proof-card-result {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.proof-card-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #C6943A 0%, #F2D688 25%, #ffef9d 45%, #F2D688 65%, #C6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-card-metric span {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .proof-card { flex: 0 0 320px; padding: 22px; }
  .proof-marquee-wrap::before,
  .proof-marquee-wrap::after { width: 60px; }
}

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--line); }
.faq-item[open] { border-color: rgba(226,168,77,0.25); }
.faq-item summary {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 26px; height: 26px;
  background: var(--gold-soft);
  border: 1px solid rgba(226,168,77,0.2);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--gold);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 14px; font-size: 0.84rem; color: var(--text-dim); line-height: 1.6; }

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 56px 56px;
  border: 1px solid rgba(226,168,77,0.25);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(226,168,77,0.04), transparent 50%, rgba(208,106,80,0.03));
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(226,168,77,0.12), transparent 55%);
  pointer-events: none;
  animation: cta-glow 5s ease-in-out infinite alternate;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(208,106,80,0.08), transparent 55%);
  pointer-events: none;
}
@keyframes cta-glow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; margin-bottom: 6px; }
.cta-content p { font-size: 0.88rem; color: var(--text-dim); }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; }

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 140px);
  gap: 10px;
}
.gallery-cell {
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.gallery-cell:hover img { transform: scale(1.08); }
.gallery-cell:hover { border-color: rgba(226,168,77,0.25); transform: scale(1.02); z-index: 2; }
.gallery-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
  pointer-events: none;
}
.gallery-cell--wide { grid-column: span 2; }
.gallery-cell--tall { grid-row: span 2; }
.gallery-cell:nth-child(1) { background: linear-gradient(135deg, #16201c, #0b110e); }
.gallery-cell:nth-child(2) { background: linear-gradient(135deg, #241c0e, #161008); }
.gallery-cell:nth-child(3) { background: linear-gradient(135deg, #18131e, #0c0a10); }
.gallery-cell:nth-child(4) { background: linear-gradient(135deg, #1e1616, #100d0d); }
.gallery-cell:nth-child(5) { background: linear-gradient(135deg, #16161e, #0d0d10); }

/* ─── FOOTER DEMO ─── */
.footer-demo {
  padding: 36px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin-top: 10px; max-width: 230px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 0.8rem; color: var(--text-soft); padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-demo { position: relative; }
.footer-demo::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 120px;
  background: radial-gradient(ellipse, rgba(226,168,77,0.04), transparent 70%);
  pointer-events: none;
}
.footer-bottom p { font-size: 0.72rem; color: var(--text-soft); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.72rem; color: var(--text-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ─── ICONS ─── */
.icon { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* ─── GOLDEN FLASH OVERLAY ─── */
.load-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(226,168,77,0.4) 0%,
    rgba(226,168,77,0.08) 40%,
    transparent 70%
  );
  opacity: 0;
}

/* ─── MESH GRADIENT CANVAS (Stripe-inspired) ─── */
.depth-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--orb-color, var(--gold)) 14%, transparent) 0%,
    color-mix(in srgb, var(--orb-color, var(--gold)) 6%, transparent) 35%,
    transparent 65%
  );
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform, opacity, filter;
}

/* Per-section relative depth containers */
.depth-local {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Ensure page content sits above mesh layers */
.page { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .depth-canvas { opacity: 0.4; }
  .depth-local { display: none; }
}

/* ─── HERO VARIANT: VIDEO STACK ─── */
.hero-video-stack {
  position: relative;
  padding: 100px 48px 80px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-0);
}
.hero-video-stack::before {
  content: "";
  position: absolute;
  top: -15%; right: -8%;
  width: 50%; height: 65%;
  background: radial-gradient(ellipse, rgba(226,168,77,0.08) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-video-stack-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-video-stack-copy h1 { margin-bottom: 20px; }
.hero-video-stack-copy p { max-width: 44ch; margin-bottom: 28px; }

/* ─── STACKED PORTRAIT VIDEOS ─── */
.v-stack {
  position: relative;
  height: 460px;
  perspective: 1200px;
}
.v-stack-card {
  position: absolute;
  width: 220px;
  height: 390px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,248,235,0.04);
  cursor: pointer;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width, height, z-index;
}
.v-stack-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.v-stack-card:hover video {
  opacity: 1;
}

/* Stagger positions: fanned stack, center card on top */
.v-stack-card:nth-child(1) {
  top: 40px;
  left: 0;
  z-index: 1;
  transform: rotate(-6deg) scale(0.92);
}
.v-stack-card:nth-child(2) {
  top: 10px;
  left: 50%;
  margin-left: -110px; /* half of 220px width — centers without translateX */
  transform: rotate(0deg) scale(1);
  z-index: 3;
}
.v-stack-card:nth-child(3) {
  top: 40px;
  right: 0;
  z-index: 1;
  transform: rotate(6deg) scale(0.92);
}

/* Hover expand — the hovered card grows, others recede */
.v-stack-card:hover {
  z-index: 10;
  border-color: rgba(226,168,77,0.25);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 30px rgba(226,168,77,0.08);
}
/* Side cards expand with their rotation cleared */
.v-stack-card:nth-child(1):hover {
  width: 260px; height: 430px;
  transform: rotate(0deg) scale(1.04) translateY(-10px);
}
.v-stack-card:nth-child(3):hover {
  width: 260px; height: 430px;
  transform: rotate(0deg) scale(1.04) translateY(-10px);
}
/* Middle card expands straight UP — no lateral shift */
.v-stack-card:nth-child(2):hover {
  width: 280px; height: 450px;
  margin-left: -140px; /* re-center for new width */
  transform: scale(1.08) translateY(-16px);
}
.v-stack:has(.v-stack-card:nth-child(1):hover) .v-stack-card:nth-child(2) {
  transform: rotate(3deg) scale(0.9);
  opacity: 0.7;
}
.v-stack:has(.v-stack-card:nth-child(1):hover) .v-stack-card:nth-child(3) {
  transform: rotate(8deg) scale(0.88);
  opacity: 0.6;
}
.v-stack:has(.v-stack-card:nth-child(3):hover) .v-stack-card:nth-child(2) {
  transform: rotate(-3deg) scale(0.9);
  opacity: 0.7;
}
.v-stack:has(.v-stack-card:nth-child(3):hover) .v-stack-card:nth-child(1) {
  transform: rotate(-8deg) scale(0.88);
  opacity: 0.6;
}
.v-stack:has(.v-stack-card:nth-child(2):hover) .v-stack-card:nth-child(1) {
  transform: rotate(-9deg) scale(0.86) translateX(-20px);
  opacity: 0.65;
}
.v-stack:has(.v-stack-card:nth-child(2):hover) .v-stack-card:nth-child(3) {
  transform: rotate(9deg) scale(0.86) translateX(20px);
  opacity: 0.65;
}

/* Card label overlay */
.v-stack-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  padding: 10px 14px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255,248,235,0.06);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.v-stack-label strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 2px;
}
.v-stack-card:hover .v-stack-label {
  opacity: 1;
  transform: translateY(0);
}

/* Play indicator */
.v-stack-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(226,168,77,0.2);
  border: 1px solid rgba(226,168,77,0.3);
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.8;
  transition: all 0.35s ease;
  pointer-events: none;
}
.v-stack-card:hover .v-stack-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

/* ─── HERO VARIANT: TESTIMONIAL SPLIT ─── */
.hero-testimonial {
  position: relative;
  padding: 100px 48px 80px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-0) 0%, #0a0d11 100%);
}
.hero-testimonial::before {
  content: "";
  position: absolute;
  bottom: -10%; left: -5%;
  width: 45%; height: 60%;
  background: radial-gradient(ellipse, rgba(69,176,140,0.08) 0%, transparent 55%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-testimonial-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-testimonial-video {
  position: relative;
  aspect-ratio: 9/14;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hero-testimonial-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-testimonial-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 35%);
  pointer-events: none;
}
.hero-testimonial-quote {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-testimonial-attr {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-testimonial-attr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(226,168,77,0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold);
}
.hero-testimonial-attr-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}
.hero-testimonial-attr-info span {
  font-size: 0.74rem;
  color: var(--text-soft);
}

/* ─── HERO VARIANT: DEMAND PROOF ─── */
.hero-demand {
  position: relative;
  padding: 100px 48px 80px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-0);
}
.hero-demand::before {
  content: "";
  position: absolute;
  top: -10%; left: 30%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(208,106,80,0.06) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-demand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-demand-inner h1 { margin-bottom: 20px; }
.hero-demand-inner > p { max-width: 52ch; margin: 0 auto 40px; }
.hero-demand-video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.hero-demand-clip {
  position: relative;
  aspect-ratio: 9/14;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s;
}
.hero-demand-clip:nth-child(2) {
  transform: translateY(-16px);
}
.hero-demand-clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-demand-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55) 0%, transparent 40%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.hero-demand-clip:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(226,168,77,0.2);
  z-index: 2;
}
.hero-demand-clip:nth-child(2):hover {
  transform: translateY(-22px) scale(1.03);
}
.hero-demand-clip:hover::after { opacity: 0.4; }
.hero-demand-clip-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

/* ─── CSS MATERIAL ICONS (Clerk/Stripe Layered Style) ─── */
@property --mat-fade {
  syntax: "<percentage>";
  initial-value: 100%;
  inherits: true;
}
@property --mat-pulse {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}
@property --mat-glow {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

.mat-icon-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.mat-icon-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(20,24,30,0.7), rgba(10,12,15,0.95));
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.mat-icon-cell:hover {
  border-color: rgba(226,168,77,0.22);
  transform: translateY(-4px);
}
.mat-icon-cell-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.mat-icon-cell-desc {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 22ch;
  line-height: 1.5;
}
.mat-icon-cell-tag {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* ─── Material icon container ─── */
.mat-icon {
  --mi-w: 11vmin;
  --mi-h: 13vmin;
  --mi-min-w: 80px;
  --mi-min-h: 96px;
  position: relative;
  width: var(--mi-w);
  height: var(--mi-h);
  min-width: var(--mi-min-w);
  min-height: var(--mi-min-h);
  overflow: visible;
}

/* Shared layer positioning */
.mat-icon > div {
  position: absolute;
  inset: 0;
  transition: all 0.3s ease;
}

/* Layer 1: Drop shadow */
.mat-shadow {
  border-radius: 50%;
  top: auto !important;
  bottom: -12%;
  left: 10%;
  right: 10%;
  height: 30% !important;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4), transparent 70%);
  filter: blur(8px);
  opacity: 0;
}

/* Layer 2: Body — metallic base */
.mat-body {
  background:
    conic-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0), rgba(0,0,0,0.15)),
    linear-gradient(180deg, #3a3328, #1e1a14);
  border-radius: 20%;
  box-shadow:
    inset 0.3vmin -0.1vmin 0.1vmin rgba(255,248,235,0.15),
    inset 0.6vmin 0 0.6vmin rgba(0,0,0,0.35),
    inset -0.2vmin 0 0.3vmin rgba(0,0,0,0.25);
}

/* Layer 3: Inner body — slightly inset metallic */
.mat-inner {
  inset: 3%;
  background: linear-gradient(180deg, #2e2820, #18140e);
  border-radius: 18%;
  box-shadow:
    inset -0.5vmin 0.5vmin 1.5vmin rgba(0,0,0,0.15),
    inset 0.2vmin 0 0.05vmin rgba(255,248,235,0.08),
    inset -0.2vmin 0.05vmin 0 rgba(255,248,235,0.06);
}

/* Layer 4: Color fill — animated gradient */
.mat-fill {
  inset: 0;
  padding: 0.1vmin;
  border-top: 0.3vmin solid rgba(255,248,235,0.2);
  background:
    radial-gradient(
      120% 16% at 50% calc(90% + var(--mat-pulse)),
      rgba(255 248 235 / var(--mat-glow, 0%)),
      transparent
    ),
    radial-gradient(
      120% 10% at 50% calc(22% + var(--mat-fade) + var(--mat-pulse)),
      rgba(255 248 235 / 50%),
      transparent
    ),
    linear-gradient(to bottom, rgba(255,248,235,0.08), transparent 10%, rgba(0,0,0,0.08)) padding-box,
    var(--mat-gradient, linear-gradient(#b8872e calc(0% + var(--mat-fade)), #d4a84a calc(20% + var(--mat-fade)), #7a5a1a calc(40% + var(--mat-fade)), #E2A84D)) content-box,
    #96711e;
  border-radius: 20%;
  box-shadow:
    inset 0.3vmin 0 0.08vmin rgba(0,0,0,0.25),
    inset -0.2vmin 0 0.08vmin rgba(255,248,235,0.3);
  opacity: 0;
}
.mat-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,1);
  opacity: 0.12;
  mix-blend-mode: overlay;
  transform: scaleY(40) scaleX(3);
  filter: url(#matNoise);
}

/* Layer 5: Outline glow */
.mat-outline {
  inset: -8%;
  background:
    linear-gradient(to bottom,
      transparent calc(10% + var(--mat-fade)),
      rgba(226,168,77,0.5),
      rgba(226,168,77,0.5),
      transparent calc(50% + var(--mat-fade))
    ) content-box,
    linear-gradient(to bottom, rgba(40,34,24,0.9), rgba(30,26,18,0.7), rgba(40,34,24,0.9)) content-box,
    rgba(40,34,24,0.5) padding-box;
  padding: 6%;
  border-radius: 26%;
  opacity: 0;
  transform-origin: center;
  box-shadow: inset 0 0 2vmin rgba(226,168,77,0.1);
}

/* Layer 6: Highlight/shine on top */
.mat-highlight {
  inset: 0;
  border-radius: 20%;
  background:
    linear-gradient(
      135deg,
      rgba(255,248,235,0.12) 0%,
      transparent 40%,
      transparent 60%,
      rgba(255,248,235,0.04) 100%
    );
  pointer-events: none;
  opacity: 0;
}

/* Icon shapes — using url(#clipId) referencing inline SVG clipPaths
   with objectBoundingBox so they scale to any element size */

/* Shape: Flame */
.mat-shape-flame .mat-body,
.mat-shape-flame .mat-inner,
.mat-shape-flame .mat-fill,
.mat-shape-flame .mat-highlight { clip-path: url(#clip-flame); }
.mat-shape-flame .mat-outline { clip-path: url(#clip-flame); }

/* Shape: Star */
.mat-shape-star .mat-body,
.mat-shape-star .mat-inner,
.mat-shape-star .mat-fill,
.mat-shape-star .mat-highlight {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.mat-shape-star .mat-outline {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Shape: Pin */
.mat-shape-pin .mat-body,
.mat-shape-pin .mat-inner,
.mat-shape-pin .mat-fill,
.mat-shape-pin .mat-highlight { clip-path: url(#clip-pin); }
.mat-shape-pin .mat-outline { clip-path: url(#clip-pin); }

/* Shape: Heart */
.mat-shape-heart .mat-body,
.mat-shape-heart .mat-inner,
.mat-shape-heart .mat-fill,
.mat-shape-heart .mat-highlight { clip-path: url(#clip-heart); }
.mat-shape-heart .mat-outline { clip-path: url(#clip-heart); }

/* Shape: Play */
.mat-shape-play .mat-body,
.mat-shape-play .mat-inner,
.mat-shape-play .mat-fill,
.mat-shape-play .mat-highlight { clip-path: circle(48% at 50% 50%); }
.mat-shape-play .mat-outline { clip-path: circle(48% at 50% 50%); }
.mat-shape-play .mat-play-tri {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.mat-shape-play .mat-play-tri::after {
  content: "";
  width: 28%;
  height: 32%;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  background: rgba(255,248,235,0.7);
  transform: translateX(8%);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Shape: Lightning */
.mat-shape-bolt .mat-body,
.mat-shape-bolt .mat-inner,
.mat-shape-bolt .mat-fill,
.mat-shape-bolt .mat-highlight {
  clip-path: polygon(55% 0%, 20% 45%, 42% 45%, 25% 100%, 80% 40%, 52% 40%, 70% 0%);
}
.mat-shape-bolt .mat-outline {
  clip-path: polygon(55% 0%, 20% 45%, 42% 45%, 25% 100%, 80% 40%, 52% 40%, 70% 0%);
}

/* ─── Material icon ACTIVE state animations ─── */
.mat-icon-cell.--active .mat-inner {
  scale: 0.975;
  translate: 0 -0.5%;
}
.mat-icon-cell.--active .mat-fill {
  animation:
    mat-fill-in 0.6s linear forwards,
    mat-fill-breathe 3s 0.95s ease-in-out infinite,
    mat-pulse-anim 2s ease-out 42,
    mat-glow-anim 2s ease-out 42;
}
.mat-icon-cell.--active .mat-outline {
  animation:
    mat-outline-in 0.8s 0.15s ease-out forwards,
    mat-outline-breathe 3s 0.95s ease-in-out infinite;
}
.mat-icon-cell.--active .mat-shadow {
  animation:
    mat-shadow-in 0.3s 0.3s ease-in-out forwards,
    mat-shadow-breathe 3s 0.95s ease-in-out infinite;
}
.mat-icon-cell.--active .mat-highlight {
  animation: mat-highlight-in 0.4s 0.2s ease-out forwards;
}

/* Reverse (deactivate) — only after first interaction (--touched) */
.mat-icon-cell.--touched:not(.--active) .mat-fill {
  animation: mat-fill-out 0.8s linear forwards;
}
.mat-icon-cell.--touched:not(.--active) .mat-outline {
  animation: mat-outline-out 0.5s ease-in forwards;
}
.mat-icon-cell.--touched:not(.--active) .mat-shadow {
  animation: mat-shadow-out 0.4s ease-in-out forwards;
}
.mat-icon-cell.--touched:not(.--active) .mat-highlight {
  animation: mat-highlight-out 0.3s ease-in forwards;
}

/* Container nudge on activate */
.mat-icon-cell.--active .mat-icon {
  animation: mat-container-nudge 0.5s ease-out;
}

@keyframes mat-fill-in {
  from { scale: 0.975; }
  40% { opacity: 1; --mat-fade: 0%; scale: 1; }
  to { --mat-fade: -10%; opacity: 1; scale: 1.05; }
}
@keyframes mat-fill-out {
  from { --mat-fade: -10%; opacity: 1; scale: 1.05; }
  60% { opacity: 1; --mat-fade: 0%; scale: 1; }
  to { scale: 0.975; opacity: 0; }
}
@keyframes mat-fill-breathe {
  from, to { scale: 1.05; }
  50% { scale: 1.07; }
}
@keyframes mat-outline-in {
  28% { opacity: 1; }
  40%, 50% { scale: 1.06; }
  42% { --mat-fade: 0%; }
  to { --mat-fade: 0%; opacity: 1; scale: 1.04; }
}
@keyframes mat-outline-out {
  from { --mat-fade: 0%; opacity: 1; scale: 1.04; }
  to { opacity: 0; --mat-fade: 100%; scale: 0.6; }
}
@keyframes mat-outline-breathe {
  from, to { scale: 1.04; }
  50% { scale: 1.04 1.02; }
}
@keyframes mat-shadow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mat-shadow-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes mat-shadow-breathe {
  from, to { scale: 1 1; }
  50% { scale: 1 1.06; }
}
@keyframes mat-highlight-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mat-highlight-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes mat-container-nudge {
  30% { translate: -0.2vmin 0.2vmin; }
  50% { translate: -0.3vmin -0.15vmin; }
  100% { translate: 0 0; }
}
@keyframes mat-pulse-anim {
  from, to { --mat-pulse: 0%; }
  50% { --mat-pulse: 4%; }
}
@keyframes mat-glow-anim {
  from { --mat-glow: 0%; }
  50% { --mat-glow: 18%; }
  to { --mat-glow: 0%; }
}

/* Color variants */
.mat-color-brass .mat-fill {
  --mat-gradient: linear-gradient(#b8872e calc(0% + var(--mat-fade)), #d4a84a calc(20% + var(--mat-fade)), #7a5a1a calc(40% + var(--mat-fade)), #E2A84D);
}
.mat-color-amber .mat-fill {
  --mat-gradient: linear-gradient(#c06a28 calc(0% + var(--mat-fade)), #e89a52 calc(20% + var(--mat-fade)), #8b4a12 calc(40% + var(--mat-fade)), #D06A50);
}
.mat-color-amber .mat-outline {
  background:
    linear-gradient(to bottom,
      transparent calc(10% + var(--mat-fade)),
      rgba(208,106,80,0.5),
      rgba(208,106,80,0.5),
      transparent calc(50% + var(--mat-fade))
    ) content-box,
    linear-gradient(to bottom, rgba(40,30,20,0.9), rgba(30,22,14,0.7), rgba(40,30,20,0.9)) content-box,
    rgba(40,30,20,0.5) padding-box;
  padding: 6%;
}
.mat-color-olive .mat-fill {
  --mat-gradient: linear-gradient(#4a5c3a calc(0% + var(--mat-fade)), #7a9a68 calc(20% + var(--mat-fade)), #3a4c2e calc(40% + var(--mat-fade)), #45B08C);
}
.mat-color-olive .mat-outline {
  background:
    linear-gradient(to bottom,
      transparent calc(10% + var(--mat-fade)),
      rgba(69,176,140,0.5),
      rgba(69,176,140,0.5),
      transparent calc(50% + var(--mat-fade))
    ) content-box,
    linear-gradient(to bottom, rgba(30,36,28,0.9), rgba(22,28,20,0.7), rgba(30,36,28,0.9)) content-box,
    rgba(30,36,28,0.5) padding-box;
  padding: 6%;
}

/* ─── Material icon grid (smaller) ─── */
.mat-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.mat-icon-grid .mat-icon-cell {
  padding: 32px 16px 24px;
  border-radius: var(--r-lg);
  gap: 14px;
}
.mat-icon-grid .mat-icon {
  --mi-w: 8vmin;
  --mi-h: 10vmin;
  --mi-min-w: 60px;
  --mi-min-h: 72px;
}
.mat-icon-grid .mat-icon-cell-name { font-size: 0.74rem; }

/* ─── ANIMATED ICON SECTION ─── */
.icon-anim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.icon-anim-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 20px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.015);
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.icon-anim-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(226,168,77,0.06), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.icon-anim-cell:hover {
  border-color: rgba(226,168,77,0.2);
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
}
.icon-anim-cell:hover::before { opacity: 1; }

.icon-anim-svg {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.icon-anim-svg svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon-anim-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.icon-anim-trigger {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
}

/* Icon animation section — hero row of 3 large featured icons */
.icon-anim-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.icon-anim-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 52px 24px 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(23,27,33,0.6), rgba(10,12,15,0.9));
  cursor: pointer;
  transition: border-color 0.35s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.icon-anim-featured::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(226,168,77,0.07), transparent 60%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.icon-anim-featured:hover {
  border-color: rgba(226,168,77,0.2);
  transform: translateY(-4px);
}
.icon-anim-featured:hover::before { opacity: 1; }
.icon-anim-featured .icon-anim-svg {
  width: 72px;
  height: 72px;
}
.icon-anim-featured .icon-anim-name { font-size: 0.88rem; }
.icon-anim-featured p {
  font-size: 0.76rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 24ch;
  line-height: 1.5;
  margin: 0;
}

/* ─── GLASS CARDS (3D Glassmorphia + Pixel Canvas) ─── */
.glass-scene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 40px;
}

/* Card wrapper */
.glass-card-wrap {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: stretch;
}

/* Accent cards — tighter, more subtle wobble */
.glass-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.glass-acc {
  position: absolute;
  inset: -3px;
  background: rgba(255,248,235,0.015);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  transform-origin: 20% 80%;
  opacity: 0.5;
}
.glass-acc:nth-child(1) { animation: glassWobble 20s ease-in-out infinite; }
.glass-acc:nth-child(2) { animation: glassWobble 26s ease-in-out -8s infinite reverse; }

@keyframes glassWobble {
  0%   { transform: translateX(3px) translateY(6px) rotate(-1.5deg); }
  25%  { transform: translateX(-10px) translateY(-3px) rotate(2deg); }
  50%  { transform: translateX(8px) translateY(5px) rotate(-2.5deg); }
  75%  { transform: translateX(-8px) translateY(-6px) rotate(3deg); }
  100% { transform: translateX(3px) translateY(6px) rotate(-1.5deg); }
}

/* Top light glow — more restrained */
.glass-toplight {
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 10px;
  background: rgba(255,252,240,0.8);
  box-shadow:
    0 0 1px 0 rgba(226,168,77,0.4),
    0 1px 4px 0 rgba(226,168,77,0.25),
    0 4px 16px 0 rgba(226,168,77,0.12);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ─── The glass card ─── */
.glass-card {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(23,23,23,0.65) 0%, rgba(17,17,17,0.82) 50%);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 1px 0 rgba(226,168,77,0.18),
    inset 0 -1px 1px 0 rgba(0,0,0,0.15);
  color: var(--text-dim);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, transparent 55%, rgba(17,17,17,0.6));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--bg-0), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226,168,77,0.18);
  box-shadow:
    inset 0 1px 1px 0 rgba(226,168,77,0.25),
    inset 0 -1px 1px 0 rgba(0,0,0,0.15),
    0 20px 50px rgba(0,0,0,0.25);
}
.glass-card:hover::before { opacity: 0; }
.glass-card:hover::after { opacity: 1; }
.glass-card-wrap:hover .glass-toplight { opacity: 1; }

/* Pixel canvas integration */
.glass-card pixel-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--r-lg);
}

.glass-card-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(226,168,77,0.08);
  border: 1px solid rgba(226,168,77,0.12);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 8px;
  transition: color 0.3s, scale 0.3s cubic-bezier(0.22,1,0.36,1);
}
.glass-card:hover .glass-card-icon {
  color: var(--text);
  scale: 1.08;
}
.glass-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.glass-card p {
  position: relative;
  z-index: 2;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

/* Glass CTA button (directional inset shadow) */
.glass-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 100px;
  padding: 10px 24px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,248,235,0.05);
  box-shadow:
    0 0 0 1px rgba(255,248,235,0.07),
    inset 120px 0 100px -100px rgba(0,0,0,0.45);
  transition: box-shadow 0.4s ease-in-out, color 0.3s;
  cursor: pointer;
}
.glass-btn:hover {
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(255,248,235,0.1),
    inset 200px 0 100px -100px rgba(0,0,0,0.35),
    -3px 0 8px 1px rgba(226,168,77,0.06);
}

/* Stat variant */
.glass-card.--stat {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.glass-card.--stat .glass-stat-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(115deg, #C6943A 0%, #F2D688 25%, #ffef9d 45%, #F2D688 65%, #C6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── AMBIENT LIGHT SYSTEM (Clerk-style gradient lighting) ─── */

/* Section-level: overhead spotlight pool behind content */
.light-pool {
  position: relative;
}
.light-pool::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(226,168,77,0.04) 0%,
    rgba(226,168,77,0.015) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Card-level: gradient border that simulates directional light (top-left source) */
.light-card {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(
      160deg,
      rgba(226,168,77,0.25) 0%,
      rgba(226,168,77,0.08) 30%,
      rgba(255,248,235,0.03) 60%,
      transparent 100%
    ) border-box;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

/* Inner top glow — radial gradient simulating light falloff */
.light-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(
    ellipse 70% 60% at 30% 0%,
    rgba(226,168,77,0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hover: light intensifies */
.light-card:hover {
  background:
    linear-gradient(180deg, rgba(22,26,31,0.94), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(
      160deg,
      rgba(226,168,77,0.35) 0%,
      rgba(226,168,77,0.12) 30%,
      rgba(255,248,235,0.05) 60%,
      transparent 100%
    ) border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.light-card:hover::before {
  background: radial-gradient(
    ellipse 70% 60% at 30% 0%,
    rgba(226,168,77,0.07) 0%,
    transparent 70%
  );
}

/* Card content sits above the glow */
.light-card > * {
  position: relative;
  z-index: 1;
}

/* Variant: amber light source (from top-right) */
.light-card.--amber {
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(
      200deg,
      rgba(208,106,80,0.2) 0%,
      rgba(208,106,80,0.06) 30%,
      rgba(255,248,235,0.02) 60%,
      transparent 100%
    ) border-box;
}
.light-card.--amber::before {
  background: radial-gradient(
    ellipse 70% 60% at 70% 0%,
    rgba(208,106,80,0.035) 0%,
    transparent 70%
  );
}
.light-card.--amber:hover {
  background:
    linear-gradient(180deg, rgba(22,26,31,0.94), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(
      200deg,
      rgba(208,106,80,0.3) 0%,
      rgba(208,106,80,0.1) 30%,
      rgba(255,248,235,0.04) 60%,
      transparent 100%
    ) border-box;
}

/* Variant: olive light source (from bottom-left) */
.light-card.--olive {
  background:
    linear-gradient(180deg, rgba(20,24,29,0.92), rgba(12,14,18,0.96)) padding-box,
    linear-gradient(
      340deg,
      rgba(69,176,140,0.18) 0%,
      rgba(69,176,140,0.05) 30%,
      transparent 60%
    ) border-box;
}
.light-card.--olive::before {
  background: radial-gradient(
    ellipse 60% 50% at 20% 100%,
    rgba(69,176,140,0.03) 0%,
    transparent 70%
  );
}

/* Light card used inside grids — shared padding */
.light-card-content {
  padding: 28px 24px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .swatch-grid, .grid-3, .process-grid, .process-grid--4 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-demo-inner { grid-template-columns: 1fr; }
  .hero-video-stack-inner { grid-template-columns: 1fr; }
  .hero-testimonial-inner { grid-template-columns: 1fr; }
  .v-stack { height: 380px; }
  .v-stack-card { width: 170px; height: 300px; }
  .v-stack-card:hover { width: 210px; height: 340px; }
  .hero-video-stack, .hero-testimonial, .hero-demand { padding: 60px 24px 50px; }
  .icon-anim-grid { grid-template-columns: 1fr 1fr; }
  .icon-anim-showcase { grid-template-columns: 1fr; }
  .mat-icon-showcase { grid-template-columns: 1fr; }
  .mat-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .glass-scene { grid-template-columns: 1fr; gap: 48px; }
  .glass-card-wrap { min-height: 340px; }
  .hero-demand-video-row { gap: 10px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid::before, .pain-grid::after { display: none; }
  .cta-banner { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-cell--wide, .gallery-cell--tall { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .process-grid, .process-grid--4 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-cell--wide, .gallery-cell--tall { grid-column: span 1; grid-row: span 1; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .swatch-grid, .grid-3, .grid-4, .process-grid, .process-grid--4, .footer-grid { grid-template-columns: 1fr; }
  .lib-nav {
    width: min(calc(100% - 20px), var(--max));
    padding: 10px 12px;
    gap: 10px;
  }
  .lib-nav-brand img {
    width: 120px;
    max-width: 120px;
  }
  .lib-nav-links {
    gap: 6px;
  }
  .lib-nav-links .btn-primary {
    margin-left: 10px;
  }
  .lib-nav-dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: min(320px, calc(100vw - 32px));
  }
  .lib-nav-dropdown[open] .lib-nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page {
    width: min(calc(100% - 32px), var(--max));
    padding-top: 74px;
  }
  .lib-nav {
    top: 8px !important;
    width: min(calc(100% - 20px), var(--max));
    min-height: 54px;
    margin: 0 auto !important;
    padding: 8px 10px;
    border-radius: 14px;
    gap: 8px;
  }
  .lib-nav-brand img {
    width: 86px;
    max-width: 86px;
  }
  .lib-nav-links {
    justify-content: flex-end;
    gap: 8px;
    overflow: visible;
    min-width: 0;
  }
  .lib-nav-links > a,
  .lib-nav-links > .btn-primary,
  .lib-nav-phone {
    display: none;
  }
  .lib-desktop-services {
    display: none;
  }
  .lib-nav-dropdown-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    font-size: 0;
    position: relative;
    overflow: hidden;
  }
  .lib-mobile-menu-only {
    display: flex !important;
  }
  .lib-nav-dropdown-trigger::before {
    content: "";
    width: 16px;
    height: 12px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
    transform: translate(-50%, -50%);
  }
  .lib-nav-dropdown-trigger svg {
    display: none;
  }
  .lib-nav-dropdown-menu {
    position: fixed;
    top: 62px;
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top right;
    will-change: opacity, transform;
    transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .lib-nav-dropdown[open] .lib-nav-dropdown-menu {
    transform: translateY(0) scale(1);
  }
  .lib-nav-dropdown[open] .lib-nav-dropdown-trigger {
    box-shadow: 0 0 0 1px rgba(226,168,77,0.16), 0 12px 28px rgba(0,0,0,0.28);
  }
  .lib-mobile-services {
    display: block !important;
    width: 100%;
  }
  .lib-mobile-services-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
  }
  .lib-mobile-services-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
  }
  .lib-mobile-services[open] .lib-mobile-services-trigger svg {
    transform: rotate(180deg);
  }
  .lib-mobile-services-menu {
    display: none;
    width: 100%;
    padding: 8px 0 0;
  }
  .lib-mobile-services[open] .lib-mobile-services-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: libMobileSubmenuIn 0.16s ease both;
  }
  .lib-mobile-services-menu a {
    width: 100%;
    text-align: left;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
  }
  .lib-mobile-services-menu a:hover {
    background: rgba(226,168,77,0.08);
    color: var(--gold);
  }
  .lib-mobile-action {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px !important;
    margin-top: 8px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
  }
  .lib-mobile-action.--ghost {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text);
  }
  .lib-mobile-action.--primary {
    border: 1px solid rgba(226,168,77,0.35);
    background: rgba(226,168,77,0.14);
    color: var(--gold);
  }
  @keyframes libMobileSubmenuIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .lib-nav-dropdown-menu,
    .lib-mobile-services[open] .lib-mobile-services-menu {
      transition: none;
      animation: none;
    }
  }
}

/* ─── IMMERSIVE IMAGE: scroll-zoom to full viewport ─── */
.immersive-img {
  position: relative;
  width: 72%;
  margin: 60px auto;
  border-radius: 28px;
  overflow: hidden;
  will-change: width, border-radius, margin;
  z-index: 2;
}
/* Break out of .page container to hit true 100vw */
.immersive-img.--expanded {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  border-radius: 0 !important;
}
.immersive-img img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.immersive-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.45) 35%,
    rgba(10,10,10,0.35) 50%,
    rgba(10,10,10,0.45) 65%,
    rgba(10,10,10,0.7) 100%
  );
  pointer-events: none;
}
.immersive-img-copy {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%) translateY(30px);
  padding: 0 56px;
  z-index: 2;
  opacity: 0;
}
.immersive-img-copy .immersive-glass {
  display: inline-block;
  padding: 32px 40px;
  border-radius: var(--r-lg);
  background: rgba(15,19,25,0.55);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,248,235,0.08);
  box-shadow:
    inset 0 1px 1px 0 rgba(226,168,77,0.12),
    0 24px 80px rgba(0,0,0,0.5);
  max-width: 520px;
}
.immersive-glass h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(115deg, #C6943A, #F2D688, #C6943A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.immersive-glass p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.immersive-glass .btn {
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  .immersive-img { width: 88%; }
  .immersive-img img { height: 55vh; }
  .immersive-img-copy { padding: 0 28px; }
  .immersive-glass { padding: 24px 28px; }
}
@media (max-width: 600px) {
  .immersive-img { width: 100%; border-radius: 16px; }
  .immersive-img img { height: 45vh; }
  .immersive-img-copy { padding: 0 16px; }
  .immersive-glass { padding: 20px 24px; }
}

/* ─── FLATTEN: Surgical — only flatten simple info cards, not showcase cards ─── */
/* Simple info cards become separator-divided when inside card-overlay sections */
.card-overlay .feature-card,
.card-overlay .stat-card,
.card-overlay .contact-info-card,
.card-overlay .case-detail {
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.card-overlay .feature-card::before,
.card-overlay .stat-card::before {
  background: none;
}
.card-overlay .feature-card:hover,
.card-overlay .stat-card:hover,
.card-overlay .case-detail:hover {
  border: none;
  transform: none;
  box-shadow: none;
}
/* Use subtle separators instead of boxes */
.card-overlay .feature-card + .feature-card,
.card-overlay .stat-card + .stat-card {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
/* Pain items: keep gold accent on active, subtle separator on inactive */
.card-overlay .pain-item + .pain-item {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.card-overlay .pain-item.--active {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  border-top: none;
}
.card-overlay .pain-item.--active + .pain-item.--active {
  border-top: 1px solid rgba(226,168,77,0.1);
  padding-top: 16px;
}
/* case-detail uses bottom border instead of full box */
.card-overlay .case-detail {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
}
.card-overlay .case-detail:last-of-type {
  border-bottom: none;
}

/* Glass cards keep their styling — they're special */
.card-overlay .glass-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(23,23,23,0.65) 0%, rgba(17,17,17,0.82) 50%);
  backdrop-filter: blur(6px);
  border-radius: var(--r-lg);
}

/* ─── GSAP REVEAL HELPERS ─── */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; }
.reveal-scale { opacity: 0; transform: scale(0.92); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }

/* Homepage ecosystem diagram */
.eco-section { position: relative; }
.eco-head { margin-bottom: 8px; }
.eco-head .lib-section-sub { margin-bottom: 0; max-width: 56ch; }
.eco-diagram {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin: 36px auto 0;
}
.eco-diagram svg.eco-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.eco-ring { transform-origin: 200px 200px; }
.eco-ring--spinning { animation: eco-spin 60s linear infinite; }
@keyframes eco-spin { to { transform: rotate(360deg); } }
.eco-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.eco-center .eco-eyebrow,
.eco-center .eco-tag {
  display: inline-block;
  background: var(--bg-1);
  padding: 2px 10px;
  border-radius: 4px;
}
.eco-center .eco-tag { margin-top: 6px; }
.eco-center .eco-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eco-center .eco-tag {
  font-family: var(--font-hero);
  color: var(--text-dim);
  font-size: 16px;
}
.eco-center .eco-tag em { color: var(--gold); font-style: italic; }
@media (min-width: 640px) {
  .eco-center .eco-tag { font-size: 18px; }
}
.eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
  pointer-events: none;
}
.eco-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid rgba(69,176,140,0.4);
  box-shadow:
    0 0 0 4px rgba(10,10,10,0.85),
    0 0 24px rgba(69,176,140,0.18),
    inset 0 0 0 1px rgba(69,176,140,0.15);
  color: var(--teal);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.eco-orb i,
.eco-orb svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}
@media (min-width: 640px) {
  .eco-orb { width: 92px; height: 92px; }
  .eco-orb i,
  .eco-orb svg { width: 36px; height: 36px; }
}
.eco-node--broken { opacity: 0.4; filter: grayscale(1); }
.eco-node--broken .eco-orb { transform: rotate(-5deg); }
.eco-label {
  margin-top: 12px;
  text-align: center;
}
.eco-label .eco-title {
  font-family: var(--font-hero);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-head);
  letter-spacing: 0;
}
.eco-label .eco-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}
@media (min-width: 640px) {
  .eco-label .eco-title { font-size: 16px; }
  .eco-label .eco-sub { font-size: 12px; }
}
.eco-broken-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-0);
  color: var(--coral);
  border: 1px solid rgba(208,106,80,0.5);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  white-space: nowrap;
}
.eco-controls {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eco-break-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.eco-controls .eco-try {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eco-controls .eco-try::after {
  content: " ->";
  display: inline-block;
  margin-left: 2px;
}
.eco-break-short { display: none; }
.eco-break-long { display: inline; }
.eco-break {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  font-family: inherit;
}
.eco-break:hover { border-color: rgba(208,106,80,0.4); color: var(--coral); }
.eco-break.--active {
  border-color: rgba(208,106,80,0.5);
  background: rgba(208,106,80,0.15);
  color: var(--coral);
}
.eco-reset {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
}
.eco-reset:hover { color: var(--text-head); }
.eco-detail {
  margin-top: 28px;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.eco-detail.--show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.eco-break-warn {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(208,106,80,0.4);
  background: rgba(208,106,80,0.06);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.eco-break-warn .eco-warn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(208,106,80,0.15);
  box-shadow: inset 0 0 0 1px rgba(208,106,80,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}
.eco-break-warn .eco-warn-icon i,
.eco-break-warn .eco-warn-icon svg {
  width: 20px;
  height: 20px;
}
.eco-break-warn .eco-warn-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}
.eco-break-warn p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.eco-footer {
  margin: 56px auto 0;
  max-width: 880px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(23,23,23,0.6), rgba(17,17,17,0.8));
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.eco-footer .eco-footer-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(226,168,77,0.15);
  box-shadow: inset 0 0 0 1px rgba(226,168,77,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.eco-footer .eco-footer-icon i,
.eco-footer .eco-footer-icon svg {
  width: 20px;
  height: 20px;
}
.eco-footer h3 {
  font-family: var(--font-hero);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-head);
}
.eco-footer p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
@media (max-width: 520px) {
  .eco-diagram { max-width: 320px; margin-top: 24px; }
  .eco-orb { width: 60px; height: 60px; }
  .eco-orb i,
  .eco-orb svg { width: 26px; height: 26px; }
  .eco-label .eco-title { font-size: 12px; }
  .eco-label .eco-sub { font-size: 10px; }
  .eco-center .eco-eyebrow { font-size: 9px; }
  .eco-center .eco-tag { font-size: 12px; line-height: 1.3; }
  .eco-footer { flex-direction: column; }
  .eco-break-warn { padding: 18px; }
  .eco-controls { flex-direction: column; gap: 14px; }
  .eco-controls .eco-try::after { content: " v"; }
  .eco-break-row {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .eco-break {
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .eco-break-long { display: none; }
  .eco-break-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-ring--spinning { animation: none; }
  .eco-detail { transition: none; }
}
