/* vB-split — The split stage. Tokens in tokens.css. Square corners. No gradients/glass/shadows-at-rest. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-4);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--room-grey); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { padding-inline: var(--margin); }

/* ===== Desktop split ===== */
.page {
  display: block;
}
.stage {
  background: var(--room-mist);
  padding: 12px 12px 16px;
  position: relative;
}
.stage-frame {
  position: relative;
  width: 100%;
  height: 42svh;
  max-height: 420px;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--room-grey);
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: none;
}
.stage-img.is-active { opacity: 1; z-index: 1; }
.stage-meta {
  margin-top: 14px;
  padding-inline: 4px;
}
.stage-title {
  font-family: var(--font-display);
  font-size: var(--t-3);
  line-height: 1.2;
}
.stage-title i {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 0.85em;
  color: var(--ink-soft);
  margin-left: 0.4em;
}
.stage-note {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--t-5);
}

.picker {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 12px;
  padding-inline: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.picker::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 0;
  font-size: var(--t-5);
  transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.chip.is-on {
  background: var(--accent);
  color: var(--on-accent);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover:not(.is-on) { background: var(--room-warm); }
}

.read {
  background: var(--bg);
  padding-inline: var(--margin);
  padding-bottom: 48px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.nav-brand img { width: 100px; height: auto; background: transparent; }
.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
  font-size: var(--t-5);
}
.nav-links a { text-decoration: none; }
.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none !important;
}
.nav-menu {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: var(--room-grey);
  font-size: var(--t-5);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}
.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--t-4);
  border-bottom: 0;
  background: var(--room-grey);
  padding: 0 16px;
  margin-bottom: 4px;
}
.mobile-nav[hidden] { display: none; }

/* Hero */
.hero {
  padding-top: 36px;
  padding-bottom: 56px;
  min-height: 58svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.hero-lead {
  font-size: var(--t-4);
  color: var(--ink);
  max-width: 26ch;
  margin-top: 24px;
  line-height: 1.5;
}
.hero-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 1.1rem + 4.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 100%;
}
.hero-h .ln { display: block; }
.hero-promise {
  margin-top: 16px;
  font-size: var(--t-4);
  color: var(--ink-soft);
  max-width: 18ch;
  line-height: 1.4;
}
.wordmark {
  display: none;
  margin: 10px 4px 0;
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 2.4vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  transform-origin: left bottom;
  will-change: transform;
  opacity: 0.45;
}

/* Intro narrow */
.intro {
  max-width: 34ch;
  padding-block: 48px 96px;
}
.intro p {
  font-size: var(--t-4);
  line-height: 1.55;
  color: var(--ink-soft);
}
.intro p + p { margin-top: 1.1em; }
.intro-first {
  color: var(--ink) !important;
  font-weight: 500;
}
.text-link {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

/* Letter */
.letter {
  padding-block: 64px 96px;
  background: var(--room-lavender);
  margin-inline: calc(var(--margin) * -1);
  padding-inline: var(--margin);
}
.letter-sheet {
  max-width: 36rem;
  margin-inline: auto;
  background: var(--bg);
  padding: 48px 28px 56px;
}
.letter-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--room-mist);
  margin-bottom: 28px;
}
.letter p {
  font-size: var(--t-4);
  line-height: 1.55;
  color: var(--ink);
  max-width: 38ch;
}
.letter p + p { margin-top: 1.15em; }
.letter mark {
  background: var(--room-warm);
  color: var(--ink);
  padding: 0 0.15em;
}
.letter-sign {
  margin-top: 2em !important;
  font-family: var(--font-en);
  font-size: var(--t-3) !important;
  font-style: italic;
}
.letter-role {
  font-size: var(--t-5) !important;
  color: var(--ink-soft) !important;
  margin-top: 0.25em !important;
  font-family: var(--font-en);
}

/* Friends */
.friends {
  padding-block: 96px 72px;
}
.sec-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 12em;
  margin-bottom: 28px;
}
.friends-fig {
  margin-bottom: 24px;
  max-width: 28rem;
}
.friends-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.friend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.friend-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-4);
  min-height: 44px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}
.friends-note {
  color: var(--ink-soft);
  max-width: 34ch;
  font-size: var(--t-4);
}

/* Gallery full bleed */
.gallery {
  background: var(--room-field);
  color: var(--on-accent);
  padding-block: 72px 48px;
}
.gallery .sec-h { color: var(--on-accent); margin-bottom: 0; }
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.gallery-count {
  font-size: var(--t-5);
  color: var(--p-mist);
  white-space: nowrap;
}
.gallery-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: 20px;
  height: 62svh;
  cursor: grab;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row.is-dragging { cursor: grabbing; }
.mod {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--p-dusk-deep);
}
.mod.tall { width: 72vw; }
.mod.stack { width: 64vw; }
.mod.stack img { height: calc((100% - 8px) / 2); }
.mod.wide {
  width: 88vw;
  justify-content: center;
}
.mod.wide img {
  height: 72%;
  align-self: center;
}

/* Showcase */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 72px var(--margin);
  background: var(--bg);
  min-height: auto;
}
.plate {
  margin: 0;
  width: 100%;
}
.plate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.tab {
  font-size: var(--t-4);
  min-height: 44px;
  color: var(--ink-soft);
  padding: 0 2px;
}
.tab.is-on {
  color: var(--ink);
  font-weight: 700;
}
.plate-h {
  font-family: var(--font-display);
  font-size: var(--t-2);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.plate-p {
  max-width: 34ch;
  color: var(--ink);
  font-size: var(--t-4);
  line-height: 1.5;
  margin-bottom: 40px;
}
.plate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: var(--t-4);
  transition: background-color var(--dur-ui) var(--ease), transform 140ms var(--ease);
}
.cell:active { transform: scale(0.98); }
.cell-quiet {
  background: var(--room-grey);
  color: var(--ink);
}

/* Product */
.product {
  padding: 96px var(--margin);
  background: var(--room-warm);
}
.product-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 56rem;
  margin-inline: auto;
}
.product-fig { max-width: 22rem; }
.product-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-copy p { max-width: 36ch; color: var(--ink); }
.product-copy p + p { margin-top: 0.9em; }
.product-status {
  font-weight: 700;
  margin-top: 1.2em !important;
}

/* CTA */
.cta {
  padding: 20svh var(--margin) 14svh;
  background: var(--bg);
}
.cta p {
  font-size: var(--t-3);
  max-width: 34ch;
  margin-bottom: 24px;
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  border-radius: var(--btn-radius);
  transition: background-color var(--dur-ui) var(--ease), transform 140ms var(--ease);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-press); }
  .cell:hover { background: var(--accent-press); }
  .cell-quiet:hover { background: var(--room-mist); }
}

/* Footer */
.foot {
  padding: 20svh var(--margin) 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--t-5);
  color: var(--ink-soft);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot-links a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Motion: entrances */
.js [data-rise],
.js [data-rise-group] > [data-rise] {
  opacity: 0;
  transform: translateY(22px);
}
.js .is-in[data-rise],
.js .is-in [data-rise],
.js [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-rise].is-in:nth-child(2) { transition-delay: 70ms; }
.js [data-rise].is-in:nth-child(3) { transition-delay: 140ms; }
.js [data-rise].is-in:nth-child(4) { transition-delay: 210ms; }
.js [data-rise].is-in:nth-child(5) { transition-delay: 280ms; }
.js .is-in [data-rise]:nth-child(2) { transition-delay: 70ms; }
.js .is-in [data-rise]:nth-child(3) { transition-delay: 140ms; }
.js .is-in [data-rise]:nth-child(4) { transition-delay: 210ms; }
.js .is-in [data-rise]:nth-child(5) { transition-delay: 280ms; }

/* Slow drift on stage when motion OK */
@media (prefers-reduced-motion: no-preference) {
  .stage-img.is-active {
    animation: stageDrift 18s var(--ease) infinite alternate;
  }
  .stage-img {
    transition: opacity 480ms var(--ease);
  }
}
@keyframes stageDrift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise],
  .js [data-rise-group] > [data-rise] {
    opacity: 1;
    transform: none;
  }
  .stage-img { transition: none; }
  .wordmark { transform: none !important; }
}

/* ===== Tablet+ desktop split ===== */
@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .stage {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px;
    overflow: hidden;
  }
  .stage-frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  .stage-meta { margin-top: 10px; }
  .picker { margin-top: 10px; }
  .hero-h { font-size: clamp(2.75rem, 1.2rem + 4vw, 5.5rem); }
  .stage-meta { flex: 0 0 auto; }
  .picker { flex: 0 0 auto; }

  .read {
    min-height: 100svh;
    padding-inline: clamp(48px, 5vw, 72px);
    padding-bottom: 96px;
  }
  .nav-links { display: flex; }
  .nav-menu { display: none; }
  .mobile-nav { display: none !important; }
  .nav-brand img { width: 120px; }

  .hero {
    min-height: 100svh;
    padding-top: 18%;
    padding-bottom: 64px;
    justify-content: center;
  }
  .hero-lead { font-size: var(--t-3); }
  .wordmark {
    display: block;
    font-size: clamp(1.75rem, 2.2vw, 2.75rem);
    opacity: 0.45;
  }

  .intro {
    margin-left: 8%;
    max-width: 340px;
    padding-block: 64px 160px;
  }
  .intro p { font-size: var(--t-4); }

  .letter {
    margin-inline: 0;
    padding-inline: 0;
    background: transparent;
  }
  .letter-sheet {
    background: var(--room-lavender);
    padding: 60px;
  }

  .gallery-row {
    height: 68svh;
    padding-inline: 6vw;
    gap: 12px;
  }
  .mod.tall { width: calc(68svh * 0.75); }
  .mod.stack { width: calc(68svh * 0.7); }
  .mod.wide { width: calc(68svh * 1.4); }
  .mod.wide img { height: 100%; }

  .showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 88svh;
    padding-block: 96px;
  }
  .plate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .plate img {
    width: calc(100% - 0px);
    max-width: min(100%, 560px);
  }
  .plate-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: 24px;
    min-height: 100%;
  }
  .plate-actions {
    flex-direction: row;
  }
  .cell { width: 50%; min-height: 72px; }

  .product-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
  }

  .cta {
    padding-left: calc(50vw + clamp(48px, 5vw, 72px));
  }
  .foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-top: 30svh;
    padding-bottom: 30px;
  }
  .foot-what { justify-self: start; }
  .foot-links {
    justify-self: center;
    flex-direction: row;
  }
  .foot-meta { justify-self: end; margin: 0; }
}

@media (min-width: 1200px) {
  .page { grid-template-columns: 47fr 53fr; }
  .stage { padding: 20px 20px 24px; }
}
