/* =========================================================
   TOKENS
========================================================= */
:root{
  --bg: #141416;
  --bg-elevated: #1b1b1e;
  --bg-card: #1c1c1f;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.14);
  --text: #ECEAE4;
  --text-dim: #9a9a9f;
  --text-faint: #6b6b70;
  --accent: #FF6A1A;      /* render orange   */
  --accent-cyan: #C6FF3D; /* wireframe lime  */
  --accent-soft: rgba(255,106,26,0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-h: 76px;
  --edge: clamp(20px, 6vw, 72px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

#top, #about, #games, #renders, #animations, #contact{
  scroll-margin-top: var(--nav-h);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
}

.mono{ font-family: var(--font-mono); letter-spacing: 0.04em; }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }

::selection{ background: var(--accent); color: #141416; }

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

/* =========================================================
   PAGE CURTAIN (load transition)
========================================================= */
.page-curtain{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform .7s cubic-bezier(.65,0,.35,1), opacity .5s ease .1s;
}
.page-curtain.is-hidden{
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* generic scroll-reveal primitives (used across sections) */
.reveal-up{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-fade{
  opacity: 0;
  transition: opacity 1s ease;
}
.reveal-up.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-fade.is-visible{ opacity: 1; }

/* =========================================================
   BACKGROUND VIEWPORT GRID
========================================================= */
.viewport-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 85%);
  opacity: 0.5;
}

/* =========================================================
   NAV
========================================================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: rgba(20,20,22,0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.nav.is-scrolled{
  background: rgba(20,20,22,0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-logo{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-logo span{ color: var(--accent); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ width: 100%; }

@media (min-width: 701px){
  .nav-secondary{ display: none; }
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-cta{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav-cta:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #141416;
}

.nav-toggle{
  display: none;
  position: relative;
  z-index: 210;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s ease, opacity .2s ease, background .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--edge) 60px;
  max-width: 1920px;
  margin: 0 auto;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/Background.png') no-repeat center / cover;
  opacity: 0.45;
  filter: saturate(1.2);
  -webkit-mask-image: radial-gradient(
      ellipse 70% 65% at 50% 50%,
      black 30%,
      transparent 82%
  );

  mask-image: radial-gradient(
      ellipse 70% 65% at 50% 50%,
      black 30%,
      transparent 82%
  );
  box-shadow: 0 0 160px 70px rgba(198,255,61,0.16);
  z-index: -1;
  pointer-events: none;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.hero-text{
  position: relative;
  text-align: left;
}

.hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.hero-eyebrow .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
}

.hero-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
.hero-name .outline{
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-dim);
}

.hero-footer{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-bio{
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0;
}
.hero-bio strong{
  color: var(--text);
  font-weight: 600;
}

.hero-explore{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.arrow-down{ display: inline-block; animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(4px); }
}

/* --- hero orbit visual --- */
.hero-orbit{
  position: relative;
  aspect-ratio: 1/1;
  max-width: 380px;
  width: 100%;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring{
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}
.orbit-dot{
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transform: translateX(-50%);
}
.orbit-label{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  white-space: nowrap;
}
.orbit-label.top{ top: -26px; }
.orbit-label.bottom{ bottom: -26px; }

.orbit-core{
  position: relative;
  width: 62%;
  height: 62%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-core::before{
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.orbit-core canvas{
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

/* =========================================================
   ABOUT
========================================================= */
.about{
  position: relative;
  z-index: 1;
  padding: 140px var(--edge);
  border-top: 1px solid var(--line);
}
.about-grid{
    display:grid;
    grid-template-columns: 400px 1fr;
    gap:6rem;
    align-items:center;
}
.about-photo{
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}
.about-photo::before{
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}
.about-photo img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.about-inner{
    justify-self: start;
    text-align: left;
}
.about-tag{
  color: var(--accent-cyan);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}
.about-heading{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 1.75rem;
  max-width: 100%;
}
.about-body{
  color: var(--text-dim);
  max-width: 62ch;
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}
.skill-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.skill-tags li{
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
}
/* =========================================================
   GAMES
========================================================= */

.games-section{
  position: relative;
  z-index: 1;
  padding: 100px var(--edge);
  border-top: 1px solid var(--line);
}

.game-row{
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(5rem, 10vw, 9rem);

  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.game-row:last-child{
  margin-bottom: 0;
}

.game-row.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Alternate layout */
.game-row-reverse{
  flex-direction: row-reverse;
}


/* ---------------------------------------------------------
   GAME IMAGE
--------------------------------------------------------- */

.game-media{
  flex: 1 1 56%;
  min-width: 0;
}

.game-image-link{
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #101012;
  border: 1px solid var(--line);
}

.game-image-link img{
  width: 100%;
  height: auto;
  display: block;

  transition:
    transform .6s ease,
    filter .4s ease;

  filter: saturate(.92) contrast(1.02);
}

.game-image-link:hover img{
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.05);
}


/* ---------------------------------------------------------
   CORNER DETAILS
--------------------------------------------------------- */

.game-image-link .corner{
  position: absolute;
  width: 18px;
  height: 18px;

  border: 1.5px solid var(--accent-cyan);

  opacity: 0;

  transition:
    opacity .25s ease,
    transform .25s ease;

  z-index: 3;
}

.game-image-link:hover .corner,
.game-image-link:focus-visible .corner{
  opacity: 1;
}

.game-image-link .corner.tl{
  top: 10px;
  left: 10px;

  border-right: none;
  border-bottom: none;

  transform: translate(4px,4px);
}

.game-image-link .corner.tr{
  top: 10px;
  right: 10px;

  border-left: none;
  border-bottom: none;

  transform: translate(-4px,4px);
}

.game-image-link .corner.bl{
  bottom: 10px;
  left: 10px;

  border-right: none;
  border-top: none;

  transform: translate(4px,-4px);
}

.game-image-link .corner.br{
  bottom: 10px;
  right: 10px;

  border-left: none;
  border-top: none;

  transform: translate(-4px,-4px);
}

.game-image-link:hover .corner.tl,
.game-image-link:hover .corner.tr,
.game-image-link:hover .corner.bl,
.game-image-link:hover .corner.br{
  transform: translate(0,0);
}


/* ---------------------------------------------------------
   GAME INFORMATION
--------------------------------------------------------- */

.game-info{
  flex: 1 1 40%;
  min-width: 0;
}

.game-eyebrow{
  color: var(--accent-cyan);
  font-size: .7rem;
  letter-spacing: .08em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.game-title{
  font-family: var(--font-display);
  font-weight: 600;

  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;

  margin: 0 0 1.25rem;

  letter-spacing: -.02em;
}

.game-description{
  color: var(--text-dim);
  font-size: .98rem;
  line-height: 1.7;

  max-width: 48ch;

  margin: 0 0 2rem;
}


/* ---------------------------------------------------------
   STORE BUTTONS
--------------------------------------------------------- */

.store-button{
  display: inline-flex;
  align-items: center;

  gap: 12px;

  min-width: 190px;
  padding: 10px 18px;

  border: 1px solid var(--line-strong);
  border-radius: 7px;

  background: #09090a;
  color: #fff;

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.store-button:hover{
  transform: translateY(-3px);
  border-color: var(--text-dim);

  background: #111113;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35);
}

.store-button:active{
  transform: translateY(-1px);
}

.store-icon{
  width: 28px;
  height: 28px;

  flex: 0 0 auto;
}

.store-button-text{
  display: flex;
  flex-direction: column;

  line-height: 1.05;
  text-align: left;
}

.store-button-text small{
  font-family: var(--font-body);

  font-size: .58rem;
  font-weight: 400;

  letter-spacing: .02em;

  color: #d2d2d2;

  margin-bottom: 3px;
}

.store-button-text strong{
  font-family: var(--font-body);

  font-size: 1.05rem;
  font-weight: 500;

  letter-spacing: -.02em;
}


/* Google Play hover */

.google-play-button:hover{
  border-color: rgba(255,255,255,.35);
}


/* itch.io */

.itch-button{
  min-width: 170px;
}

.itch-icon{
  color: #fff;
}

.itch-button:hover{
  border-color: var(--accent);
}


/* =========================================================
   GAMES RESPONSIVE
========================================================= */

@media (max-width: 900px){

  .game-row,
  .game-row-reverse{
    flex-direction: column;

    align-items: stretch;

    gap: 2.5rem;

    margin-bottom: 6rem;
  }

  .game-media,
  .game-info{
    flex: none;
    width: 100%;
  }

  .game-description{
    max-width: 62ch;
  }

}

@media (max-width: 700px){

  .games-section{
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .game-row,
  .game-row-reverse{
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .game-title{
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .game-description{
    font-size: .92rem;
  }

  .store-button{
    width: fit-content;
    min-width: 180px;
  }

}
/* =========================================================
   GALLERY
========================================================= */
.gallery{
  position: relative;
  z-index: 1;
  padding: 100px var(--edge);
  border-top: 1px solid var(--line);
}
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}
.section-title .mono{ color: var(--accent); margin-right: 0.6rem; font-weight: 400; }
.section-note{
  color: var(--text-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* --- stills: masonry / varied-size layout --- */
.grid-stills{
  column-count: 2;
  column-gap: 28px;
}
.still-card{
  display: block;
  break-inside: avoid;
  margin: 0 0 28px;
  background: transparent;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.still-card.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.still-card .card-frame{
  aspect-ratio: auto;
  flex: none;
  height: auto;
  border: 1px solid var(--line);
}
.still-card .card-frame img{
  height: auto;
  object-fit: initial;
}
.still-card figcaption{
  border-top: none;
  padding: 14px 2px;
}
.cap-left{
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cap-tag{
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* shared card primitives (used by both stills + animation media) */
.card-frame{
  position: relative;
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border: none;
  background: #101012;
  cursor: pointer;
  overflow: hidden;
}
.card-frame img,
.card-frame video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
  filter: saturate(0.92) contrast(1.02);
}
.card-frame:hover img,
.card-frame:hover video{
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.05);
}

.corner{
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 3;
}
.card-frame:hover .corner,
.card-frame:focus-visible .corner{ opacity: 1; }
.corner.tl{ top: 10px; left: 10px; border-right: none; border-bottom: none; transform: translate(4px,4px); }
.corner.tr{ top: 10px; right: 10px; border-left: none; border-bottom: none; transform: translate(-4px,4px); }
.corner.bl{ bottom: 10px; left: 10px; border-right: none; border-top: none; transform: translate(4px,-4px); }
.corner.br{ bottom: 10px; right: 10px; border-left: none; border-top: none; transform: translate(-4px,-4px); }
.card-frame:hover .corner.tl,
.card-frame:hover .corner.tr,
.card-frame:hover .corner.bl,
.card-frame:hover .corner.br{ transform: translate(0,0); }

figcaption{
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.cap-index{
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.cap-title{
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* =========================================================
   ANIMATIONS — split media/text rows
========================================================= */
.anim-rows{
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

.anim-row{
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.anim-row:nth-child(even){ flex-direction: row-reverse; }

.anim-media{
  flex: 1 1 56%;
  min-width: 0;
  margin: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.anim-media.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.anim-media .card-frame{
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
}

.anim-glow{
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 40%, rgba(var(--glow), 0.55), rgba(var(--glow), 0.08) 45%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.anim-ring{
  position: absolute;
  border: 1px solid rgba(var(--glow), 0.45);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.anim-ring--a{ width: 70%; aspect-ratio: 1/1; top: 8%; left: 4%; }
.anim-ring--b{ width: 46%; aspect-ratio: 1/1; bottom: -10%; right: -6%; }

.play-badge{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  font-size: 0.9rem;
  color: #101012;
  background: rgba(236,234,228,0.92);
  border-radius: 50%;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.card-frame:hover .play-badge{
  background: rgb(var(--glow));
  transform: translate(-50%,-50%) scale(1.08);
}

.anim-meta{
  position: absolute;
  z-index: 3;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity .3s ease;
}
.card-frame:hover .anim-meta{ opacity: 1; }
.anim-meta.bl{ bottom: 14px; left: 16px; }
.anim-meta.br{ bottom: 14px; right: 16px; }

.anim-text{
  flex: 1 1 40%;
  min-width: 0;
}
.anim-eyebrow{
  color: var(--accent-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.anim-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.anim-desc{
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 42ch;
  margin: 0;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  position: relative;
  z-index: 1;
  padding: 90px var(--edge) 40px;
  border-top: 1px solid var(--line);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 40px;
}
.footer-name .mono{ color: var(--accent-cyan); font-size: 0.7rem; }
.footer-name h3{
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0.6rem 0 0.2rem;
}
.footer-name p{ margin: 0; color: var(--text-dim); }
.footer-links{
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a{
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer-links a:hover{ color: var(--accent); border-color: var(--accent); }
.footer-copy{
  color: var(--text-faint);
  font-size: 0.68rem;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 40px var(--edge);
  background: rgba(10,10,11,0.94);
  backdrop-filter: blur(6px);
}
.lightbox.is-open{ display: flex; }
.lightbox-content{
  max-width: min(1100px, 90vw);
  max-height: 78vh;
}
.lightbox-content img,
.lightbox-content video{
  max-width: 100%;
  max-height: 78vh;
  display: block;
  border: 1px solid var(--line-strong);
}
.lightbox-title{
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.lightbox-close{
  position: absolute;
  top: 28px;
  right: var(--edge);
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color .2s ease, color .2s ease;
}
.lightbox-close:hover{ border-color: var(--accent); color: var(--accent); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-orbit{
    order: -1;
    max-width: 260px;
    margin: 0 auto 2.5rem;
  }
  .hero-text{ text-align: left; }

  .hero-footer{ margin-top: 2rem; }

  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ margin: 0 auto 2rem; }
  .about-heading{ max-width: none; }

  .anim-row,
  .anim-row:nth-child(even){
    flex-direction: column;
    align-items: stretch;
  }
  .anim-text{ text-align: left; }
}

@media (max-width: 700px){
  .hero-orbit{
    max-width: 200px;
    opacity: 0.9;
  }
  .hero-name{ font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-footer{ flex-direction: column; align-items: flex-start; }

  .nav-links{
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0 var(--edge);
    background: rgba(15,15,17,0.98);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
  }
  .nav-links.is-open{
    opacity: 1;
    visibility: visible;
  }
  .nav-links a{
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .4s ease;
  }
  .nav-links a span{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
  }
  .nav-links.is-open a{
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.is-open a:nth-child(1){ transition-delay: .08s; }
  .nav-links.is-open a:nth-child(2){ transition-delay: .14s; }
  .nav-links.is-open a:nth-child(3){ transition-delay: .2s; }
  .nav-links.is-open a:nth-child(4){ transition-delay: .26s; }

  .nav-links-footer{
    margin-top: 2rem;
    font-size: 0.65rem;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity .5s ease .32s;
  }
  .nav-links.is-open .nav-links-footer{ opacity: 1; }

  .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
  body.nav-open{ overflow: hidden; }

  .grid-stills{ column-count: 1; }
  .anim-media .card-frame{ aspect-ratio: 4/3; }
  .footer-inner{ align-items: flex-start; flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html{ scroll-behavior: auto; }
}