/* ============================================================
   Yuki — landing page
   Ported from the Claude Design v2 prototype (Yuki.dc.html).
   Tokens + classes; no framework, no build step.
   ============================================================ */

:root {
  --f-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --paper-0: #F3ECDD;
  --paper-1: #ECE1CD;
  --paper-2: #FBF6EC;
  --ink: #1E2A38;
  --navy: #16202C;
  --gold: #D7A23C;
  --gold-ink: #7A5A12;
  --body: #635B49;
  --line: rgba(30, 42, 56, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper-0);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--navy); }

@keyframes yukiZoom {
  0%   { transform: scale(1.01) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1.2%, -1.4%); }
}
@keyframes yukiFlow {
  0%   { left: 2px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* ---------- dots ---------- */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6FBF73; box-shadow: 0 0 10px #6FBF73;
  flex: none;
}
.dot--live {
  width: 7px; height: 7px;
  background: #E8674E; box-shadow: 0 0 8px rgba(232, 103, 78, .9);
}
.brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #E7C77E; flex: none;
}
.brand-dot--glow { box-shadow: 0 0 12px rgba(231, 199, 126, .95); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; font-family: var(--f-body); font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 12px 26px -16px rgba(180, 130, 40, .9);
}
.btn--gold:hover { background: #E6B450; transform: translateY(-1px); }
.btn--ghost-light {
  background: transparent; color: #EDE3D1;
  border: 1px solid rgba(240, 231, 214, .32); font-weight: 500;
}
.btn--ghost-light:hover { border-color: #E7C77E; color: #E7C77E; }
.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 16px 32px; font-size: 16px; }
.btn--lg.btn--ghost-light { padding: 15px 28px; font-size: 15px; }
.btn--pill-mono {
  min-height: 48px; padding: 13px 24px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; font-weight: 500;
}

/* ---------- sticky CTA ---------- */
.sticky {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px clamp(18px, 5vw, 56px);
  background: rgba(18, 26, 38, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 231, 214, .1);
  opacity: 0; transform: translateY(-100%); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.sticky.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky__brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; color: #F4EDDE;
  font-family: var(--f-head); font-size: 20px; font-weight: 500;
}
.sticky__brand .brand-dot, .footer__brand .brand-dot { width: 6px; height: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; width: 100%;
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1120px;
  overflow: hidden; background: #0d1620;
}
.hero__img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%;
  object-fit: cover; object-position: 42% 46%;
  transform: scale(1.03); will-change: transform;
}
.hero__grad { position: absolute; inset: 0; pointer-events: none; }
.hero__grad--warm {
  z-index: 1; mix-blend-mode: multiply;
  background: linear-gradient(to top, rgba(122, 70, 18, .22), rgba(122, 70, 18, 0) 54%);
}
.hero__grad--golden {
  z-index: 1; mix-blend-mode: soft-light;
  background: linear-gradient(158deg, rgba(255, 168, 64, .42) 0%, rgba(255, 120, 46, .2) 44%, rgba(44, 24, 58, .3) 100%);
}
.hero__grad--golden2 {
  z-index: 1; mix-blend-mode: screen; opacity: .7;
  background: radial-gradient(80% 60% at 78% 24%, rgba(255, 196, 108, .4), rgba(255, 196, 108, 0) 60%);
}
.hero__grad--top {
  inset: 0 0 auto 0; height: 220px; z-index: 2;
  background: linear-gradient(to bottom, rgba(10, 15, 23, .6), rgba(10, 15, 23, 0));
}
.hero__grad--bottom {
  inset: auto 0 0 0; height: 72%; z-index: 2;
  background: linear-gradient(to top, rgba(9, 13, 20, .9) 0%, rgba(9, 13, 20, .52) 36%, rgba(9, 13, 20, 0) 100%);
}
.hero__grad--vignette {
  z-index: 2;
  background: radial-gradient(116% 84% at 50% 42%, rgba(9, 13, 20, 0) 46%, rgba(9, 13, 20, .5) 100%);
}

.header {
  position: absolute; inset: 0 0 auto 0; z-index: 7;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: clamp(16px, 2.6vw, 30px) clamp(18px, 5vw, 60px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; }
.brand__name { font-family: var(--f-head); font-size: 25px; font-weight: 500; color: #F4EDDE; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: rgba(244, 237, 222, .86); font-size: 14.5px;
  transition: color .2s ease;
}
.nav__link:hover { color: #E7C77E; }

.hero__content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 24px clamp(72px, 13vh, 150px);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 8px 15px; border-radius: 999px;
  background: rgba(10, 15, 22, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
}
.pill__label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: #F4EDDE;
}
.hero__title {
  margin: 0; font-family: var(--f-head); font-weight: 400;
  font-size: clamp(48px, 8.4vw, 108px); line-height: .96; letter-spacing: -.02em;
  color: #F6EFE1; text-shadow: 0 2px 34px rgba(0, 0, 0, .5);
}
.hero__sub {
  margin: 20px 0 0; max-width: 548px;
  font-size: clamp(16px, 1.7vw, 20px); line-height: 1.55;
  color: rgba(244, 237, 222, .9); text-shadow: 0 1px 18px rgba(0, 0, 0, .6);
}
.hero__watch {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 26px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244, 237, 222, .92); text-decoration: none;
  border-bottom: 1px solid rgba(244, 237, 222, .34); padding: 6px 2px 4px;
  transition: color .2s ease, border-color .2s ease;
}
.hero__watch:hover { color: #E7C77E; border-color: #E7C77E; }

/* ---------- sections / shared ---------- */
.section { padding: clamp(84px, 12vh, 150px) clamp(20px, 6vw, 88px); }
.section--paper0 { background: var(--paper-0); }
.section--paper1 { background: var(--paper-1); }
.section--navy { background: var(--navy); color: #EDE3D1; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap--narrow { max-width: 980px; }
.center { text-align: center; }

.lead { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vh, 76px); }
.lead--sm { max-width: 560px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-ink); font-weight: 600;
}
.eyebrow--gold { color: #E7C77E; font-weight: 500; }
.h2 {
  margin: 16px 0 0; font-family: var(--f-head); font-weight: 400;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.015em; color: var(--ink);
}
.h2--light { color: #F4EDDE; }
.lead--sm .h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; }
.lead__p {
  margin: 18px auto 0; max-width: 520px;
  color: var(--body); font-size: clamp(15px, 1.6vw, 18px);
}

/* ---------- moods / live stage ---------- */
.stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: var(--navy); border: 1px solid rgba(30, 42, 56, .1);
  box-shadow: 0 44px 90px -54px rgba(20, 20, 30, .75);
}
.stage__kenburns {
  position: absolute; inset: 0;
  animation: yukiZoom 18s ease-in-out infinite alternate;
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 1; transition: opacity .9s ease;
}
.stage__img.is-active { opacity: 1; z-index: 2; }
.stage__tint {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  transition: background .9s ease;
}
.pill--onstage {
  position: absolute; left: 16px; top: 16px; z-index: 5; margin: 0; padding: 8px 14px;
}
.pill--onstage .pill__label { font-size: 11.5px; }
.stage__live {
  position: absolute; right: 16px; top: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244, 237, 222, .72);
}
.stage__caption {
  position: absolute; inset: auto 0 0 0; z-index: 5; padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(to top, rgba(8, 12, 18, .9), rgba(8, 12, 18, .2) 70%, rgba(8, 12, 18, 0));
}
.stage__state {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(22px, 3vw, 32px); color: #F6EFE1; line-height: 1.05;
}
.stage__line {
  margin-top: 7px; font-size: clamp(14px, 1.6vw, 17.5px); line-height: 1.5;
  color: rgba(244, 237, 222, .86); max-width: 580px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: #574F3E; border: 1px solid rgba(30, 42, 56, .26); font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chip.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__num { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: var(--gold-ink); }
.step__title { margin: 14px 0 0; font-family: var(--f-head); font-weight: 500; font-size: 22px; color: var(--ink); }
.step__body { margin: 10px 0 0; font-size: 16px; color: var(--body); }
.how__note {
  margin: clamp(28px, 4vh, 40px) 0 0; text-align: center;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--gold-ink);
}

.helper {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--navy); color: #EDE3D1; border-radius: 16px; padding: clamp(22px, 3.4vw, 36px);
}
.helper__text { flex: 1; min-width: 240px; }
.helper__title { margin: 9px 0 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); color: #F4EDDE; }
.helper__body { margin: 11px 0 0; color: #B7AF9E; max-width: 480px; font-size: 15px; }
.tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--f-mono); font-size: 11.5px; color: #B7AF9E;
  border: 1px solid rgba(240, 231, 214, .18); border-radius: 999px; padding: 5px 11px;
}
.helper__actions { display: flex; flex-direction: column; gap: 11px; min-width: 210px; }
.helper__actions .btn--ghost-light {
  min-height: 48px; padding: 13px 22px; font-size: 14.5px;
  background: rgba(240, 231, 214, .1); border-color: rgba(240, 231, 214, .34); color: #F4EDDE;
}
.link-mono {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  color: #B7AF9E; font-family: var(--f-mono); font-size: 13px; text-decoration: none;
  transition: color .2s ease;
}
.link-mono:hover { color: #E7C77E; }

/* ---------- privacy ---------- */
.privacy { padding: clamp(96px, 14vh, 172px) clamp(20px, 6vw, 88px); }
.privacy .wrap--narrow { max-width: 920px; }
.privacy__title {
  margin: 18px auto 0; max-width: 15ch;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em;
}
.privacy__sub {
  margin: 24px auto 0; max-width: 600px; color: #B7AF9E; font-size: clamp(16px, 1.7vw, 19px);
}
.kbd { font-style: normal; font-family: var(--f-mono); color: #E7C77E; font-size: .88em; letter-spacing: .03em; }
.privacy__no { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: clamp(28px, 4vh, 40px) auto 0; max-width: 560px; }
.privacy__label { margin: 20px 0 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: #B7AF9E; }
.privacy__links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.flowmap {
  margin: clamp(42px, 6vh, 72px) auto 0; max-width: 760px;
  display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: left;
}
.flowmap__box {
  flex: 1; min-width: 208px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(240, 231, 214, .16); border-radius: 14px; padding: 20px 22px;
}
.flowmap__head { font-family: var(--f-head); font-size: 18px; color: #F4EDDE; }
.flowmap__list { margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.9; color: #8E9AA6; }
.flowmap__tag { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.flowmap__tag--ok { color: #92BC8C; }
.flowmap__tag--react { color: #E7C77E; }
.flowmap__mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 14px; min-width: 148px;
}
.flowmap__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #E7C77E; margin-bottom: 9px; }
.flow {
  position: relative; width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(to right, rgba(231, 199, 126, .15), rgba(231, 199, 126, .5));
}
.flow__dot {
  position: absolute; top: 50%; left: 2px; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #E7C77E; box-shadow: 0 0 8px rgba(231, 199, 126, 1);
  animation: yukiFlow 2.8s ease-in-out infinite;
}
.flow__arrow {
  align-self: flex-end; margin-top: -5px; width: 0; height: 0;
  border-left: 8px solid rgba(231, 199, 126, .65);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* ---------- faq ---------- */
.faq {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 3vw, 52px) clamp(36px, 5vw, 72px);
}
.faq__item { border-top: 1px solid var(--line); padding-top: 20px; }
.faq__q { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 19px; color: var(--ink); }
.faq__a { margin: 9px 0 0; font-size: 15.5px; color: var(--body); }

/* ---------- closing + footer ---------- */
.closing {
  padding: clamp(96px, 15vh, 178px) clamp(20px, 6vw, 88px) clamp(70px, 9vh, 108px);
  text-align: center; border-bottom: 1px solid rgba(240, 231, 214, .1);
}
.closing__title { margin: 0; font-size: clamp(40px, 7vw, 88px); line-height: .98; letter-spacing: -.02em; }
.closing__sub { margin: 18px auto 0; max-width: 480px; color: #B7AF9E; font-size: clamp(16px, 1.7vw, 19px); }
.closing__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.closing__meta { margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #7E8A96; }

.footer {
  padding: clamp(34px, 5vh, 50px) clamp(20px, 6vw, 88px);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__name { font-family: var(--f-head); font-size: 22px; font-weight: 500; color: #F4EDDE; }
.footer__tag { color: #7E8A96; font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 24px); }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: #B7AF9E; font-size: 14px; transition: color .2s ease;
}
.footer__nav a:hover { color: #E7C77E; }
.copyright {
  padding: 0 clamp(20px, 6vw, 88px) clamp(28px, 4vh, 40px);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: #5E6974;
}

/* ---------- reveal-on-scroll (progressive enhancement) ----------
   Content is visible by default. main.js adds .js-anim to <html> only
   when motion is allowed, which arms the fade-in. No JS / reduced motion
   => everything stays visible. */
.js-anim .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.05s cubic-bezier(.2, .7, .2, 1), transform 1.05s cubic-bezier(.2, .7, .2, 1);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__kenburns, .flow__dot { animation: none !important; }
}
