/* ═══════════════════════════════════════════════════════════
   Hira — design system v3
   Quiet minimalism, dark-first. Frosted glass with crisp
   1px light-catching strokes. Deep green · sage · sand.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* brand constants */
  --green-950: #071512;
  --green-900: #0B3D33;
  --green-700: #0F5C4C;
  --sage-500: #7C9D8A;
  --sage-300: #A9BFAF;
  --sand-400: #C9C2A6;
  --sand-300: #DCD6C0;
  --cream: #F9F4EE;

  /* Ma'thurat app colours (from the app icon & UI) */
  --indigo: #5B4FCF;
  --indigo-2: #7B6FF0;
  --indigo-3: #A09DE2;

  --grad: linear-gradient(135deg, var(--green-700) 0%, var(--sage-500) 55%, var(--sand-400) 105%);

  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-ar: 'Amiri', serif;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

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

/* ── Dark theme (default) ── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A100E;
  --bg-2: #0D1512;
  --ink: #F2F0E8;
  --ink-2: #C0CBC0;
  --ink-3: #7D8C81;
  --accent: #8FB6A2;
  --line: rgba(242, 240, 232, 0.11);
  --line-soft: rgba(242, 240, 232, 0.055);
  --glass: rgba(18, 30, 25, 0.4);
  --glass-strong: rgba(16, 27, 22, 0.75);
  --glass-inner: rgba(242, 240, 232, 0.04);
  --stroke-hi: rgba(255, 255, 255, 0.18);
  --stroke-lo: rgba(255, 255, 255, 0.04);
  --stroke-tint: rgba(143, 182, 162, 0.18);
  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  --shadow-deep: 0 56px 120px -40px rgba(0, 0, 0, 0.7);
  --phone-frame: #101A16;
  --heading-grad: linear-gradient(115deg, #F4F2EA 30%, #DDE5D8 65%, #B4CBBB 100%);
  --btn-grad: linear-gradient(150deg, #A7C9B4 0%, #8FB6A2 100%);
  --btn-ink: #0B1512;
  --mesh-1: rgba(124, 157, 138, 0.13);
  --mesh-2: rgba(63, 138, 116, 0.10);
  --mesh-3: rgba(201, 194, 166, 0.07);
  --mesh-4: rgba(91, 79, 207, 0.11);
  --indigo-accent: #A09DE2;
  --indigo-glow: rgba(91, 79, 207, 0.20);
}

/* ── Light theme ── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF8F3;
  --bg-2: #F1EDE3;
  --ink: #10201A;
  --ink-2: #3E5148;
  --ink-3: #75857A;
  --accent: #0F5C4C;
  --line: rgba(15, 92, 76, 0.13);
  --line-soft: rgba(15, 92, 76, 0.065);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-inner: rgba(15, 92, 76, 0.04);
  --stroke-hi: rgba(255, 255, 255, 0.9);
  --stroke-lo: rgba(255, 255, 255, 0.22);
  --stroke-tint: rgba(15, 92, 76, 0.18);
  --shadow-soft: 0 24px 60px -28px rgba(11, 61, 51, 0.24);
  --shadow-deep: 0 56px 120px -40px rgba(11, 61, 51, 0.36);
  --phone-frame: #10201A;
  --heading-grad: linear-gradient(115deg, #0B3D33 25%, #0F5C4C 60%, #427A62 95%);
  --btn-grad: linear-gradient(150deg, #12695A 0%, #0C4B3E 100%);
  --btn-ink: #FDFCF9;
  --mesh-1: rgba(15, 92, 76, 0.10);
  --mesh-2: rgba(124, 157, 138, 0.12);
  --mesh-3: rgba(201, 194, 166, 0.18);
  --mesh-4: rgba(91, 79, 207, 0.08);
  --indigo-accent: #5B4FCF;
  --indigo-glow: rgba(91, 79, 207, 0.13);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.45s ease, color 0.45s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(124, 157, 138, 0.35); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container.narrow { width: min(720px, calc(100% - 48px)); }
.center { text-align: center; }

/* ── Ambient mesh — quiet, pre-faded, GPU-cheap ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 76vw; height: 76vw; left: -24vw; top: -30vw; background: radial-gradient(circle, var(--mesh-1) 0%, transparent 60%); animation: drift1 30s ease-in-out infinite alternate; }
.b2 { width: 62vw; height: 62vw; right: -24vw; top: 4vh;  background: radial-gradient(circle, var(--mesh-2) 0%, transparent 60%); animation: drift2 36s ease-in-out infinite alternate; }
.b3 { width: 72vw; height: 72vw; left: 16vw; bottom: -38vw; background: radial-gradient(circle, var(--mesh-3) 0%, transparent 60%); animation: drift3 42s ease-in-out infinite alternate; }
.b4 { width: 44vw; height: 44vw; left: 36vw; top: 32vh; background: radial-gradient(circle, var(--mesh-4) 0%, transparent 62%); animation: drift2 48s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-7vw, 11vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-9vw, -9vh) scale(1.08); } }

/* ── Glass: heavy frost + crisp 1px light-catching stroke ── */
.glass {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--stroke-hi) 0%, var(--stroke-lo) 40%, var(--stroke-tint) 100%) border-box;
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: var(--shadow-soft);
}

/* ── Type ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 1.02;
  background: var(--heading-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 350; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.08;
  margin-bottom: 24px;
  background: var(--heading-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.kicker {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.section-sub { color: var(--ink-2); max-width: 58ch; margin: 0 0 8px; }
.center .section-sub, .sub-card .section-sub { margin-inline: auto; }
.prose p { color: var(--ink-2); margin: 0 0 20px; max-width: 62ch; }
.prose .lede { font-size: 1.24em; line-height: 1.55; color: var(--ink); font-weight: 450; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--font-serif); font-style: italic; font-size: 1.04em; }
.prose.center p { margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--font-display);
  letter-spacing: 0.01em;
  color: var(--btn-ink);
  background: var(--btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 15px 27px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.25s ease;
  box-shadow: 0 14px 32px -14px rgba(11, 61, 51, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
:root[data-theme="dark"] .btn { box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-sm { padding: 11px 21px; font-size: 13.5px; }
.btn-ghost {
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--stroke-hi), var(--stroke-lo) 50%, var(--stroke-tint)) border-box;
  border: 1px solid transparent;
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: var(--shadow-soft); filter: none; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ── Nav ── */
.nav { position: fixed; inset: 18px 0 auto; z-index: 60; display: flex; justify-content: center; padding-inline: 16px; }
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  width: min(1180px, 100%);
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--stroke-hi) 0%, var(--stroke-lo) 45%, var(--stroke-tint) 100%) border-box;
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  transition: box-shadow 0.4s ease;
}
.nav.scrolled .nav-inner { box-shadow: var(--shadow-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 22px; height: auto; }
:root[data-theme="dark"] .brand-mark { filter: brightness(1.6) saturate(0.7); }
.brand-word { font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.01em; color: var(--ink); transform: translateY(-2px); }
.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="light"] .ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: none; }

/* ── Hero ── */
.hero { position: relative; padding: 172px 0 100px; min-height: 92vh; display: flex; align-items: center; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 28px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--stroke-hi), var(--stroke-lo) 50%, var(--stroke-tint)) border-box;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.eyebrow { color: var(--indigo-accent); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo-accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(123, 111, 240, 0.5); } 55% { box-shadow: 0 0 0 8px rgba(123, 111, 240, 0); } }
.hero-sub { font-size: 19.5px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 28px 0 36px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-fine { font-size: 14px; color: var(--ink-3); margin: 24px 0 0; letter-spacing: 0.02em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--accent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }

/* ── Hero phone (3D stage) ── */
.hero-stage { position: relative; perspective: 1400px; display: flex; justify-content: center; }
.tilt { position: relative; z-index: 1; transform-style: preserve-3d; transition: transform 0.25s ease-out; }

/* The hero phone renders the app in its own Ma'thurat indigo theme,
   fixed across both site themes — the app as it actually looks. */
.phone {
  position: relative; margin: 0;
  width: clamp(305px, 27.5vw, 362px);
  border-radius: 54px;
  padding: 12px;
  background: linear-gradient(160deg, #201D38, #0F0D1E);
  box-shadow: var(--shadow-deep), 0 44px 96px -36px rgba(91, 79, 207, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transform: translateZ(30px);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.phone-sheen {
  position: absolute; inset: 0; border-radius: 54px; pointer-events: none;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, transparent 60%);
}
.phone-screen {
  border-radius: 43px; overflow: hidden;
  background: linear-gradient(175deg, #14111F 0%, #0B0A14 55%, #131024 100%);
  border: 1px solid rgba(160, 157, 226, 0.13);
  padding: 15px 17px 0;
  min-height: 640px;
  display: flex; flex-direction: column;
}
.ph-status { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #EFEDF7; padding: 2px 6px 0; }
.ph-cam { width: 74px; height: 22px; border-radius: 999px; background: #07060E; }
.ph-head { padding: 17px 6px 4px; }
.ph-session { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #EFEDF7; }
.ph-sun { color: var(--indigo-3); display: inline-flex; }
.ph-sun svg { width: 16px; height: 16px; }
.ph-progress { display: flex; gap: 5px; margin: 15px 0 4px; }
.ph-progress i { flex: 1; height: 4.5px; border-radius: 3px; background: rgba(160, 157, 226, 0.16); }
.ph-progress i.on { background: var(--indigo-2); }
.ph-progress i.half { background: linear-gradient(90deg, var(--indigo-2) 55%, rgba(160, 157, 226, 0.16) 55%); }

.dhikr {
  margin-top: 13px; padding: 19px 19px 15px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(32, 28, 58, 0.66), rgba(32, 28, 58, 0.66)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 55%, rgba(123, 111, 240, 0.4)) border-box;
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.55);
}
.dhikr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dhikr-num {
  width: 26px; height: 26px; border-radius: 9px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--indigo-2), var(--indigo)); color: #fff;
}
.dhikr-src { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #7C77A3; }
.dhikr-ar {
  font-family: var(--font-ar); font-size: 23px; line-height: 2.02;
  color: #F5F3FC; margin: 7px 0 11px; text-align: right;
}
.dhikr-tr { font-size: 13.5px; line-height: 1.68; color: #B9B4D8; margin: 0 0 14px; }
.dhikr-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(160, 157, 226, 0.13); padding-top: 12px; }
.dhikr-hint { font-size: 11px; color: #8B86AF; }
.dhikr-count { position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.dhikr-count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dhikr-count circle { fill: none; stroke-width: 2.8; }
.ring-bg { stroke: rgba(160, 157, 226, 0.2); }
.ring-fg { stroke: #8F84F4; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 32.5; }
.dhikr-count b { font-size: 14px; color: #F5F3FC; }
.dhikr-count small { font-size: 10px; color: #8B86AF; font-weight: 500; }

.dhikr-next { opacity: 0.55; transform: scale(0.985); }
.dhikr-next .dhikr-ar { font-size: 19px; margin-bottom: 2px; }

.ph-tabs {
  margin-top: auto; display: flex; justify-content: space-around;
  border-top: 1px solid rgba(160, 157, 226, 0.12);
  padding: 13px 4px 16px;
}
.ph-tabs .tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: #6F6A96;
}
.ph-tabs .tab svg { width: 20px; height: 20px; }
.ph-tabs .tab.on { color: var(--indigo-3); }

/* floating chips */
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px; border-radius: 18px;
  font-size: 14px; color: var(--ink);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    linear-gradient(135deg, var(--stroke-hi), var(--stroke-lo) 50%, var(--stroke-tint)) border-box;
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: var(--shadow-soft);
  animation: floaty 8s ease-in-out infinite;
}
.chip b { font-weight: 650; }
.chip small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.chip-ic { font-size: 18px; display: inline-flex; }
.chip-ic svg { width: 19px; height: 19px; color: var(--indigo-accent); }
.chip-tl { top: 19%; left: 0; transform: translateX(-68%) translateZ(70px); animation-delay: -2.5s; }
.chip-br { bottom: 9%; right: 0; transform: translateX(60%) translateZ(90px); animation-delay: -5s; }

/* ── Sections ── */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }

/* Story */
.story .prose { margin-top: 6px; }
.wird-card { margin-top: 44px; border-radius: var(--r-lg); padding: 26px 28px 20px; }
.wird-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wird-title { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; }
.wird-flame {
  font-size: 14px; font-weight: 650; color: var(--ink);
  background: var(--glass-inner); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.wird-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; }
.wird-grid i {
  aspect-ratio: 1; border-radius: 9px;
  background: linear-gradient(150deg, var(--indigo-2), var(--indigo)); opacity: 0;
  transform: scale(0.4);
  position: relative;
}
.wird-grid i::after {
  content: ""; position: absolute; inset: 0;
  background: center / 55% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.wird-grid.play i { animation: pop 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 1ms); }
.wird-grid i.today { outline: 2px solid var(--indigo-accent); outline-offset: 3px; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.wird-fine { font-size: 12.5px; color: var(--ink-3); margin: 18px 0 0; }

/* Languages */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.lang-tagline {
  font-family: var(--font-serif); font-size: 19px; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 16px; margin-top: 30px;
}
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-list li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 17px 19px; border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.lang-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.lg-native { font-size: 21px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.lg-en { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lg-en small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }

/* Gallery */
.inside .container { margin-bottom: 40px; }
.gallery-wrap { position: relative; }
.gallery-wrap::before {
  content: ""; position: absolute; inset: -6% 8% 10%; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 65% at 50% 45%, var(--indigo-glow) 0%, transparent 72%);
}
.gallery {
  position: relative; z-index: 1;
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(24px, calc((100vw - 1180px) / 2)) 26px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: 0 0 auto; margin: 0; scroll-snap-align: center;
  width: clamp(230px, 24vw, 300px);
}
.gallery img {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gallery figure:hover img { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-deep); }
.gallery figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 14px; }
.gal-btn {
  position: absolute; top: 42%; z-index: 4;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 17px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
}
.gal-btn:hover { transform: scale(1.08); }
.gal-prev { left: 18px; }
.gal-next { right: 18px; }
@media (max-width: 720px) { .gal-btn { display: none; } }

/* Vision */
.vision-mark { width: 80px; margin: 0 auto 30px; filter: drop-shadow(0 18px 36px rgba(15, 92, 76, 0.28)); }
:root[data-theme="dark"] .vision-mark { filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45)) brightness(1.4) saturate(0.85); }
.slogan {
  font-family: var(--font-serif); font-style: italic; font-weight: 320;
  font-size: clamp(1.8rem, 3.7vw, 2.6rem); line-height: 1.25;
  margin: 48px 0 14px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .slogan { background: linear-gradient(115deg, #DCD6C0 15%, #B9CDBB 60%, #8FB6A2 100%); -webkit-background-clip: text; background-clip: text; }
.triad { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.triad span { color: var(--accent); margin-inline: 6px; }

/* Essence — quiet hairline grid */
.essence-grid {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.essence-grid li {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}
.essence-grid li:hover { background: var(--line-soft); }
.essence-grid h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.essence-grid p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* Subscribe */
.sub-card { border-radius: var(--r-xl); padding: clamp(38px, 6vw, 72px) clamp(26px, 5vw, 64px); }
.email-form { margin-top: 30px; }
.email-row { display: flex; gap: 10px; max-width: 460px; margin-inline: auto; }
.email-row input {
  flex: 1; min-width: 0;
  font: 500 15px/1.2 var(--font-ui); color: var(--ink);
  background: var(--glass-inner); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 15px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.email-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 157, 138, 0.16); }
.email-row input::placeholder { color: var(--ink-3); }
.form-fine { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; }
.form-fine.err { color: #E07B7B; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; margin: 0; }
.form-success { margin-top: 30px; }
.success-ic {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--btn-grad); color: var(--btn-ink);
  box-shadow: 0 14px 30px -12px rgba(11, 61, 51, 0.45);
}
.success-ic svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); margin: 0; }

.wa-btn {
  margin-top: 18px; width: 100%;
  background: linear-gradient(150deg, #2EE07C, #22B95E);
  color: #06210F; border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px -14px rgba(34, 185, 94, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.testers-wa-fine { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: color-mix(in oklab, var(--bg) 55%, var(--bg-2)); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-lockup { width: 116px; }
:root[data-theme="light"] .lockup-dark { display: none; }
:root[data-theme="dark"] .lockup-light { display: none; }
.footer-brand small { display: block; margin-top: 14px; color: var(--ink-3); font-size: 12.5px; }
.footer-cols { display: flex; gap: clamp(36px, 6vw, 84px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col strong { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); margin-top: 52px; padding-top: 26px;
  font-size: 13px; color: var(--ink-3);
}
.footer-slogan { font-family: var(--font-serif); font-style: italic; color: var(--ink-2); }

/* ── Reveal on scroll ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.24s; }

/* ── Testers page ── */
.testers-page main { min-height: 100vh; display: flex; flex-direction: column; }
.testers-hero { padding: 156px 0 70px; }
.testers-hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.testers-form-wrap { position: relative; }
.seats {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 9px 17px; border-radius: 999px; margin-bottom: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--stroke-hi), var(--stroke-lo) 50%, var(--stroke-tint)) border-box;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.seats b { color: var(--indigo-accent); }
.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 19px 21px; border-radius: var(--r-md);
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto; width: 31px; height: 31px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font: 600 14px/1 var(--font-display);
  background: linear-gradient(135deg, var(--indigo-2), var(--indigo)); color: #fff;
}
.steps b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 15.5px; margin-bottom: 3px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.testers-form-card { border-radius: var(--r-xl); padding: clamp(30px, 4vw, 46px); }
.testers-form-card h2 { font-size: 26px; }
.testers-form-card .email-row { flex-direction: column; max-width: none; }
.testers-form-card .btn { width: 100%; padding: 17px; }
.testers-notes { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.testers-notes li { font-size: 13px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.testers-notes svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2.5px; color: var(--accent); }
.testers-shots { display: flex; gap: 14px; margin-top: 60px; justify-content: center; }
.testers-shots img { width: clamp(140px, 17vw, 210px); border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.testers-shots img:nth-child(2) { transform: translateY(-14px); }
.footer-mini { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; }
.footer-mini .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.footer-mini a { color: var(--ink-2); text-decoration: none; }
.footer-mini a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero { padding-top: 140px; min-height: 0; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stage { margin-top: 54px; }
  .lang-grid { grid-template-columns: 1fr; }
  .essence-grid { grid-template-columns: 1fr 1fr; }
  .testers-hero .container { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .essence-grid { grid-template-columns: 1fr; }
  .email-row { flex-direction: column; }
  .email-row .btn { width: 100%; padding: 16px; }
  /* flatten the 3D context so chip z-index wins over the phone's translateZ */
  .tilt { transform-style: flat; }
  .chip-tl { top: -12px; left: 4px; transform: translateX(-10%); }
  .chip-br { bottom: -12px; right: 4px; transform: translateX(10%); }
  .wird-grid { grid-template-columns: repeat(7, 1fr); }
  .footer-grid { flex-direction: column; }
  .gallery { padding-inline: 24px; }
  .scroll-cue { display: none; }
  .testers-shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .testers-shots::-webkit-scrollbar { display: none; }
  .testers-shots img { width: 52vw; scroll-snap-align: center; }
  .testers-shots img:nth-child(2) { transform: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
}

/* ── Focus ── */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
