:root {
  --bg: #0b0718;              /* deep violet ink */
  --bg-2: #130d28;
  --gold: #e9b45f;
  --gold-soft: #f3d199;
  --violet: #8b5cf6;           /* violet, ambient only */
  --magenta: #b8864a;          /* bronze: the deep end of the gold foil */
  --champagne: #f6e7c8;
  --emerald: #34d399;
  --text: #f5f2fa;
  --muted: #a9a2bd;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.045);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --foil: linear-gradient(100deg, #f8ebcf 0%, #e8c587 22%, #b98a45 44%, #f1d8a3 62%, #c79a52 82%, #f8ebcf 100%);
  --wrap: 1200px;
  --section-y: clamp(44px, 4.8vw, 68px);  /* vertical rhythm for all sections */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lets the conic borders spin smoothly */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(233, 180, 95, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  .btn:active, .nav__cta:active, .contact__val:active { opacity: 0.75; }
  .card:active { border-color: rgba(233, 180, 95, 0.4); }
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* Frosted panel used by About and Contact */
.glass {
  background: linear-gradient(135deg, rgba(24, 17, 48, 0.78), rgba(12, 8, 26, 0.55));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------------- Intro loader ---------------- */
.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px circle at 50% 50%, rgba(233, 180, 95, 0.10), transparent 60%),
    var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}

.js.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.js.skip-intro .loader { display: none; }

.loader__inner { display: grid; justify-items: center; gap: 26px; }
.loader .logo { transform: scale(1.7); }
.loader .logo__word { animation: fadeUp 0.7s var(--ease-out) 0.25s both; }

.loader__bar {
  width: 180px;
  height: 2px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--magenta));
  transform-origin: left;
  animation: loadBar 0.95s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Page-wide animated background ---------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.backdrop__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.9;
  will-change: transform;
}

.aurora--gold {
  width: 62vw; height: 62vw;
  max-width: 820px; max-height: 820px;
  right: -14vw; top: -18vw;
  background: radial-gradient(circle, rgba(233, 180, 95, 0.30), rgba(150, 90, 246, 0.10) 50%, transparent 70%);
  animation: auroraA 24s ease-in-out infinite alternate;
}

.aurora--violet {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  left: -18vw; top: 38vh;
  background: radial-gradient(circle, rgba(124, 78, 220, 0.28), transparent 68%);
  animation: auroraB 30s ease-in-out infinite alternate;
}

.aurora--magenta {
  width: 40vw; height: 40vw;
  max-width: 560px; max-height: 560px;
  right: 10vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(184, 134, 74, 0.16), transparent 68%);
  animation: auroraC 34s ease-in-out infinite alternate;
}

@keyframes auroraA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-8vw, 10vh, 0) scale(1.15); }
}
@keyframes auroraB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(12vw, -14vh, 0) scale(1.2); }
}
@keyframes auroraC {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-14vw, -8vh, 0) scale(0.9); }
}

/* Soft light that follows the mouse */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  z-index: -1;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 180, 95, 0.09), rgba(150, 90, 246, 0.05) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow.is-on { opacity: 1; }

/* Film grain overlay for the cinematic feel */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grainShift 0.8s steps(3) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0 0; }
  33%  { background-position: -40px 30px; }
  66%  { background-position: 30px -40px; }
  100% { background-position: 0 0; }
}

/* Reading progress along the very top */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--magenta));
  box-shadow: 0 0 12px rgba(233, 180, 95, 0.7);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------------- Logo ---------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Frosted-glass tile holding the candlestick mark */
.logo__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.02) 52%, rgba(233, 180, 95, 0.14)),
    rgba(22, 16, 44, 0.55);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px -8px rgba(150, 90, 246, 0.45),
    0 6px 20px -6px rgba(233, 180, 95, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}

/* Glossy reflection across the top half */
.logo__tile::before {
  content: "";
  position: absolute;
  inset: 1px 1px 52% 1px;
  z-index: 1;
  border-radius: 12px 12px 40% 40% / 12px 12px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

/* Light sweep that crosses the glass now and then */
.logo__tile::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: tileSweep 5s ease-in-out 1.5s infinite;
  pointer-events: none;
}

@keyframes tileSweep {
  0%, 72% { transform: translateX(-70%); }
  100%    { transform: translateX(70%); }
}

.logo__mark {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(233, 180, 95, 0.55));
}

.logo__candle {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: candleUp 0.8s var(--ease-out) both;
  animation-delay: calc(0.3s + var(--c) * 0.14s);
}

@keyframes candleUp {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

a:hover .logo__tile {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 16px -8px rgba(150, 90, 246, 0.55),
    0 8px 28px -4px rgba(233, 180, 95, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}
a:hover .logo__candle { animation: candleBob 0.9s ease-in-out both; animation-delay: calc(var(--c) * 0.1s); }

@keyframes candleBob {
  0%, 100% { transform: scaleY(1); }
  45%      { transform: scaleY(0.55); }
}

.logo__word {
  display: grid;
  line-height: 1;
}

.logo__uvi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.1em;
  background:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%) 0 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #ffffff 0%, #fff1d6 45%, var(--gold) 62%, #b8864a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(233, 180, 95, 0.35));
  animation: wordSweep 5s ease-in-out 1.7s infinite;
}

@keyframes wordSweep {
  0%, 72% { background-position: 150% 0, 0 0; }
  100%    { background-position: -100% 0, 0 0; }
}

.logo__platform {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--muted);
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -150% 0; }
}

/* ---------------- Typography helpers ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 30%, rgba(245, 242, 250, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2--xl { font-size: clamp(32px, 4.4vw, 54px); }

.h2 .serif { font-size: 1.02em; line-height: 0.9; }

.accent {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: shimmer 8s linear infinite;
}

/* Editorial accent: italic serif in gold foil */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding-right: 0.08em; /* italic overhang would otherwise be clipped */
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 10s linear infinite;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 54ch;
  margin-bottom: 11px;
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 7, 22, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s ease;
}

.nav.is-stuck .nav__inner { padding-block: 11px; }

.nav__logo { white-space: nowrap; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  place-items: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

.nav__links {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav__links a {
  position: relative;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav__links a.is-active {
  color: #1a1206;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold));
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233, 180, 95, 0.35);
  background: rgba(233, 180, 95, 0.08);
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  border-color: rgba(233, 180, 95, 0.7);
  background: rgba(233, 180, 95, 0.16);
  box-shadow: 0 0 24px -4px rgba(233, 180, 95, 0.5);
}

/* ---------------- Buttons ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.magnetic { transition: transform 0.35s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease; }

.btn--primary {
  color: #1a1206;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #f8ebcf 0%, #e8c587 40%, #c99a52 100%);
  box-shadow: 0 14px 34px -12px rgba(233, 180, 95, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Light sweep across the primary button */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out 2.2s infinite;
}

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

.btn--primary:hover { box-shadow: 0 22px 44px -12px rgba(233, 180, 95, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

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

/* ---------------- Stage (pinned photo) ---------------- */
/* z-index:0 keeps the pinned photo's stacking inside the stage, so the
   sections after it paint on top instead of the photo bleeding through. */
.stage { position: relative; z-index: 0; }

.stage__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 80% 45% at 60% 25%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 45% at 60% 25%, black, transparent 75%);
  animation: gridPan 20s linear infinite;
}

@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 74px 74px; }
}

/* The photo that stays pinned while the stage scrolls past it */
.stage__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.stage__photo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
  padding-bottom: 96px; /* room for the nameplate under the photo */
}

.stage__photo-inner {
  position: relative;
  height: calc(100vh - 146px);
  height: calc(100dvh - 146px);
  max-height: 960px;
  min-height: 420px;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Ambient glow sits behind the subject. Kept as its own layer rather than a
   drop-shadow filter, which the image's fade mask would clip into a box. */
.stage__photo-inner::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 6%;
  width: 170%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    rgba(233, 180, 95, 0.30),
    rgba(233, 180, 95, 0.18) 22%,
    rgba(150, 90, 246, 0.16) 45%,
    rgba(150, 90, 246, 0.06) 62%,
    transparent 76%);
  animation: glowPulse 6s ease-in-out infinite;
}

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

/* Rotating rings behind the head and shoulders */
.photo-halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 3%;
  width: 118%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring--conic {
  background: conic-gradient(from 0deg,
    transparent 0deg, var(--gold) 70deg, transparent 150deg,
    var(--magenta) 220deg, transparent 300deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0.85;
  will-change: transform;
  animation: spin 9s linear infinite;
}

.ring--conic::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 180, 95, 0.10), transparent 70%);
}

@keyframes spinAngle { to { --angle: 360deg; } }

.ring--dash {
  inset: -9%;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  animation: spin 50s linear infinite reverse;
}

.ring--outer {
  inset: -20%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation-duration: 70s;
  animation-direction: normal;
}

.ring--dash i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px 3px rgba(233, 180, 95, 0.8);
}

.ring--outer i {
  top: auto;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: var(--magenta);
  box-shadow: 0 0 14px 3px rgba(150, 90, 246, 0.8);
}

@keyframes spin { to { transform: rotate(360deg); } }

.photo-float {
  position: relative;
  height: 100%;
}

/* "Live photo" shine: a band of light that sweeps over the figure only,
   using the cut-out itself as the mask so it never spills onto the background. */
.photo-float::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 200, 0.38) 48%, rgba(255, 255, 255, 0.55) 50%, rgba(233, 180, 95, 0.25) 53%, transparent 62%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("../img/founder.webp") center / contain no-repeat;
  mask: url("../img/founder.webp") center / contain no-repeat;
  opacity: 0.7;
  animation: photoShine 6s ease-in-out 2s infinite, breathe 7s ease-in-out infinite;
}

@keyframes photoShine {
  0%, 55% { background-position: 110% 0; }
  100%    { background-position: -10% 0; }
}

.js .photo-float {
  opacity: 0;
  transform: translateY(70px) scale(0.96);
  filter: blur(14px);
  transition: opacity 1.3s var(--ease-out), transform 1.5s var(--ease-out), filter 1.3s var(--ease-out);
  transition-delay: 0.15s;
}

.js.is-ready .photo-float { opacity: 1; transform: none; filter: none; }

.photo-float img {
  height: 100%;
  width: auto;
  object-fit: contain;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  animation: breathe 7s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.018); }
}

/* Glass cards that float around the photo */
.chips {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: var(--chips, 1);
  transition: opacity 0.2s linear;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 11px;
  border-radius: 16px;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(34, 24, 66, 0.96), rgba(17, 12, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: chipFloat 6s ease-in-out infinite;
}

.js .chip { opacity: 0; }
.js.is-ready .chip { animation: chipIn 0.9s var(--ease-out) both, chipFloat 6s ease-in-out 0.9s infinite; }

.chip--1 { top: 14%; right: -34%; --z: 60px; --d: 0.7s; }
.chip--2 { top: 44%; left: -30%;  --z: 90px; --d: 0.9s; }
.chip--3 { bottom: 30%; right: -26%; --z: 40px; --d: 1.1s; }

.js.is-ready .chip { animation-delay: var(--d), calc(var(--d) + 0.9s); }
.chip--2 { animation-duration: 7s; }
.chip--3 { animation-duration: 8s; }

@keyframes chipIn {
  from { opacity: 0; transform: translate3d(0, 24px, var(--z)) scale(0.9); }
  to   { opacity: 1; transform: translate3d(0, 0, var(--z)) scale(1); }
}

@keyframes chipFloat {
  0%, 100% { opacity: 1; transform: translate3d(0, 0, var(--z)); }
  50%      { opacity: 1; transform: translate3d(0, -12px, var(--z)); }
}

.chip__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--gold);
  background: rgba(233, 180, 95, 0.12);
  border: 1px solid rgba(233, 180, 95, 0.28);
}

.chip__icon svg { width: 18px; height: 18px; }

.chip__text { display: grid; line-height: 1.25; }
.chip__text b { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.chip__text small { font-size: 11px; color: var(--muted); }

.chip__spark {
  width: 120px;
  height: 26px;
  margin-top: 6px;
  overflow: visible;
}

.chip__spark path {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.7));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 3.2s var(--ease-out) 1.4s infinite;
}

@keyframes drawLine {
  0%   { stroke-dashoffset: 200; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  pointer-events: none;
}

.hero a, .hero button { pointer-events: auto; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

.hero__line { display: block; }
.hero__title .serif {
  font-size: 0.92em;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero__line--nowrap { white-space: nowrap; }

/* Title animates word by word, so the block itself doesn't slide */
.js .hero__title.reveal { opacity: 1; transform: none; }

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.02em 0.1em;
  margin: -0.04em -0.02em -0.1em;
}

.word > span {
  display: inline-block;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55));
}

.js .word > span {
  transform: translateY(115%) rotate(6deg);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(0.1s + var(--w) * 0.09s);
}

.js .hero__title.is-in .word > span { transform: none; }

.hero__sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 43ch;
  margin-bottom: 34px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ---------------- Founder nameplate ---------------- */
.nameplate {
  position: relative;
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 24px 11px;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, rgba(24, 17, 48, 0.78), rgba(14, 10, 30, 0.70) 60%, rgba(60, 40, 20, 0.62));
  backdrop-filter: blur(8px) saturate(1.5);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  will-change: transform;
  box-shadow:
    0 24px 50px -20px rgba(0, 0, 0, 0.9),
    0 0 40px -10px rgba(233, 180, 95, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Spinning gold/violet edge */
.nameplate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, 0.25), var(--gold-soft) 60deg, var(--gold) 110deg, rgba(255, 255, 255, 0.25) 180deg, var(--magenta) 250deg, rgba(255, 255, 255, 0.25) 330deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Glass sheen that glides across every few seconds */
.nameplate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sheen 5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 60% { background-position: 150% 0; }
  100%    { background-position: -100% 0; }
}

.nameplate__text {
  display: grid;
  justify-items: inherit;
  gap: 2px;
}

.nameplate__avatar { display: none; }

.nameplate__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.nameplate__badge .live-dot { width: 7px; height: 7px; }

.nameplate__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #fff 0%, #fff 35%, var(--gold-soft) 50%, #fff 65%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(233, 180, 95, 0.45));
  animation: shimmer 6s linear infinite;
}

.nameplate__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* Compact version under the photo, so the photo itself can be taller */
.nameplate--photo {
  padding: 8px 22px 9px;
  gap: 0;
  /* No backdrop blur here: it would be recomputed every time the photo scales */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, rgba(24, 17, 48, 0.96), rgba(10, 7, 22, 0.94) 60%, rgba(60, 40, 20, 0.9));
}
.nameplate--photo .nameplate__badge {
  margin-bottom: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 9.5px;
}
.nameplate--photo .nameplate__name { font-size: 21px; line-height: 1.15; }
.nameplate--photo .nameplate__role { font-size: 12px; }

/* Sits just under the photo, like a caption, never over it */
.nameplate--photo {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  --z: 70px;
  transform: translate3d(-50%, 0, var(--z));
  animation: plateFloat 6.5s ease-in-out infinite;
}

.js .nameplate--photo { opacity: 0; }
.js.is-ready .nameplate--photo {
  animation: plateIn 1s var(--ease-out) 0.6s backwards, plateFloat 6.5s ease-in-out 1.6s infinite;
  opacity: var(--plate, 1);
}

@keyframes plateIn {
  from { opacity: 0; transform: translate3d(-50%, 30px, var(--z)) scale(0.92); filter: blur(8px); }
  to   { opacity: 1; transform: translate3d(-50%, 0, var(--z)) scale(1); filter: none; }
}

@keyframes plateFloat {
  0%, 100% { transform: translate3d(-50%, 0, var(--z)); }
  50%      { transform: translate3d(-50%, -8px, var(--z)); }
}

/* The in-text copy only shows on small screens, where the photo is dimmed.
   On desktop it stays readable by screen readers, since the photo is aria-hidden. */
.nameplate--inline {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.8); opacity: 0; }
}

.hero__edu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(233, 180, 95, 0.3);
  border-radius: 999px;
  background: rgba(233, 180, 95, 0.08);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint__mouse {
  position: relative;
  width: 20px;
  height: 31px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.scroll-hint__mouse i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------------- Ticker ---------------- */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(233, 180, 95, 0.05), rgba(10, 7, 22, 0.55), rgba(124, 78, 220, 0.06));
  backdrop-filter: blur(8px);
  padding: 15px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 36s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ticker__item:hover { color: var(--gold-soft); }

.ticker__item i {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--gold);
  opacity: 0.8;
}

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

/* ---------------- About ---------------- */
.about {
  position: relative;
  z-index: 2;
  padding: var(--section-y) 0;
  pointer-events: none;
}

.about a { pointer-events: auto; }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}

.about__copy {
  position: relative;
  border-radius: 22px;
  padding: 24px 26px;
  overflow: hidden;
}

.about__copy::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 180, 95, 0.8), transparent);
}

.ticklist {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two-up: half the vertical space */
  gap: 7px;
  margin-top: 14px;
}

.ticklist li {
  position: relative;
  padding: 7px 12px 7px 40px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticklist li::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: rgba(233, 180, 95, 0.14);
  border: 1px solid rgba(233, 180, 95, 0.4);
}

.ticklist li::after {
  content: "";
  position: absolute;
  left: 17px; top: 50%;
  width: 8px; height: 4px;
  margin-top: -3px;
  border-left: 1.8px solid var(--gold);
  border-bottom: 1.8px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------------- Stats ---------------- */
.stats {
  position: relative;
  z-index: 2;
  padding: 24px 0 var(--section-y);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.stat::after {
  content: "";
  position: absolute;
  left: 50%; top: -60px;
  width: 160px; height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(233, 180, 95, 0.18), transparent 70%);
  pointer-events: none;
}

.stat__value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: var(--foil);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats__note {
  max-width: var(--wrap);
  margin: 14px auto 0;
  padding: 0 28px;
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.65;
  text-align: center;
}

/* ---------------- Services ---------------- */
.services {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(233, 180, 95, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(10, 7, 22, 0.6), rgba(17, 12, 36, 0.55));
  border-top: 1px solid var(--line);
}

.services::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: min(600px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  perspective: 1200px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(233, 180, 95, 0.07), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px 20px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Entrance: cards flip up out of the page, one after another */
.js .card.reveal {
  transform: translateY(60px) rotateX(24deg) scale(0.94);
  transform-origin: 50% 100%;
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms);
}

.js .card.reveal.is-in {
  transform: none;
  filter: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out),
              border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
  transition-delay: calc(var(--i, 0) * 130ms), calc(var(--i, 0) * 130ms), calc(var(--i, 0) * 130ms), 0s, 0s, 0s;
}

/* JS adds this once the entrance finishes, so hover tilt reacts instantly */
.js .card.reveal.is-in.is-settled {
  transition: transform 0.25s ease-out, border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
  transition-delay: 0s;
}

/* Spinning gold border, shown on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--gold-soft) 60deg, var(--gold) 90deg, transparent 150deg, var(--magenta) 250deg, transparent 320deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Cursor-following light */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(233, 180, 95, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: transparent;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(233, 180, 95, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 70px -34px rgba(233, 180, 95, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.card:hover::before { animation: spinAngle 4s linear infinite; }

/* A band of light that crosses each card in turn, every few seconds */
.card__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 244, 220, 0.09) 48%, rgba(255, 244, 220, 0.16) 50%, transparent 58%);
  background-size: 300% 100%;
  animation: cardShine 8s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--i, 0) * 0.6s);
}

@keyframes cardShine {
  0%, 70% { background-position: 120% 0; }
  100%    { background-position: -20% 0; }
}

/* Gold underline that grows on hover */
.card__bar {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold), transparent);
  box-shadow: 0 0 14px rgba(233, 180, 95, 0.8);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card__bar { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 14px;
  color: var(--gold);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 50%),
    linear-gradient(145deg, rgba(233, 180, 95, 0.22), rgba(150, 90, 246, 0.10));
  border: 1px solid rgba(233, 180, 95, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -12px rgba(233, 180, 95, 0.6);
  transform: translateZ(40px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
  animation: iconFloat 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.2s);
}

@keyframes iconFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

.card:hover .card__icon {
  transform: translateZ(60px) rotate(-8deg) scale(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 34px -2px rgba(233, 180, 95, 0.75);
}

/* The icon redraws itself on hover */
.card__icon svg { overflow: visible; }
.card:hover .card__icon svg > * {
  stroke-dasharray: 80;
  animation: iconDraw 0.9s var(--ease-out) both;
}

@keyframes iconDraw {
  from { stroke-dashoffset: 80; }
  to   { stroke-dashoffset: 0; }
}

.card__num {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  opacity: 0.75;
  transform: translateZ(25px);
}

.card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
  transform: translateZ(30px);
}

.card__body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  transform: translateZ(15px);
}

/* ---------- Per-card looping illustrations ---------- */
.card__art {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 104px;
  height: 64px;
  z-index: -1;
  overflow: visible;
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
  mask-image: linear-gradient(to left, #000 55%, transparent);
}

.card:hover .card__art { opacity: 1; transform: translateZ(20px) scale(1.05); }

.card__art * { vector-effect: non-scaling-stroke; }

/* Trend: a price line drawing itself, with a pulsing end point */
.art__grid { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.art__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  filter: drop-shadow(0 0 4px rgba(233, 180, 95, 0.7));
  animation: artDraw 4.5s var(--ease-out) infinite;
}
.art__area { fill: rgba(233, 180, 95, 0.08); animation: artFade 4.5s ease infinite; }
.art__dot {
  fill: var(--gold-soft);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(243, 209, 153, 0.9));
  animation: artDot 4.5s ease infinite;
}

@keyframes artDraw {
  0%        { stroke-dashoffset: 100; }
  55%, 85%  { stroke-dashoffset: 0; opacity: 1; }
  100%      { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes artFade {
  0%, 30%  { opacity: 0; }
  60%, 85% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes artDot {
  0%, 50%  { transform: scale(0); opacity: 0; }
  58%      { transform: scale(1.6); opacity: 1; }
  66%, 85% { transform: scale(1); opacity: 1; }
  100%     { transform: scale(1); opacity: 0; }
}

/* Shield: protective rings rippling outward */
.art__ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: artRipple 3.6s ease-out infinite;
  animation-delay: calc(var(--n) * 1.2s);
}
.art__shield { fill: rgba(233, 180, 95, 0.12); stroke: var(--gold-soft); stroke-width: 1.5; stroke-linejoin: round; }
.art__check {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: artDraw 3.6s var(--ease-out) infinite;
}

@keyframes artRipple {
  from { transform: scale(0.45); opacity: 0.9; }
  to   { transform: scale(1.7); opacity: 0; }
}

/* Scan: a beam sweeping a grid and lighting up one match */
.art__pt { fill: rgba(255, 255, 255, 0.22); animation: artPt 3.2s ease-in-out infinite; animation-delay: calc(var(--r) * 0.32s); }
.art__beam {
  fill: rgba(233, 180, 95, 0.18);
  filter: blur(3px);
  animation: artBeam 3.2s ease-in-out infinite;
}
.art__hit {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: artHit 3.2s ease-in-out infinite;
}

@keyframes artBeam {
  0%   { transform: translateY(-14px); opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}
@keyframes artPt {
  0%, 100% { fill: rgba(255, 255, 255, 0.18); }
  8%       { fill: rgba(243, 209, 153, 0.95); }
  25%      { fill: rgba(255, 255, 255, 0.18); }
}
@keyframes artHit {
  0%, 45%  { transform: scale(0.4); opacity: 0; }
  55%      { transform: scale(1.25); opacity: 1; }
  65%, 90% { transform: scale(1); opacity: 1; }
  100%     { transform: scale(1); opacity: 0; }
}

/* Mentoring: journal lines being written, one after another */
.art__text {
  fill: rgba(233, 180, 95, 0.55);
  transform-box: fill-box;
  transform-origin: left center;
  animation: artWrite 5s var(--ease-out) infinite backwards;
  animation-delay: calc(var(--n) * 0.45s);
}
.art__text:nth-child(odd) { fill: rgba(255, 255, 255, 0.28); }

@keyframes artWrite {
  0%       { transform: scaleX(0); opacity: 0; }
  12%      { transform: scaleX(1); opacity: 1; }
  75%      { transform: scaleX(1); opacity: 1; }
  90%, 100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 860px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---------------- Latest from the channel ---------------- */
.channel {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(124, 78, 220, 0.12), transparent 70%),
    rgba(19, 13, 40, 0.55);
  border-top: 1px solid var(--line);
}

.channel .lead { margin-bottom: 8px; }

.channel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* Frame around each embedded Telegram post */
.tg-card {
  position: relative;
  min-height: 140px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.tg-card:hover {
  border-color: rgba(233, 180, 95, 0.35);
  box-shadow: 0 30px 60px -34px rgba(233, 180, 95, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shimmer showing through until the post has loaded */
.tg-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: 12px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%)
    0 0 / 250% 100%;
  animation: shimmer 2.4s linear infinite;
}

.tg-card iframe { border-radius: 12px; }

/* Long posts are clipped and faded out, so the row stays an even height */
.tg-card:not(.tg-card--empty) { max-height: 470px; }

.tg-card__fade {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 90px;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(19, 13, 40, 0), rgba(19, 13, 40, 0.92) 70%, rgba(19, 13, 40, 0.98));
}

.tg-card--empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-style: dashed;
}

.tg-card--empty code {
  font-size: 12.5px;
  color: var(--gold-soft);
  background: rgba(233, 180, 95, 0.1);
  border-radius: 5px;
  padding: 1px 6px;
}

.channel__actions { margin-top: 20px; }

@media (max-width: 900px) {
  .channel { padding: var(--section-y) 0; }
  .channel__grid { grid-template-columns: 1fr; }
}

/* ---------------- Contact ---------------- */
.contact {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px circle at 82% 18%, rgba(124, 78, 220, 0.2), transparent 60%),
    radial-gradient(700px circle at 8% 88%, rgba(233, 180, 95, 0.16), transparent 62%),
    rgba(10, 7, 22, 0.7);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.contact__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact__list {
  display: grid;
  border-radius: 22px;
  overflow: hidden;
}

.contact__list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.contact__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--magenta));
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out);
}

.contact__list li:hover { background: rgba(255, 255, 255, 0.04); }
.contact__list li:hover::before { transform: scaleY(1); }
.contact__list li:last-child { border-bottom: none; }

.contact__key {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__val {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  transition: color 0.2s ease;
}

a.contact__val:hover { color: var(--gold); }

/* ---------------- Education-only disclaimer band ---------------- */
.edu-band {
  background: rgba(233, 180, 95, 0.07);
  font-size: 13.5px;
  border-top: 1px solid rgba(233, 180, 95, 0.28);
  border-bottom: 1px solid rgba(233, 180, 95, 0.28);
  padding: 14px 0;
  backdrop-filter: blur(8px);
}

.edu-band__inner {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.edu-band__icon {
  flex: none;
  color: var(--gold);
  margin-top: 1px;
}

.edu-band__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 92ch;
}

.edu-band__text strong {
  color: var(--gold);
  font-weight: 600;
}

/* ---------------- Footer ---------------- */
.footer {
  position: relative;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 7, 22, 0.85), var(--bg));
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer__tag { font-size: 13px; color: var(--muted); }

.footer__disclaimer {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.72;
  max-width: 88ch;
  margin-bottom: 12px;
}

.footer__copy { font-size: 12px; color: var(--muted); opacity: 0.6; }

/* Oversized wordmark bleeding off the bottom of the page */
.footer__mega {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 96px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(233, 180, 95, 0.28), rgba(150, 90, 246, 0.06) 70%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  transform: translateY(12%);
}

.js .footer__mega.reveal { transform: translateY(40%); letter-spacing: 0.04em; transition-duration: 1.4s; }
.js .footer__mega.reveal.is-in { transform: translateY(12%); letter-spacing: -0.04em; }

/* ---------------- Scrolling: pause decorative loops ---------------- */
.is-scrolling .ring,
.is-scrolling .chip,
.is-scrolling .grain,
.is-scrolling .aurora,
.is-scrolling .card__shine,
.is-scrolling .card__icon,
.is-scrolling .card__art *,
.is-scrolling .photo-float img,
.is-scrolling .photo-float::after,
.is-scrolling .nameplate--photo,
.is-scrolling .nameplate::after,
.is-scrolling .ticker__track,
.is-scrolling .logo__uvi,
.is-scrolling .accent,
.is-scrolling .serif {
  animation-play-state: paused;
}

/* ---------------- Reveal on scroll ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out),
              letter-spacing 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .chips { zoom: 0.88; }
  .chip--1 { right: -22%; }
  .chip--3 { right: -16%; }
}

@media (max-width: 1000px) {

  .hero__grid,
  .about__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding: 120px 0 26px; }

  .hero__spacer, .about__spacer { display: none; }

  /* The photo gets its own block under the hero text, at full strength,
     instead of sitting dimmed behind the copy. */
  .stage { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .stage__photo { order: 2; }
  .ticker { order: 3; }
  .about { order: 4; }
  .stats { order: 5; }

  .stage__photo {
    position: static;
    opacity: 1;
    padding: 0 20px;
  }

  .stage__photo-sticky {
    position: static;
    display: block;
    height: auto;
    padding-bottom: 0;
    perspective: none;
  }

  /* Height comes from the photo itself, so the name card below it is part of
     the block instead of overflowing onto the ticker. */
  .stage__photo-inner {
    height: auto;
    max-height: none;
    min-height: 0;
    width: fit-content;
    margin: 0 auto;
  }

  .photo-float { height: min(56vh, 460px); }

  .chips, .ring--outer { display: none; }

  /* Name card sits under the photo, in the normal flow */
  .nameplate--photo {
    position: static;
    display: inline-grid;
    margin: 16px auto 0;
    transform: none;
    animation: none;
  }

  .js .nameplate--photo,
  .js.is-ready .nameplate--photo { opacity: 1; animation: none; transform: none; }

  .nameplate--inline {   /* kept for screen readers, not shown */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-items: start;
    text-align: left;
    margin-bottom: 4px;
    padding: 12px 20px 12px 12px;
  }

  .nameplate__avatar {
    display: block;
    width: 62px;
    height: 62px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 4%;
    background: radial-gradient(circle at 50% 30%, rgba(233, 180, 95, 0.35), rgba(124, 78, 220, 0.25));
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(233, 180, 95, 0.15), 0 0 20px rgba(233, 180, 95, 0.45);
  }

  .nameplate--inline .nameplate__name { font-size: 21px; }


  .about { padding: var(--section-y) 0; }
  .ticklist { grid-template-columns: 1fr; }
  .about__copy { padding: 30px 24px; }

  .stats { padding: 30px 0 var(--section-y); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .services, .contact { padding: var(--section-y) 0; }


  .contact__list li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px 18px; }
  .contact__val { text-align: left; display: block; padding: 10px 0; }  /* finger-sized */

  .scroll-hint { display: none; }
  .cursor-glow { display: none; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 14px 20px; }
  .btn { width: 100%; justify-content: center; }

  .nav__inner {
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    gap: 10px;
  }

  .nav__toggle { display: grid; }

  /* Very narrow phones: drop the sub-label and shorten the button */
  @media (max-width: 400px) {
    .logo__platform { display: none; }
    .hide-xs { display: none; }
    .nav__inner { gap: 8px; }
  }

  /* Links drop down from the bar instead of disappearing */
  .nav__links {
    display: grid;
    position: fixed;
    inset: 66px 12px auto 12px;
    padding: 8px;
    gap: 2px;
    border-radius: 18px;
    background: rgba(10, 7, 22, 0.97);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  }

  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav__links a {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .logo__tile { width: 36px; height: 36px; border-radius: 11px; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__uvi { font-size: 19px; }
  .nav__inner { padding-inline: 16px; }
  .logo { gap: 9px; }
  .nav__cta { padding: 11px 14px; font-size: 12.5px; gap: 6px; }  /* 40px tap target */

  .aurora { filter: blur(80px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .nameplate--photo { opacity: 1; transform: translate3d(-50%, 0, var(--z)); }
  .js .reveal, .js .card.reveal, .js .word > span, .js .photo-float, .js .chip { opacity: 1; transform: none; filter: none; }
  .js .loader { display: none; }
  html { scroll-behavior: auto; }
}
