:root {
  --bg: #111211;
  --bg-soft: #171816;
  --ink: #eeece7;
  --muted: #a4a29c;
  --accent: #cdb28b;
  --accent-dim: rgba(205, 178, 139, 0.16);
  --line: rgba(238, 236, 231, 0.14);
  --line-strong: rgba(205, 178, 139, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 88px;
}

html.homepage-root {
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Persistent Living Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

#atmo-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.atmosphere-fallback {
  position: absolute;
  inset: -12%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 48% at 74% 24%, rgba(238, 236, 231, 0.12), transparent 65%),
    radial-gradient(ellipse 64% 52% at 32% 58%, rgba(205, 178, 139, 0.14), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(17, 18, 17, 0.25), var(--bg) 92%);
  filter: blur(42px);
  transition: opacity 0.8s var(--ease);
}

body.no-webgl #atmo-canvas {
  display: none;
}

body.no-webgl .atmosphere-fallback {
  opacity: 1;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a,
button,
summary {
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a:hover,
button:hover,
summary:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
}

p {
  color: var(--muted);
}

.wrap {
  width: min(1200px, calc(100% - 112px));
  margin: auto;
}

.mono {
  font: 11px/1.45 "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.brand {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
}

.brand b {
  color: var(--accent);
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 50;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

/* Header & Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

body.is-scrolled .nav {
  background: linear-gradient(to bottom, rgba(17, 18, 17, 0.78) 0%, rgba(17, 18, 17, 0.42) 72%, rgba(17, 18, 17, 0.14) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(238, 236, 231, 0.08);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 20px;
}

.nav .brand {
  flex-shrink: 0;
  text-shadow: 0 2px 16px rgba(17, 18, 17, 0.55);
}

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: rgba(238, 236, 231, 0.76);
  text-shadow: 0 1px 14px rgba(17, 18, 17, 0.65);
}

.navlinks a {
  position: relative;
  padding: 4px 0;
}

.navlinks a[aria-current] {
  color: var(--ink);
}

.navlinks a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
}

.contact {
  border: 1px solid rgba(238, 236, 231, 0.22);
  background: rgba(17, 18, 17, 0.16);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 10px rgba(17, 18, 17, 0.5);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.contact:hover {
  border-color: var(--line-strong);
  background: rgba(205, 178, 139, 0.06);
}

.progress {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(238, 236, 231, 0.7));
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Full-Screen Chapter Architecture */
.homepage .chapter {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.homepage .hero.chapter {
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: clamp(32px, 5vh, 64px) 0 clamp(56px, 8vh, 92px);
}

.homepage .section.chapter {
  padding: clamp(88px, 11vh, 128px) 0 clamp(72px, 9vh, 108px);
}

.chapter-stage {
  width: 100%;
  transform-origin: center center;
}

/* Hero */
.hero-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  .hero-inner {
    width: min(1336px, calc(100vw - 88px));
    margin-left: calc(50% - min(668px, calc(50vw - 44px)));
  }
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
  box-shadow: 0 0 12px rgba(205, 178, 139, 0.65);
}

h1 {
  font-size: clamp(64px, 10.2vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.078em;
  margin: 30px 0 44px;
}

.mask {
  display: block;
  overflow: hidden;
  padding: 0 0.1em 0.11em 0;
  margin-bottom: -0.11em;
}

.mask > span {
  display: block;
  will-change: transform, opacity;
}

.herofoot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.herofoot p {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  max-width: 440px;
  color: rgba(238, 236, 231, 0.8);
}

.hero .link.down {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  gap: 18px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(238, 236, 231, 0.16);
  background: rgba(17, 18, 17, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero .link.down:hover {
  border-color: var(--line-strong);
  background: rgba(205, 178, 139, 0.08);
}

.hero .link.down .circle {
  width: 52px;
  height: 52px;
  font-size: 19px;
  border-color: rgba(238, 236, 231, 0.24);
  background: transparent;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.circle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.link:hover .circle {
  transform: translate(3px, -3px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.link.down:hover .circle {
  transform: translateY(3px);
}

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding: 76px 0 88px;
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 34px;
}

.sectionhead h2,
.split h2 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

/* Selected Work & Project Blending */
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 300px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: transparent;
  transition: border-color 0.6s var(--ease);
}

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

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 36%) var(--my, 50%), rgba(205, 178, 139, 0.06), transparent 72%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: 0;
}

.project:hover::before,
.project.is-focused::before {
  opacity: 1;
}

.project.is-focused {
  border-top-color: rgba(205, 178, 139, 0.3);
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 84% 82% at center, transparent 48%, rgba(17, 18, 17, 0.56) 79%, var(--bg) 100%);
  z-index: 2;
}

.art img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.88;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  transform: translate3d(0, var(--drift, 0px), 0) scale(var(--zoom, 1));
  transform-origin: center center;
  will-change: transform;
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease);
}

.art.server img {
  width: 96%;
  height: 90%;
  opacity: 0.85;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.project.is-focused .art img,
.project:hover .art img {
  opacity: 0.98;
  filter: contrast(1.03) brightness(1.03);
}

.projectcopy {
  position: relative;
  z-index: 2;
  padding: 32px 24px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.projectcopy h3 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.projectcopy p {
  max-width: 40ch;
}

.projectcopy .link {
  margin-top: 10px;
  white-space: normal;
}

.project-more {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

/* Split Layout */
.split-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 70px;
  align-items: start;
}

.split h2 {
  margin: 18px 0;
}

.split .intro {
  font-size: 18px;
  max-width: 32ch;
}

.prose {
  display: grid;
  gap: 20px;
  max-width: 66ch;
}

.prose p {
  font-size: 18px;
  line-height: 1.75;
}

.prose h3 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.prose strong {
  color: var(--ink);
  font-weight: 550;
}

/* Toolkit */
.toolgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

.tool {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 20px 10px 24px 0;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.tool:hover {
  border-top-color: var(--line-strong);
}

.tool h3 {
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
}

.tool h3 span {
  font: 10px "JetBrains Mono", ui-monospace, Consolas, monospace;
  color: var(--accent);
}

.tool p {
  font-size: 15px;
  line-height: 1.55;
}

/* Esports / Beyond the code */
.esportblock {
  border-top: 1px solid var(--line);
  padding: 24px 12px 30px 0;
}

.esportblock h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-bottom: 13px;
}

.esportblock p {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 14px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 23px 0 28px;
}

.stats strong {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  font-weight: 500;
  line-height: 1.1;
}

.stats small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}

.active {
  display: flex;
  align-items: center;
  gap: 9px;
}

.active i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(205, 178, 139, 0.65);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 19px;
}

.socials a {
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.socials a:hover {
  border-color: var(--accent);
  background: rgba(205, 178, 139, 0.06);
}

/* Workshop & Accordion */
.extras details {
  border-top: 1px solid var(--line);
}

.extras details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 20px 0;
  font-size: 19px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 25px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

.detailbody {
  overflow: hidden;
}

.detailbody p {
  padding: 0 0 22px;
  max-width: 60ch;
}

.release-note {
  padding-top: 14px !important;
  border-top: 1px solid var(--line);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  position: relative;
}

.footmain {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footmain .brand {
  font-size: 62px;
  letter-spacing: -4px;
}

.footmain p {
  margin: 12px 0;
}

.groups {
  display: flex;
  gap: 45px;
  flex-wrap: wrap;
}

.groups > div {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 14px;
}

.groups a,
.groups button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 2px 0;
}

.groups button:focus-visible {
  outline-offset: 3px;
}

.groups .icon {
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: -3px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.sound-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.sound-toggle:hover {
  border-color: var(--line-strong);
}

.sound-toggle .sound-on {
  display: none;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--line-strong);
  background: rgba(205, 178, 139, 0.08);
}

.sound-toggle[aria-pressed="true"] .sound-off {
  display: none;
}

.sound-toggle[aria-pressed="true"] .sound-on {
  display: inline;
}

/* Dialogs */
dialog {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

dialog::backdrop {
  background: rgba(8, 9, 8, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

dialog[open] {
  animation: dialog-in 0.26s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

dialog h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

dialog p {
  margin: 10px 0 22px;
}

dialog button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 30px;
  padding: 8px 16px;
}

dialog button:hover {
  border-color: var(--line-strong);
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dialog-actions a {
  font-size: 14px;
  color: var(--accent);
}

.spaced {
  margin-top: 20px;
}

#email-address {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: rgba(17, 18, 17, 0.7);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

#copy-status {
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 1.4em;
}

.cmd input {
  width: 100%;
  background: rgba(17, 18, 17, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font: inherit;
}

.cmd a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cmd a[hidden],
.no-results[hidden] {
  display: none;
}

.cmd a:focus-visible {
  outline-offset: 1px;
}

.no-results {
  margin: 12px 0 0;
}

/* Subpages */
.page-intro {
  padding: 56px 0 24px;
}

.page-intro a {
  font-size: 13px;
  color: var(--muted);
}

.subpage .section {
  border-top: 0;
  padding-top: 24px;
  min-height: calc(100svh - 240px);
}

.subpage .sectionhead h2,
.subpage .split h2 {
  font-size: clamp(40px, 6vw, 80px);
}

.project-detail {
  padding: 12px 0 85px;
}

.project-detail h1,
.error-page h1 {
  font-size: clamp(48px, 7.6vw, 102px);
  margin: 20px 0 28px;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.project-detail .art {
  min-height: clamp(180px, 34vw, 420px);
  max-width: 980px;
  margin: auto;
}

.project-detail .art img {
  opacity: 0.94;
}

.project-detail .prose {
  margin-top: 36px;
}

.project-detail .actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.project-detail .credit {
  font-size: 14px;
}

.project-detail .credit a {
  color: var(--accent);
}

.error-page {
  min-height: 55vh;
  padding: 70px 0;
}

.error-page .link {
  margin-top: 25px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .split-stage {
    gap: 40px;
  }
  .navlinks {
    gap: 16px;
  }
  .project {
    gap: 22px;
  }
  .section {
    padding: 58px 0 68px;
  }
}

@media (max-width: 650px) {
  :root {
    --nav-h: 62px;
  }
  html {
    scroll-padding-top: 76px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .nav .wrap {
    gap: 12px;
  }
  .navlinks {
    gap: 14px;
    font-size: 12px;
  }
  .navlinks a:first-child {
    display: none;
  }
  .contact {
    font-size: 11px;
    padding: 7px 11px;
  }
  .brand {
    font-size: 26px;
  }
  .homepage .hero.chapter {
    padding: 32px 0 48px;
  }
  .homepage .section.chapter {
    padding: 74px 0 64px;
  }
  h1 {
    font-size: clamp(48px, 13vw, 82px);
    margin: 22px 0 28px;
  }
  .herofoot {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .herofoot p {
    font-size: 17px;
  }
  .hero .link.down {
    font-size: 14px;
    gap: 13px;
    padding: 6px 6px 6px 15px;
  }
  .hero .link.down .circle {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .section {
    padding: 46px 0 56px;
  }
  .page-intro {
    padding: 40px 0 18px;
  }
  .sectionhead {
    align-items: flex-start;
  }
  .sectionhead h2,
  .split h2 {
    font-size: clamp(36px, 9.5vw, 48px);
  }
  .sectionhead .mono {
    font-size: 10px;
    text-align: right;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .art {
    min-height: 170px;
    aspect-ratio: 16 / 9;
  }
  .projectcopy {
    padding: 12px 0 30px;
    gap: 11px;
  }
  .projectcopy p {
    font-size: 15px;
  }
  .split-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split h2 {
    margin: 12px 0;
  }
  .prose p {
    font-size: 16px;
  }
  .toolgrid {
    column-gap: 16px;
  }
  .tool h3 {
    font-size: 15px;
  }
  .tool p {
    font-size: 14px;
  }
  .footmain .brand {
    font-size: 46px;
    letter-spacing: -3px;
  }
  .footmain .link {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .groups {
    gap: 28px;
  }
  .stats strong {
    font-size: 33px;
  }
  dialog {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .toolgrid {
    grid-template-columns: 1fr;
  }
  .tool {
    padding: 16px 0 18px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav .wrap {
    gap: 8px;
  }
  .navlinks {
    gap: 10px;
    font-size: 11.5px;
  }
  .nav .contact {
    font-size: 10.5px;
    padding: 6px 9px;
  }
  h1 {
    font-size: clamp(42px, 13.5vw, 54px);
  }
  .stats {
    gap: 12px;
  }
  .stats strong {
    font-size: 28px;
  }
  .groups {
    gap: 22px;
  }
  .bottom {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .art img {
    transform: none !important;
    will-change: auto;
  }
}
