/* The Desk — forest night, phone first, cinematic. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--forest); color: var(--ivory); }
html.reduce { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
}
body.titles-lock { overflow: hidden; height: 100dvh; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--forest);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 82% 12%, rgba(138, 240, 184, .16), transparent 46%),
    radial-gradient(70% 60% at 70% 30%, rgba(61, 154, 108, .28), transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(2, 8, 5, .85), transparent 50%),
    linear-gradient(180deg, var(--void) 0%, var(--forest) 40%, var(--bottle) 100%);
}
#light {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.letterbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.letterbox i {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--letterbox);
  background: var(--void);
  transition: height .9s var(--ease);
}
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: var(--glow);
  transform-origin: 0 50%;
  animation: prog auto linear;
  animation-timeline: scroll();
}
@keyframes prog { from { width: 0 } to { width: 100% } }
@supports not (animation-timeline: scroll()) {
  .progress { display: none; }
}

.skip {
  position: absolute;
  left: .8rem;
  top: -4rem;
  z-index: 100;
  background: var(--ivory);
  color: var(--ink);
  padding: .5rem .8rem;
}
.skip:focus { top: .8rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 1rem 0;
  background: var(--void);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.mark {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 600;
}
.mark svg { color: var(--brass-light); }
.desk-nav { display: none; gap: 1.15rem; margin-left: auto; }
.desk-nav a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desk-nav a:hover, .desk-nav a:focus-visible { color: var(--ivory); }
.top-actions { margin-left: auto; display: flex; gap: .35rem; }
.icon-btn, .text-btn, .sheet-close, button[type="submit"] {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
.icon-btn {
  min-height: 44px;
  padding: 0 .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory-dim);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.icon-btn[aria-pressed="true"] { color: var(--glow); border-color: color-mix(in srgb, var(--glow) 40%, transparent); }
.notes-btn { color: var(--ivory); }
.text-btn {
  min-height: 44px;
  padding: 0 .2rem;
  color: var(--glow);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .72rem;
}

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  width: 100vw;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--void) 88%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 44px;
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bottom-nav a[aria-current="true"] { color: var(--ivory); }
.bottom-nav .ico {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.bottom-nav a[aria-current="true"] .ico { opacity: 1; background: var(--glow); }

.sheet {
  width: min(100%, 520px);
  max-height: 88dvh;
  margin: auto auto 0;
  border: 0;
  padding: .4rem 1.2rem 2rem;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 1.2rem 1.2rem 0 0;
}
.sheet::backdrop { background: rgba(2, 8, 5, .62); }
.sheet-handle {
  width: 42px; height: 4px;
  margin: .4rem auto .8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sheet h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; margin: 0; }
.sheet h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 1.4rem 0 .5rem; }
.sheet-lead, .sheet p, .sheet li { color: color-mix(in srgb, var(--ink) 78%, #3a4a40); }
.sheet-close { min-height: 44px; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.need-list { margin: 0; padding-left: 1.1rem; }
.need-list li { margin: .4rem 0; }
.toggles { display: grid; gap: .55rem; margin: 1rem 0; }
.switch { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; }
.switch em { font-style: normal; opacity: .6; }
.phone-only { display: flex; }

.titles {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem 1.4rem;
  background: var(--void);
  color: var(--ivory);
}
.titles.done { display: none; }
.titles-time {
  margin: 0 0 .4rem;
  font-family: var(--font-mono);
  letter-spacing: .28em;
  color: var(--glow);
  font-size: .78rem;
}
.titles-kicker, .titles-role {
  margin: 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--ivory-dim);
}
.titles-name {
  margin: .4rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 16vw, 8rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.titles-name em { font-style: italic; font-weight: 400; color: var(--brass-light); }
.titles-line {
  max-width: 22rem;
  margin: 1.2rem auto 0;
  color: var(--mist);
}
.skip-titles {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + .8rem);
  right: 1rem;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ivory-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.wrap, main, .case, .case-viz, .pipeline, .orbit-stage, .concert { min-width: 0; max-width: 100%; }
.pipeline { overflow: hidden; }

.hero {
  min-height: calc(100dvh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.6rem 0 2.2rem;
  gap: 1rem;
}
.hero-copy { position: relative; z-index: 1; }
.slate {
  margin: 0 0 .8rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--glow);
}
.slate span { color: var(--brass); margin-right: .5rem; }
.slate.ink, .slate.ink span { color: color-mix(in srgb, var(--ink) 70%, #3d5a48); }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.1rem, 20vw, 11rem);
  line-height: .84;
  letter-spacing: -.045em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block;
  animation: rise 1.2s var(--ease) both;
}
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero .italic { font-style: italic; font-weight: 400; color: var(--brass-light); }
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.role-line {
  margin: 1.3rem 0 0;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--ivory-dim);
  max-width: 22rem;
  line-height: 1.45;
}
.role-sub {
  margin: .35rem 0 0;
  font-size: .95rem;
  color: var(--ivory-dim);
}
.lede {
  max-width: 26rem;
  margin: .8rem 0 0;
  font-size: 1.18rem;
  color: var(--mist);
}
.links-row { margin: 1.4rem 0 0; }
.links-row a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: .15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.portrait {
  order: -1;
  margin: 0 auto;
  width: min(62vw, 250px);
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 0 42px rgba(61, 154, 108, .38));
}
.portrait-stage {
  position: relative;
  overflow: visible;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  /* Asymmetric fade: keep the face and raised hand sharp; melt the hillside and stream */
  mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 8% 6%;
  pointer-events: none;
  border-radius: 40% 40% 32% 32%;
  background: radial-gradient(ellipse at 38% 28%, rgba(138, 240, 184, .16), transparent 58%);
  mix-blend-mode: soft-light;
  animation: portrait-sweep 14s var(--ease) infinite;
}
@keyframes portrait-sweep {
  0%, 100% { opacity: .55; transform: translate3d(0,0,0); }
  50% { opacity: 1; transform: translate3d(2%, 1%, 0); }
}

.scene, .case, .hero { scroll-margin-top: 72px; }
.scene { padding: 4.5rem 0 1rem; }
.scene-tight { padding: 2.4rem 0; }
.scene-full { padding-bottom: 2rem; }
.scene h2, .case h3, .paper h2, .contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0 0 .8rem;
}
.scene h2 { font-size: clamp(2.2rem, 8vw, 4.6rem); max-width: 16ch; }
.scene-lead {
  max-width: 36ch;
  margin: 0 0 1.8rem;
  font-size: 1.12rem;
  color: var(--mist);
}
.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.beats li {
  background: color-mix(in srgb, var(--bottle) 80%, transparent);
  padding: 1.15rem 1rem;
  display: grid;
  gap: .25rem;
}
.beats b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
}
.beats span { color: var(--ivory-dim); font-size: .92rem; }

.orbit-stage { margin-top: .4rem; }
.orbit {
  position: relative;
  height: min(78vw, 420px);
  min-height: 300px;
  overflow: hidden;
}
.orbit .node {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--void) 70%, transparent);
  color: var(--ivory);
  font: inherit;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
}
.orbit .node[aria-pressed="true"], .orbit .node:focus-visible {
  border-color: var(--glow);
  color: var(--glow);
  box-shadow: 0 0 24px rgba(138, 240, 184, .25);
}
.orbit .hub {
  left: 50%; top: 50%;
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
  letter-spacing: .08em;
  z-index: 3;
}
.orbit .hub[aria-pressed="true"] { color: var(--ink); box-shadow: 0 0 30px rgba(243, 241, 234, .3); }
.orbit svg.lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.orbit-detail {
  min-height: 4.6rem;
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--mist);
}
.orbit-detail h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ivory);
}
.orbit-hint { margin: 0; color: var(--ivory-dim); font-size: .95rem; }

.work-head { padding-bottom: 0; }
.case {
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.4rem;
}
.case h3 { font-size: clamp(1.8rem, 6.5vw, 3.2rem); max-width: 16ch; }
.case p { margin: 0 0 .7rem; color: var(--mist); max-width: 40ch; }
.case .result { color: var(--ivory-dim); font-size: .95rem; letter-spacing: .02em; }
.pipe-nodes {
  list-style: none;
  margin: 0;
  padding: 0 0 1.2rem;
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.pipe-nodes li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 7.4rem;
  padding: 1rem .9rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bottle) 70%, transparent);
  position: relative;
}
.pipe-nodes li::after {
  content: "";
  position: absolute;
  right: -.5rem;
  top: 50%;
  width: .5rem;
  height: 1px;
  background: var(--line);
}
.pipe-nodes li:last-child::after { display: none; }
.pipe-nodes li strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.pipe-nodes li span { color: var(--ivory-dim); font-size: .82rem; }
.pipe-nodes li.live {
  border-color: var(--glow);
  box-shadow: 0 0 22px rgba(138, 240, 184, .2);
}
.pipe-nodes li.sent { outline: 1px solid var(--brass); }
.pipe-nodes li.sent::before {
  content: "SENT";
  position: absolute;
  top: .3rem;
  right: .4rem;
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--brass);
}
.pipe-actions { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.pipe-status { color: var(--glow); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

.device {
  background: linear-gradient(180deg, #0E2A1E, #07160F);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 30px 80px rgba(2, 8, 5, .45), 0 0 60px rgba(61, 154, 108, .12);
  font-family: var(--font-mono);
  font-size: .86rem;
  transform-origin: 50% 80%;
}
.device .stamp, .concert .stamp {
  margin: 0 0 .8rem;
  font-family: var(--font-sans);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.device header {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--glow);
  font-size: .7rem;
}
.device ul { list-style: none; margin: .6rem 0; padding: 0; }
.device li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  opacity: 0;
  transform: translateY(8px);
}
.device.built li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.device.built li:nth-child(1) { transition-delay: .1s; }
.device.built li:nth-child(2) { transition-delay: .22s; }
.device.built li:nth-child(3) { transition-delay: .34s; }
.device.built li:nth-child(4) { transition-delay: .46s; }
.device em { font-style: normal; color: var(--ivory-dim); }
.device-foot { margin: .8rem 0 0; color: var(--ivory-dim); font-size: .75rem; }

.streams {
  position: relative;
  min-height: 200px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  gap: .2rem 0;
}
.streams .rail {
  grid-column: 1;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.stream-svg {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  height: 160px;
  overflow: visible;
}
.stream-svg .flow {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.4;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  opacity: .85;
}
.streams.in .flow { animation: draw 1.6s var(--ease) forwards; }
.streams.in .flow:nth-child(2) { animation-delay: .15s; }
.streams.in .flow:nth-child(3) { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lock-dot { fill: var(--brass-light); }
.lock-label {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--brass-light);
}

.case-split { display: block; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1rem 0;
  border: 1px solid var(--line);
  position: relative;
}
.split::before {
  content: "";
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--brass), transparent);
}
.split > div { padding: 1.6rem 1rem; }
.split > div:first-child { background: color-mix(in srgb, var(--void) 55%, transparent); }
.split-k {
  margin: 0 0 .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--ivory-dim);
}
.split-v {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.05;
  color: var(--ivory);
  max-width: none !important;
}
.split-note { margin-top: 1rem !important; color: var(--ivory-dim) !important; }

.case-grid {
  display: grid;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
}
.case-grid h3 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.tag-band {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ivory-dim);
  line-height: 1.8;
}
.tools {
  margin: .4rem 0 0 !important;
  font-size: .78rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory-dim) !important;
}
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1rem;
}
.show-card { margin: 0; }
.show-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--void);
}
.show-card h3 {
  margin: .8rem 0 .2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ivory);
}
.show-card p, .show-note { margin: 0; color: var(--ivory-dim); font-size: .95rem; }
.show-note { margin-top: .4rem; }
.show-note a, .scene-lead a, footer a { color: var(--ivory); }
.skill-groups {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.skill-groups h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
}
.skill-groups p { margin: 0; color: var(--mist); max-width: 40ch; }
.method-lines {
  margin: 2.2rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--ink) 78%, #3a4a40);
}

.paper-break { padding: 0; }
.paper {
  margin: 2rem -1rem 0;
  padding: 2.4rem 1rem 2.8rem;
  background: var(--ivory);
  color: var(--ink);
  color-scheme: light;
}
.paper h2 { color: var(--ink); }
.paper p, .principles p { color: color-mix(in srgb, var(--ink) 78%, #3a4a40); }
.principles {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.principles h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
}

.concert {
  position: relative;
  margin-top: .4rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 34, 24, .7), rgba(2, 8, 5, .7));
  min-height: 280px;
  overflow: hidden;
}
.concert canvas { display: block; width: 100%; height: auto; }
.concert .text-btn { position: absolute; right: .6rem; bottom: .2rem; }
.stamp.light { position: absolute; left: 1rem; top: .8rem; margin: 0; z-index: 2; }

.contact {
  display: grid;
  gap: 1.6rem;
  padding-bottom: 2rem;
}
.contact a { color: var(--ivory); }
form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--void) 65%, transparent);
  color: var(--ivory);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .orbit .node:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}
button[type="submit"] {
  min-height: 48px;
  justify-self: start;
  padding: 0 1.2rem;
  background: var(--ivory);
  color: var(--ink);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}
.form-status { min-height: 1.4em; margin: 0; color: var(--glow); }
.form-status.err { color: #F0B4B0; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ivory-dim);
  font-size: .82rem;
}

@media (max-width: 899px) {
  .hero {
    min-height: calc(100dvh - 52px - 56px - env(safe-area-inset-bottom, 0px));
    padding: 0.3rem 0 0.35rem;
    justify-content: flex-start;
    gap: 0.55rem;
  }
  .hero h1 { font-size: clamp(3.15rem, 17.5vw, 11rem); }
  .role-line { margin-top: 0.8rem; }
  .lede { margin-top: 0.55rem; font-size: 1.05rem; }
  .links-row { margin-top: 0.9rem; }
  .portrait {
    width: min(56vw, 230px);
    max-height: 34dvh;
  }
  .portrait img {
    width: auto;
    max-width: 100%;
    max-height: 34dvh;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .bottom-nav { display: none; }
  .desk-nav { display: flex; }
  .top-actions { margin-left: 0; }
  .phone-only { display: none; }
  .topbar { padding-inline: 1.6rem; }
  .wrap { width: min(1180px, calc(100% - 4.4rem)); }
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
    align-items: end;
    gap: 2.4rem 3rem;
    min-height: 100dvh;
    padding: 6rem 0 4rem;
  }
  .hero-copy { padding-bottom: 0.4rem; }
  .role-line { max-width: none; }
  .portrait {
    order: 0;
    width: 100%;
    margin: 0;
    align-self: center;
  }
  .portrait img {
    mask-image:
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 6%, #000 92%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 6%, #000 92%, transparent 100%);
  }
  .case-wide { grid-template-columns: 1fr !important; gap: 1.6rem; }
  .case-wide .case-viz { max-width: none; }
  .orbit-stage { align-items: stretch; }
  .orbit { height: 480px; }
  .beats { grid-template-columns: repeat(4, 1fr); }
  .orbit { height: 520px; }
  .orbit-stage {
    display: grid;
    grid-template-columns: 1.4fr .7fr;
    gap: 2rem;
    align-items: center;
  }
  .orbit-detail { margin: 0; border: 0; padding: 0; }
  .case, .case-flip { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 2.4rem; }
  .case-flip { grid-template-columns: 1.1fr .9fr; }
  .case-flip .case-copy { order: 2; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.4rem; }
  .paper { margin-inline: calc(50% - 50vw); padding: 5rem calc(50vw - 50%); }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .skill-groups { grid-template-columns: 1fr 1fr; gap: 1.8rem 2.4rem; }
  .show-row { gap: 1.6rem; max-width: 42rem; }
  .contact { grid-template-columns: minmax(0, 36rem); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) .hero h1 .line span,
  html:not(.motion-on) .streams.in .flow,
  html:not(.motion-on) .device.built li,
  html:not(.motion-on) .progress,
  html:not(.motion-on) .portrait-stage::after { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  html:not(.motion-on) .device li { opacity: 1; transform: none; }
}
html.reduce .hero h1 .line span,
html.reduce .streams.in .flow,
html.reduce .device.built li,
html.reduce .progress,
html.reduce .portrait-stage::after { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
html.reduce .portrait img { transform: none; }
html.reduce .device li { opacity: 1; transform: none; }

@media (prefers-contrast: more) {
  body { color: #fff; }
  .scene-lead, .case p, .lede { color: #F3F1EA; }
  input, textarea, .icon-btn, .beats, .pipe-nodes li, .device, .split, .concert { border-color: #8AF0B8; }
}
@media (forced-colors: active) {
  .icon-btn, input, textarea, button[type="submit"], .beats, .device { border: 1px solid ButtonText; }
  body::before, #light, .grain, .letterbox { display: none; }
}
