:root {
  --ink: #05070a;
  --bone: #dfe7e0;
  --bone-dim: #aab4ad;
  --muted: #78837c;
  --body: #b4bfb7;
  --line: rgba(223, 231, 224, 0.13);
  --line-soft: rgba(223, 231, 224, 0.07);
  --vermilion: #e0231c;
  --ember: #ff5a3c;
  --pad: clamp(20px, 3.4vw, 56px);
  --nav-h: 84px;
  --sans: "Onest", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  scrollbar-color: rgba(223, 231, 224, 0.28) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--ink);
  overflow-x: hidden;
}

::selection {
  background: var(--vermilion);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb {
  background: rgba(223, 231, 224, 0.22);
  border-radius: 99px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 90;
  background: var(--bone);
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 16px; }

#scene {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--ink);
}

html.is-canvas #scene { display: block; opacity: 0; }
html.is-canvas.is-ready #scene { opacity: 1; transition: opacity 1s ease; }

.vignette,
.grain {
  display: none;
}

html.is-canvas .vignette,
html.is-canvas .grain {
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 40%, rgba(2, 4, 6, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: -1px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 180px 180px;
}

.cursor {
  display: none;
  position: fixed;
  z-index: 80;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(223, 231, 224, 0.75);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-40px, -40px, 0);
  transition: border-color 0.25s linear, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease);
}

.cursor i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--vermilion);
}

.cursor.is-hot {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-color: var(--vermilion);
}

@media (pointer: fine) {
  html.is-canvas .cursor { display: block; }
  html.is-canvas,
  html.is-canvas a { cursor: none; }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-tx {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.brand-tx b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-tx i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.6vw, 46px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-bottom: 4px;
}

.nav-link.on { color: var(--bone); }
.nav-link.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--vermilion);
}

.side-label {
  display: none;
}

html.is-canvas .side-label {
  display: block;
}

.side-label {
  position: fixed;
  z-index: 6;
  right: var(--pad);
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(223, 231, 224, 0.42);
  pointer-events: none;
}

.chapter {
  position: relative;
  z-index: 4;
  min-height: 56vh;
  min-height: 56svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18vh var(--pad) 12vh;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-start;
  padding: 0 var(--pad);
}

.hero-top {
  position: relative;
  z-index: 1;
  max-width: min(560px, 52vw);
  padding-top: calc(var(--nav-h) + clamp(18px, 3vh, 40px));
}

.hero-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-bottom: clamp(22px, 4.2vh, 42px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 10px var(--vermilion);
}

.display {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.05;
  text-shadow: 0 2px 34px rgba(3, 6, 8, 0.72);
}

.h-hero { font-size: clamp(32px, 4.4vw, 58px); }
.h-sec {
  font-size: clamp(30px, 4vw, 60px);
  max-width: 14ch;
  text-wrap: balance;
}

.body-lg {
  margin: 18px 0 0;
  max-width: 36ch;
  font-size: clamp(14px, 1.02vw, 17px);
  line-height: 1.72;
  font-weight: 300;
  color: var(--body);
  text-shadow: 0 1px 20px rgba(3, 6, 8, 0.88);
}

.slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em 0.45em;
  margin: 14px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  letter-spacing: -0.012em;
}

.s-heart { color: var(--ember); }
.s-hard { color: var(--bone); }
.s-art { color: var(--vermilion); }

.op {
  color: var(--muted);
  font-weight: 300;
}

.cue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.cue .track {
  width: 54px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.cue .track i {
  position: absolute;
  inset: 0;
  background: var(--bone);
  transform-origin: left;
  animation: cue 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cue {
  0% { transform: scaleX(0); }
  42% { transform: scaleX(1); }
  100% { transform: scaleX(1) translateX(100%); }
}

.chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 40px);
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.chip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.chip .num {
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 16px rgba(3, 6, 8, 0.9);
  transition: color 0.4s linear;
}

.chip .tx { padding-top: 3px; min-width: 0; }

.chip b {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.chip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #7d8781;
}

.chip:hover .num,
.chip:focus-visible .num { color: var(--ember); }
.chip:hover b,
.chip:focus-visible b { color: var(--bone); }

.copy { position: relative; z-index: 1; max-width: min(640px, 100%); }

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 4vh, 48px);
  max-width: min(720px, 100%);
}

.sec-head .k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.sec-head .k b {
  color: var(--vermilion);
  font-weight: 500;
}

.rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-soft);
}

.big-eq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  margin: 0;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 2px 34px rgba(3, 6, 8, 0.72);
}

.big-eq .row {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
}

.big-eq .op {
  font-size: 0.46em;
}

.offers {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  width: min(36rem, 100%);
}

.offers li {
  display: grid;
  grid-template-columns: 2.4rem 8.5rem 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.offers li:last-child { border-bottom: 1px solid var(--line-soft); }

.offers span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.offers strong {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.012em;
}

.offers em {
  font-style: normal;
  color: var(--body);
  font-weight: 300;
  font-size: 14px;
}

.mail {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--vermilion);
  border-bottom: 1px solid rgba(224, 35, 28, 0.45);
  line-height: 1.2;
}

.mail:hover { border-bottom-color: var(--vermilion); }

.colophon {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.equation .copy,
.contact .copy { max-width: min(760px, 100%); }

@media (max-width: 860px) {
  .brand-tx i,
  .side-label,
  .chapters { display: none !important; }

  .nav { height: 68px; }
  .hero-top { max-width: none; padding-top: 92px; }
  .h-hero { font-size: clamp(36px, 11vw, 52px); }
  .h-sec { font-size: clamp(32px, 9vw, 46px); }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 20;
    margin: 0;
    height: auto;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .nav-link { letter-spacing: 0.12em; font-size: 10px; }

  .chapter,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .chapter { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hero-foot { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

  .offers li { grid-template-columns: 2rem 1fr; }
  .offers em { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .cue .track i { animation: none; transform: scaleX(0.6); }
  html.is-canvas.is-ready #scene { transition: none; opacity: 1; }
  .cursor { transition: none; }
}
