/* ==========================================================================
   maheshmakwana.com
   --------------------------------------------------------------------------
   01  Tokens
   02  Reset & base
   03  Layout primitives
   04  Type helpers
   05  Components — buttons, YouTube logo, icons, frames, browser, glass
   06  Header & navigation
   07  Hero
   08  Stats band
   09  About
   10  Results
   11  Journey
   12  Expertise
   13  Teaching (tubgenix.ai)
   14  Contact
   15  Footer
   16  Lightbox
   17  Motion & reduced motion
   ========================================================================== */


/* 01  Tokens
   ========================================================================== */
:root {
  /* Colour */
  --bg: #FAFAF7;
  --bg-alt: #F4F3EE;
  --surface: #FFFFFF;
  --line: #E7E5DF;
  --line-strong: #D8D5CC;
  --ink: #0E1013;
  --ink-2: #5A5F69;          /* secondary text — 6.2:1 on --bg */
  --ink-mute: #A2A5AC;       /* decorative only, never body text */
  --red: #FF0033;            /* YouTube red — large numerals, marks, lines */
  --red-deep: #D1002A;       /* AA-safe red for small text (5.6:1 on white) */
  --red-tint: #FFF0F2;
  --navy: #13203B;
  --photo-bg: #E9E7E1;

  /* Type */
  --font-serif: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-h1: clamp(2.875rem, 1.35rem + 5.6vw, 5.25rem);
  --fs-h2: clamp(2.375rem, 1.55rem + 3.1vw, 4rem);
  --fs-h3: clamp(1.5rem, 1.32rem + .7vw, 1.9rem);
  --fs-stat: clamp(2.25rem, 1.6rem + 2.8vw, 4.25rem);
  --fs-lede: clamp(1.0625rem, 1rem + .3vw, 1.25rem);

  /* Space — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section-y: clamp(80px, 4.5rem + 5vw, 152px);
  --gutter: 16px;
  --container: 1200px;
  --nav-h: 64px;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(14, 16, 19, .04);
  --shadow-sm: 0 1px 2px rgba(14, 16, 19, .04), 0 6px 16px -6px rgba(14, 16, 19, .07);
  --shadow-md: 0 2px 4px rgba(14, 16, 19, .03), 0 16px 36px -14px rgba(14, 16, 19, .16);
  --shadow-lg: 0 4px 10px rgba(14, 16, 19, .03), 0 32px 72px -28px rgba(14, 16, 19, .26);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --nav-h: 76px;
  }
}


/* 02  Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong { font-weight: 600; color: var(--ink); }

::selection { background: rgba(255, 0, 51, .14); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .3s var(--ease-out);
}

.skip-link:focus { transform: none; }


/* 03  Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}


/* 04  Type helpers
   ========================================================================== */
h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }

h1 em,
h2 em { font-style: italic; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
}

.kicker + h2 { margin-top: 20px; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40em;
  text-wrap: pretty;
}

h2 + .lede { margin-top: 22px; }

.affix,
.text-accent { color: var(--red); }

.handle {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

.caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.caption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}


/* 05  Components
   ========================================================================== */

/* Icons ------------------------------------------------------------------ */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yt-mark {
  width: 28px;
  height: 20px;
  flex: none;
}

/* YouTube logo: mark + wordmark */
.yt {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
}

.yt .yt-mark {
  width: 1.42em;
  height: 1.02em;
}

.yt--sm { font-size: .9375rem; }
.yt--lg { font-size: 1.375rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.006em;
  white-space: nowrap;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.btn .icon { width: 18px; height: 18px; }

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

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -8px rgba(14, 16, 19, .55);
}

.btn--primary:hover {
  background: #1C1F24;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 30px -12px rgba(14, 16, 19, .5);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn--sm {
  --btn-h: 40px;
  padding: 0 18px;
  font-size: .875rem;
}

.btn--lg { --btn-h: 56px; padding: 0 28px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

/* Pill ------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Photo frames ----------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--photo-bg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, .06);
  pointer-events: none;
}

.frame--portrait { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 3 / 2; }

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 1.4s var(--ease-out);
}

.frame:hover img { transform: scale(1.035); }

/* Browser window frame for screenshots ---------------------------------- */
.browser {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FCFBF9, #F5F4F0);
}

/* spacer mirrors the dots so the URL pill sits dead centre */
.browser__bar::after {
  content: "";
  width: 42px;
  flex: none;
}

.browser__dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DEDAD1;
}

.browser__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 300px;
  height: 26px;
  margin-inline: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.browser__url .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.browser__view {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 1306 / 706);
  overflow: hidden;
  background: #fff;
}

.browser__view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1s var(--ease-out);
}

a.browser { cursor: zoom-in; }

a.browser:hover .browser__view img { transform: scale(1.025); }

.browser__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(14, 16, 19, .86);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
  pointer-events: none;
}

.browser__zoom .icon { width: 14px; height: 14px; stroke-width: 2; }

a.browser:hover .browser__zoom,
a.browser:focus-visible .browser__zoom {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .browser__zoom { opacity: 1; transform: none; }
}

/* Frosted glass ---------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 0 0 1px rgba(14, 16, 19, .05),
    0 1px 2px rgba(14, 16, 19, .05),
    0 22px 44px -20px rgba(14, 16, 19, .32);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .96); }
}


/* 06  Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 247, .74);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled,
.site-header.has-menu-open {
  background: rgba(255, 255, 255, .82);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -20px rgba(14, 16, 19, .28);
}

/* A backdrop-filtered parent lets its overflowing child (the menu panel)
   show the page through it in Chromium — go solid while the menu is open. */
.site-header.has-menu-open {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(250, 250, 247, .97); }
  .site-header.is-scrolled { background: rgba(255, 255, 255, .98); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.4375rem;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  border-radius: 4px;
}

.nav { display: none; }

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(14, 16, 19, .045);
}

.nav__link.is-active { color: var(--ink); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}

.nav__link.is-active::after { opacity: 1; transform: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease;
}

.menu-toggle:hover { border-color: var(--ink-mute); }

.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 10px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}

.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.5px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 28px 40px -28px rgba(14, 16, 19, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s linear .4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

.mobile-menu__link .icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
  transition: transform .3s var(--ease-out), color .2s ease;
}

.mobile-menu__link:hover .icon,
.mobile-menu__link.is-active .icon { color: var(--red-deep); transform: translateX(3px); }

.mobile-menu__cta {
  width: 100%;
  margin-top: 24px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), #FF5C7A);
  transform: scaleX(var(--scroll, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (min-width: 520px) {
  .site-header__cta { display: inline-flex; }
}

@media (min-width: 960px) {
  .brand { font-size: 1.5625rem; }
  .nav { display: block; }
  .menu-toggle,
  .mobile-menu { display: none; }
}


/* 07  Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 96px) clamp(48px, 5vw, 80px);
  overflow-x: clip;
}

/* warm glow + fading grid paper */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42% 55% at 82% 38%, rgba(255, 0, 51, .07), transparent 70%),
    radial-gradient(40% 50% at 6% 0%, rgba(19, 32, 59, .06), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(14, 16, 19, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 16, 19, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 65% at 72% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(60% 65% at 72% 40%, #000 10%, transparent 75%);
}

.hero__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.chip .yt-mark { width: 24px; height: 17px; }

.chip__sep {
  margin-inline: 2px;
  color: var(--ink-mute);
}

/* Narrow phones: the two roles stack inside a soft badge instead of
   overflowing a one-line pill. */
@media (max-width: 519px) {
  .chip {
    align-items: flex-start;
    padding: 9px 16px 9px 10px;
    border-radius: 16px;
  }

  .chip .yt-mark { margin-top: 1px; }
  .chip__role { display: block; }
  .chip__sep { display: none; }
}

.hero__title {
  margin-top: 28px;
  font-size: var(--fs-h1);
  line-height: .98;
  letter-spacing: -.022em;
}

.hero__em {
  position: relative;
  display: inline-block;
  padding-right: .05em;
}

.hero__swash {
  position: absolute;
  left: -1%;
  bottom: -.14em;
  width: 102%;
  height: .3em;
  overflow: visible;
  pointer-events: none;
}

.hero__swash path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
}

.hero__sub {
  margin-top: 30px;
  max-width: 30.5em;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* portrait + floating cards */
.hero__media {
  position: relative;
  z-index: 0;
  width: calc(100% - 32px);
  max-width: 460px;
  margin-inline: auto;
}

.hero__outline {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  transform: translate(12px, 12px);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--photo-bg);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, .06);
  pointer-events: none;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: translate3d(0, var(--sy, 0px), 0) scale(1.12);
  will-change: transform;
}

.float {
  position: absolute;
  z-index: 2;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0);
  will-change: transform;
}

.float--badge { top: -18px; right: 6%; }
.float--earnings { top: 46%; left: -16px; }
.float--views { bottom: 5%; right: -16px; }

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 15px;
  border-radius: 18px;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: .95;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.stat-card__value--sm { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }

.stat-card__label {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
}

.stat-card--row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
}

.stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}

.stat-card__icon .icon { width: 20px; height: 20px; stroke-width: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge .yt-mark { width: 22px; height: 16px; }

.badge__check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.badge__check .icon { width: 11px; height: 11px; stroke-width: 3; }

@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .stat-card { padding: 12px 14px 13px; }
  .stat-card--row { padding: 10px 14px 10px 10px; }
  .stat-card__icon { width: 34px; height: 34px; border-radius: 10px; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
    gap: clamp(56px, 6vw, 96px);
  }

  .hero__media {
    width: 100%;
    max-width: 470px;
    margin-inline: auto 0;
  }

  .hero__outline { transform: translate(18px, 18px); }

  .float--badge { top: -20px; right: 8%; }
  .float--earnings { top: 57%; left: -44px; }
  .float--views { bottom: 7%; right: -16px; }
}

@media (min-width: 1200px) {
  .float--earnings { left: -64px; }
  .float--views { right: -34px; }
}


/* 08  Stats band
   ========================================================================== */
.stats-band { padding-bottom: clamp(8px, 2vw, 24px); }

.stats {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px clamp(16px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #FCFCFA);
}

.stats__caption {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: clamp(22px, 3vw, 40px) clamp(16px, 2.6vw, 32px);
  background: var(--surface);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.stat__label {
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* 09  About
   ========================================================================== */
.about__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.about__media { max-width: 520px; }

.about__body {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  max-width: 37em;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}

.facts {
  display: grid;
  margin-top: 40px;
  border-block: 1px solid var(--line);
}

.fact { padding: 18px 0; }
.fact + .fact { border-top: 1px solid var(--line); }

.fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fact dt .icon {
  width: 16px;
  height: 16px;
  color: var(--red-deep);
}

.fact dd {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.15;
}

/* Legal company name in running text: tamed all-caps */
.legal-name {
  font-size: .92em;
  letter-spacing: .02em;
}

/* Four facts: stacked list on phones, tidy 2 × 2 grid above. */
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 16px 20px 0; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 7vw, 112px);
  }
}


/* 10  Results
   ========================================================================== */
.results__head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.results__title {
  margin-top: 22px;
  max-width: 13em;
}

@media (min-width: 900px) {
  .results__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: 64px;
  }
}

.proof-grid {
  display: grid;
  gap: 20px;
}

.proof,
.proof-wide {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s ease;
}

.proof:hover,
.proof-wide:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.proof__meta {
  display: grid;
  gap: 18px;
  padding: 18px 10px 10px;
}

.proof__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proof__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.proof__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.05;
}

.proof__sub {
  margin-top: 6px;
  font-size: .875rem;
  color: var(--ink-2);
}

.proof__figure { margin-left: auto; text-align: right; }

.proof__amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.3vw, 2.625rem);
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.proof__range {
  margin-top: 8px;
  font-size: .8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Every frame takes its own screenshot's ratio (inline --ratio). Side-by-side
   rows split their columns so both frames end up exactly the same height:
   column 1 = (row width − gap − 2 × 24px card/frame chrome) × r1 / (r1 + r2) + 24px.
   The flex fill below only absorbs sub-pixel rounding. */
.proof {
  display: flex;
  flex-direction: column;
}

.proof .browser {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.proof .browser__view { flex: 1 1 auto; }

.proof__meta { flex: none; }

.proof-grid--sm { margin-top: 20px; }

.proof--sm .proof__amount { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }

.proof-wide {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.proof-wide__body { padding: 18px 10px 10px; }

.proof-wide__title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.proof-wide__text {
  margin-top: 10px;
  color: var(--ink-2);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.metric {
  padding: 18px 18px 20px;
  background: var(--surface);
}

.metric dt {
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
}

.metric dd {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .proof-grid {
    --split: .5;
    grid-template-columns: calc((100% - 72px) * var(--split) + 24px) minmax(0, 1fr);
    gap: 24px;
  }

  /* r1 = 1306/706, r2 = 1260/653 */
  .proof-grid--lg { --split: .48946; }

  /* r1 = 1280/668, r2 = 1110/953 */
  .proof-grid--sm {
    --split: .62195;
    margin-top: 24px;
  }

  .proof-wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 24px;
  }

  .proof-wide__body { padding: 24px 36px 24px 16px; }
}

.total {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: 24px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 140% at 100% 50%, rgba(255, 0, 51, .06), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.total::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(255, 0, 51, .25) 55%, transparent);
}

.total__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.005em;
}

.total__label .yt-mark { width: 24px; height: 17px; margin-top: 2px; }

.total__math {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.total__math > span { white-space: nowrap; }

.total__value {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 1.5rem + 5vw, 5.75rem);
  line-height: .95;
  letter-spacing: -.025em;
  white-space: nowrap;
}


/* 11  Journey
   ========================================================================== */
.journey__grid {
  display: grid;
  gap: 48px;
}

.journey__head .lede { max-width: 26em; }

/* The gutter lives on the items (not the list) so the absolutely positioned
   line and the dots share one coordinate system. */
.timeline {
  --progress: 0;
  --line-x: 13px;
  --gutter-x: 46px;
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: var(--line-x);
  top: var(--line-start, 38px);
  bottom: var(--line-end, 38px);
  width: 2px;
  border-radius: 2px;
}

.timeline::before { background: var(--line); }

.timeline::after {
  background: linear-gradient(180deg, var(--red), #FF5C7A);
  transform: scaleY(var(--progress));
  transform-origin: 50% 0;
}

.timeline__item {
  position: relative;
  padding-left: var(--gutter-x);
}

.timeline__dot {
  position: absolute;
  top: 30px;
  left: calc(var(--line-x) + 1px - 8px);
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}

.timeline__item.is-active .timeline__dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 0, 51, .12);
}

.timeline__card {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s ease;
}

.timeline__card:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.timeline__date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.timeline__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.timeline__text {
  margin-top: 8px;
  max-width: 44ch;
  color: var(--ink-2);
}

.now-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--red-tint);
  font-size: .6875rem;
  letter-spacing: .1em;
  line-height: 1;
}

.now-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.timeline__item--now .timeline__card {
  border-color: rgba(255, 0, 51, .22);
  box-shadow: 0 0 0 4px rgba(255, 0, 51, .04), var(--shadow-sm);
}

/* without JS the timeline is shown complete */
.no-js .timeline { --progress: 1; }
.no-js .timeline__dot { border-color: var(--red); background: var(--red); }

@media (min-width: 960px) {
  .journey__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 7vw, 112px);
  }

  .journey__head {
    position: sticky;
    top: calc(var(--nav-h) + 56px);
    align-self: start;
  }

  .timeline { gap: 22px; }
  .timeline__card { padding: 26px 30px 28px; }
}


/* 12  Expertise
   ========================================================================== */
.expertise__layout {
  display: grid;
  gap: 44px;
  grid-template-areas:
    "head"
    "cards"
    "figure";
}

/* Below desktop the aside dissolves so the photo can follow the cards. */
.expertise__aside { display: contents; }
.expertise__head { grid-area: head; }

.cards {
  grid-area: cards;
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ease-out);
}

.card__icon .icon { width: 22px; height: 22px; }

.card:hover .card__icon {
  border-color: rgba(255, 0, 51, .2);
  background: var(--red-tint);
  color: var(--red-deep);
  transform: rotate(-6deg);
}

.card__index {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.card__title {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
}

.card__text {
  margin-top: 10px;
  font-size: .96875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.expertise__figure { grid-area: figure; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .expertise__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "aside cards";
    column-gap: clamp(48px, 5vw, 80px);
  }

  .expertise__aside {
    grid-area: aside;
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 48px);
    align-self: start;
  }

  .expertise__figure { margin-top: 44px; }
}


/* 13  Teaching (tubgenix.ai)
   ========================================================================== */
.teach__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

/* Nothing is overlaid on the speaking photo (its screens are intentionally
   blurred); the tubgenix.ai mark sits with the kicker instead. */
.teach__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.teach__logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line), var(--shadow-sm);
}

.teach__brand + h2 { margin-top: 22px; }

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.checklist__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red-deep);
}

.checklist__mark .icon { width: 14px; height: 14px; stroke-width: 2.4; }

.teach__copy .actions { margin-top: 34px; }

@media (min-width: 600px) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 960px) {
  .teach__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(56px, 7vw, 112px);
  }
}


/* 14  Contact
   ========================================================================== */
.contact { padding-top: 0; }

.cta {
  position: relative;
  display: grid;
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 0% 0%, rgba(255, 0, 51, .07), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(19, 32, 59, .06), transparent 70%);
}

.cta__title {
  margin-top: 20px;
  font-size: clamp(2.625rem, 1.5rem + 4.6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.022em;
}

.cta__title + .lede { margin-top: 24px; max-width: 30em; }

.cta__actions { margin-top: 36px; }

.cta__note {
  margin-top: 18px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 51, .45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease;
}

.text-link:hover {
  color: var(--red-deep);
  text-decoration-color: currentColor;
}

.cta__media {
  width: 100%;
  max-width: 440px;
}

@media (max-width: 479px) {
  .cta__actions .btn { width: 100%; }
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }

  .cta__media { justify-self: end; }
}


/* 15  Footer
   ========================================================================== */
.site-footer {
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.site-footer__id {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__role {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s ease;
}

.footer-links a:hover { color: var(--ink); }

.socials {
  display: flex;
  gap: 10px;
}

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform .35s var(--ease-out), border-color .2s ease, color .2s ease, box-shadow .35s var(--ease-out);
}

.social .icon { width: 19px; height: 19px; }

.social:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  color: var(--red-deep);
  box-shadow: var(--shadow-sm);
}

.social__tg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 24px 8px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-weight: 600;
  color: var(--ink);
}

.to-top .icon {
  width: 16px;
  height: 16px;
  transition: transform .35s var(--ease-out);
}

.to-top:hover .icon { transform: translateY(-3px); }

.site-footer__mark {
  margin-top: clamp(16px, 3vw, 40px);
  margin-bottom: -.2em;
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 15.4vw, 14.5rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #D9D6CD 0%, rgba(217, 214, 205, .15) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}


/* 16  Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(244, 243, 238, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 16px 96px;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__browser {
  max-width: 100%;
  box-shadow: var(--shadow-lg);
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  max-height: calc(100dvh - 260px);
  background: #fff;
}

.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  max-width: 62ch;
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-2);
}

.lightbox__count {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .2s ease;
}

.lightbox__btn:hover {
  transform: scale(1.06);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.lightbox__close { top: 16px; right: 16px; }

.lightbox__nav { bottom: 24px; }
.lightbox__nav--prev { left: calc(50% - 56px); }
.lightbox__nav--next { right: calc(50% - 56px); }

@media (min-width: 768px) {
  .lightbox__stage { padding: 80px 104px 48px; }

  .lightbox__img {
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
  }

  .lightbox__nav {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .lightbox__nav--prev { left: 28px; }
  .lightbox__nav--next { right: 28px; }
  .lightbox__close { top: 24px; right: 28px; }
}


/* 17  Motion & reduced motion
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; translate: 0 26px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes pop {
  from { opacity: 0; scale: .88; translate: 0 14px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes unveil {
  from { opacity: 0; clip-path: inset(9% 7% 0 7% round 28px); scale: 1.03; }
  to   { opacity: 1; clip-path: inset(0 0 0 0 round 28px); scale: 1; }
}

@keyframes float {
  from { translate: 0 -6px; }
  to   { translate: 0 6px; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 51, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 0, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

@keyframes lb-in {
  from { opacity: 0; translate: 0 18px; scale: .97; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes lb-out {
  to { opacity: 0; translate: 0 10px; scale: .98; }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Count-up: a hidden "ghost" copy of the final value reserves the width so
   nothing shifts while the digits roll. Built by main.js. */
.count {
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.count.is-counting { display: inline-grid; }

.count__ghost,
.count__live { grid-area: 1 / 1; }

.count__ghost { visibility: hidden; }
.count__live { justify-self: start; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance */
  .js [data-intro] {
    animation: rise 1s var(--ease-out) both;
    animation-delay: var(--d, 0s);
  }

  .js [data-intro="pop"] {
    animation-name: pop;
    animation-duration: .9s;
  }

  .js [data-intro="unveil"] {
    animation-name: unveil;
    animation-duration: 1.4s;
  }

  .js .hero__swash path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.3s var(--ease-out) 1s forwards;
  }

  .float__inner { animation: float 6s ease-in-out infinite alternate; }
  .float--earnings .float__inner { animation-duration: 7s; animation-delay: -2s; }
  .float--views .float__inner { animation-duration: 8s; animation-delay: -4s; }
  .hero.is-offscreen .float__inner { animation-play-state: paused; }

  .now-tag::before { animation: ping 2s ease-out infinite; }

  /* Scroll reveal — uses the individual `translate` property so it never
     fights hover transforms on cards. */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 32px;
    transition:
      opacity .7s var(--ease-out) var(--d, 0s),
      translate .9s var(--ease-out) var(--d, 0s),
      transform .5s var(--ease-out),
      box-shadow .5s var(--ease-out),
      border-color .3s ease;
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
  }

  /* Lightbox */
  .lightbox[open] .lightbox__figure { animation: lb-in .5s var(--ease-out) both; }
  .lightbox[open]::backdrop { animation: fade-in .3s ease both; }
  .lightbox.is-closing .lightbox__figure { animation: lb-out .22s ease-in both; }
  .lightbox.is-closing::backdrop { animation: fade-out .22s ease-in both; }
  .lightbox__img.is-swapping { animation: fade-in .35s ease both; }
}

/* Failsafe (set by the inline head script after 4s if main.js never ran):
   nothing may stay hidden. */
html.reveal-all [data-reveal] {
  opacity: 1;
  translate: 0 0;
  transition: none;
}

html.reveal-all .timeline { --progress: 1; }
html.reveal-all .timeline__dot { border-color: var(--red); background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__frame img { transform: none; }
  .frame:hover img,
  a.browser:hover .browser__view img { transform: none; }
}
