:root {
  color-scheme: dark;
  --ink: #07080c;
  --paper: #f4f0e8;
  --paper-dim: rgba(244, 240, 232, 0.86);
  --muted: #d2ccc0;
  --ink-text: #16140f;
  --line: rgba(244, 240, 232, 0.12);
  --line-strong: rgba(244, 240, 232, 0.34);
  --amber: #e8c9a8;
  --blue: #c8d8e8;
  --nav: rgba(7, 8, 12, 0.97);
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
  --page-inline: clamp(1.35rem, 3.5vw, 2.75rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.85rem);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html:has(body.home),
body.home {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(214, 148, 86, 0.35);
  color: var(--paper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.55rem 0.8rem;
  background: var(--paper);
  color: var(--ink-text);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

#top:focus,
#work:focus,
#about:focus,
#contact:focus,
#apps:focus,
#content:focus {
  outline: none;
}

#work {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

/* Background — wandering light, a slow sweep, and dust in the beam */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 100%, #141820 0%, transparent 55%),
    var(--ink);
}

.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}

.light-warm {
  width: 70vw;
  height: 70vw;
  left: -18vw;
  top: -22vh;
  background: radial-gradient(circle, rgba(214, 148, 86, 0.55) 0%, rgba(120, 62, 36, 0.18) 42%, transparent 70%);
  animation: drift-warm 28s ease-in-out infinite alternate;
}

.light-alt {
  width: 36vw;
  height: 36vw;
  left: -8vw;
  top: -14vh;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(146, 186, 214, 0.62) 0%, rgba(48, 86, 122, 0.2) 46%, transparent 72%);
  animation: drift-alt 22s ease-in-out infinite alternate;
}

.light-cool {
  width: 62vw;
  height: 62vw;
  right: -16vw;
  bottom: -24vh;
  background: radial-gradient(circle, rgba(126, 156, 186, 0.42) 0%, rgba(46, 68, 96, 0.16) 46%, transparent 72%);
  animation: drift-cool 34s ease-in-out infinite alternate;
}

.light-haze {
  width: 46vw;
  height: 46vw;
  left: 28vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(244, 228, 206, 0.16) 0%, transparent 68%);
  animation: drift-haze 24s ease-in-out infinite alternate;
}

.light-ember {
  width: 22vw;
  height: 22vw;
  left: 6vw;
  top: 38vh;
  filter: blur(26px);
  background: radial-gradient(circle, rgba(236, 176, 108, 0.62) 0%, rgba(170, 84, 36, 0.16) 46%, transparent 72%);
  animation: ember 20s ease-in-out infinite;
}

.light-glint {
  width: 16vw;
  height: 16vw;
  right: 10vw;
  top: 18vh;
  filter: blur(22px);
  background: radial-gradient(circle, rgba(198, 220, 238, 0.55) 0%, rgba(70, 110, 150, 0.12) 48%, transparent 72%);
  animation: glint 26s ease-in-out infinite;
}

.page-engineering .light-warm,
.page-engineering .light-ember {
  opacity: 0.72;
}

.page-photography .light-cool,
.page-photography .light-glint {
  opacity: 0.72;
}

.aurora {
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(ellipse 55% 32% at 28% 42%, rgba(214, 148, 86, 0.2), transparent 68%),
    radial-gradient(ellipse 48% 34% at 74% 58%, rgba(176, 206, 230, 0.16), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}

.motes span {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(244, 232, 214, 0.9);
  opacity: 0;
  transform: translate3d(var(--sx, 10vw), var(--sy, 10vh), 0);
  animation: mote var(--dur, 18s) ease-in-out infinite alternate both;
}

.motes span:nth-child(3n) {
  width: 3px;
  height: 3px;
  background: rgba(198, 220, 238, 0.85);
}

.motes span:nth-child(1) { --sx: 8vw; --sy: 10vh; --ex: 18vw; --ey: 18vh; --dur: 18s; }
.motes span:nth-child(2) { --sx: 28vw; --sy: 8vh; --ex: 36vw; --ey: 16vh; --dur: 22s; }
.motes span:nth-child(3) { --sx: 48vw; --sy: 14vh; --ex: 58vw; --ey: 22vh; --dur: 16s; }
.motes span:nth-child(4) { --sx: 70vw; --sy: 6vh; --ex: 82vw; --ey: 14vh; --dur: 24s; }
.motes span:nth-child(5) { --sx: 88vw; --sy: 18vh; --ex: 96vw; --ey: 28vh; --dur: 20s; }
.motes span:nth-child(6) { --sx: 14vw; --sy: 32vh; --ex: 24vw; --ey: 42vh; --dur: 26s; }
.motes span:nth-child(7) { --sx: 36vw; --sy: 28vh; --ex: 46vw; --ey: 38vh; --dur: 19s; }
.motes span:nth-child(8) { --sx: 58vw; --sy: 34vh; --ex: 68vw; --ey: 44vh; --dur: 23s; }
.motes span:nth-child(9) { --sx: 78vw; --sy: 30vh; --ex: 90vw; --ey: 40vh; --dur: 17s; }
.motes span:nth-child(10) { --sx: 6vw; --sy: 52vh; --ex: 16vw; --ey: 62vh; --dur: 21s; }
.motes span:nth-child(11) { --sx: 24vw; --sy: 48vh; --ex: 34vw; --ey: 58vh; --dur: 25s; }
.motes span:nth-child(12) { --sx: 46vw; --sy: 56vh; --ex: 56vw; --ey: 66vh; --dur: 18s; }
.motes span:nth-child(13) { --sx: 66vw; --sy: 50vh; --ex: 78vw; --ey: 60vh; --dur: 22s; }
.motes span:nth-child(14) { --sx: 86vw; --sy: 54vh; --ex: 96vw; --ey: 64vh; --dur: 15s; }
.motes span:nth-child(15) { --sx: 12vw; --sy: 72vh; --ex: 22vw; --ey: 82vh; --dur: 27s; }
.motes span:nth-child(16) { --sx: 32vw; --sy: 68vh; --ex: 42vw; --ey: 78vh; --dur: 19s; }
.motes span:nth-child(17) { --sx: 52vw; --sy: 74vh; --ex: 62vw; --ey: 84vh; --dur: 23s; }
.motes span:nth-child(18) { --sx: 74vw; --sy: 70vh; --ex: 84vw; --ey: 80vh; --dur: 16s; }
.motes span:nth-child(19) { --sx: 92vw; --sy: 78vh; --ex: 98vw; --ey: 88vh; --dur: 21s; }
.motes span:nth-child(20) { --sx: 18vw; --sy: 88vh; --ex: 28vw; --ey: 96vh; --dur: 24s; }
.motes span:nth-child(21) { --sx: 40vw; --sy: 92vh; --ex: 50vw; --ey: 98vh; --dur: 18s; }
.motes span:nth-child(22) { --sx: 60vw; --sy: 86vh; --ex: 70vw; --ey: 94vh; --dur: 26s; }
.motes span:nth-child(23) { --sx: 80vw; --sy: 90vh; --ex: 90vw; --ey: 98vh; --dur: 20s; }
.motes span:nth-child(24) { --sx: 4vw; --sy: 40vh; --ex: 12vw; --ey: 50vh; --dur: 17s; }

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 36%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: absolute;
  inset: -8%;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-drift 9s linear infinite alternate;
}

@keyframes drift-warm {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16vw, 12vh, 0) scale(1.14); }
  100% { transform: translate3d(7vw, 18vh, 0) scale(0.92); }
}

@keyframes drift-alt {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12vw, 10vh, 0) scale(1.16); }
  100% { transform: translate3d(5vw, 6vh, 0) scale(0.9); }
}

@keyframes drift-cool {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14vw, -10vh, 0) scale(1.12); }
  100% { transform: translate3d(-6vw, -16vh, 0) scale(0.94); }
}

@keyframes drift-haze {
  0% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(8vw, 6vh, 0); opacity: 1; }
  100% { transform: translate3d(-6vw, 10vh, 0); opacity: 0.4; }
}

@keyframes ember {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  40% { transform: translate3d(32vw, -12vh, 0) scale(1.18); opacity: 0.9; }
  72% { transform: translate3d(18vw, 16vh, 0) scale(0.86); opacity: 0.35; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
}

@keyframes glint {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  45% { transform: translate3d(-26vw, 14vh, 0) scale(1.2); opacity: 0.85; }
  100% { transform: translate3d(-8vw, -6vh, 0) scale(0.9); opacity: 0.3; }
}

@keyframes aurora {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

@keyframes mote {
  0% { transform: translate3d(var(--sx, 10vw), var(--sy, 10vh), 0); opacity: 0.8; }
  100% { transform: translate3d(var(--ex, 20vw), var(--ey, 18vh), 0); opacity: 0.55; }
}

@keyframes grain-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.5%, -1%, 0); }
}

/* Navigation */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding:
    0.4rem
    max(var(--page-inline), env(safe-area-inset-right))
    0.4rem
    max(var(--page-inline), env(safe-area-inset-left));
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.site-nav.is-scrolled {
  background-color: var(--nav);
  border-bottom-color: var(--line);
}

.nav-start {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.9rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.nav-sep {
  flex: none;
  width: 1px;
  height: 0.85rem;
  align-self: center;
  background: rgba(244, 240, 232, 0.32);
}

.nav-apps,
.nav-apps:visited {
  color: var(--blue);
}

.view-nav {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.view-arrow {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(244, 240, 232, 0.96);
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 0, 0, 0.2) 0 46%, rgba(0, 0, 0, 0.48) 76%, rgba(255, 255, 255, 0.14) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -14px 20px rgba(0, 0, 0, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.view-arrow-edge {
  position: absolute;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.view-arrow-edge-prev {
  left: max(1rem, env(safe-area-inset-left));
  transform: translate(-0.7rem, -50%);
}

.view-arrow-edge-next {
  right: max(1rem, env(safe-area-inset-right));
  transform: translate(0.7rem, -50%);
}

.view-nav.edge-prev .view-arrow-edge-prev,
.view-nav.edge-next .view-arrow-edge-next {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

.view-dock {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  gap: 0.7rem;
  pointer-events: auto;
}

.view-dock .view-arrow {
  width: 3.6rem;
  height: 3.6rem;
}

.view-arrow svg {
  width: 1.35rem;
  height: 1.35rem;
  overflow: visible;
  transition: transform 0.4s var(--ease);
}

.view-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(0.2rem, 1.8vw, 0.55rem);
}

.site-nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.55rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.75;
  transition: transform 0.4s var(--ease);
}

body.home:not(:has(#work:target)):not(:has(#about:target)):not(:has(#contact:target)):not(:has(#apps:target)) .site-nav a[href="#top"]::after,
body.home:has(#work:target) .site-nav a[href="#work"]::after,
body.home:has(#about:target) .site-nav a[href="#about"]::after,
body.home:has(#contact:target) .site-nav a[href="#contact"]::after,
body.home:has(#apps:target) .site-nav a[href="#apps"]::after,
.site-nav nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header {
  position: relative;
  z-index: 10;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* One viewport. Work, About, and Contact replace the hero in place. */

.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

body.home:not(:has(#work:target)):not(:has(#about:target)):not(:has(#contact:target)):not(:has(#apps:target)) .panel-home,
.panel:target,
.panel.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

/* Hero */

.hero {
  position: absolute;
  display: grid;
  align-items: center;
  justify-items: center;
  padding:
    calc(var(--nav-h) + 0.15rem)
    max(5.75rem, var(--page-inline), env(safe-area-inset-right))
    max(5.4rem, env(safe-area-inset-bottom))
    max(5.75rem, var(--page-inline), env(safe-area-inset-left));
  text-align: center;
}

.hero-copy {
  width: min(64rem, 100%);
  transform: translateY(calc(-1 * clamp(0.15rem, 1vh, 0.85rem)));
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero .eyebrow {
  margin: 0 0 clamp(0.85rem, 1.6vh, 1.15rem);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: rgba(210, 204, 192, 0.8);
}

.eyebrow .slash {
  display: inline-block;
  padding-inline: 0.2em;
  opacity: 0.55;
}

.hero h1,
.room h1,
.apps-inner h2,
.soon-inner h2,
.footer-name {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.05rem, 4.7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.032em;
  text-wrap: balance;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.28);
}

.roles {
  margin: clamp(0.8rem, 1.4vh, 1.05rem) 0 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(244, 240, 232, 0.9);
}

.hero-intro {
  max-width: 30rem;
  margin: clamp(1.15rem, 2vh, 1.5rem) auto 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0.008em;
  color: rgba(244, 240, 232, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.45rem, 2.6vh, 1.9rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-primary:visited {
  background: var(--paper);
  color: var(--ink-text);
  border-color: var(--paper);
}

.btn-secondary,
.btn-secondary:visited {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 240, 232, 0.42);
}

.btn-primary:active {
  background: #e4dcd0;
}

.btn-secondary:active {
  background: rgba(244, 240, 232, 0.1);
  border-color: rgba(244, 240, 232, 0.62);
}

.arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.contact-inner {
  width: min(32rem, 100%);
  margin: 0 auto;
  padding-inline: max(var(--page-inline), env(safe-area-inset-left), env(safe-area-inset-right));
  text-align: center;
}

.panel-contact,
.panel-apps,
.panel-soon {
  display: grid;
  place-items: center;
  padding-top: var(--nav-h);
}

.panel-contact {
  overflow: auto;
  align-content: safe center;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.apps-inner,
.soon-inner {
  width: min(32rem, 100%);
  margin: 0 auto;
  padding-inline: max(var(--page-inline), env(safe-area-inset-left), env(safe-area-inset-right));
  text-align: center;
}

.apps-inner .eyebrow,
.soon-inner .eyebrow {
  margin-bottom: 1rem;
  text-indent: 0.22em;
}

.apps-inner h2,
.soon-inner h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact-inner .footer-role {
  margin-top: 0.9rem;
}

.contact-inner .eyebrow {
  margin-bottom: 1rem;
  text-indent: 0.22em;
}

.contact-inner .footer-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact-form {
  position: relative;
  width: min(24rem, 100%);
  margin: 1.35rem auto 0;
  text-align: left;
}

.contact-form .field {
  display: block;
  margin: 0 0 0.75rem;
}

.contact-form .field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.contact-form textarea {
  display: block;
  resize: vertical;
  min-height: 6.5rem;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
  cursor: pointer;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-inner .legal {
  margin-top: 1.25rem;
}

/* Footer */

.site-footer {
  padding:
    2.1rem
    max(var(--page-inline), env(safe-area-inset-right))
    max(2.4rem, env(safe-area-inset-bottom))
    max(var(--page-inline), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-name {
  margin: 0;
  font-size: 1.18rem;
}

.footer-role,
.legal {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal {
  margin-top: 1.05rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

/* Quiet studio pages for work that is not published yet */

.subpage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.room {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(38rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
}

.room .eyebrow {
  margin-bottom: 0.85rem;
}

.room h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 26rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

.catalogue {
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  min-height: 2.75rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.back .arrow {
  letter-spacing: 0;
}

/* Future entries: replace the note with <a class="piece"> blocks. */

.piece {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.piece strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.piece span {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.piece img {
  display: block;
  width: 100%;
  max-height: 28rem;
  margin-bottom: 0.7rem;
  object-fit: cover;
}

/* Motion */

@media (hover: hover) and (pointer: fine) {
  .site-nav nav a:hover::after,
  .site-nav nav a:focus-visible::after {
    transform: scaleX(1);
  }

  .btn-primary:hover {
    background: #fffaf3;
    transform: translateY(-1px);
  }

  .btn-primary:hover .arrow {
    transform: translateX(3px);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .btn-secondary:hover {
    background: rgba(244, 240, 232, 0.06);
    border-color: rgba(244, 240, 232, 0.72);
  }

  .nav-apps:hover {
    color: var(--paper);
  }

  .view-arrow:hover {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.48);
    background:
      radial-gradient(circle at 50% 36%, rgba(0, 0, 0, 0.08) 0 46%, rgba(0, 0, 0, 0.34) 76%, rgba(255, 255, 255, 0.22) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.46),
      inset 0 -14px 20px rgba(0, 0, 0, 0.28),
      0 12px 32px rgba(0, 0, 0, 0.38);
  }

  .view-arrow:hover svg {
    transform: translateX(3px);
  }

  .view-arrow-prev:hover svg {
    transform: translateX(-3px);
  }

  .back:hover .arrow {
    transform: translateX(-3px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow {
    animation: enter 0.8s var(--ease) 0.06s both;
  }

  .hero h1 {
    animation: enter 0.85s var(--ease) 0.16s both;
  }

  .roles {
    animation: enter 0.8s var(--ease) 0.3s both;
  }

  .hero-tail {
    animation: enter 0.85s var(--ease) 0.44s both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .light,
  .aurora,
  .motes span,
  .grain,
  .hero .eyebrow,
  .hero h1,
  .roles,
  .hero-tail {
    animation: none;
  }

  .btn,
  .view-arrow,
  .view-arrow svg,
  .arrow,
  .site-nav,
  .site-nav nav a::after,
  .panel {
    transition: none;
  }
}

/* Short laptop screens */

@media (max-height: 560px) {
  .hero {
    align-items: start;
    overflow-y: auto;
  }
}

@media (max-height: 740px) {
  :root {
    --nav-h: 3.75rem;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 0.15rem);
    padding-bottom: max(4.6rem, env(safe-area-inset-bottom));
  }

  .hero-copy {
    transform: none;
  }

  .hero .eyebrow {
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  }

  .roles {
    margin-top: 0.55rem;
  }

  .hero-intro {
    margin-top: 0.85rem;
  }

  .hero-actions {
    margin-top: 1.15rem;
  }

}

/* Narrow screens */

@media (max-width: 800px) {
  .hero {
    padding-left: max(var(--page-inline), env(safe-area-inset-left));
    padding-right: max(var(--page-inline), env(safe-area-inset-right));
  }

  .light-warm {
    width: 130vw;
    height: 130vw;
    left: -48vw;
    top: -16vh;
  }

  .light-cool {
    width: 120vw;
    height: 120vw;
    right: -52vw;
    bottom: -22vh;
  }

  .light-haze {
    opacity: 0.65;
  }
}

@media (max-width: 420px) {
  :root {
    --page-inline: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6.6vw, 2.2rem);
  }

  .roles {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .site-nav {
    gap: 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav nav {
    gap: 0.05rem;
  }

  .site-nav nav a {
    padding-inline: 0.18rem;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
  }

  .nav-sep {
    margin-inline: 0.12rem;
  }

  .nav-start {
    gap: 0.45rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .btn {
    width: 100%;
    max-width: 18rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1rem;
  }

  .nav-start {
    gap: 0.35rem;
  }

  .view-arrow-edge {
    width: 3.35rem;
    height: 3.35rem;
  }

  .view-dock .view-arrow {
    width: 3rem;
    height: 3rem;
  }
}

@media (forced-colors: active) {
  .btn,
  .site-nav.is-scrolled {
    border: 1px solid CanvasText;
  }

  .backdrop {
    display: none;
  }
}
