@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/static/fonts/DMMono-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/static/fonts/DMMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/static/fonts/DMMono-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --surface: #111115;
  --surface-2: #15151a;

  --text: #f2f0e9;
  --muted: #99989f;
  --muted-2: #6f6e76;
  --line: #2a2930;

  --accent: #d9ff43;
  --purple: #be95ff;
  --orange: #ffad66;
  --green: #80e7af;
  --blue: #8fc8ff;

  --mono: "DM Mono", monospace;
  --sans: "Inter", sans-serif;

  --header-height: 82px;
}


/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--bg);
  color: var(--text);

  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;

  pointer-events: none;
  opacity: 0.025;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #111;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress-track {
  position: fixed;

  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;

  z-index: 999;

  background: rgba(255, 255, 255, 0.04);

  pointer-events: none;
}

.scroll-progress {
  width: 100%;
  height: 100%;

  transform: scaleY(0);
  transform-origin: top;

  background:
    linear-gradient(
      to bottom,
      var(--accent),
      var(--purple) 40%,
      var(--orange) 72%,
      var(--green)
    );

  box-shadow:
    0 0 14px rgba(190, 149, 255, 0.28);

  will-change: transform;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: var(--header-height);

  padding: 0 5vw;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    linear-gradient(
      to bottom,
      rgba(11, 11, 13, 0.97),
      rgba(11, 11, 13, 0.72),
      rgba(11, 11, 13, 0)
    );

  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;

  letter-spacing: -0.05em;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 2.2rem;
}

.main-nav a {
  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.9rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
  outline: none;
}


/* =========================================================
   SHARED SECTION STYLES
========================================================= */

.section {
  position: relative;

  min-height: 100vh;

  padding:
    130px
    7vw
    110px;

  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0 0 4rem;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 0.92rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading {
  margin-bottom: 5.5rem;
}

.section-heading h2 {
  margin: 0;

  max-width: 1000px;

  font-size: clamp(3.3rem, 7vw, 7rem);
  line-height: 0.92;

  letter-spacing: -0.065em;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(360px, 0.85fr);

  align-items: center;

  gap: 4vw;

  overflow: hidden;
}

.hero-copy {
  position: relative;

  z-index: 5;
}

.hero-eyebrow {
  margin-bottom: 1.4rem;

  color: var(--muted);

  font-size: 1.18rem;

  text-transform: none;
}

.hero h1 {
  margin: 0;

  font-size: clamp(5.5rem, 10vw, 10.5rem);
  line-height: 0.81;

  font-weight: 800;

  letter-spacing: -0.085em;

  text-transform: uppercase;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 650px;

  margin:
    3rem
    0
    3.5rem;

  color: #c9c7c2;

  font-size: clamp(1.15rem, 1.75vw, 1.75rem);
  line-height: 1.48;
}

.scroll-link {
  display: inline-flex;
  align-items: center;

  gap: 1rem;

  font-family: var(--mono);
  font-size: 0.86rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  transition: color 180ms ease;
}

.scroll-link span {
  color: var(--accent);

  font-size: 1.4rem;

  transition: transform 180ms ease;
}

.scroll-link:hover {
  color: var(--accent);
}

.scroll-link:hover span {
  transform: translateY(4px);
}


/* =========================================================
   ORBIT
========================================================= */

.orbit-area {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 620px;
}

.orbit {
  position: relative;

  width: min(42vw, 590px);

  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;

  border-radius: 50%;

  border: 1px solid rgba(150, 148, 160, 0.32);

  animation:
    orbit-spin 22s
    linear
    infinite;
}

.orbit-ring-one {
  inset: 0;
}

.orbit-ring-two {
  inset: 15%;

  animation-duration: 15s;
  animation-direction: reverse;

  border-color:
    rgba(190, 149, 255, 0.26);
}

.orbit-ring-three {
  inset: 29%;

  animation-duration: 10s;

  border-color:
    rgba(255, 173, 102, 0.25);
}

.orbit-sphere {
  position: absolute;

  display: block;

  border-radius: 50%;
}

.orbit-ring-one .orbit-sphere {
  width: 17px;
  height: 17px;

  top: 4.5%;
  left: 15.5%;

  transform: translate(-1px, -1px);
}

.orbit-ring-two .orbit-sphere {
  width: 11px;
  height: 11px;

  top: 55%;
  right: 2%;

  transform: translate(4px, 0);
}

.orbit-ring-three .orbit-sphere {
  width: 8px;
  height: 8px;

  bottom: -7px;
  left: 44%;

  transform: translateY(3px);
}

.sphere-lime {
  color: var(--accent);
  background: var(--accent);

  box-shadow:
    0 0 28px currentColor;
}

.sphere-purple {
  color: var(--purple);
  background: var(--purple);

  box-shadow:
    0 0 28px currentColor;
}

.sphere-orange {
  color: var(--orange);
  background: var(--orange);

  box-shadow:
    0 0 28px currentColor;
}


/* =========================================================
   ORBIT CORE / PORTRAIT
========================================================= */

.orbit-core {
  position: absolute;
  inset: 35%;
  z-index: 5;

  padding: 0;
  overflow: hidden;

  border-radius: 50%;
  border: 1px solid rgba(217, 255, 67, 0.28);

  cursor: pointer;

  background:
    radial-gradient(
      circle at center,
      rgba(217, 255, 67, 0.15),
      rgba(17, 17, 21, 0.9) 52%,
      rgba(11, 11, 13, 0.98)
    );

  box-shadow:
    0 0 45px rgba(217, 255, 67, 0.08);

  transition:
  inset 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
  transform 280ms ease,
  border-color 280ms ease,
  box-shadow 280ms ease;
}

.orbit-core.is-revealed {
  inset: 15%;
  transform: scale(1);
}

.orbit-core:hover,
.orbit-core:focus-visible {
  outline: none;

  transform: scale(1.04);

  border-color: rgba(217, 255, 67, 0.7);

  box-shadow:
    0 0 50px rgba(217, 255, 67, 0.18);
}


/* =========================================================
   CORE GLOW
========================================================= */

.core-glow {
  position: absolute;
  inset: 19%;

  border-radius: 50%;
  border: 1px solid rgba(217, 255, 67, 0.42);

  animation:
    core-pulse
    2.8s
    ease-in-out
    infinite;

  transition: opacity 300ms ease;
}


/* =========================================================
   PORTRAIT REVEAL ICON
========================================================= */

.portrait-reveal-icon {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 4;

  width: 34px;
  height: 34px;

  transform: translate(-50%, -50%);

  opacity: 0.72;

  pointer-events: none;

  transition:
    opacity 250ms ease,
    transform 350ms ease;
}

.portrait-reveal-icon i {
  position: absolute;

  width: 10px;
  height: 10px;

  border-color: var(--accent);
  border-style: solid;

  transition:
    width 250ms ease,
    height 250ms ease;
}

.portrait-reveal-icon i:nth-child(1) {
  top: 0;
  left: 0;

  border-width: 1px 0 0 1px;
}

.portrait-reveal-icon i:nth-child(2) {
  top: 0;
  right: 0;

  border-width: 1px 1px 0 0;
}

.portrait-reveal-icon i:nth-child(3) {
  right: 0;
  bottom: 0;

  border-width: 0 1px 1px 0;
}

.portrait-reveal-icon i:nth-child(4) {
  bottom: 0;
  left: 0;

  border-width: 0 0 1px 1px;
}

.orbit-core:hover .portrait-reveal-icon,
.orbit-core:focus-visible .portrait-reveal-icon {
  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1.12);
}

.orbit-core:hover .portrait-reveal-icon i,
.orbit-core:focus-visible .portrait-reveal-icon i {
  width: 13px;
  height: 13px;
}


/* =========================================================
   PORTRAIT
========================================================= */

.orbit-portrait {
  position: absolute;
  inset: 0;

  z-index: 3;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 52% 16%;

  filter:
    grayscale(1)
    contrast(1.03);

  opacity: 0;

  transform: scale(1.22);

  transition:
    opacity 450ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.orbit-core.is-revealed .orbit-portrait {
  opacity: 1;
  transform: scale(1.14);
}

.orbit-core.is-revealed .core-glow {
  opacity: 0;
}

.orbit-core.is-revealed .portrait-reveal-icon {
  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(1.4);
}


/* =========================================================
   ORBIT ANIMATIONS
========================================================= */

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}


/* =========================================================
   WORK / PROJECT LIST
========================================================= */

.projects {
  width: 100%;
}

.project {
  border-top:
    1px solid
    var(--line);
}

.project:last-child {
  border-bottom:
    1px solid
    var(--line);
}

.project-summary {
  appearance: none;

  width: 100%;

  padding:
    2.8rem
    0;

  border: 0;

  background: transparent;

  color: inherit;

  cursor: pointer;

  text-align: left;

  display: grid;

  grid-template-columns:
    72px
    minmax(0, 1fr);

  gap: 2rem;

  transition:
    padding 280ms ease,
    background 280ms ease;
}

.project-summary:hover,
.project-summary:focus-visible,
.project-summary[aria-expanded="true"] {
  outline: none;

  padding-left: 1.4rem;
  padding-right: 1.4rem;

  background: var(--surface);
}

.project-number {
  padding-top: 0.25rem;

  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.75rem;

  letter-spacing: 0.08em;
}

.project-summary-content {
  min-width: 0;

  display: block;
}

.project-category {
  display: block;

  margin-bottom: 0.8rem;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 0.74rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-title-row {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 2rem;
}

.project-title {
  display: block;

  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;

  font-weight: 700;

  letter-spacing: -0.05em;
}

.project-arrow {
  position: relative;

  flex: 0 0 auto;

  width: 28px;
  height: 28px;

  margin-top: 0.25rem;

  transition: transform 280ms ease;
}

.project-arrow::before {
  content: "";

  position: absolute;

  top: 6px;
  right: 5px;

  width: 20px;
  height: 1.5px;

  background: var(--accent);

  transform: rotate(-45deg);
  transform-origin: right center;
}

.project-arrow::after {
  content: "";

  position: absolute;

  top: 5px;
  right: 4px;

  width: 9px;
  height: 9px;

  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
}

.project-summary:hover .project-arrow {
  transform: translate(2px, -2px);
}

.project-summary[aria-expanded="true"] .project-arrow {
  transform: rotate(45deg);
}

.project-subtitle {
  display: block;

  margin-top: 0.35rem;

  color: #c4c2bd;

  font-family: var(--mono);
  font-size: 0.82rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-intro {
  display: block;

  max-width: 780px;

  margin-top: 1rem;

  color: var(--muted);

  font-size: 0.98rem;
  line-height: 1.62;
}

.project-stack {
  display: block;

  margin-top: 1.2rem;

  color: #b8b7bd;

  font-family: var(--mono);
  font-size: 0.72rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-explore {
  display: block;

  margin-top: 1.6rem;

  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.7rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* =========================================================
   PROJECT DETAILS
========================================================= */

.project-details {
  display: grid;

  grid-template-rows: 0fr;

  overflow: hidden;

  transition:
    grid-template-rows
    550ms
    cubic-bezier(0.22, 1, 0.36, 1);
}

.project-details.is-open {
  grid-template-rows: 1fr;
}

.project-details-inner {
  min-height: 0;

  overflow: hidden;

  padding:
    0
    clamp(1.5rem, 6vw, 7rem);

  background:
    linear-gradient(
      180deg,
      var(--surface),
      #0f0f12
    );

  transition:
    padding
    550ms
    cubic-bezier(0.22, 1, 0.36, 1);
}

.project-details.is-open
.project-details-inner {
  padding-top:
    clamp(4rem, 8vw, 7rem);

  padding-bottom:
    clamp(4.5rem, 8vw, 7rem);
}

.detail-kicker,
.detail-label {
  margin: 0;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 0.74rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-details h3 {
  max-width: 1050px;

  margin:
    2rem
    0
    0;

  font-size: clamp(3rem, 7vw, 7.3rem);
  line-height: 0.94;

  letter-spacing: -0.065em;
}

.detail-copy {
  max-width: 900px;

  margin:
    3.5rem
    0
    0
    auto;

  color: #c8c6c1;

  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.72;
}

.detail-copy p {
  margin:
    0
    0
    1.5rem;
}

.detail-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   TECHNICAL SECTIONS
========================================================= */

.technical-section,
.game-tech,
.development-section,
.learning-section {
  margin-top:
    clamp(5rem, 9vw, 8rem);
}

.technical-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  margin-top: 2.4rem;

  border-top:
    1px solid
    var(--line);
}

.technical-item {
  padding:
    2rem
    2rem
    2rem
    0;

  border-bottom:
    1px solid
    var(--line);
}

.technical-item:nth-child(odd) {
  border-right:
    1px solid
    var(--line);
}

.technical-item:nth-child(even) {
  padding-left: 2rem;
}

.technical-item h4,
.game-tech-grid h4 {
  margin:
    0
    0
    0.9rem;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.technical-item p {
  margin: 0;

  color: var(--muted);

  line-height: 1.75;
}


/* =========================================================
   SECURITY LAYERS
========================================================= */

.security-layers {
  margin-top:
    clamp(4.5rem, 8vw, 7rem);

  padding:
    2.7rem
    0;

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}

.security-layers > p {
  max-width: 780px;

  margin:
    0
    0
    2.2rem;

  color: #c8c6c1;

  line-height: 1.72;
}

.layer-flow {
  display: flex;
  align-items: center;

  gap: 0.8rem;

  font-family: var(--mono);
  font-size: 0.7rem;

  color: var(--muted);

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.layer-flow span {
  white-space: nowrap;
}

.layer-flow i {
  flex:
    1
    1
    30px;

  min-width: 20px;
  max-width: 80px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--purple)
    );

  opacity: 0.55;
}


/* =========================================================
   GAME TECH
========================================================= */

.game-tech-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  margin-top: 2.4rem;

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}

.game-tech-grid > div {
  padding: 2rem;

  border-right:
    1px solid
    var(--line);
}

.game-tech-grid > div:first-child {
  padding-left: 0;
}

.game-tech-grid > div:last-child {
  border-right: 0;
}

.game-tech-grid p {
  margin: 0;

  color: var(--muted);

  line-height: 1.7;
}

.development-section > p:last-child {
  max-width: 850px;

  margin:
    2rem
    0
    0;

  color: var(--muted);

  line-height: 1.75;
}


/* =========================================================
   VIDEO
========================================================= */

.game-media {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  margin-top:
    clamp(5rem, 9vw, 8rem);

  overflow: hidden;

  border:
    1px solid
    var(--line);

  background: #08080a;
}

.game-video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  background: #08080a;
}

.video-play {
  position: absolute;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;

  cursor: pointer;

  background: transparent;
}

.video-play::before {
  content: "";

  position: absolute;

  width:
    clamp(70px, 8vw, 105px);

  aspect-ratio: 1;

  border-radius: 50%;

  border:
    1px solid
    rgba(217, 255, 67, 0.72);

  background:
    rgba(11, 11, 13, 0.73);

  box-shadow:
    0 0 38px
    rgba(217, 255, 67, 0.2);

  backdrop-filter: blur(6px);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.video-play:hover::before,
.video-play:focus-visible::before {
  transform: scale(1.08);

  background:
    rgba(11, 11, 13, 0.86);

  box-shadow:
    0 0 50px
    rgba(217, 255, 67, 0.3);
}

.video-play:focus-visible {
  outline:
    2px solid
    var(--accent);

  outline-offset: -4px;
}

.video-play span {
  position: relative;
  z-index: 2;

  display: block;

  width: 0;
  height: 0;

  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--accent);

  transform: translateX(12%);
}

.video-play.is-hidden {
  display: none;
}

.video-play.is-replay span {
  width: 24px;
  height: 24px;

  border: 2px solid var(--accent);
  border-left-color: transparent;
  border-radius: 50%;

  transform: none;
}

.video-play.is-replay span::after {
  content: "";

  position: absolute;

  left: -5px;
  bottom: 1px;

  width: 7px;
  height: 7px;

  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);

  transform: rotate(-22deg);
}


/* =========================================================
   LEARNINGS / FOOTERS
========================================================= */

.learning-section .detail-copy {
  margin-top: 2rem;
}

.project-scope {
  max-width: 820px;

  margin:
    5rem
    0
    0
    auto;

  color: var(--muted-2);

  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-footer {
  margin-top: 5rem;

  padding-top: 1.8rem;

  border-top:
    1px solid
    var(--line);

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 2rem;

  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.72rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-footer a {
  color: var(--accent);

  transition: color 180ms ease;
}

.detail-footer a:hover,
.detail-footer a:focus-visible {
  color: var(--text);
  outline: none;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
  min-height: auto;
}

.code-window {
  width: 100%;

  padding:
    clamp(1.5rem, 4vw, 4rem);

  overflow: hidden;

  border:
    1px solid
    var(--line);

  background: var(--surface);
}

.code-window pre {
  width: 100%;

  margin: 0;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.code-window code {
  display: block;

  width: 100%;

  color: #d1d0cb;

  font-family: var(--mono);
  font-size:
    clamp(0.76rem, 1.05vw, 1rem);

  line-height: 1.8;
}

.code-comment {
  color: #6d6c75;
}

.code-keyword {
  color: var(--purple);
}

.code-class {
  color: var(--green);
}

.code-function {
  color: var(--orange);
}

.code-string {
  color: var(--blue);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  min-height: 82vh;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.contact h2 {
  width: 100%;
  max-width: 1150px;

  margin: 0;

  font-size: clamp(2.8rem, 6.2vw, 6.5rem);
  line-height: 0.96;

  letter-spacing: -0.06em;

  overflow-wrap: normal;
}

.contact-email {
  display: inline-block;

  width: fit-content;

  margin-top: 4rem;

  padding-bottom: 0.4rem;

  border-bottom:
    1px solid
    var(--accent);

  color: var(--accent);

  font-family: var(--mono);
  font-size:
    clamp(1rem, 2vw, 1.6rem);

  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--text);

  border-color: var(--text);

  outline: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;

  gap: 2rem;

  margin-top: 4rem;

  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.78rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-links a {
  transition:
    color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
  outline: none;
}


/* =========================================================
   CSS EXTERNAL-LINK ICONS
========================================================= */

/* =========================================================
   EXTERNAL LINK ICONS
========================================================= */

.detail-footer a::after,
.contact-email::after,
.social-links a::after {
  content: "↗";

  display: inline-block;

  margin-left: 0.45em;

  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 400;

  line-height: 1;

  color: currentColor;

  transform: translateY(-0.05em);

  transition: transform 180ms ease;
}

.detail-footer a:hover::after,
.contact-email:hover::after,
.social-links a:hover::after {
  transform:
    translate(2px, -2px);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  min-height: 100px;

  padding:
    0
    7vw;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  color: var(--muted);

  font-family: var(--mono);
  font-size: 0.68rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 0 6vw;
  }

  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.68rem;
  }

  .section {
    min-height: auto;
    padding: 105px 6vw 80px;
  }

  .section-label {
    margin-bottom: 3.2rem;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 100svh;
    display: block;
    padding-top: calc(var(--header-height) + 75px);
  }

  .hero-copy {
    max-width: 88vw;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
    font-size: 1.04rem;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 19vw, 7.2rem);
  }

  .hero-description {
    max-width: 82vw;
    margin: 2.3rem 0 2.8rem;
    font-size: clamp(1.02rem, 4vw, 1.3rem);
  }

  .orbit-area {
    display: none;
  }

  .section-heading {
    margin-bottom: 4rem;
  }

  .section-heading h2 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .project-summary {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    padding: 2.2rem 0;
  }

  .project-summary:hover,
  .project-summary:focus-visible,
  .project-summary[aria-expanded="true"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .project-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .project-arrow {
  position: relative;

  width: 18px;
  height: 18px;

  margin-top: 0.35rem;

  border: 0;

  transform: none;

  transition: transform 280ms ease;
}

.project-arrow::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 10px;
  height: 10px;

  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);

  transform:
    translate(-65%, -50%)
    rotate(45deg);

  transform-origin: center;
}

.project-arrow::after {
  content: none;
}

.project-summary:hover .project-arrow {
  transform: none;
}

.project-summary[aria-expanded="true"] .project-arrow {
  transform: rotate(90deg);
}

  .project-intro {
    font-size: 0.9rem;
  }

  .project-stack {
    font-size: 0.64rem;
    line-height: 1.65;
  }

  .project-details-inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .project-details.is-open .project-details-inner {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .project-details h3 {
    font-size: clamp(2.6rem, 12vw, 5rem);
  }

  .detail-copy {
    margin: 2.5rem 0 0;
    font-size: 1rem;
  }

  .technical-section,
  .game-tech,
  .development-section,
  .learning-section {
    margin-top: 4.5rem;
  }

  .technical-grid {
    grid-template-columns: 1fr;
  }

  .technical-item,
  .technical-item:nth-child(odd),
  .technical-item:nth-child(even) {
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-tech-grid {
    grid-template-columns: 1fr;
  }

  .game-tech-grid > div,
  .game-tech-grid > div:first-child,
  .game-tech-grid > div:last-child {
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layer-flow {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .layer-flow i {
    min-width: 10px;
  }

  .project-scope {
    margin-top: 3.5rem;
  }

  .detail-footer {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.7;
  }

  .game-media {
    aspect-ratio: 16 / 10;
  }

  .code-window {
    padding: 1.15rem;
  }

  .code-window code {
    font-size: clamp(0.64rem, 2.7vw, 0.76rem);
    line-height: 1.65;
  }

  .contact {
    min-height: 78svh;
  }

  .contact h2 {
    max-width: 100%;
    font-size: clamp(2.5rem, 10.5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .contact h2 br {
    display: none;
  }

  .contact-email {
    margin-top: 3rem;
    font-size: clamp(0.9rem, 4vw, 1.15rem);
    overflow-wrap: anywhere;
  }

  .social-links {
    gap: 1.4rem;
  }

  .site-footer {
    min-height: 120px;
    padding: 1.6rem 6vw;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 560px) {
  .site-header {
    align-items: center;
  }

  .main-nav {
    gap: 0.65rem;
  }

  .main-nav a {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .hero-copy {
    max-width: 92vw;
  }

  .hero-description {
    max-width: 88vw;
  }

  .project-summary {
    grid-template-columns: 1fr;
  }

  .project-number {
    padding: 0;
  }

  .project-title-row {
    gap: 1rem;
  }

  .layer-flow i {
    display: none;
  }

  .layer-flow span {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .contact h2 br {
    display: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@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;
  }
}