:root {
  color-scheme: dark;
  --black: #070707;
  --white: #f3f3ee;
  --muted: #b3b5ad;
  --acid: #d7ff39;
  --line: #2c2d28;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--white); background: var(--black); font: 1rem/1.7 "Be Vietnam Pro", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
section[id] { scroll-margin-top: 7rem; }
.section-pad, footer { padding-inline: max(5vw, calc((100% - 1440px)/2)); }
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem;
  padding: .9rem 5vw; background: #070707ed; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.brand, nav { display: flex; align-items: center; gap: 1rem; }
.brand, .eyebrow, .scene-header, .case-main > p:first-child, .note > span { font: 500 .85rem/1.4 var(--mono); letter-spacing: .07em; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; background: var(--acid); color: #080808; }
nav, .availability { font-size: .875rem; }
nav a:hover, .availability:hover { color: var(--acid); }
.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: .85fr 1.15fr; gap: 2vw;
  min-height: min(820px, calc(100svh - 65px)); padding-block: clamp(2.8rem, 7vw, 7rem);
  background: radial-gradient(ellipse at 75% 50%, #222713 0, #0a0c08 35%, #070707 69%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10vw - 1px), #ffffff0b calc(10vw - 1px) 10vw);
}
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 800 clamp(4rem, 9vw, 10rem)/.79 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.025em; margin-bottom: 1.65rem; }
h1 span { color: var(--acid); }
h2 { font-size: clamp(2.15rem, 5vw, 5.25rem); letter-spacing: -.065em; line-height: 1.03; margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.22; margin-bottom: .7rem; }
.eyebrow, .note > span, .case-main > p:first-child { color: var(--acid); }
.hero-lede, .section-head > p:last-child, .work-description, .note p, .contact p { color: var(--muted); }
.hero-lede { max-width: 37ch; font-size: clamp(1rem, 1.45vw, 1.25rem); }
.hero-lede strong { color: var(--white); }
.hero-actions, .channel-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn { padding: .7rem 1rem; border: 1px solid #55594a; font-weight: 700; font-size: .9rem; }
.primary { color: var(--black); background: var(--acid); border-color: var(--acid); }
.ghost:hover { border-color: var(--acid); }
.scene { min-width: 0; margin: 0; }
.scene-header { display: flex; justify-content: space-between; align-items: center; color: var(--acid); }
.scene-hint { margin: .3rem 0 0; color: var(--muted); font-size: .875rem; }
#channel-scene { display: block; width: 100%; height: clamp(19rem, 43vw, 41rem); cursor: grab; touch-action: pan-y; }
#channel-scene:active { cursor: grabbing; }
figcaption { border-top: 1px solid var(--line); padding-top: .8rem; }
figcaption p { margin: 0 0 .6rem; }
.scene button { background: #0d100a; border: 1px solid #626957; padding: .38rem .65rem; color: var(--white); font-size: .875rem; }
.scene button[aria-pressed=true] { background: var(--acid); border-color: var(--acid); color: var(--black); }
.system, .work, .notes, .contact { padding-block: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.system .section-head { max-width: 760px; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case, .note { background: #10110e; padding: clamp(1.25rem, 3vw, 2.5rem); position: relative; }
.case { display: flex; flex-direction: column; --object-color: #d7ff39; }
.case-planning { grid-column: 1 / -1; }
.case:nth-child(3) { --object-color: #81ebff; }
.case:nth-child(4) { --object-color: #bfacff; }
.case:nth-child(5) { --object-color: #ffc280; }
@media (min-width: 801px) {
  .case-planning {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0 2rem;
  }
  .case-planning .object { grid-row: span 2; margin-bottom: 0; }
  .case-planning .mock-model { width: min(82%, 22rem); }
}
.case-result { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.case-result small { display: block; font: .85rem var(--mono); color: var(--muted); }
.model-intro { color: var(--muted); }
.object {
  min-height: 14rem;
  display: grid;
  place-items: center;
  perspective: 650px;
  margin-bottom: 1rem;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--object-color) 14%, transparent), transparent 72%);
}
.mock-model {
  width: min(82%, 17rem);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(-13deg);
}
.mock-shell, .mock-float {
  border: 1px solid color-mix(in srgb, var(--object-color) 58%, #20251f);
  border-radius: .55rem;
  background: #171b17;
  box-shadow: 0 .8rem 1.6rem #0009;
}
.mock-shell { display: grid; gap: .35rem; padding: .75rem; }
.mock-shell small { color: var(--object-color); font: 500 .75rem var(--mono); }
.mock-shell b { color: #f3f3ee; font-size: .95rem; line-height: 1.25; }
.mock-shell span { display: block; color: #c9cec3; font-size: .79rem; }
.mock-photo { border-radius: .3rem; min-height: 3.25rem; }
.room {
  background: linear-gradient(0deg, #32342b 22%, transparent 22%),
    linear-gradient(0deg, #c4b68f 49%, transparent 49%) center / 70% 78% no-repeat,
    linear-gradient(135deg, #534734, #9b9277 58%, #474e3c);
}
.creative {
  display: grid; place-items: center;
  background: linear-gradient(130deg, #18344a, #246275 55%, #2d354a);
}
.creative span { color: white; }
.mock-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: .45rem; }
.mock-search { background: #282b24; border-radius: .35rem; padding: .3rem .45rem; font-size: .8rem; }
.mock-float {
  width: max-content;
  max-width: 100%;
  position: relative;
  margin: -.2rem 0 0 auto;
  padding: .32rem .5rem;
  color: #10130a;
  background: var(--object-color);
  font: 600 .75rem/1.4 "Be Vietnam Pro", system-ui, sans-serif;
  transform: translateZ(40px) translateX(.45rem);
}
.case, .note { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .2s ease; }
.case:hover, .note:hover { z-index: 1; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.note h3 { margin-top: .75rem; }
.contact { text-align: center; }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-block: 1.4rem; }
footer p { margin: 0; }
@keyframes inspect-model {
  50% { transform: rotateX(-7deg) rotateY(12deg) translateY(-5px); }
}
[data-motion-paused] .case[data-moving] .mock-model { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .case[data-moving] .mock-model { animation: inspect-model 7s ease-in-out infinite; }
  .case:nth-child(2n)[data-moving] .mock-model { animation-delay: -2s; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: clamp(4rem, 14vw, 7rem); }
  #channel-scene { height: clamp(18rem, 64vw, 33rem); }
  .note-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  nav { order: 1; width: 100%; flex-wrap: wrap; }
  .case-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case, .note { transform: none; transition: none; }
}
