/* EasyLinks marketing — Montserrat (app brand), night-study ink hero → daylight paper body */

:root {
  /* App Material tokens from easylinks-web/src/styles/theme.css */
  --red: #d32f2f;
  --red-deep: #b01212;
  --red-soft: #ffb4a8;
  --accent: #006874;
  --accent-soft: #4fd8eb;
  --ink: #001f25;
  --ink-muted: #534341;
  --fog: #fdfbfa;
  --fog-deep: #faf4f3;
  --paper: #f7f1ea;
  --paper-edge: #e8ddd4;
  --line: #d8c2be;
  --white: #ffffff;
  --radius: 999px;
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --mobile-cta-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--fog);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

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

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-weight: 650;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.15rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--red-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions .btn-ghost {
  display: none;
}

@media (min-width: 640px) {
  .header-actions .btn-ghost {
    display: inline-flex;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 28px -14px rgba(211, 47, 47, 0.7);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-secondary:focus-visible {
  outline-color: var(--white);
}

.btn-on-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-on-light:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-on-light:focus-visible {
  outline-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.65rem 1.05rem;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:focus-visible {
  outline-color: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1.02rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 55% 42% at 88% 0%, rgba(211, 47, 47, 0.18), transparent 52%),
    radial-gradient(ellipse 65% 50% at 92% 8%, rgba(211, 47, 47, 0.36), transparent 58%),
    radial-gradient(ellipse 42% 38% at 4% 88%, rgba(227, 27, 35, 0.16), transparent 55%),
    linear-gradient(158deg, #0a0608 0%, #140a0c 42%, #1a0e10 72%, #120808 100%);
  padding: 6.25rem 0 4.5rem;
  display: flex;
  align-items: center;
}

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

/* Soft red lamp wash — top-right (brand red, not teal) */
.hero-lamp {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  right: -8%;
  top: -18%;
  background:
    conic-gradient(
      from 210deg at 70% 20%,
      rgba(211, 47, 47, 0.2),
      transparent 42%,
      transparent 100%
    );
  filter: blur(2px);
  opacity: 0.9;
  animation: lamp-breathe 8s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
}

.hero-glow--primary {
  width: min(560px, 78vw);
  height: min(560px, 78vw);
  right: -12%;
  top: 0%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.42), transparent 68%);
  animation: glow-drift 12s ease-in-out infinite;
}

.hero-glow--accent {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  left: -8%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: glow-drift 14s ease-in-out infinite reverse;
}

/* Crossing exam/graph lines (H + V) — soft, not a dense checker */
.hero-ruled {
  position: absolute;
  inset: -10%;
  background-image:
    /* horizontal rules */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 34px,
      rgba(255, 255, 255, 0.07) 34px,
      rgba(255, 255, 255, 0.07) 35px
    ),
    /* vertical rules — a touch softer; open spacing keeps it from reading as a board */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 34px,
      rgba(255, 255, 255, 0.048) 34px,
      rgba(255, 255, 255, 0.048) 35px
    );
  mask-image:
    radial-gradient(ellipse 68% 62% at 30% 46%, black 12%, transparent 74%),
    linear-gradient(90deg, black 0%, black 48%, transparent 74%);
  -webkit-mask-image:
    radial-gradient(ellipse 68% 62% at 30% 46%, black 12%, transparent 74%),
    linear-gradient(90deg, black 0%, black 48%, transparent 74%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  opacity: 0.92;
  transform: rotate(-3.25deg) scale(1.12);
  transform-origin: 35% 45%;
}

/* Soft red margin line — notebook accent, fades before the phone */
.hero-ruled::after {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 8%;
  left: max(14%, calc(50% - 21rem));
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(211, 47, 47, 0.28) 16%,
    rgba(227, 27, 35, 0.48) 46%,
    rgba(211, 47, 47, 0.22) 78%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.12);
  opacity: 0.95;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Oversized subject type — phone-side atmosphere only (never over brand) */
.hero-kinetic {
  position: absolute;
  right: -2%;
  bottom: 4%;
  left: auto;
  width: min(42%, 520px);
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  max-height: 62%;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, black 14%, black 72%, transparent);
  z-index: 0;
}

.hero-kinetic span {
  display: block;
  animation: kinetic-nudge 14s var(--ease) infinite;
}

.hero-kinetic span:nth-child(odd) {
  animation-delay: -3s;
  color: rgba(255, 180, 168, 0.05);
}

.hero-kinetic span:nth-child(3n) {
  animation-delay: -7s;
  color: rgba(255, 180, 168, 0.045);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max));
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero-kinetic {
    right: 2%;
    bottom: 6%;
    width: min(46%, 560px);
  }
}

.hero-copy {
  max-width: 34rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 8vw, 5.1rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.brand-mark span {
  color: var(--red-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  margin-top: 0.95rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  overflow: visible;
}

.phone-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desk-wash {
  position: absolute;
  inset: auto 5% -2% 5%;
  height: 36%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.1), transparent 62%),
    radial-gradient(ellipse at center, rgba(211, 47, 47, 0.4), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: lamp-breathe 7s ease-in-out infinite;
}

.phone-stack {
  position: absolute;
  inset: 4% 12% 4%;
  z-index: 0;
}

.paper-ghost {
  position: absolute;
  inset: 6% 8% 10%;
  border-radius: 4px 10px 10px 4px;
  background:
    linear-gradient(165deg, rgba(253, 251, 250, 0.22), rgba(253, 251, 250, 0.06)),
    url("assets/pg2.jpg") center top / cover no-repeat;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0.48;
  filter: saturate(0.8) brightness(0.9);
  overflow: hidden;
}

/* Binder holes along left edge */
.paper-holes {
  position: absolute;
  left: 7px;
  top: 12%;
  bottom: 12%;
  width: 8px;
  background:
    radial-gradient(circle, rgba(0, 31, 37, 0.55) 2.2px, transparent 2.4px) 0 0 / 8px 18px;
  opacity: 0.85;
  z-index: 2;
}

.paper-perf {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background:
    radial-gradient(circle at right, transparent 3px, rgba(0, 0, 0, 0.12) 3.5px) 0 0 / 10px 12px;
  opacity: 0.7;
}

.paper-stamp {
  position: absolute;
  right: 10%;
  bottom: 18%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(211, 47, 47, 0.55);
  border: 2px solid rgba(211, 47, 47, 0.45);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  transform: rotate(-12deg);
  text-transform: uppercase;
  opacity: 0.7;
  mix-blend-mode: multiply;
  filter: contrast(1.1);
}

.paper-ghost--back {
  transform: rotate(-11deg) translate(-16%, 6%) scale(0.9);
  animation: ghost-sway 9s ease-in-out infinite;
}

.paper-ghost--mid {
  transform: rotate(8deg) translate(18%, -3%) scale(0.93);
  opacity: 0.34;
  background-image: url("assets/pg1.jpg");
  animation: ghost-sway 11s ease-in-out infinite reverse;
}

.paper-ghost--near {
  inset: 10% 14% 14%;
  transform: rotate(-3.5deg) translate(-4%, 2%) scale(0.96);
  opacity: 0.28;
  background:
    linear-gradient(160deg, rgba(253, 251, 250, 0.28), rgba(247, 241, 234, 0.1)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(0, 31, 37, 0.05) 14px,
      rgba(0, 31, 37, 0.05) 15px
    );
  animation: ghost-curl 10s ease-in-out infinite;
  filter: none;
  z-index: 0;
}

.phone-shot {
  position: relative;
  z-index: 1;
  display: block;
  width: min(280px, 68vw);
  max-height: min(72svh, 640px);
  height: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.55));
  transform-origin: center center;
  animation: phone-enter 1s var(--ease) both, phone-float 5.5s ease-in-out 1s infinite;
}

@media (min-width: 960px) {
  .phone-shot {
    width: min(320px, 34vw);
    max-height: min(78svh, 700px);
  }
}

/* Torn paper edge — night study → daylight body */
.paper-tear {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  z-index: 2;
  background: var(--fog-deep);
  clip-path: polygon(
    0% 60%, 2% 40%, 5% 70%, 8% 35%, 12% 65%, 15% 45%, 18% 75%, 22% 40%,
    26% 68%, 30% 38%, 34% 72%, 38% 42%, 42% 66%, 46% 36%, 50% 70%, 54% 40%,
    58% 68%, 62% 38%, 66% 72%, 70% 44%, 74% 66%, 78% 36%, 82% 70%, 86% 42%,
    90% 65%, 94% 40%, 97% 68%, 100% 48%, 100% 100%, 0% 100%
  );
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes phone-enter {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, 6%) scale(1.06);
  }
}

@keyframes lamp-breathe {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ghost-sway {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes ghost-curl {
  0%,
  100% {
    transform: rotate(-3.5deg) translate(-4%, 2%) scale(0.96);
  }
  50% {
    transform: rotate(-2deg) translate(-2%, -2%) scale(0.97);
  }
}

@keyframes kinetic-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-copy > * {
  animation: fade-up 0.75s var(--ease) both;
}

.hero-copy .brand-mark {
  animation-delay: 0.05s;
}

.hero-copy h1 {
  animation-delay: 0.14s;
}

.hero-copy .hero-lead {
  animation-delay: 0.24s;
}

.hero-copy .cta-row {
  animation-delay: 0.34s;
}

.reveal {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay),
    transform 0.85s var(--ease) var(--reveal-delay),
    filter 0.85s var(--ease) var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

/* Section entrances: kicker → title → lead cascade */
.section > .wrap > .section-kicker.reveal {
  --reveal-delay: 0s;
  transform: translateY(18px);
}

.section > .wrap > .section-title.reveal {
  --reveal-delay: 0.1s;
}

.section > .wrap > .section-lead.reveal {
  --reveal-delay: 0.2s;
}

.value-list .reveal:nth-child(1),
.steps .reveal:nth-child(1),
.proof-stats .reveal:nth-child(1),
.spine-track .reveal:nth-child(1) {
  --reveal-delay: 0s;
}

.value-list .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.proof-stats .reveal:nth-child(2),
.spine-track .reveal:nth-child(2) {
  --reveal-delay: 0.1s;
}

.value-list .reveal:nth-child(3),
.steps .reveal:nth-child(3),
.proof-stats .reveal:nth-child(3),
.spine-track .reveal:nth-child(3) {
  --reveal-delay: 0.2s;
}

.spine-track .reveal:nth-child(4) {
  --reveal-delay: 0.3s;
}

.final-panel.reveal {
  transform: translateY(36px) scale(0.97);
}

/* ——— Sections ——— */
.section {
  padding: 4.75rem 0;
  position: relative;
}

.section-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  max-width: 18ch;
}

.section-lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* ——— Exam spines ——— */
.levels {
  position: relative;
  background:
    linear-gradient(180deg, var(--fog-deep), var(--paper) 35%, var(--fog));
  padding-bottom: 3.5rem;
  overflow: hidden;
}

/* Matching crossing lines — lighter on fog/paper, connected to hero */
.levels::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 36px,
      rgba(0, 31, 37, 0.075) 36px,
      rgba(0, 31, 37, 0.075) 37px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 36px,
      rgba(0, 31, 37, 0.05) 36px,
      rgba(0, 31, 37, 0.05) 37px
    );
  mask-image: radial-gradient(ellipse 92% 76% at 48% 14%, black 16%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 92% 76% at 48% 14%, black 16%, transparent 80%);
  opacity: 0.78;
}

/* Soft red margin — echoes hero notebook accent */
.levels::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 16%;
  left: max(1.25rem, calc((100% - var(--max)) / 2 + 0.35rem));
  width: 1.5px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(211, 47, 47, 0.18) 10%,
    rgba(211, 47, 47, 0.34) 38%,
    rgba(211, 47, 47, 0.12) 70%,
    transparent 100%
  );
  opacity: 0.9;
}

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

.levels .wrap {
  margin-bottom: 2.15rem;
  padding-top: 0.35rem;
}

.spine-rail {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.25rem;
  outline: none;
}

.spine-rail:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.spine-track {
  list-style: none;
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
}

.spine {
  scroll-snap-align: start;
  position: relative;
  width: min(200px, 58vw);
  min-height: 280px;
  padding: 1.4rem 1.1rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  border-radius: 3px 14px 14px 3px;
  color: var(--white);
  box-shadow:
    4px 10px 28px rgba(0, 31, 37, 0.18),
    inset 3px 0 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease);
}

.spine::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 10px;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.28) 2px, transparent 2.2px) center / 10px 16px;
  opacity: 0.7;
}

.spine:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.spine--pslce {
  background:
    linear-gradient(160deg, #0a3d45 0%, var(--accent) 55%, #004850);
}

.spine--jce {
  background:
    linear-gradient(160deg, #5a1010 0%, var(--red) 50%, #8a1a1a);
}

.spine--msce {
  background:
    linear-gradient(160deg, #001419 0%, var(--ink) 50%, #0a2a30);
}

.spine--books {
  background:
    linear-gradient(160deg, #3a2a22 0%, #5c4336 55%, #2a1c16);
  opacity: 0.92;
}

.spine-year {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.spine-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  writing-mode: horizontal-tb;
}

.spine-meta {
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.78;
  max-width: 16ch;
}

.values {
  background:
    linear-gradient(180deg, var(--fog), var(--white) 28%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

/* Studio / sound-tech line boxes — precise frames, ruled fields, no heavy card shadows */
.line-box {
  --line-box-tick: var(--accent);
  --line-box-tick-alt: var(--red);
  position: relative;
  isolation: isolate;
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid rgba(0, 31, 37, 0.18);
  background-color: rgba(255, 255, 255, 0.72);
  background-image:
    /* corner ticks (TL / BR) — leave ::before free for step counters */
    linear-gradient(var(--line-box-tick), var(--line-box-tick)),
    linear-gradient(var(--line-box-tick), var(--line-box-tick)),
    linear-gradient(var(--line-box-tick-alt), var(--line-box-tick-alt)),
    linear-gradient(var(--line-box-tick-alt), var(--line-box-tick-alt)),
    linear-gradient(90deg, rgba(0, 104, 116, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 31, 37, 0.055) 1px, transparent 1px);
  background-size:
    12px 1.5px,
    1.5px 12px,
    12px 1.5px,
    1.5px 12px,
    100% 100%,
    100% 14px;
  background-position:
    7px 7px,
    7px 7px,
    calc(100% - 7px) calc(100% - 7px),
    calc(100% - 7px) calc(100% - 7px),
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: none;
  overflow: hidden;
}

.line-box__pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 22%,
    var(--red) 55%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: line-pulse 4.8s var(--ease) infinite;
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

.line-box > *:not(.line-box__pulse) {
  position: relative;
  z-index: 1;
}

.line-box--ink {
  --line-box-tick: var(--accent-soft);
  --line-box-tick-alt: var(--red-soft);
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.035);
  background-image:
    linear-gradient(var(--line-box-tick), var(--line-box-tick)),
    linear-gradient(var(--line-box-tick), var(--line-box-tick)),
    linear-gradient(var(--line-box-tick-alt), var(--line-box-tick-alt)),
    linear-gradient(var(--line-box-tick-alt), var(--line-box-tick-alt)),
    linear-gradient(90deg, rgba(79, 216, 235, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size:
    12px 1.5px,
    1.5px 12px,
    12px 1.5px,
    1.5px 12px,
    100% 100%,
    100% 14px;
  background-position:
    7px 7px,
    7px 7px,
    calc(100% - 7px) calc(100% - 7px),
    calc(100% - 7px) calc(100% - 7px),
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}

.line-box--ink .line-box__pulse {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-soft) 24%,
    var(--red-soft) 58%,
    transparent 100%
  );
  background-size: 220% 100%;
}

@keyframes line-pulse {
  0%,
  100% {
    background-position: 120% 0;
    opacity: 0.45;
  }
  50% {
    background-position: -20% 0;
    opacity: 1;
  }
}

.value-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.value-list li {
  position: relative;
}

.value-stamp {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(211, 47, 47, 0.35);
  margin-bottom: 0.55rem;
  transform: rotate(-6deg);
  transform-origin: left center;
  display: inline-block;
}

@media (min-width: 800px) {
  .value-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.value-list h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.value-list p:not(.value-stamp) {
  color: var(--ink-muted);
  font-size: 1rem;
}

.how {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 104, 116, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(211, 47, 47, 0.04), transparent 40%),
    var(--fog);
  padding-bottom: 3.5rem;
  overflow: hidden;
}

/* Cropped perforated paper edge as section divider */
.paper-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, transparent 6px, var(--white) 6.5px) 0 0 / 18px 18px;
}

.paper-edge--top {
  top: 0;
  background-color: transparent;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 6px, var(--white) 6.5px);
  background-size: 18px 18px;
  background-repeat: repeat-x;
  height: 12px;
  opacity: 0.9;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  counter-reset: step;
  position: relative;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-muted);
}

/* Subject names as typography — not pills */
.subjects-marquee {
  margin-top: 3.25rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.subjects-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(0, 31, 37, 0.18);
  white-space: nowrap;
}

.subjects-track span::after {
  content: "·";
  margin-left: 1.75rem;
  -webkit-text-stroke: 0;
  color: var(--red);
  opacity: 0.45;
  font-weight: 700;
}

.proof {
  background:
    radial-gradient(ellipse 55% 50% at 85% 110%, rgba(0, 104, 116, 0.35), transparent 55%),
    linear-gradient(160deg, #001419, #001f25 55%, #0a1618);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.32), transparent 65%);
  pointer-events: none;
}

.proof .wrap {
  position: relative;
  z-index: 1;
}

.proof .section-kicker {
  color: var(--red-soft);
}

.proof .section-title {
  color: var(--white);
  max-width: 22ch;
}

.proof .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.proof-stats {
  display: grid;
  gap: 1rem;
  margin-top: 2.4rem;
  list-style: none;
}

@media (min-width: 560px) {
  .proof-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.proof-stats li {
  padding-top: 1.2rem;
}

.proof-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.proof-stats span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.proof-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.proof-note a {
  color: var(--red-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.proof-note a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.final-cta {
  padding: 4.5rem 0;
  background: var(--fog);
}

.final-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(211, 47, 47, 0.34), transparent 48%),
    radial-gradient(ellipse at 10% 100%, rgba(0, 104, 116, 0.28), transparent 45%),
    linear-gradient(145deg, #001419, #0a1f24 55%, #1a1014);
}

.final-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 36px,
      rgba(255, 255, 255, 0.02) 36px,
      rgba(255, 255, 255, 0.02) 37px
    );
}

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

.ink-stamp {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 180, 168, 0.55);
  border: 2px solid rgba(255, 180, 168, 0.4);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  transform: rotate(8deg);
  pointer-events: none;
}

.final-panel .section-kicker {
  color: var(--red-soft);
}

.final-panel .section-title {
  max-width: 16ch;
  margin-inline: auto;
  color: var(--white);
}

.final-panel .section-lead {
  margin-inline: auto;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.final-panel .cta-row {
  justify-content: center;
  margin-top: 1.6rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 1.35rem;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.play-badge--hero {
  margin-top: 0;
}

.play-badge:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.play-badge img {
  height: 54px;
  width: auto;
  max-width: min(180px, 70vw);
}

.play-badge--hero img {
  height: 56px;
  max-width: min(190px, 72vw);
}

.play-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.site-footer {
  background: #000e12;
  color: #8a9a9e;
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.footer-brand .logo-text {
  margin-bottom: 0.4rem;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--white);
}

.footer-copy {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 0.55rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background:
    linear-gradient(180deg, rgba(253, 251, 250, 0.72), var(--fog) 40%),
    var(--fog);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 31, 37, 0.08);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.mobile-cta .btn {
  flex: 1;
  padding: 0.78rem 0.9rem;
  font-size: 0.92rem;
}

.mobile-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom, 0));
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  /* Margin line stays left of centered copy so it doesn't bisect the brand */
  .hero-ruled::after {
    left: 8%;
    opacity: 0.55;
  }

  .levels::after {
    left: 1rem;
    opacity: 0.7;
  }

  .hero-copy {
    text-align: center;
    margin-inline: auto;
  }

  .hero h1,
  .hero-lead {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .section-title,
  .section-lead,
  .section-kicker {
    text-align: center;
    margin-inline: auto;
  }

  .paper-ghost {
    opacity: 0.28;
  }

  .paper-ghost--near {
    opacity: 0.16;
  }

  .hero-kinetic {
    width: 70%;
    right: -6%;
    opacity: 0.55;
    font-size: clamp(2rem, 11vw, 3rem);
    bottom: 1%;
    pointer-events: none;
  }

  .ink-stamp {
    display: none;
  }

  .spine {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .phone-shot {
    transform: rotate(-1deg);
  }

  .subjects-track {
    transform: none;
  }

  .mobile-cta {
    transition: none;
  }

  .play-badge:hover {
    transform: none;
    filter: none;
  }
}
