/* ═══════════════════════════════════════════════════════════════════════════
   BO — design system
   Black #111111 · Blue #0395f6 · White #FFFFFF
   Display: Big Shoulders Display · Body/UI: Space Grotesk
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --black: #111111;
  --black-2: #171717;
  --black-3: #1d1d1d;
  --line: #262626;
  --line-soft: #1f1f1f;
  --blue: #0395f6;
  --blue-glow: rgba(3, 149, 246, 0.45);
  --blue-soft: rgba(3, 149, 246, 0.12);
  --white: #ffffff;
  --gray: #969ea5;
  --gray-dim: #5c636a;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* wide screens use the space instead of leaving big dead margins;
     clamps back to the old 1160 on anything narrower, so mobile is untouched */
  --container: clamp(1160px, 92vw, 2100px);
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 60px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--blue); color: var(--black); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
html { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--blue); color: var(--black); font-weight: 700;
  padding: 12px 18px; border-radius: 4px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Film grain over everything — the texture that kills "flat template" */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 120; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.txt-blue { color: var(--blue); }

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

/* ═══ HEADER ═══ */
.header {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: rgba(17, 17, 17, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.scrolled {
  background: rgba(17, 17, 17, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__face {
  width: 37px; height: 37px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  object-fit: cover;
  flex: none;
}
.header__day {
  margin-left: auto;
  display: flex; align-items: baseline; gap: 5px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--gray);
}
.header__day b { color: var(--blue); font-size: 15px; letter-spacing: 0.04em; }
.header__day-total { color: var(--gray); }
.burger {
  width: 44px; height: 44px; margin-right: -8px;
  display: grid; place-content: center; gap: 7px;
}
.burger span {
  display: block; width: 26px; height: 2.5px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

/* ═══ MENU ═══ */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 17, 17, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  transform: translateY(-102%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.menu.open { transform: translateY(0); visibility: visible; }
.menu__list { display: grid; gap: clamp(6px, 2vh, 18px); }
.menu__link {
  display: flex; align-items: flex-start; gap: 16px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 7.6vh, 4.2rem); line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0; translate: 0 24px;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), color 0.2s;
}
.menu.open .menu__link { opacity: 1; translate: 0 0; }
.menu.open .menu__list li:nth-child(1) .menu__link { transition-delay: 0.10s; }
.menu.open .menu__list li:nth-child(2) .menu__link { transition-delay: 0.16s; }
.menu.open .menu__list li:nth-child(3) .menu__link { transition-delay: 0.22s; }
.menu.open .menu__list li:nth-child(4) .menu__link { transition-delay: 0.28s; }
.menu.open .menu__list li:nth-child(5) .menu__link { transition-delay: 0.34s; }
.menu__link:hover, .menu__link:focus-visible { color: var(--blue); }
.menu__num {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; color: var(--blue);
  padding-top: 0.55em; /* optically level with the display cap line */
}
.menu__foot { margin-top: clamp(24px, 6vh, 48px); display: grid; gap: 18px; justify-items: start; }
.menu__est { font-size: 12px; letter-spacing: 0.14em; color: var(--gray); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: 0.07em;
  padding: 15px 26px 14px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn--blue { background: var(--white); color: var(--black); }
.btn--blue:hover, .btn--blue:active { background: var(--blue); }
.btn--ghost { border: 1.5px solid #3a3a3a; color: var(--white); padding: 13.5px 26px 12.5px; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px var(--gutter) 72px;
  max-width: var(--container); margin-inline: auto;
  overflow: visible;
}
/* The mark: B + the 365-tick O ring */
.hero__h1 { line-height: 1; }
.mark {
  display: flex; align-items: center; gap: 0.045em;
  font-size: clamp(10rem, 40vw, 19rem);
  line-height: 0.8;
}
.mark__b {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1em; line-height: 0.8;
  letter-spacing: -0.01em;
}
/* The O: an unbroken ring at the display face's stroke weight, carrying the
   live blue day-meter. The day count sits top-right like an exponent. */
.mark__o {
  position: relative;
  height: 0.85em; /* ink cap height of Big Shoulders 900 — matches the B */
  flex: none;
}
.mark__o svg { width: auto; height: 100%; overflow: visible; display: block; }
.oring-track { fill: none; stroke: var(--white); stroke-width: 15; }
.oring-meter {
  fill: none; stroke: var(--blue); stroke-width: 15;
  stroke-dasharray: 0 365; /* JS sweeps this to day/365 on arrival */
  transition: stroke-dasharray 1.6s var(--ease) 0.5s;
  filter: drop-shadow(0 0 5px var(--blue-glow));
}
.mark__sup {
  position: absolute;
  top: -0.045em; left: calc(100% + 0.055em);
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.mark__sup-day {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(13px, 1.8vw, 17px); letter-spacing: 0.22em;
  color: var(--blue);
}
.mark__sup-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(21px, 3vw, 30px); line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.hero__mission { margin-top: clamp(28px, 5vh, 48px); }
.hero__line {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 10vw, 5.6rem);
  line-height: 0.94; letter-spacing: 0.005em;
}
.hero__progress { margin-top: clamp(26px, 4.5vh, 40px); max-width: 520px; }
.hero__bar {
  height: 7px; background: #222; border-radius: 99px; overflow: hidden;
  position: relative;
}
.hero__bar-fill {
  height: 100%; width: 0;
  background: var(--blue);
  border-radius: 99px;
  box-shadow: 0 0 12px var(--blue-glow);
  transition: width 1.4s var(--ease);
}
.hero__bar-text {
  margin-top: 9px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: 0.16em; color: var(--gray);
}
.hero__bar-text b { color: var(--blue); font-size: 15px; letter-spacing: 0.04em; }

/* Locked block: two buttons on top, the stamp spanning their exact width below */
.hero__cta {
  margin-top: clamp(28px, 5vh, 44px);
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: stretch;
}
@media (min-width: 480px) {
  .hero__cta { grid-template-columns: auto auto; }
}
.hero__stamp {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.2vw, 1.45rem);
  font-weight: 800; letter-spacing: 0.14em; text-indent: 0.14em;
  color: var(--white);
  border: 1.5px solid var(--blue);
  padding: 0.6em 0.9em 0.5em;
  border-radius: 3px;
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  width: 22px; height: 34px;
  border: 1.5px solid #3a3a3a; border-radius: 12px;
}
.hero__scroll span {
  position: absolute; top: 6px; left: 50%; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--blue);
  animation: scrollnudge 1.8s ease-in-out infinite;
}
@keyframes scrollnudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(11px); opacity: 0.2; }
}

/* ═══ VITALS ═══ */
.vitals { border-block: 1px solid var(--line-soft); background: #131313; }
.vitals__grid {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
}
.vitals__cell {
  padding: 22px var(--gutter) 20px;
  border-bottom: 1px solid var(--line-soft);
}
.vitals__cell:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.vitals__cell--wide { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; }
.vitals__cell:nth-last-child(2), .vitals__cell:nth-last-child(3) { border-bottom: 0; }
.vitals__cell dt {
  font-size: 11px; letter-spacing: 0.18em; color: var(--gray); font-weight: 500;
}
.vitals__cell dd { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; }
.vitals__cell dd b {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vitals__cell dd i { font-style: normal; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }

/* ═══ SECTIONS ═══ */
.section { padding: clamp(72px, 12vh, 120px) 0 0; }
.section__head {
  max-width: var(--container); margin-inline: auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.2em; color: var(--gray); font-weight: 500;
}
.eyebrow__tick { width: 9px; height: 9px; background: var(--blue); flex: none; }
.giant {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3.6rem, 14vw, 8rem);
  line-height: 0.84; letter-spacing: 0.005em;
}
.section__note {
  margin-top: 16px; color: var(--gray);
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  max-width: 44ch;
}

/* ═══ RAILS (journey + shorts) ═══ */
.rail {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 4px var(--rail-pad) 22px;
  /* without this, snapping pulls the first card flush to the screen edge */
  scroll-padding-left: var(--rail-pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .rail { cursor: grab; }
  .rail:active { cursor: grabbing; }
}
.rail-hint {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 11px; letter-spacing: 0.22em; color: var(--gray-dim);
  animation: hintnudge 2.4s ease-in-out infinite;
  width: fit-content; margin-left: var(--gutter);
}
@keyframes hintnudge { 0%,100% { translate: 0 0; } 50% { translate: 8px 0; } }

/* ── Journey cards ── */
.jc {
  width: min(74vw, 296px);
  background: var(--black-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.jc:hover { transform: translateY(-5px); border-color: #3a3a3a; }
.jc:active { transform: scale(0.98); }
.jc__media {
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, #151515 0 10px, #131313 10px 20px);
}
/* the photo area — everything below the banner */
.jc__frame {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
/* contain, not cover — a check-in photo is worthless with the head or feet cropped off */
.jc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jc__banner {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px 7px;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--white);
}
.jc__banner b { color: var(--blue); }
.jc--open .jc__media {
  background: radial-gradient(120% 90% at 50% 20%, #1c2733 0%, #141414 60%);
}
.jc__poster { text-align: center; padding: 12px; }
.jc__poster-day {
  font-size: 11px; letter-spacing: 0.26em; color: var(--blue); font-weight: 700;
}
.jc__poster-big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3.6rem, 16vw, 4.6rem); line-height: 0.9;
}
.jc__poster-big i { font-style: normal; font-size: 0.38em; color: var(--blue); letter-spacing: 0.06em; }
.jc__poster-outline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 11vw, 3.1rem); line-height: 0.95;
  color: transparent; -webkit-text-stroke: 1.5px #4a545c;
}
.jc__poster-outline i { font-style: normal; -webkit-text-stroke: 0; color: var(--gray); font-size: 0.4em; letter-spacing: 0.06em; }
.jc__poster-note { margin-top: 10px; font-size: 11px; letter-spacing: 0.2em; color: var(--gray); }

.jc__ghost {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(6rem, 30vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #2e2e2e;
  user-select: none;
}
.jc__lockrow {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--gray);
}
.jc__lockrow svg { width: 13px; height: 13px; stroke: var(--gray); }

.jc__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px;
  border-top: 1px solid var(--line-soft);
}
.jc__label { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; }
.jc__date { font-size: 11px; letter-spacing: 0.14em; color: var(--gray); }
.chip {
  font-size: 10px; letter-spacing: 0.16em; font-weight: 700;
  padding: 5px 9px 4px; border-radius: 3px; flex: none;
}
.chip--logged { background: var(--blue); color: var(--black); }
.chip--locked { border: 1px solid #333; color: var(--gray); }
.chip--reveal { border: 1px solid var(--blue); color: var(--blue); }

/* ── Shorts cards ── */
.rail--shorts { align-items: stretch; }
.sc {
  width: min(56vw, 240px);
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--black-2);
  transition: transform 0.25s var(--ease), border-color 0.25s;
  text-align: left;
}
.sc:hover { transform: translateY(-5px); border-color: #3a3a3a; }
.sc:active { transform: scale(0.98); }
.sc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc__day {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px 7px;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--white);
}
.sc__day b { color: var(--blue); letter-spacing: 0.06em; text-indent: 0; }
.sc::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,0.92) 100%);
}
.sc__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px;
  display: flex; align-items: flex-end; gap: 10px;
}
.sc__play {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue);
  display: grid; place-content: center;
  box-shadow: 0 0 16px var(--blue-glow);
}
.sc__play svg { width: 14px; height: 14px; fill: var(--black); margin-left: 2px; }
.sc__title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shorts__cta {
  max-width: var(--container); margin: 10px auto 0;
  padding: 0 var(--gutter);
}

/* ═══ BANDS ═══ */
.band {
  margin-top: clamp(72px, 12vh, 120px);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 16px 0;
}
.band__track {
  display: inline-flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.band__track span {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 5.5vw, 2.4rem); line-height: 1;
  letter-spacing: 0.04em;
}
.band--outline .band__track span {
  color: transparent; -webkit-text-stroke: 1.2px #3d3d3d;
}
.band--blue {
  background: var(--blue); border-color: var(--blue);
  transform: rotate(-1.4deg) scale(1.02);
}
.band--blue .band__track { animation-direction: reverse; animation-duration: 24s; }
.band--blue .band__track span { color: var(--black); }
.band--blue .band__track b { font-variant-numeric: tabular-nums; }
/* the last thing on the page — sits flush at the very bottom */
.band--foot {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* ═══ BOOK ═══ */
.book__wrap {
  max-width: var(--container); margin-inline: auto;
  padding: clamp(28px, 5vh, 44px) var(--gutter) 0;
}
.book__featured {
  max-width: 700px;
  border-left: 3px solid var(--blue);
  padding: 6px 0 10px clamp(18px, 4vw, 30px);
}
.book__daterow {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.book__day {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; letter-spacing: 0.04em; color: var(--blue);
}
.book__date { font-size: 12px; letter-spacing: 0.18em; color: var(--gray); }
.book__title {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 0.95;
}
.book__body { margin-top: 16px; display: grid; gap: 14px; }
.book__body p { color: #cfd4d8; font-size: 1.02rem; max-width: 58ch; }
.book__next {
  margin-top: 26px; font-size: 12px; letter-spacing: 0.18em; color: var(--gray);
}
.book__archive { margin-top: clamp(28px, 5vh, 40px); max-width: 700px; }
.book__row { border-top: 1px solid var(--line-soft); }
.book__row:last-child { border-bottom: 1px solid var(--line-soft); }
.book__row-btn {
  width: 100%; display: flex; align-items: baseline; gap: 14px;
  padding: 16px 4px;
  text-align: left;
  transition: color 0.2s;
}
.book__row-btn:hover { color: var(--blue); }
.book__row-day {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--blue); flex: none; width: 74px;
}
.book__row-title { font-weight: 700; font-size: 0.98rem; flex: 1; }
.book__row-chev { color: var(--gray); transition: rotate 0.25s var(--ease); }
.book__row.open .book__row-chev { rotate: 180deg; }
.book__row-body {
  overflow: hidden; max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.book__row-body-inner { padding: 2px 4px 20px 88px; display: grid; gap: 12px; }
.book__row-body p { color: #cfd4d8; font-size: 0.97rem; max-width: 56ch; }

/* ═══ GEAR ═══ */
.gear__grid {
  max-width: var(--container); margin-inline: auto;
  padding: clamp(28px, 5vh, 44px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.gc {
  background: var(--black-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.gc:hover { transform: translateY(-5px); border-color: #3a3a3a; }
.gc__media { aspect-ratio: 1 / 1; background: #151515; position: relative; overflow: hidden; }
.gc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gc:hover .gc__media img { transform: scale(1.045); }
.gc__foot { padding: 12px 14px 14px; display: grid; gap: 7px; }
.gc__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.05rem, 4vw, 1.3rem); letter-spacing: 0.04em;
}
.gc__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gc__price { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.gear__foot {
  max-width: var(--container); margin-inline: auto;
  padding: 22px var(--gutter) 0;
  color: var(--gray); font-size: 0.95rem;
}
.gear__foot a { color: var(--blue); font-weight: 700; }
.gear__foot a:hover { text-decoration: underline; }

/* ═══ FOOTER ═══ */
.footer {
  margin-top: clamp(80px, 14vh, 140px);
  border-top: 1px solid var(--line-soft);
  background: #0d0d0d;
  padding: clamp(40px, 8vh, 72px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
}
.footer__giant {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(11rem, 44vw, 30rem); line-height: 0.72;
  color: transparent; -webkit-text-stroke: 1.5px #232323;
  user-select: none;
  margin-bottom: clamp(-10px, -1vh, -4px);
}
.footer__face {
  width: clamp(128px, 20vw, 176px); height: auto;
  border-radius: 50%;
  border: 3px solid var(--blue);
  box-shadow: 0 0 28px var(--blue-glow);
  margin: clamp(18px, 3vh, 30px) auto 0;
}
.footer__tag {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.05;
  margin-top: 26px;
}
.footer__follow {
  margin-top: 24px; display: flex; justify-content: center; gap: 14px;
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.footer__follow a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #333;
  display: grid; place-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.footer__follow a:hover { border-color: var(--blue); background: var(--blue-soft); }
.footer__follow svg { width: 20px; height: 20px; fill: var(--white); }
.footer__est { margin-top: 26px; font-size: 11px; letter-spacing: 0.22em; color: var(--gray); }
.footer__legal { margin-top: 10px; font-size: 11px; color: #4a4a4a; }

/* ═══ DIALOGS ═══ */
dialog { border: 0; padding: 0; background: none; color: var(--white); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 8, 8, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.sheet { margin: auto auto 0; width: 100%; }
.sheet[open] { animation: sheetup 0.35s var(--ease); }
@keyframes sheetup { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.sheet__inner {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 28px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  max-height: 82svh; overflow-y: auto;
}
.sheet__close {
  position: fixed; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(23, 23, 23, 0.9);
  border: 1px solid #333;
  font-size: 16px;
  display: grid; place-content: center;
  z-index: 5;
}
.sheet__close:hover { border-color: var(--blue); color: var(--blue); }

.detail__label {
  font-size: 11px; letter-spacing: 0.24em; color: var(--blue); font-weight: 700;
}
.detail__title {
  margin-top: 8px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 0.9;
}
.detail__date { margin-top: 6px; font-size: 12px; letter-spacing: 0.16em; color: var(--gray); }
.detail__photo {
  display: block;
  margin: 20px auto 0;
  max-height: 46svh; max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}
.detail__stats {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.detail__stat {
  background: #131313; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 14px 16px;
}
.detail__stat dt { font-size: 10px; letter-spacing: 0.18em; color: var(--gray); }
.detail__stat dd { margin-top: 4px; display: flex; align-items: baseline; gap: 5px; }
.detail__stat dd b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.detail__stat dd i { font-style: normal; color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
.detail__delta { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
.detail__note { margin-top: 20px; color: #cfd4d8; font-size: 1rem; max-width: 52ch; }
.detail__locked {
  margin-top: 22px; display: flex; align-items: center; gap: 10px;
  color: var(--gray); font-size: 0.95rem;
}
.detail__locked svg { width: 16px; height: 16px; stroke: var(--gray); flex: none; }

/* Shorts player */
.player { margin: auto; width: min(100vw, 560px); padding: 0 8px; }
.player[open] { animation: fadein 0.3s var(--ease); }
@keyframes fadein { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
.player__stage { display: flex; align-items: center; gap: 6px; justify-content: center; }
.player__frame {
  width: min(calc(76svh * 9 / 16), calc(100vw - 96px));
  aspect-ratio: 9 / 16;
  background: var(--black-2);
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__nav {
  width: 40px; height: 64px;
  font-size: 34px; line-height: 1; color: var(--gray);
  transition: color 0.2s;
  flex: none;
}
.player__nav:hover { color: var(--blue); }
.player__nav[disabled] { opacity: 0.25; pointer-events: none; }
.player__title {
  margin-top: 14px; text-align: center;
  font-weight: 700; font-size: 0.95rem; color: #cfd4d8;
  padding: 0 20px;
}

/* ═══ REVEALS ═══ */
.reveal { opacity: 0; translate: 0 20px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ═══ DESKTOP ═══ */
@media (min-width: 760px) {
  :root { --header-h: 68px; }
  .vitals__grid { grid-template-columns: repeat(5, 1fr); }
  .vitals__cell { border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .vitals__cell:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .vitals__cell--wide { grid-column: auto; }
  .vitals__cell:last-child { border-right: 0 !important; }
  .jc { width: 296px; }
  .sc { width: 240px; }
  .gear__grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { margin: auto; width: min(560px, 92vw); }
  .sheet__inner { border-radius: 16px; padding: 34px 38px 38px; }
  .sheet[open] { animation: fadein 0.3s var(--ease); }
  .book__row-day { width: 90px; }
}

@media (min-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center; align-items: center;
    column-gap: clamp(36px, 4.5vw, 72px);
    padding-top: 0;
  }
  .mark { font-size: clamp(11rem, 36vh, 16.5rem); }
  .hero__mission { margin-top: 0; }
  .hero__line { font-size: clamp(3rem, 8.4vh, 4.6rem); }
  .hero__stamp { font-size: clamp(1.1rem, 2.4vh, 1.4rem); }
  .hero__progress, .hero__cta { grid-column: 1 / -1; justify-self: start; }
  .hero__progress { width: min(520px, 100%); }
  .hero__progress { margin-top: clamp(30px, 5vh, 48px); }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__track { animation: none; }
  .hero__scroll, .rail-hint { animation: none; }
  .hero__scroll { display: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .menu, .menu__link, .jc, .sc, .gc, .hero__bar-fill, .oring-meter { transition: none; }
  .sheet[open], .player[open] { animation: none; }
}
