/* ============================================================
   HOMIE · cubiec — editorial paper edition
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* paper & ink palette */
  --paper: #EFEAE0;
  /* cream background */
  --paper-2: #E5DECF;
  /* soft accent panel */
  --paper-3: #D9D1BE;
  /* divider tone */
  --ink: #14110D;
  /* near-black ink */
  --ink-2: #2C271E;
  --mute: #6B6253;
  /* warm grey */
  --mute-2: #8A8170;

  --accent: #FF4A1C;
  /* retro orange */
  --accent-2: #ff7a52;
  /* lighter orange tint */
  --signal: #C4321B;

  --line: rgba(20, 17, 13, 0.16);
  --line-2: rgba(20, 17, 13, 0.08);
  --shadow: 0 30px 80px rgba(20, 17, 13, 0.08);

  --f-display: 'Cormorant Garamond', 'Georgia', serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1480px;
  --pad-x: clamp(20px, 4vw, 72px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08  0 0 0 0 .07  0 0 0 0 .05  0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ====== PHOTO PLACEHOLDER ============================ */
[data-img] {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 74, 28, .10), transparent 60%),
    radial-gradient(120% 80% at 70% 80%, rgba(20, 17, 13, .10), transparent 60%),
    var(--paper-2);
  isolation: isolate;
}

[data-img]::after {
  content: attr(data-img);
  position: absolute;
  inset: auto 0 12px 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 2;
}

[data-img].has-img::after {
  display: none;
}

[data-img]>img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.02) saturate(.95);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1), opacity .5s .6s;
  clip-path: circle(150% at 50% 50%);
}

.preloader.done {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  pointer-events: none;
}

/* pixel screen — mimics Homie's OLED */
.pre-screen {
  position: relative;
  width: 240px;
  height: 120px;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .06),
    0 0 0 8px rgba(255, 74, 28, .18),
    0 32px 80px rgba(255, 74, 28, .12);
}

#preCanvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pre-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      transparent 0px, transparent 3px,
      rgba(20, 17, 13, .07) 3px, rgba(20, 17, 13, .07) 4px);
  pointer-events: none;
}

.pre-label {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -.03em;
  color: var(--paper);
  line-height: 1;
  margin-top: -8px;
}

.pre-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(320px, 70vw);
}

.pre-pct {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--accent);
  min-width: 28px;
}

.pre-bar {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.pre-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width .3s var(--ease-out);
}

.pre-status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .35);
  transition: opacity .4s;
}

/* ============================================================
   CURSOR (desktop only)
   ============================================================ */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.cursor.hover {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}

@media (hover: none),
(pointer: coarse) {

  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 9998;
}

.scroll-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
}

/* ============================================================
   SIDE INDEX
   ============================================================ */
.side-index {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  pointer-events: auto;
}

.side-index.visible {
  opacity: 1;
}

.side-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  position: relative;
  transition: color .25s, padding .35s var(--ease-out);
}

.side-index a span {
  opacity: .55;
}

.side-index a em {
  font-style: normal;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .35s, transform .35s var(--ease-out);
}

.side-index a:hover,
.side-index a.is-active {
  color: var(--ink);
  padding-left: 6px;
}

.side-index a:hover em,
.side-index a.is-active em {
  opacity: 1;
  transform: translateX(0);
}

.side-index a.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .side-index {
    display: none;
  }
}

/* ============================================================
   3D CANVAS
   ============================================================ */
#webgl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
nav#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad-x);
  background: linear-gradient(180deg, rgba(239, 234, 224, .92), rgba(239, 234, 224, .0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}

nav#mainNav.visible {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.nav-logo .logo-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-logo .logo-word {
  font-style: italic;
}

.nav-meta {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-meta .nav-sep {
  width: 28px;
  height: 1px;
  background: var(--line);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .75;
  transition: opacity .3s, color .3s;
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  transition: background .3s, color .3s, transform .3s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-cta-arrow {
  font-size: 12px;
}

@media (max-width: 880px) {
  nav#mainNav {
    grid-template-columns: auto auto;
  }

  .nav-meta {
    display: none;
  }

  .nav-link {
    display: none;
  }
}

/* ============================================================
   GENERAL — content above canvas
   ============================================================ */
main#scroll-root {
  position: relative;
  z-index: 2;
}

.act {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.act-head {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(40px, 6vh, 64px);
}

.act-head .chapter {
  color: var(--accent);
}

.act-head .chapter-rule {
  flex: 0 0 auto;
  width: 60px;
  height: 1px;
  background: var(--ink);
}

.act-head .chapter-name {
  color: var(--ink);
}

.chapter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter-name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

.ctr-heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 110px);
  line-height: .98;
  letter-spacing: -0.025em;
  text-align: left;
  margin: 0 0 clamp(40px, 6vh, 80px);
  max-width: 18ch;
}

.ctr-heading em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   §0 HERO
   ============================================================ */
.act-hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: none;
}

/* split body: left text | right 3D eyes */
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 88px;
  /* clear nav */
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3.5vh, 40px);
  padding: clamp(40px, 6vh, 80px) 0;
}

.hero-right {
  /* 3D canvas floats here — purely a spacing column */
}

/* eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}

.tag-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-tag-r {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: .6;
}

/* title */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: .92;
}

.line-meet {
  display: block;
  font-size: clamp(52px, 10vw, 140px);
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
}

.line-homie {
  display: block;
  font-size: clamp(64px, 13vw, 180px);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* body copy */
.hero-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-2);
  max-width: 38ch;
  font-weight: 400;
  line-height: 1.6;
}

/* actions row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 8px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 100px;
  transition: background .3s, transform .3s var(--ease-out);
}

.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

/* bottom bar */
.hero-bar {
  border-top: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.hero-stats>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
  padding-left: 24px;
}

.hero-stats>div:first-child {
  padding-left: 0;
}

.hero-stats>div:last-child {
  border-right: none;
}

.hero-stats b {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-stats span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* marquee */
.hero-marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 11px 0;
  animation: marquee 32s linear infinite;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.marquee-track span {
  display: inline-block;
}

.marquee-track span:nth-child(even) {
  color: var(--accent);
}

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

.dot-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

/* responsive */
@media (max-width: 880px) {
  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stats>div {
    flex: 1 1 40%;
  }
}

/* ============================================================
   §1 PERSONALITY
   ============================================================ */
.personality-stage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.big-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 7.4vw, 120px);
  line-height: .96;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: .04em;
}

.big-quote .bq-1 {
  color: var(--ink);
}

.big-quote .bq-2 {
  font-style: italic;
  font-weight: 500;
  padding-left: 1.4em;
  color: var(--accent);
}

.big-quote .bq-3 {
  color: var(--ink);
  padding-left: .4em;
}

.personality-side {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lede {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.6;
}

.dropcap {
  float: left;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 4em;
  line-height: .85;
  padding: .05em .12em 0 0;
  color: var(--accent);
}

.expression-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.expr {
  aspect-ratio: 1;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), background .3s;
  padding: 10px 8px 8px;
  gap: 6px;
  cursor: pointer;
}

.expr:hover {
  transform: translateY(-4px) scale(1.03);
  background: var(--accent);
}

.expr img {
  width: 72%;
  height: auto;
  object-fit: contain;
  flex: 1;
  min-height: 0;
  display: block;
}

.expr i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .55;
  flex-shrink: 0;
}

.expr:hover i {
  opacity: 1;
}

.micro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.micro-stats>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.micro-stats b {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.micro-stats span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 880px) {
  .personality-stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .big-quote .bq-2 {
    padding-left: .6em;
  }
}

/* ============================================================
   §2 BRAIN (pinned)
   ============================================================ */
.act-brain {
  padding: 0;
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}

.act-brain .chapter-name {
  color: var(--paper);
}

.act-brain .act-head .chapter-rule {
  background: var(--paper);
}

.brain-pin {
  min-height: 100vh;
  padding: clamp(80px, 14vh, 160px) var(--pad-x);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(40px, 6vh, 64px);
  max-width: var(--max);
  margin: 0 auto;
}

.brain-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brain-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5.8vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  color: var(--paper);
}

.brain-head h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.brain-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.chat-card {
  background: rgba(239, 234, 224, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(239, 234, 224, .14);
  border-radius: 6px;
  overflow: hidden;
}

.chat-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(239, 234, 224, .12);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.chat-card-bar .dot-r,
.chat-card-bar .dot-y,
.chat-card-bar .dot-g {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chat-card-bar .dot-r {
  background: #FF5F57;
}

.chat-card-bar .dot-y {
  background: #FEBC2E;
}

.chat-card-bar .dot-g {
  background: #28C840;
}

.chat-title {
  margin-left: auto;
}

.chat-stream {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 460px;
  overflow: hidden;
}

.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
}

.bubble.user {
  align-self: flex-end;
  background: var(--paper);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.bubble.homie {
  align-self: flex-start;
  background: var(--accent);
  color: var(--paper);
  border-bottom-left-radius: 4px;
}

.vault-card {
  background: rgba(239, 234, 224, .04);
  border: 1px solid rgba(239, 234, 224, .14);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vault-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
}

.vault-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--paper);
}

.vault-card p {
  color: var(--paper);
  opacity: .75;
  font-size: 14.5px;
}

.vault-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.vault-tags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid rgba(239, 234, 224, .18);
  border-radius: 100px;
  color: var(--paper);
  opacity: .8;
}

@media (max-width: 880px) {
  .brain-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   §3 COMPANION — feature gallery
   ============================================================ */
.feature-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feat-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out), background .4s;
}

.feat-card:hover {
  transform: translateY(-4px);
  background: var(--ink);
  color: var(--paper);
}

.feat-card:hover .feat-meta {
  color: var(--paper);
}

.feat-card:hover .feat-meta span:first-child {
  color: var(--accent);
}

.feat-card:hover p {
  color: rgba(239, 234, 224, .8);
}

.feat-card {
  overflow: hidden;
}

.feat-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px;
  height: calc(100% + 100px);
  object-fit: cover;
  will-change: transform;
}

.feat-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

.feat-meta span:first-child {
  color: var(--accent);
}

.feat-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.015em;
}

.feat-card p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.feat-1 {
  grid-column: span 7;
}

.feat-2 {
  grid-column: span 5;
}

.feat-3 {
  grid-column: span 5;
}

.feat-4 {
  grid-column: span 7;
}

@media (max-width: 880px) {
  .feature-stage {
    grid-template-columns: 1fr;
  }

  .feat-1,
  .feat-2,
  .feat-3,
  .feat-4 {
    grid-column: 1;
  }
}

/* ============================================================
   §4 SHOWCASE — cinematic card reveal
   ============================================================ */
.act-showcase {
  padding: 0;
  max-width: none;
  height: 100vh;
  overflow: hidden;
}

.showcase-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
}

.showcase-text {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  mix-blend-mode: difference;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1em;
  pointer-events: none;
  will-change: transform;
}

/* hug the card edges — card is centered, ~22vw wide, so edges at ~39vw from each side */
.showcase-left {
  right: 41%;
  text-align: right;
  align-items: flex-end;
}

.showcase-right {
  left: 41%;
  align-items: flex-start;
}

.showcase-text span:last-child {
  font-style: italic;
}

/* card: full-viewport, clip-path reveals 9:16 portrait in center */
/* inset(10% 39%) → ~80vh tall × 22vw wide at most viewports */
.showcase-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(50% 50% round 0px);
}

.showcase-video {
  position: absolute;
  /* center a 9:16 column in the viewport */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .act-showcase {
    height: 100svh;
  }

  .showcase-wrap {
    height: 100svh;
  }

  /* on mobile texts sit top/bottom, absolutely placed, full width centred */
  .showcase-text {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    height: auto;
    text-align: center;
    align-items: center;
    font-size: clamp(26px, 7vw, 42px);
  }

  .showcase-left {
    top: 9vh;
    right: 0;
    text-align: center;
    align-items: center;
  }

  .showcase-right {
    bottom: 9vh;
    left: 0;
    text-align: center;
    align-items: center;
  }

  /* card fills most of the screen in portrait */
  .showcase-card {
    clip-path: inset(50% 50% round 0px);
  }

  /* video fills card height, width crops naturally */
  .showcase-video {
    width: 100%;
    height: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    min-height: 100%;
    object-fit: cover;
  }
}

/* ============================================================
   §5 CRAFT
   ============================================================ */
.act-craft {
  padding-top: 0;
}

.craft-pin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 4vw, 80px);
  align-items: center;
  padding: clamp(60px, 10vh, 120px) 0;
}

.craft-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.craft-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.craft-head h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.craft-head p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 38ch;
  line-height: 1.6;
}

.craft-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.craft-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--ink);
}

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

.craft-list li b {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}

.craft-img-area {
  position: relative;
  aspect-ratio: 1;
  background: transparent;
}

.craft-img-area img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(20, 17, 13, .14));
  will-change: transform;
}

.craft-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ann-line {
  stroke: var(--accent);
  stroke-width: .25;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  vector-effect: non-scaling-stroke;
  opacity: .85;
}

.ann {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}

.ann b {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ann span {
  color: var(--mute);
  font-size: 10px;
}

.ann-1 {
  top: 5%;
  right: 4%;
}

.ann-2 {
  top: 30%;
  left: 4%;
}

.ann-3 {
  top: 50%;
  right: 4%;
}

.ann-4 {
  top: 70%;
  left: 4%;
}

.ann-5 {
  bottom: 4%;
  right: 8%;
}

@media (max-width: 980px) {
  .craft-pin {
    grid-template-columns: 1fr;
  }

  .ann {
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* ============================================================
   §5 COLORWAYS
   ============================================================ */
.act-colorways {
  overflow: hidden;
}

.colorways-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(36px, 5vh, 56px);
  flex-wrap: wrap;
}

.colorways-heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 82px);
  line-height: .96;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.colorways-heading em {
  font-style: italic;
  color: var(--accent);
}

.colorways-note {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.65;
  max-width: 34ch;
  font-style: italic;
  text-align: right;
}

/* 4-image grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.color-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: default;
}

.color-card-img {
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out);
  position: relative;
}

.color-card-img img,
.color-card-img>* {
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  position: absolute;
  top: -40px;
  will-change: transform;
}

.color-card:hover .color-card-img {
  transform: translateY(-6px);
}

.color-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 2px;
}

.color-card-info b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.color-card-info em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 880px) {
  .color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .colorways-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .colorways-note {
    text-align: left;
  }
}

/* ============================================================
   §6 MANIFESTO
   ============================================================ */
.act-manifesto {
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.manifesto-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.manifesto-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
  text-wrap: balance;
}

.manifesto-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.manifesto-sign {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.sign-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.sign-block b {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
  letter-spacing: -.01em;
  text-transform: none;
  margin: 4px 0;
}

.sign-block em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--mute-2);
}

.sign-stamp {
  width: 130px;
  height: 130px;
  color: var(--accent);
  animation: spin 24s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .manifesto-sign {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   §6 PRE-ORDER
   ============================================================ */
.preorder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.preorder-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.preorder-info h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.preorder-info h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 8px 0;
}

.price {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.price-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  color: var(--ink);
  margin-top: 4px;
}

.spec-list li {
  padding: 12px 0 12px 24px;
  position: relative;
  border-top: 1px dashed var(--line);
}

.spec-list li:last-child {
  border-bottom: 1px dashed var(--line);
}

.spec-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* form */
.order-form {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 8px 8px 0 var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field>span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

.field>span i {
  color: var(--mute-2);
  font-style: normal;
}

.field>span abbr {
  color: var(--accent);
  text-decoration: none;
  margin-left: 2px;
}

.field input,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 400 15px var(--f-body);
  padding: 12px 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--mute-2);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 74, 28, .12);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

/* inline field error */
.field-error {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--signal);
  min-height: 14px;
  display: block;
}

/* error state on field */
.field.has-error>span:first-child {
  color: var(--signal);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(196, 50, 27, .10);
}

.field.has-error .color-picker {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
  border-radius: 4px;
}

/* color variant picker */
.color-picker {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.cp-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.cp-opt input[type="radio"] {
  display: none;
}

.cp-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c, #ccc);
  border: 2px solid var(--cb, #aaa);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
  display: block;
}

.cp-opt:hover .cp-swatch {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.cp-opt input:checked~.cp-swatch,
.cp-opt input:checked+.cp-swatch {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 74, 28, .22), 0 4px 12px rgba(0, 0, 0, .16);
  transform: scale(1.1);
}

.cp-name {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color .2s;
}

.cp-opt input:checked~.cp-name {
  color: var(--accent);
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  padding: 6px;
  width: fit-content;
}

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--paper-2);
  font-size: 18px;
  transition: background .2s, color .2s;
}

.qty button:hover {
  background: var(--accent);
  color: var(--paper);
}

.qty span {
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.submit-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  padding: 18px 22px;
  border-radius: 4px;
  margin-top: 6px;
  transition: transform .25s var(--ease-out), background .25s, opacity .2s;
  cursor: pointer;
  width: 100%;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading .btn-label::after {
  content: '…';
}

.submit-btn .btn-price {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .1em;
  font-style: normal;
  background: rgba(239, 234, 224, .12);
  padding: 4px 10px;
  border-radius: 3px;
  transition: opacity .2s;
  white-space: nowrap;
}

.submit-btn.loading .btn-price {
  opacity: 0;
}

.form-error {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--paper);
  padding: 11px 14px;
  background: var(--signal);
  border-radius: 4px;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .preorder-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--ink);
  padding: 60px var(--pad-x) 40px;
  max-width: var(--max);
  margin: 80px auto 0;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 60px;
  gap: 40px;
}

.foot-mark {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(56px, 10vw, 160px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.foot-mark sup {
  font-size: .25em;
  vertical-align: super;
  color: var(--accent);
  font-style: normal;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink);
  opacity: 0.7;
  transition: opacity .2s;
}

.foot-brand:hover {
  opacity: 1;
}

.foot-brand .logo-img {
  height: 28px;
}

.foot-tag {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  text-align: right;
}

.foot-tag em {
  font-style: italic;
  color: var(--accent);
}

.foot-bot {
  display: flex;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-bot a:hover {
  color: var(--accent);
}

/* ============================================================
   SUCCESS OVERLAY
   ============================================================ */
.success {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(20, 17, 13, .85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
}

.success[hidden] {
  display: none !important;
}

.success.show {
  opacity: 1;
  pointer-events: all;
}

.success-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 48px 36px;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  box-shadow: 10px 10px 0 var(--accent);
}

.success-eyes {
  display: flex;
  gap: 18px;
}

.success-eyes span {
  width: 16px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1.6s infinite;
}

.success-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.success-card p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.success-card button {
  margin-top: 12px;
  padding: 12px 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background .25s, transform .25s var(--ease-out);
}

.success-card button:hover {
  background: var(--accent);
  transform: scale(1.04);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track,
  .sign-stamp {
    animation: none;
  }
}