:root {
  --text: #f8fafc;
  --bg: #030712;
  --surface-deep: #081426;
  --surface: #060d1b;
  --accent-cyan: #00f2fe;
  --accent-violet: #818cf8;
  --accent-sky: #38bdf8;
  --text-muted: #94a3b8;
  --line: rgba(56, 189, 248, 0.24);
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(0, 242, 254, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(129, 140, 248, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.28;
  content: "";
  background-image: radial-gradient(rgba(56, 189, 248, 0.34) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--accent-violet);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--accent-violet);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent-cyan);
  color: var(--bg);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 94px;
  padding: 20px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-sky) 54%, var(--accent-violet));
  color: var(--bg);
  font-size: 15px;
  letter-spacing: -0.08em;
  transition: transform 300ms var(--ease), box-shadow 300ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.35);
}

.brand-name {
  font-size: 17px;
  letter-spacing: -0.04em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  font-size: 14px;
  font-weight: 600;
}

.roll {
  position: relative;
  display: inline-flex;
  overflow: hidden;
}

.roll > span {
  display: block;
  transition: transform 340ms var(--ease-out);
}

.roll-b {
  position: absolute;
  inset: 0;
  color: var(--accent-cyan);
  transform: translateY(110%);
}

.primary-nav a:hover .roll-a,
.primary-nav a:focus-visible .roll-a {
  transform: translateY(-110%);
}

.primary-nav a:hover .roll-b,
.primary-nav a:focus-visible .roll-b {
  transform: translateY(0);
}

.nav-contact {
  padding: 12px 16px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  transition: background 150ms ease, color 150ms ease, transform 300ms var(--ease);
}

.nav-contact:hover {
  background: var(--accent-cyan);
  color: var(--bg);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 94px);
  padding: 32px clamp(20px, 4vw, 64px) 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(0, 242, 254, 0.16), transparent 24rem),
    radial-gradient(circle at 30% 88%, rgba(129, 140, 248, 0.18), transparent 28rem);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 8vh 0 0;
  font-size: clamp(76px, 13.2vw, 208px);
  font-weight: 600;
  letter-spacing: -0.095em;
  line-height: 0.78;
}

.hero-line {
  display: block;
}

.hero h1 .word {
  display: inline-block;
}

.hero-emphasis {
  margin-left: clamp(3vw, 10vw, 160px);
  padding-bottom: 0.08em;
  color: var(--accent-cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 540px) auto;
  gap: 40px;
  width: min(100%, 920px);
  margin: clamp(56px, 10vh, 110px) 0 0 auto;
  align-items: end;
}

.hero-bottom > p {
  margin: 0;
  font-size: clamp(18px, 2vw, 29px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.round-link {
  display: flex;
  width: 150px;
  height: 150px;
  padding: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-cyan), var(--accent-sky) 52%, var(--accent-violet));
  color: var(--bg);
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1.2;
  transition: transform 300ms var(--ease), background 200ms ease, box-shadow 300ms ease;
}

.round-link:hover {
  background: linear-gradient(145deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 0 48px rgba(0, 242, 254, 0.34);
  transform: rotate(-5deg) scale(1.04);
}

.round-link-arrow {
  font-size: 25px;
  transition: transform 300ms var(--ease);
}

.round-link:hover .round-link-arrow {
  transform: translateY(5px);
}

.hero-stamp {
  position: absolute;
  top: 12%;
  right: -4vw;
  display: flex;
  color: transparent;
  font-size: clamp(260px, 35vw, 560px);
  font-weight: 700;
  letter-spacing: -0.25em;
  line-height: 1;
  opacity: 0.16;
  -webkit-text-stroke: 2px var(--accent-cyan);
  transform: rotate(-7deg);
}

.marquee {
  padding: 17px 0;
  border-block: 1px solid var(--accent-cyan);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-sky));
  color: var(--bg);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  animation: marquee 20s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(80px, 10vw, 150px) clamp(20px, 4vw, 64px);
}

section[id] {
  scroll-margin-top: 94px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) 2fr 1fr;
  gap: 32px;
  margin-bottom: clamp(64px, 8vw, 120px);
  align-items: start;
}

.eyebrow,
.project-kind {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.section-heading h2,
.studio h2,
.contact h2 {
  margin: 0;
  font-size: clamp(50px, 7.3vw, 112px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.section-intro {
  max-width: 340px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

.work-section {
  background: var(--surface);
}

.project {
  min-width: 0;
}

.project-featured {
  margin-bottom: clamp(70px, 9vw, 130px);
}

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.project-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: radial-gradient(
    38rem circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 242, 254, 0.14),
    transparent 42%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.project-media:hover::after {
  opacity: 1;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 400ms ease;
}

.project-media:hover img {
  transform: scale(1.025);
}

.project-featured .project-media {
  aspect-ratio: 16 / 8.2;
  padding: clamp(14px, 3.5vw, 58px);
  background:
    linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(129, 140, 248, 0.2)),
    #050a16;
}

.project-featured .project-media img {
  object-fit: contain;
}

.game-duo-stage {
  display: grid;
  align-content: center;
  gap: 26px;
}

.game-duo-label {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-duo-art {
  display: grid;
  width: min(78%, 900px);
  margin: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
}

.game-duo-art img {
  aspect-ratio: 1;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 22px;
  background: #081426;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.project-copy {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.project-copy h3,
.media-band h3 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.project-copy > p {
  max-width: 570px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  transition: border-color 200ms ease, color 200ms ease;
}

.project:hover .project-meta span {
  border-color: rgba(56, 189, 248, 0.55);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 76px);
}

.project-grid .project-media {
  aspect-ratio: 1 / 1.08;
}

.project-media-bright img {
  filter: saturate(0.86);
}

.project-media-bright:hover img {
  filter: saturate(1.08);
}

.project-launch {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 10px 13px;
  background: var(--accent-sky);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  transition: background 250ms ease, transform 350ms var(--ease);
}

.project-media:hover .project-launch {
  background: var(--accent-cyan);
  transform: translateY(-4px);
}

.project-copy-stacked {
  display: block;
}

.project-copy-stacked > p {
  margin: 28px 0 30px;
}

.pixel-stage {
  display: grid;
  padding: clamp(24px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #111b49;
  background-size: 32px 32px;
  place-items: center;
}

.pixel-window {
  display: grid;
  width: min(78%, 420px);
  padding: 14px;
  border: 1px solid var(--accent-cyan);
  background: var(--bg);
  box-shadow: 14px 14px 0 var(--accent-violet);
  gap: 12px;
  transition: box-shadow 350ms var(--ease), transform 350ms var(--ease);
}

.pixel-stage:hover .pixel-window {
  box-shadow: 20px 20px 0 var(--accent-violet);
  transform: translate(-4px, -4px);
}

.pixel-window img {
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.pixel-top,
.pixel-signal {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.pixel-signal {
  padding: 10px;
  background: var(--accent-sky);
  color: var(--bg);
  text-align: center;
}

.media-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.45fr;
  gap: 32px;
  margin-top: clamp(90px, 11vw, 160px);
  padding: 38px 0;
  border-block: 1px solid var(--line);
  align-items: center;
}

.media-band h3 {
  font-size: clamp(34px, 4vw, 64px);
}

.media-band > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

.media-link {
  display: inline-flex;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.media-link:hover {
  background: var(--accent-cyan);
  color: var(--bg);
}

.capabilities {
  background: #020711;
  color: var(--text);
}

.capabilities .section-heading {
  grid-template-columns: 1fr;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.capability {
  position: relative;
  min-height: 410px;
  padding: 22px 24px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  overflow: hidden;
  transition: color 300ms ease;
}

.capability::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--accent-sky);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 420ms var(--ease-out);
}

.capability:hover::before {
  transform: scaleY(1);
}

.capability > * {
  position: relative;
  z-index: 1;
}

.capability:last-child {
  border-right: 0;
}

.capability:hover {
  color: var(--bg);
}

.capability > span {
  font-family: var(--mono);
  font-size: 11px;
}

.capability h3 {
  margin: 100px 0 34px;
  font-size: clamp(27px, 3.1vw, 47px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  transition: transform 420ms var(--ease-out);
}

.capability:hover h3 {
  transform: translateY(-8px);
}

.capability p {
  max-width: 270px;
  margin: 0;
  color: #aaa59c;
  font-size: 14px;
  line-height: 1.55;
  transition: color 300ms ease;
}

.capability:hover p {
  color: var(--bg);
}

.studio {
  background:
    radial-gradient(circle at 86% 14%, rgba(0, 242, 254, 0.24), transparent 26rem),
    linear-gradient(135deg, #1d4ed8, #4338ca 58%, #312e81);
  color: white;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.studio-statement h2 span {
  display: block;
  color: var(--accent-sky);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  padding-bottom: 0.08em;
}

.studio-statement > p {
  max-width: 780px;
  margin: 58px 0 0 auto;
  font-size: clamp(19px, 2.1vw, 31px);
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.principles > div {
  padding: 24px 24px 0 0;
}

.principles span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.principles p {
  max-width: 280px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.contact {
  padding: clamp(90px, 12vw, 180px) clamp(20px, 4vw, 64px) 56px;
  background: var(--accent-cyan);
  color: var(--bg);
}

.contact-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin-top: clamp(20px, 4vw, 50px);
  align-items: end;
}

.contact h2 span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.contact-link {
  display: flex;
  padding: 20px 0;
  border-block: 1px solid var(--text);
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  transition: padding 180ms ease;
}

.contact-link:hover {
  padding-inline: 12px;
}

.contact :focus-visible {
  outline-color: var(--bg);
  box-shadow: 0 0 0 2px var(--accent-cyan);
}

.contact-note {
  margin: 100px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  padding: 28px clamp(20px, 4vw, 64px);
  background: #020711;
  color: var(--text);
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: #99958d;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: var(--bg);
}

/* ---------------------------------------------------------------------------
   Scroll reveals
--------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-group.is-visible > :nth-child(2) {
  transition-delay: 110ms;
}

.js .reveal-group.is-visible > :nth-child(3) {
  transition-delay: 220ms;
}

.js .reveal-group.is-visible > :nth-child(4) {
  transition-delay: 330ms;
}

/* ---------------------------------------------------------------------------
   Hero entrance choreography (pure CSS, gated on .js so no-JS users
   always see content, and on reduced-motion preference)
--------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .site-header {
    animation: header-in 650ms var(--ease-out) both;
  }

  .js .hero-kicker {
    animation: fade-down 750ms var(--ease-out) 120ms both;
  }

  .js .hero h1 .word {
    animation: word-in 850ms var(--ease-out) both;
    animation-delay: calc(200ms + var(--i, 0) * 95ms);
  }

  .js .hero-bottom {
    animation: fade-up 900ms var(--ease-out) 680ms both;
  }

  .js .hero-stamp {
    animation: stamp-in 1200ms var(--ease-out) 550ms both;
  }
}

@keyframes header-in {
  from {
    transform: translateY(-100%);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(60%) rotate(3deg);
  }

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

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-3deg) scale(0.96);
  }

  to {
    opacity: 0.16;
    transform: rotate(-7deg);
  }
}

/* ---------------------------------------------------------------------------
   Scroll-driven motion (progressive enhancement, no JS, no scroll listeners)
--------------------------------------------------------------------------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      position: absolute;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 2px;
      content: "";
      background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
      transform: scaleX(0);
      transform-origin: left;
      animation: scroll-progress linear both;
      animation-timeline: scroll(root);
    }

    .hero-stamp {
      animation-name: stamp-in, stamp-drift;
      animation-duration: 1200ms, auto;
      animation-timing-function: var(--ease-out), linear;
      animation-delay: 550ms, 0ms;
      animation-fill-mode: both, both;
      animation-timeline: auto, view(block 0% 60%);
    }
  }
}

@keyframes scroll-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes stamp-drift {
  from {
    translate: 0 90px;
  }

  to {
    translate: 0 -110px;
  }
}

/* ---------------------------------------------------------------------------
   Pointer physics (tilt + cursor spotlight), fine pointers only
--------------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  [data-tilt] {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 260ms var(--ease-out);
    will-change: transform;
  }
}

@media (max-width: 980px) {
  .section-heading {
    grid-template-columns: 1fr 3fr;
  }

  .capabilities .section-heading {
    grid-template-columns: 1fr;
  }

  .section-intro {
    grid-column: 2;
  }

  .capability-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability:nth-child(2) {
    border-right: 0;
  }

  .capability:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }

  .media-band {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 78px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 74px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
  }

  .menu-icon,
  .menu-icon::after {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }

  .menu-icon::after {
    transform: translateY(6px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-90deg);
  }

  .primary-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: none;
    min-height: 100vh;
    padding: 130px 20px 50px;
    background:
      radial-gradient(circle at 80% 18%, rgba(129, 140, 248, 0.42), transparent 20rem),
      var(--bg);
    color: var(--text);
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    font-size: 36px;
    letter-spacing: -0.05em;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-contact {
    margin-top: 20px;
    font-size: 20px;
  }

  .hero {
    min-height: 760px;
    padding-top: 20px;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: 11vh;
    font-size: clamp(68px, 23vw, 112px);
    line-height: 0.82;
  }

  .hero-emphasis {
    margin: 10px 0 0;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    margin-top: 70px;
  }

  .hero-bottom > p {
    max-width: 430px;
  }

  .round-link {
    width: 124px;
    height: 124px;
    margin-left: auto;
  }

  .hero-stamp {
    top: 27%;
    right: -120px;
  }

  .section-heading,
  .capabilities .section-heading,
  .studio-grid,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

  .section-intro {
    grid-column: auto;
  }

  .project-featured .project-media {
    aspect-ratio: 1 / 0.9;
    padding: 12px;
  }

  .project-copy,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-copy {
    gap: 26px;
  }

  .project-grid {
    gap: 80px;
  }

  .project-grid .project-media {
    aspect-ratio: 1 / 1;
  }

  .media-band {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }

  .capability:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }

  .capability h3 {
    margin-top: 72px;
  }

  .studio-statement > p {
    margin-top: 42px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-main {
    align-items: start;
  }

  .contact-link {
    margin-top: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .js .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}
