:root {
  --ink: #16100E;
  --ink-2: #1E1613;
  --ink-3: #2A211D;
  --bone: #FBF7F4;
  --coral: #F4543A;
  --med: #4C93F0;
  --paper: #FFFFFF;
  --sub: rgba(251, 247, 244, 0.58);
  --mute: rgba(251, 247, 244, 0.34);
  --rule: rgba(251, 247, 244, 0.12);
  --maxw: 1240px;
  --gutter: clamp(22px, 5vw, 76px);
  font-family: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}
a { color: var(--coral); text-decoration: none; }
a:hover { color: #ff7157; }
::selection { background: var(--coral); color: #fff; }

.mono { font-family: 'JetBrains Mono', monospace; }
em { font-style: normal; color: var(--coral); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-160%);
  background: var(--bone); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; transition: transform .2s;
}
.skip-link:focus { transform: none; color: var(--ink); outline: 2px solid var(--coral); outline-offset: 2px; }

/* ——— scroll container / scenes ——— */
.scroll {
  height: 100vh; height: 100svh; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y proximity; scroll-behavior: smooth;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.scene {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  padding: 118px var(--gutter) 90px;
  position: relative;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--coral);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--coral); display: inline-block; }

/* ——— nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(22, 16, 14, 0.72); backdrop-filter: saturate(150%) blur(14px);
  padding-top: 15px; padding-bottom: 15px;
  border-bottom: 1px solid var(--rule);
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--bone); }
.brand b { color: var(--coral); font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--sub); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--bone); }
.lang {
  display: inline-flex; border: 1px solid var(--rule); border-radius: 999px;
  padding: 3px; gap: 2px; background: rgba(251, 247, 244, 0.03);
}
.lang a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  color: var(--sub); cursor: pointer;
  padding: 5px 11px; border-radius: 999px; transition: all .2s;
}
.lang a:hover { color: var(--bone); }
.lang a[aria-current="true"] { background: var(--bone); color: var(--ink); }

/* ——— hero ——— */
#hero { padding-top: 0; padding-bottom: 0; }
#bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .6s ease; }
#bg.ready { opacity: 1; }
/* soften the bottom edge of the hero so the canvas fades into the page */
#hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero-vign {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(244, 84, 58, 0.16), transparent 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(22, 16, 14, 0.9), transparent 60%),
    linear-gradient(180deg, rgba(22, 16, 14, 0.55) 0%, rgba(22, 16, 14, 0.15) 30%, rgba(22, 16, 14, 0.35) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 30px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
h1.hero {
  font-size: clamp(40px, 7.4vw, 108px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.98; margin: 0; max-width: 15ch; text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--sub);
  max-width: 56ch; margin-top: 30px; text-wrap: pretty;
}
.scroll-cue {
  position: absolute; bottom: 34px; left: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute);
}
.scroll-cue .line {
  width: 44px; height: 1px; background: var(--mute); position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0; background: var(--coral);
  transform: translateX(-100%); animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 55% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

/* ——— about ——— */
#about { background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 96px); align-items: end; }
h2.big {
  font-size: clamp(30px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.02; margin: 22px 0 0; text-wrap: balance;
}
.about-body p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.62; color: var(--sub); margin: 0 0 20px; max-width: 46ch; }
.about-body p:last-child { margin-bottom: 0; }

/* ——— work (editorial list, no cards) ——— */
#work { background: var(--ink-2); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(30px, 5vw, 60px); }
.work-list { border-top: 1px solid var(--rule); }
.work-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px; align-items: baseline;
  padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule);
  transition: padding-left .35s cubic-bezier(.2, .7, .2, 1), background .3s;
  position: relative;
}
.work-row .rn { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--mute); letter-spacing: 0.08em; }
.work-row .rt { font-size: clamp(24px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; transition: color .3s; }
.work-row .rd { font-size: clamp(15px, 1.25vw, 18px); color: var(--sub); line-height: 1.55; }
.work-row .arrow {
  position: absolute; right: 0; top: 50%; transform: translate(10px, -50%); opacity: 0;
  color: var(--coral); font-size: 26px; transition: all .35s cubic-bezier(.2, .7, .2, 1);
}
.work-row:hover { padding-left: 20px; background: linear-gradient(90deg, rgba(244, 84, 58, 0.05), transparent 60%); }
.work-row:hover .rt { color: var(--coral); }
.work-row:hover .arrow { opacity: 1; transform: translate(0, -50%); }

/* ——— products ——— */
#products { background: var(--ink); text-align: center; align-items: center; }
#products .wrap { max-width: 900px; }
.prod-h { font-size: clamp(30px, 5vw, 66px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; margin: 22px auto 0; max-width: 16ch; }
.prod-lede { font-size: clamp(16px, 1.5vw, 20px); color: var(--sub); margin: 26px auto 0; max-width: 44ch; line-height: 1.6; }
.prod-worlds { display: flex; gap: 40px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.world-chip { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--sub); }
.world-chip .d { width: 10px; height: 10px; border-radius: 50%; }

/* product world panels */
.world {
  min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  display: flex; align-items: center;
  padding: 118px var(--gutter) 90px; position: relative; overflow: hidden;
}
.world .wrap { position: relative; z-index: 2; }
.world .glow {
  position: absolute; z-index: 0; width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.world.med { background: #10161F; }
.world.med .glow { background: radial-gradient(circle, rgba(76, 147, 240, 0.5), transparent 70%); top: -20%; right: -15%; }
.world.biz { background: #1B1210; }
.world.biz .glow { background: radial-gradient(circle, rgba(244, 84, 58, 0.45), transparent 70%); bottom: -25%; left: -12%; }
.world-index { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.2em; color: var(--mute); }
.world-name {
  font-size: clamp(38px, 8vw, 118px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.94;
  margin: 18px 0 0;
}
.world-name span { color: var(--bone); }
.world.med .world-name b { color: var(--med); font-weight: 800; }
.world.biz .world-name b { color: var(--coral); font-weight: 800; }
.world-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sub); margin-top: 22px;
}
.world-desc { font-size: clamp(16px, 1.5vw, 21px); line-height: 1.55; color: var(--sub); max-width: 44ch; margin-top: 18px; }
.status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 30px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--rule);
}
.status .d { width: 8px; height: 8px; border-radius: 50%; }
.world.med .status { color: #bcd8ff; border-color: rgba(76, 147, 240, 0.4); background: rgba(76, 147, 240, 0.1); }
.world.med .status .d { background: var(--med); box-shadow: 0 0 0 4px rgba(76, 147, 240, 0.2); }
.world.biz .status { color: #ffc9bd; border-color: rgba(244, 84, 58, 0.4); background: rgba(244, 84, 58, 0.1); }
.world.biz .status .d { background: var(--coral); box-shadow: 0 0 0 4px rgba(244, 84, 58, 0.2); }
.world-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; font-weight: 700; }
.world-link .arr { transition: transform .25s ease; }
.world-link:hover .arr { transform: translateX(4px); }
.world.med .world-link { color: #bcd8ff; }
.world.med .world-link:hover { color: #e2efff; }
.world.biz .world-link { color: #ffc9bd; }
.world.biz .world-link:hover { color: #ffe0d8; }
.world-mark {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 8%;
  font-size: clamp(120px, 30vw, 460px); font-weight: 800; line-height: 0.7;
  letter-spacing: -0.06em; color: rgba(251, 247, 244, 0.03); user-select: none; pointer-events: none;
}

/* ——— closing ——— */
.scene.footer,
#closing { background: var(--ink); text-align: center; align-items: center; }
.close-h { font-size: clamp(34px, 6.6vw, 96px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0 auto; max-width: 16ch; }
.close-legal { font-size: clamp(15px, 1.4vw, 18px); color: var(--sub); margin-top: 30px; }
.close-foot {
  position: absolute; bottom: 30px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em;
  color: rgba(251, 247, 244, 0.55); border-top: 1px solid var(--rule); padding-top: 20px;
}

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; }
[data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line::after { animation: none; }
}

/* ——— responsive: drop full-viewport below 1024 ——— */
@media (max-width: 1024px) {
  .scroll { scroll-snap-type: none; height: auto; overflow: visible; }
  .scene, .world { min-height: auto; scroll-snap-align: none; padding-top: 108px; padding-bottom: 72px; }
  #hero { min-height: 100svh; padding-top: 128px; justify-content: center; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .work-row { grid-template-columns: 54px 1fr; }
  .work-row .rd { grid-column: 2; margin-top: 8px; }
  .scroll-cue { position: static; margin-top: 42px; }
  .scene.footer { padding-top: 64px; padding-bottom: 36px; }
  .close-foot { position: static; margin-top: 48px; }
  .scene.footer .close-foot {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
  }
  .world-mark { display: none; }
}
@media (max-width: 560px) {
  .brand { font-size: 18px; }
  .prod-worlds { gap: 22px; }
}
