@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080b0e;
  --bg-deep: #050709;
  --surface: #11161b;
  --surface-2: #171d23;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8f9;
  --muted: #a8b0b9;
  --yellow: #ffd400;
  --yellow-2: #ffb800;
  --black: #08090a;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(255, 212, 0, 0.09), transparent 23rem),
    var(--bg);
  background-size: 84px 84px, 84px 84px, auto, auto;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--yellow);
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 64px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 7, 9, 0.9), transparent);
  transition: background-color 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-compact {
  border-color: var(--line);
  background: rgba(5, 7, 9, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; height: 52px; }
.brand img { width: 116px; height: auto; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  padding: 0.8rem 1.25rem;
  background: var(--yellow);
  color: #090a0b;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.7rem 2.2rem rgba(255, 212, 0, 0.15);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button:active { transform: scale(0.98); }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.button-compact { min-height: 48px; padding: 0.6rem 0.85rem; font-size: 0.82rem; }

.hero-sequence { height: 182vh; min-height: 980px; }
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 720px; overflow: hidden; }

.hero-grid {
  height: 100%;
  padding-top: 5.1rem;
  padding-bottom: 1.1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
}

.hero-copy {
  position: relative;
  z-index: 20;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.ready .hero-copy { opacity: 1; transform: none; }

.kicker,
.eyebrow {
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.1rem, 9.4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h1 em { color: var(--yellow); font-style: normal; }

.hero-subtitle {
  max-width: 37rem;
  margin: 0.9rem 0 1rem;
  color: #d6dae0;
  font-size: clamp(1rem, 4.5vw, 1.18rem);
  line-height: 1.35;
}

.button-primary { width: 100%; }
.microcopy { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.875rem; text-align: center; }

.tool-stage {
  position: relative;
  width: min(100%, 420px);
  height: 100%;
  min-height: 315px;
  margin-inline: auto;
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  inset: 15% -30% -20%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.15), transparent 65%);
}

.tool-card {
  position: absolute;
  inset: 0;
  width: min(74vw, 320px);
  aspect-ratio: 3 / 4;
  max-height: 100%;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f7f2;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.55);
  transform-origin: center bottom;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1), opacity 420ms ease;
}

.tool-card img { width: 100%; height: 100%; padding: 0.9rem; object-fit: contain; object-position: center; }
.tool-card-portfolio { z-index: 4; }
.tool-card-quality { z-index: 3; }
.tool-card-profile { z-index: 2; }
.tool-card-calculator { z-index: 1; }
.tool-card-portfolio img,
.tool-card-quality img { padding: 0; object-fit: contain; object-position: top; }

.tool-label {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  left: 0.65rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 8, 10, 0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.tool-card[data-state="front"], .tool-card.is-active { z-index: 10; opacity: 1; transform: translate(0, 0) scale(1); }
.tool-card[data-state="next"] { z-index: 8; opacity: 0.68; transform: translate(2.7rem, 1.3rem) scale(0.94); }
.tool-card[data-state="back"] { z-index: 6; opacity: 0.42; transform: translate(4.8rem, 2.4rem) scale(0.89); }
.tool-card[data-state="past"] { z-index: 5; opacity: 0.14; transform: translate(-2.5rem, 2rem) scale(0.91); }

.tool-progress {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0.2rem;
  display: flex;
  gap: 0.4rem;
}

.tool-progress span { width: 1.4rem; height: 3px; border-radius: 999px; background: rgba(255,255,255,.22); }
.tool-progress span.is-current { background: var(--yellow); }

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 50rem; margin-bottom: 2.25rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { margin-inline: auto; }
.section-heading h2,
.problem-section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p,
.section-intro,
.final-cta-inner > p:not(.kicker, .microcopy) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
}

.problem-section {
  background: var(--bg-deep);
  text-align: center;
}

.problem-section h2 span { display: block; color: var(--yellow); }

.problem-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  text-align: left;
}

.problem-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.9rem;
  align-items: center;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 0, 0.4);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 800;
}

.problem-card h3, .problem-card p, .process-step h3, .process-step p, .level-card h3, .level-card p, .access-card h3, .access-card p, .fit-card h3, .fit-card p { margin: 0; }
.problem-card h3 { font-size: 1.08rem; }
.problem-card p { margin-top: 0.18rem; color: var(--muted); }

.process-section { background: linear-gradient(180deg, #090d10, #0d1216 60%, #090c0f); }
.process-layout { position: relative; }
.process-steps { position: relative; }
.process-steps::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.45rem;
  width: 2px;
  background: linear-gradient(var(--yellow), rgba(255,212,0,.08));
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0 0 3rem;
}

.step-number {
  position: relative;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #070809;
  font-weight: 950;
  box-shadow: 0 0 1.5rem rgba(255, 212, 0, 0.35);
}

.step-copy { padding-top: 0.45rem; }
.step-copy h3 { font-size: 1.25rem; letter-spacing: 0.01em; }
.step-copy p { margin-top: 0.35rem; color: var(--muted); }

.process-inline-media {
  grid-column: 1 / -1;
  margin: 1.15rem 0 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f8f7f2;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.28);
}

.process-inline-media img { width: 100%; height: auto; object-fit: contain; object-position: top; }
.process-inline-media figcaption {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(0,0,0,.1);
  background: #fff;
  color: #191b1d;
  font-size: 0.82rem;
  font-weight: 800;
}

.process-inline-portrait img { aspect-ratio: 4 / 3; object-fit: contain; background: #f7f5ea; }
.process-stage { display: none; }

.levels-section { background: var(--bg-deep); }
.levels-grid, .access-grid, .fit-grid { display: grid; gap: 1rem; }
.level-card, .access-card, .fit-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.level-card { padding: 0.85rem; }
.level-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.level-top span, .access-card > span {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #08090a;
  font-weight: 950;
}

.level-card h3 { color: var(--yellow); font-size: 1.05rem; }
.level-card picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0.55rem; background: #f8f7f2; }
.level-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.level-card p { padding: 1rem 0.25rem 0.35rem; color: #d5d9dd; }

.access-section { background: #0b0f12; }
.access-card { position: relative; min-height: 220px; padding: 1.35rem; }
.access-card > span { margin-bottom: 1.2rem; width: 2.7rem; height: 2.7rem; }
.access-card h3 { max-width: 25ch; font-size: 1.08rem; line-height: 1.2; }
.access-card p { margin-top: 0.7rem; color: var(--muted); }

.fit-section { background: var(--bg-deep); }
.fit-card { padding: 1.4rem; }
.fit-card h3 { font-size: 1.25rem; }
.fit-card > p { margin-top: 0.55rem; color: var(--muted); }
.fit-card ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.fit-card li { position: relative; padding: 0.5rem 0 0.5rem 2rem; color: #d8dce1; }
.fit-card li::before {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}
.fit-yes li::before { content: "✓"; background: var(--yellow); color: #090a0b; }
.fit-no li::before { content: "×"; background: #2d343c; color: #d8dde2; }

.final-cta {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 110%, rgba(255,212,0,.22), transparent 18rem),
    radial-gradient(circle at 90% -10%, rgba(255,212,0,.17), transparent 18rem),
    #090c0f;
  text-align: center;
}

.final-cta::before, .final-cta::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  border: 2rem solid var(--yellow);
  border-left-color: transparent;
  border-radius: 50%;
  opacity: 0.18;
}
.final-cta::before { left: -10rem; bottom: -10rem; }
.final-cta::after { right: -10rem; top: -10rem; transform: rotate(180deg); }
.final-cta-inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.final-cta .kicker { margin-inline: auto; }
.final-cta .button { margin-top: 1.6rem; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); background: #06080a; }
.footer-inner { display: grid; gap: 1.2rem; align-items: center; text-align: center; }
.footer-inner > img { width: 124px; height: auto; margin-inline: auto; }
.footer-pending { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.4rem; color: #8f98a2; font-size: 0.84rem; }
.footer-pending a { color: inherit; text-underline-offset: 0.2em; }
.footer-pending a:hover { color: #fff; }
.footer-pending a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 0.15rem; }
.footer-inner > p { margin: 0; color: #747d87; font-size: 0.8rem; }

.reveal-card { opacity: 1; transform: none; transition: opacity 420ms ease, transform 420ms ease; }
.ready .reveal-card:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.reveal-card.is-visible { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .page-shell, .header-inner { width: min(calc(100% - 4rem), var(--max)); }
  .brand img { width: 132px; }
  .button-compact { min-height: 48px; padding-inline: 1.2rem; font-size: 0.9rem; }
  .hero-grid { padding-top: 6.4rem; gap: 1.5rem; }
  .tool-stage { width: min(100%, 600px); }
  .tool-card { width: min(48vw, 390px); }
  .problem-grid, .levels-grid, .access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-card { grid-template-columns: 3.5rem 1fr; min-height: 136px; }
  .process-step { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .step-number { width: 3.4rem; height: 3.4rem; }
  .process-steps::before { left: 1.65rem; }
  .level-card, .access-card, .fit-card { padding: 1.2rem; }
  .footer-inner { grid-template-columns: auto 1fr auto; text-align: left; }
  .footer-inner > img { margin-inline: 0; }
  .footer-pending { justify-content: center; }
  .footer-inner > p { text-align: right; }
}

@media (min-width: 1024px) {
  .site-header { height: 76px; }
  .hero-sequence { height: 170vh; min-height: 1080px; }
  .hero-sticky { min-height: 700px; }
  .hero-grid {
    padding-top: 7.7rem;
    padding-bottom: 3.2rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 3rem;
  }
  h1 { max-width: 13.5ch; font-size: clamp(3.2rem, 4.6vw, 4.6rem); line-height: 1.02; }
  .hero-subtitle { font-size: 1.35rem; }
  .button-primary { width: fit-content; min-width: 350px; }
  .microcopy { width: fit-content; }
  .tool-stage { width: 100%; height: min(72vh, 650px); }
  .tool-card { width: min(31vw, 410px); margin-left: 0; }
  .tool-progress { right: 1rem; }
  .process-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.5fr); gap: 3rem; align-items: start; }
  .process-steps::before { top: 2rem; bottom: 25vh; }
  .process-step { min-height: 62vh; align-content: start; opacity: .52; transition: opacity 350ms ease; }
  .process-step.is-current { opacity: 1; }
  .process-inline-media { display: none; }
  .process-stage { position: sticky; top: 110px; display: block; height: min(65vh, 680px); }
  .process-stage-frame { position: relative; height: calc(100% - 3.3rem); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #f8f7f2; box-shadow: 0 1.7rem 4rem rgba(0,0,0,.35); }
  .process-stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transform: translateX(3%) scale(.97); transition: opacity 520ms ease, transform 620ms cubic-bezier(.2,.8,.2,1); }
  .process-stage-frame img.is-current { opacity: 1; transform: none; }
  .process-stage-frame img.scene-portrait { object-fit: contain; background: #f7f5ea; }
  .level-card picture { aspect-ratio: 16 / 9; }
  .process-stage-caption { height: 3.3rem; display: flex; align-items: center; gap: .8rem; color: var(--yellow); }
  .process-stage-caption span { font-variant-numeric: tabular-nums; color: #fff; opacity: .55; }
  .levels-section, .access-section, .fit-section { padding-block: 6.5rem; }
}

@media (max-height: 740px) and (max-width: 1023px) {
  .hero-grid { padding-top: 4.5rem; gap: 0.5rem; }
  h1 { font-size: clamp(1.95rem, 8.8vw, 2.8rem); line-height: 1.03; }
  .hero-subtitle { margin-block: 0.55rem 0.7rem; }
  .button { min-height: 48px; }
  .tool-stage { min-height: 250px; }
  .tool-card { width: min(44vw, 186px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-sequence { height: auto; min-height: 0; }
  .hero-sticky { position: relative; height: auto; min-height: 0; overflow: visible; }
  .hero-grid { min-height: 100svh; }
  .tool-stage { min-height: 440px; }
  .tool-card-portfolio { transform: translateX(-8%) scale(.95) !important; opacity: 1 !important; }
  .tool-card-quality { transform: translate(18%, 14%) scale(.84) !important; opacity: .72 !important; }
  .tool-card-profile { transform: translate(24%, 48%) scale(.78) !important; opacity: .62 !important; }
  .tool-card-calculator { transform: translate(30%, 78%) scale(.72) !important; opacity: .56 !important; }
  .reveal-card { opacity: 1; transform: none; }
  .process-layout { display: block; }
  .process-step { min-height: 0; opacity: 1; }
  .process-inline-media { display: block; }
  .process-stage { display: none; }
}
