/* ───────────────────────────────────────────────────────────────────
   luma catwalk — microsite
   ─────────────────────────────────────────────────────────────────── */

:root {
  --ink:        #05060a;
  --ink-2:      #0a0d18;
  --ink-3:      #10162a;
  --star:       #eef2fb;
  --mute:       #9aa3b8;
  --rim:        #f5e6d3;
  --cool:       #7aa7ff;
  --glow-warm:  rgba(245, 230, 211, 0.18);
  --glow-cool:  rgba(122, 167, 255, 0.14);

  --ease-out:   cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-slow:     1.2s;
  --t-med:      0.7s;
  --t-quick:    0.35s;

  --pad-x:      clamp(28px, 6vw, 96px);
  --pad-y:      clamp(48px, 8vh, 120px);

  --rail-w:     14px;
}

/* ─── reset ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── base ────────────────────────────────────────────────────────── */

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--star);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body { font-feature-settings: "ss01", "cv11"; }

code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.92em;
  color: var(--rim);
  background: rgba(245, 230, 211, 0.06);
  padding: 0.08em 0.4em;
  border-radius: 3px;
  letter-spacing: 0;
}

em { font-style: italic; color: var(--rim); font-weight: 300; }

/* ─── background layers ───────────────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__image {
  position: absolute;
  inset: -3%;
  background: url('assets/background.png') center/cover no-repeat;
  opacity: 0.85;
  transform-origin: 50% 50%;
  animation: bg-drift 80s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-drift {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

.bg__tone {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(15, 20, 42, 0.55) 0%,
      rgba(5, 6, 10, 0.92) 80%);
  transition: background 1.4s var(--ease-out);
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ─── deck / scroll ───────────────────────────────────────────────── */

.deck {
  position: relative;
  z-index: 2;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── content blocks ──────────────────────────────────────────────── */

.content {
  position: relative;
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vh, 32px);
}

.content--centered {
  text-align: center;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.content--centered > * { max-width: 100%; }

.content--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.content__col { display: flex; flex-direction: column; gap: clamp(16px, 2vh, 28px); }
.content__col--diagram { align-items: center; }

@media (max-width: 900px) {
  .content--split { grid-template-columns: 1fr; }
  .content__col--diagram { order: -1; }
}

/* ─── typography ──────────────────────────────────────────────────── */

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--mute);
  opacity: 0.5;
}
.eyebrow--warm { color: var(--rim); }
.eyebrow--warm::before { background: var(--rim); opacity: 0.6; }

.display {
  margin: 0;
  font-weight: 200;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--star);
}

.display--reveal {
  font-weight: 300;
  letter-spacing: -0.025em;
  font-size: clamp(40px, 6.4vw, 88px);
  text-shadow: 0 0 40px rgba(245, 230, 211, 0.12);
}

.lede {
  margin: 0;
  font-weight: 300;
  font-size: clamp(15px, 1.18vw, 19px);
  line-height: 1.7;
  color: var(--star);
  max-width: 62ch;
}
.content--centered .lede { margin-inline: auto; }
.lede--mute { color: var(--mute); }

/* ─── title slide ─────────────────────────────────────────────────── */

.slide--title {
  padding: 0;
  /* no opaque background — the standard .bg layer (neural net + tone) shows through */
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.title__frame {
  position: relative;
  width: min(82vw, 1180px);
  height: min(82vh, 820px);
}

.title__image {
  position: absolute;
  inset: 0;
  background-image: url('assets/catwalk.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 100% center;  /* portal anchored to the right of the frame */
  /* no mask — the PNG's own transparent edges blend into the slide bg */
  opacity: 0;
  animation: title-fade 1.6s var(--ease-out) 0.1s forwards;
}

@keyframes title-fade {
  to { opacity: 1; }
}

.title__text {
  position: absolute;
  left: clamp(16px, 4%, 64px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 38%;
}

.title__brand {
  font-weight: 200;
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: 0.36em;
  text-transform: lowercase;
  color: var(--star);
  opacity: 0;
  transform: translateY(6px);
  animation: title-rise var(--t-med) var(--ease-out) 0.4s forwards;
}

.title__word {
  margin: 0 0 0 -0.06em;  /* optical-align: pull the curved "c" left so its visual edge sits under luma's "l" */
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: 0.5em;
  color: var(--star);
  white-space: nowrap;
}

.title__word .letters { display: inline-flex; }
.title__word .letters > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: title-letter 0.95s var(--ease-out) forwards;
}
.title__word .letters > span:nth-child(1) { animation-delay: 0.65s; }
.title__word .letters > span:nth-child(2) { animation-delay: 0.71s; }
.title__word .letters > span:nth-child(3) { animation-delay: 0.77s; }
.title__word .letters > span:nth-child(4) { animation-delay: 0.83s; }
.title__word .letters > span:nth-child(5) { animation-delay: 0.89s; }
.title__word .letters > span:nth-child(6) { animation-delay: 0.95s; }
.title__word .letters > span:nth-child(7) { animation-delay: 1.01s; }

@keyframes title-letter {
  to { opacity: 1; transform: translateY(0); }
}

.title__tagline {
  margin: 0;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(11px, 0.9vw, 14px);
  color: var(--mute);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  animation: title-rise var(--t-med) var(--ease-out) 1.4s forwards;
}

@keyframes title-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .title__frame {
    width: min(96vw, 720px);
    height: auto;
  }
  .title__image {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 2716 / 2043;
  }
  .title__text {
    position: static;
    transform: none;
    align-items: center;
    text-align: center;
    padding: clamp(28px, 4vh, 56px) var(--pad-x) 0;
    max-width: 100%;
  }
  .title__word {
    font-size: clamp(30px, 8vw, 54px);
    letter-spacing: 0.22em;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-rise var(--t-med) var(--ease-out) 1.4s forwards,
             scroll-bob 2.6s ease-in-out 2s infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 5px); }
}

/* ─── grids ───────────────────────────────────────────────────────── */

.grid--2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  margin-top: 8px;
}

.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 26px);
  margin-top: 8px;
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid--2x2 { grid-template-columns: 1fr; }
}

.lede--wide { max-width: 78ch; }

.patterns--single { grid-template-columns: 1fr; }

/* indented management-state lines inside a patterns bullet */
.mgmt {
  display: block;
  padding-left: 1.4em;
  margin-top: 2px;
}
.mgmt:first-of-type {
  margin-top: 6px;
}
.mgmt strong {
  color: var(--rim);
  font-weight: 400;
}

.card {
  position: relative;
  padding: clamp(22px, 2.2vw, 32px);
  background: rgba(16, 22, 42, 0.42);
  border: 1px solid rgba(245, 230, 211, 0.08);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--t-quick) var(--ease-out),
              border-color var(--t-quick) var(--ease-out),
              transform var(--t-quick) var(--ease-out);
}
.card:hover {
  background: rgba(20, 28, 52, 0.55);
  border-color: rgba(245, 230, 211, 0.18);
  transform: translateY(-2px);
}

.card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--rim);
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.card__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.005em;
  color: var(--star);
}

.card__gloss {
  margin: 0;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--rim);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.card__gloss em { color: var(--star); font-weight: 300; font-style: normal; }

.card__inner {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--mute);
  opacity: 0.75;
  margin-top: 2px;
}

/* "today / tomorrow" story card variant on slide 10 */
.card--story {
  padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.6vw, 22px);
  gap: 6px;
}
.card--story .card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rim);
  opacity: 0.78;
  margin-bottom: 2px;
}
.card--story .card__title {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 300;
  line-height: 1.25;
}
.card--story .card__title code {
  font-size: 0.92em;
  color: var(--star);
  background: rgba(245, 230, 211, 0.05);
}
.card--story .card__body {
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.55;
}

.grid--story {
  margin-top: 2px;
  gap: 12px;
}

.card__body {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--mute);
  line-height: 1.7;
}

/* ─── diagram (slide 4) ───────────────────────────────────────────── */

.diagram {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(122, 167, 255, 0.08));
}
.diagram .d-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--mute);
}
.diagram .d-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  fill: var(--mute);
}
.diagram .d-arrow path { animation: dash-flow 6s linear infinite; }
@keyframes dash-flow {
  to { stroke-dashoffset: -36; }
}
.diagram .d-sashay circle:first-child {
  animation: pulse-ring 4.5s ease-in-out infinite;
  transform-origin: 60px 160px;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 0.9; }
}

/* ─── ops list (slide 5) ──────────────────────────────────────────── */

.ops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.02em;
  color: var(--star);
  margin: 8px 0;
}
.ops li {
  position: relative;
  padding: 8px 18px;
  border: 1px solid rgba(245, 230, 211, 0.14);
  border-radius: 999px;
  background: rgba(16, 22, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out);
}
.ops li:hover { border-color: var(--rim); color: var(--rim); }
.ops li::before {
  content: '·';
  margin-right: 8px;
  color: var(--rim);
  opacity: 0.6;
}

/* ─── patterns list (slide 6) ─────────────────────────────────────── */

.patterns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .patterns { grid-template-columns: 1fr; }
}
.patterns li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 1.8vw, 24px);
  border-left: 1px solid rgba(245, 230, 211, 0.16);
  background: linear-gradient(90deg, rgba(245, 230, 211, 0.025) 0%, transparent 60%);
}
.patterns strong {
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--rim);
  letter-spacing: 0.02em;
}
.patterns span {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--mute);
  line-height: 1.65;
}

/* ─── chips (slide 7) ─────────────────────────────────────────────── */

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 16px 0;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(16, 22, 42, 0.42);
  border: 1px solid rgba(245, 230, 211, 0.08);
  border-radius: 4px;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--star);
  text-align: left;
  transition: background var(--t-quick) var(--ease-out),
              border-color var(--t-quick) var(--ease-out);
}
.chip:hover {
  background: rgba(20, 28, 52, 0.55);
  border-color: rgba(245, 230, 211, 0.22);
}
.chip__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--rim);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── reveal slide ────────────────────────────────────────────────── */

.slide--reveal {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* a quiet warm halo, low and small — keeps the slide warm without being theatrical */
.reveal__halo {
  position: absolute;
  width: 720px;
  height: 720px;
  max-width: 90vw;
  max-height: 90vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(circle,
    rgba(255, 215, 170, 0.10) 0%,
    rgba(255, 195, 140, 0.05) 28%,
    transparent 60%);
  filter: blur(48px);
  opacity: 0;
  transition: opacity 1.6s var(--ease-out), transform 2.4s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.slide--reveal.is-visible .reveal__halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reveal__content {
  position: relative;
  z-index: 2;
  width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vh, 36px);
  align-items: center;
  text-align: center;
}

.reveal__head {
  margin: 0;
  font-weight: 200;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--star);
  opacity: 0;
}
.slide--reveal.is-visible .reveal__head {
  animation: reveal-line 0.95s var(--ease-out) 0.35s both;
}
@keyframes reveal-line {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal__sub {
  margin: 0;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--star);
  max-width: 56ch;
}

.reveal__foot {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(11px, 0.9vw, 14px);
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: var(--mute);
  max-width: 72ch;
}
.reveal__foot code {
  background: rgba(245, 230, 211, 0.06);
  color: var(--rim);
  font-size: 1em;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .reveal__head { font-size: clamp(30px, 8vw, 52px); }
}

/* ─── progress rail ───────────────────────────────────────────────── */

.rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 8px;
  border-radius: 999px;
  background: rgba(16, 22, 42, 0.35);
  border: 1px solid rgba(245, 230, 211, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail__dot {
  width: var(--rail-w);
  height: var(--rail-w);
  padding: 0;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.rail__dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  opacity: 0.5;
  transition: background var(--t-quick) var(--ease-out),
              opacity var(--t-quick) var(--ease-out),
              width var(--t-quick) var(--ease-out),
              height var(--t-quick) var(--ease-out);
}
.rail__dot:hover::after { opacity: 1; }
.rail__dot.is-active::after {
  width: 9px;
  height: 9px;
  background: var(--rim);
  opacity: 1;
  box-shadow: 0 0 12px rgba(245, 230, 211, 0.6);
}

@media (max-width: 720px) {
  .rail { display: none; }
}

/* ─── reveal-on-enter animations ──────────────────────────────────── */

[data-reveal],
[data-reveal-children] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}

.is-visible [data-reveal],
.is-visible [data-reveal-children] > * {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children of [data-reveal] within .is-visible */
.is-visible [data-reveal]:nth-of-type(1) { transition-delay: 0.05s; }
.is-visible [data-reveal]:nth-of-type(2) { transition-delay: 0.14s; }
.is-visible [data-reveal]:nth-of-type(3) { transition-delay: 0.23s; }
.is-visible [data-reveal]:nth-of-type(4) { transition-delay: 0.32s; }
.is-visible [data-reveal]:nth-of-type(5) { transition-delay: 0.41s; }
.is-visible [data-reveal]:nth-of-type(6) { transition-delay: 0.50s; }

.is-visible [data-reveal-children] > *:nth-child(1) { transition-delay: 0.10s; }
.is-visible [data-reveal-children] > *:nth-child(2) { transition-delay: 0.18s; }
.is-visible [data-reveal-children] > *:nth-child(3) { transition-delay: 0.26s; }
.is-visible [data-reveal-children] > *:nth-child(4) { transition-delay: 0.34s; }
.is-visible [data-reveal-children] > *:nth-child(5) { transition-delay: 0.42s; }
.is-visible [data-reveal-children] > *:nth-child(6) { transition-delay: 0.50s; }
.is-visible [data-reveal-children] > *:nth-child(7) { transition-delay: 0.58s; }
.is-visible [data-reveal-children] > *:nth-child(8) { transition-delay: 0.66s; }

/* reveal slide special: scale-in on the headline */
.slide--reveal.is-visible .display--reveal {
  animation: reveal-headline 0.95s var(--ease-out) 0.15s both;
}
@keyframes reveal-headline {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── reduced motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg__image { animation: none !important; }
  .deck { scroll-behavior: auto; }
  [data-reveal], [data-reveal-children] > * { opacity: 1; transform: none; }
}
