/* =====================================================================
   jln-msr.digital

   1. basics      resets, type, layout shell
   2. loader
   3. nav
   4. mouse
   5. home
   6. footer
   7. subpages    digital / analog / about / ai / project detail
   ===================================================================== */

:root {
  /* type — Neue Haas Grotesk via Typekit */
  --font-display: neue-haas-grotesk-display, sans-serif;   /* headlines + nav */
  --font-text:    neue-haas-grotesk-text, sans-serif;      /* body copy */

  --black:   #000;
  --white:   #fff;
  --blue:    #0000ff;
  --cyan:    #00ffff;
  --magenta: #ff00ff;
}

/* ====================================================================
   1. BASICS
   ==================================================================== */

* {
  padding: 0px;
  margin: 0px;
  cursor: none !important;
}

html {
  cursor: none !important;
}

body {
  background-color: var(--black);
  font-family: var(--font-text);
  color: var(--white);
}

.serif {
  font-family: redaction-20, sans-serif;
  color:var(--white);
}

.sans {
  font-family: var(--font-text);
  font-weight: 400;
}

.mono {
  font-family: "space-mono", mono;
  font-size: 8px;
}

.glitch {
  text-shadow: -1px 0px 0px var(--blue), -2px 0px 0px var(--cyan), 1px 0px 0px var(--magenta);
}

.pixel-fun {
  font-family: "puffin-arcade-chrome", sans-serif;
  font-weight: 800;
  font-style: normal;
}

section {
  max-width: 1920px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 10em;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.25rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.1rem;
}

h4 {
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 400;
}

h6 {
  font-size: 0.75rem;
  padding-top: .5rem;
  font-weight: 300;
}

section a {
  color:inherit;
  font-size: 1rem;
  display: inline-block;
}

.desktop__notice {
  font-size: 1rem;
  background-color: var(--white);
  color:var(--black);
  width: 100%;
  text-align: center;
  display: block;
  position: fixed;
  bottom:0;
  z-index: 100;
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 400;
  padding-top: 10px;
  padding-bottom: 10px;
}


:root {
  --header-hero-radius: 1.5rem;
  --header-hero-fg: var(--white);
  --header-hero-glitch-cyan: var(--cyan);
  --header-hero-glitch-magenta: var(--magenta);
}

@keyframes header-hero-glitch {
  0% {
  text-shadow:
  -3px 0 var(--header-hero-glitch-cyan),
  3px 0 var(--header-hero-glitch-magenta);
  transform: translateX(0);
  }
  50% {
  text-shadow:
  4px 0 var(--header-hero-glitch-cyan),
  -4px 0 var(--header-hero-glitch-magenta);
  transform: translateX(-1px);
  }
  100% {
  text-shadow:
  -2px 0 var(--header-hero-glitch-cyan),
  2px 0 var(--header-hero-glitch-magenta);
  transform: translateX(1px);
  }
}

footer {
  background: var(--blue);
  padding: 80px 0 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 899px) {
h1 {
    font-size: 5rem;
  }
h2 {
    font-size: 4rem;
  }
h4 {
    font-size: 1em;
  }
h6 {
    font-size: 0.5rem;
  }
}

@media (max-width: 599px) {
h1 {
    font-size: 3.5em;
  }
h2 {
    font-size: 2.5rem;
  }
h4 {
    font-size: 0.75em;
  }
h6 {
    font-size: 0.375rem;
  }
}

@media (min-width: 599px) {
.desktop__notice {
    display: none;
  }
}

/* ====================================================================
   2. LOADER
   ==================================================================== */

.loading-screen {
  pointer-events: auto;
  background-color: var(--black);
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.loading-container {
  z-index: 200;
  pointer-events: none;
  background-color: var(--black);
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.loading__progress {
  width: 1em;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.loading__progress-inner {
  transform-origin: bottom;
  background-color: var(--magenta);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.loading__numbers {
  flex-flow: row;
  align-items: flex-start;
  font-size: calc(10vw + 10vh);
  display: flex;
  position: absolute;
  bottom: .1em;
  left: .23em;
}

.loading__number-group {
  flex-flow: column;
  height: 1em;
  display: flex;
  position: relative;
  overflow: hidden;
}

.loading__number-wrap {
  will-change: transform;
  flex-flow: column;
  display: flex;
  position: relative;
}

.loading__number {
  text-transform: uppercase;
  font-family: redaction-20, sans-serif;
  font-weight: 700;
  line-height: 1;
  position: relative;
  color: var(--white);
}

.loading__percentage-wrap {
  flex-flow: column;
  justify-content: flex-start;
  margin-top: .375em;
  font-size: .3em;
  display: flex;
  overflow: hidden;
}

.loading__percentage {
  text-transform: uppercase;
  will-change: transform;
  font-weight: 400;
  line-height: 1;
  position: relative;
}

/* ====================================================================
   3. NAV
   ==================================================================== */

.bold-nav-full {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.bold-nav-full__bar {
  z-index: 1;
  width: 100%;
  padding: 2em 2em 2em 1.5em;
  display: flex;
  position: absolute;
}

.bold-nav-full__logo {
  pointer-events: auto;
  color: var(--white);
  align-items: center;
  width: 6em;
  display: flex;
}

.bold-nav-full__hamburger {
  pointer-events: auto;
  color: var(--white);
  cursor: pointer;
  background-color: #0000;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  display: flex;
  position: absolute;
  overflow: hidden;
  border: 0px;
  right: 100px;
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar {
  background-color: currentColor;
  width: 2em;
  height: .125em;
  position: absolute;
  transform: translate(0, 0)  rotate(0.001deg);
  transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar:nth-child(1) {
  transform: translate(0, -.45em) scale(1, 1) rotate(0.001deg);
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar:nth-child(3) {
  transform: translate(0, .45em) scale(1, 1) rotate(0.001deg);
}

.bold-nav-full__hamburger:hover .bold-nav-full__hamburger-bar:nth-child(1) {
  transform: translate(0, -.45em) scale(.5, 1) rotate(0.001deg);
}

.bold-nav-full__hamburger:hover .bold-nav-full__hamburger-bar:nth-child(3) {
  transform: translate(0, .45em) scale(.5, 1) rotate(0.001deg);
}

[data-navigation-status="active"]  .bold-nav-full__hamburger-bar:nth-child(1) {
  transform: translate(0, 0) rotate(45deg) scale(1, 1);
}

[data-navigation-status="active"] .bold-nav-full__hamburger-bar:nth-child(2) {
  transform: translate(-150%, 0) rotate(0.001deg) scale(1, 1);
}

[data-navigation-status="active"]  .bold-nav-full__hamburger-bar:nth-child(3) {
  transform: translate(0, 0) rotate(-45deg) scale(1, 1);
}

[data-navigation-status="active"] .bold-nav-full__hamburger:hover .bold-nav-full__hamburger-bar:nth-child(1) {
  transform: translate(0, 0) rotate(45deg) scale(.7, 1);
}

[data-navigation-status="active"] .bold-nav-full__hamburger:hover .bold-nav-full__hamburger-bar:nth-child(3) {
  transform: translate(0, 0) rotate(-45deg) scale(.7, 1);
}

.bold-nav-full__tile {
  pointer-events: auto;
  background-color: var(--blue);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  transition: clip-path 1s cubic-bezier(.9, 0, .1, 1);
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}

[data-navigation-status="active"] .bold-nav-full__tile {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.bold-nav-full__ul {
  flex-flow: column;
  align-items: center;
  margin: 0;
  padding: 0;
  display: flex;
}

.bold-nav-full__li {
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
}

.bold-nav-full__link {
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: -.04em;
  padding-left: .075em;
  padding-right: .075em;
  font-size: 4rem;
  font-weight: 400;
  text-decoration: none;
  transform: translateY(100%) rotate(5deg);
  transition: transform 0.75s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__li:nth-child(1) .bold-nav-full__link {
  transition-delay: 0.2s;
}

.bold-nav-full__li:nth-child(2) .bold-nav-full__link {
  transition-delay: 0.15s;
}

.bold-nav-full__li:nth-child(3) .bold-nav-full__link {
  transition-delay: 0.1s;
}

.bold-nav-full__li:nth-child(4) .bold-nav-full__link {
  transition-delay: 0.05s;
}

.bold-nav-full__li:nth-child(5) .bold-nav-full__link {
  transition-delay: 0s;
}

[data-navigation-status="active"] .bold-nav-full__link {
  transform: translateY(0%) rotate(0.001deg);
  transition-delay: 0.3s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(1) .bold-nav-full__link {
  transition-delay: 0.3s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(2) .bold-nav-full__link {
  transition-delay: 0.35s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(3) .bold-nav-full__link {
  transition-delay: 0.4s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(4) .bold-nav-full__link {
  transition-delay: 0.45s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(5) .bold-nav-full__link {
  transition-delay: 0.5s;
}

.bold-nav-full__link-text {
  text-shadow: 0 1.1em 0;
  display: block;
  position: relative;
}

.bold-nav-full__li {
  transition: opacity 0.5s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li {
  opacity: 0.3;
}

.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li:hover {
  opacity: 1;
}

.bold-nav-full__link .bold-nav-full__link-text {
  transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
  transform: translateY(0%) rotate(0.001deg);
}

.bold-nav-full__link:hover .bold-nav-full__link-text {
  transform: translateY(-100%) rotate(0.001deg);
}

/* ====================================================================
   4. MOUSE
   ==================================================================== */

.cursor {
  z-index: 1000;
  pointer-events: none;
  position: fixed;
  inset: 0% auto auto 0%;
}

.cursor-inner {
  width: 2em;
}

.cursor-inner.pointer {
  width: 2.5em;
}

.cursor, .cursor-inner.pointer {
  display: none;
}

html:hover .cursor {
  display: block;
}

body:has( a:hover) .cursor-inner.pointer, body:has( button:hover) .cursor-inner.pointer, body:has( [data-cursor]:hover) .cursor-inner.pointer {
  display: block;
}

body:has( a:hover) .cursor-inner.regular, body:has( button:hover) .cursor-inner.regular, body:has( [data-cursor]:hover) .cursor-inner.regular {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
.cursor {
    display: none !important;
  }
}

/* ====================================================================
   5. HOME
   ==================================================================== */

.hero a:hover {
  color:var(--blue)
}

.hero a:active {
  color:var(--magenta)
}

.skills-header {
  padding: 0 var(--pad-x);
  margin-bottom: 56px;
}

.skills-header .section-heading {
  margin-bottom: 12px;
}

.skills-sub {
  font-size: 0.8rem;
  line-height: 1.6;
}

.bubbles-stage {
  position: relative;
  width: 100%;
  height: 560px;
}

.bubble {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 22%;
  background: var(--white);
  border: 1.5px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
  will-change: transform;
  overflow: hidden;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.bubble[data-skill="Ai"].is-hovered {
  background: #281300; border-color: #281300;
}

.bubble[data-skill="Ae"].is-hovered {
  background: #0D0740; border-color: #0D0740;
}

.bubble[data-skill="Ps"].is-hovered {
  background: #001E36; border-color: #001E36;
}

.bubble[data-skill="Xd"].is-hovered {
  background: #2E0021; border-color: #2E0021;
}

.bubble[data-skill="Figma"].is-hovered {
  background: #1C1930; border-color: #1C1930;
}

.bubble[data-skill="Blender"].is-hovered {
  background: #1C1C1C; border-color: #1C1C1C;
}

.bubble[data-skill="GSAP"].is-hovered {
  background: transparent; border-color: #0ae448;
}

.bubble-label {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  color: #111;
  pointer-events: none;
  transition: color 0.22s ease;
}

.bubble[data-skill="Ai"].is-hovered  .bubble-label {
  color: #E26C00;
}

.bubble[data-skill="Ae"].is-hovered  .bubble-label {
  color: #9999FF;
}

.bubble[data-skill="Ps"].is-hovered  .bubble-label {
  color: #31A8FF;
}

.bubble[data-skill="Xd"].is-hovered  .bubble-label {
  color: #FF61F6;
}

.bubble svg {
  max-width: 60%;
  max-height: 55%;
  width: auto;
  height: auto;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.bubble[data-skill="Blender"].is-hovered .blend-hi {
  fill: var(--white);
}

.bubble[data-skill="GSAP"].is-hovered .gsap-mark path {
  fill: #0d1117;
}

.bubble[data-skill="GSAP"] {
  background: transparent;
}

.bubble[data-skill="GSAP"]::before, .bubble[data-skill="GSAP"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.22s ease;
}

.bubble[data-skill="GSAP"]::before {
  background: var(--white);
}

.bubble[data-skill="GSAP"]::after {
  background: linear-gradient(135deg, #0AE448 0%, #ABFF84 100%);
  opacity: 0;
}

.bubble[data-skill="GSAP"].is-hovered::before {
  opacity: 0;
}

.bubble[data-skill="GSAP"].is-hovered::after {
  opacity: 1;
}

.bubble-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--black);
  color: var(--tooltip-fg);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 270px;
  text-align: center;
  z-index: 200;
  opacity: 0;
}

.bubble-tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top: 0;
  border-bottom-color: var(--black);
}

.bubble-tooltip .tip-main {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-text);
  font-weight: 500;
  line-height: 1.45;
}

.bubble-tooltip .tip-sub {
  display: block;
  font-size: 0.77rem;
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 3px;
  line-height: 1.3;
}

.awards {
  max-width: 1920px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--white);
}

.awards__heading {
  margin-bottom: 2.5rem;
}

.awards__eyebrow {
  margin: 0 0 0.25rem;
  font-style: italic;
  font-size: 0.9375rem;
}

.awards__title-small {
  font-size: 1rem;
}

.awards__caption {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
}

.awards__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.awards__logo {
  display: flex;
  justify-content: center;
}

.awards__logo img {
  display: block;
  max-height: 200px;
  width: auto;
  filter: brightness(0) invert(1); /* renders any logo as flat white, remove if your assets are already white */
}

.awards__spacer {
  /* intentionally empty — just reserves the first quarter-width column */
}

.selected-works {
  max-width: 1920px;
  margin: 0 auto 5rem;
  padding: 1rem;
  color: var(--white);
}

.img-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 9fr 4fr 4fr; /* equal height: 9:4:4 matches 3:2 beside two 2:3 */
  gap: 16px;
}

.img1 {
  aspect-ratio: 3 / 2;
  border-radius: .25rem;
  overflow: hidden;
}

.img2, .img3 {
  aspect-ratio: 2 / 3;
  border-radius: .25rem;
  overflow: hidden;
}

.img-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  max-width: 1920px;
  margin: 6rem auto 0;
  padding: 1rem;
  overflow: hidden; /* keep the line overlay from bleeding outside the section */
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: end;
}

.hero__content {
  grid-column: 1 / span 4;
  color: var(--hero-fg);
  padding-bottom: 2rem;
}

.hero__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 32ch;
  margin: 0;
}

.hero__media {
  grid-column: 5 / span 8;
  aspect-ratio: 16 / 9;
  border-radius: .25rem;
  overflow: hidden;
}

.cinematic {
  aspect-ratio: 2.35 / 1 !important;
  margin-bottom: 10rem
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-hero {
  position: relative;
  max-width: 1920px;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
}

.header-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .5rem;
  display: flex;
  overflow: hidden;
}

.header-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to top,
  var(--black) 0%,
  transparent 45%
  );
}

.header-hero__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem;
}

.header-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.header-hero__title {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  line-height: 1;
}

.header-hero__subtitle {
  margin: 0;
  font-size: 1rem;
}

.header-hero__flip-wrap {
  display: inline-block;
  perspective: 600px;
}

.header-hero__flip {
  display: inline-block;
  font-style: italic;
  color: var(--white);
  transform-style: preserve-3d;
  will-change: transform;
  /* subtle constant chromatic-aberration look */
  text-shadow:
  -2px 0 var(--header-hero-glitch-cyan),
  2px 0 var(--header-hero-glitch-magenta);
}

.header-hero__flip.is-glitching {
  animation: header-hero-glitch 0.28s steps(2, jump-none) infinite;
}

.scene-name-wrap {
  min-height: 28px;
  padding-top: 14px;
}

.scene-name {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s;
}

.scene-name.visible {
  opacity: 1;
}

.scene-name::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

@media (max-width: 1199px) {
.hero__content {
    grid-column: 1 / span 5;
  }
.hero__media {
    grid-column: 6 / span 7;
  }
}

@media (max-width: 899px) {
.awards__logos {
    grid-template-columns: repeat(3, 1fr);
  }
.awards__spacer {
    display: none;
  }
.hero__grid {
    grid-template-columns: 1fr;
  }
.hero__content, .hero__media {
    grid-column: 1 / -1;
  }
.hero__content {
    padding-bottom: 1.5rem;
  }
.hero__media {
    order: -1; /* image on top, text below, adjust if you'd rather keep text first */
  }
.header-hero {
    aspect-ratio: 2.35 / 1; /* cinematic ratio gets too short/wide on small screens */
  }
.header-hero__content {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
.bubbles-stage {
    height: 80vw; min-height: 380px;
  }
}

@media (max-width: 599px) {
.bubble-label {
    font-size: 1.1rem;
  }
.awards__logos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
.awards__logo {
    justify-content: flex-start;
  }
.img-grid {
    grid-template-columns: 1fr 1fr;
  }
.img1 {
    grid-column: 1 / -1;
  }
}


/* ---------------------------------------------------------------------
   5.x  selected works — text index
   --------------------------------------------------------------------- */
.works__legend {
  max-width: 46ch;
  line-height: 2;
  margin: 1.5rem 0 2.5rem;
}
.works__list a{ 
  text-decoration: none;
}
.works__row { 
  list-style: none; 
}
.works__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 13rem 4rem 1.5rem;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem .5rem;
  margin-bottom: 0;
  font-size: inherit;
  transition: background-color .4s ease;
}
.works__code {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  letter-spacing: -.01em;
  line-height: 1.3;
  padding-bottom: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.works__kind { font-size: 1rem; }
.works__arrow {
  visibility: hidden;
  transform: translateX(-.4em);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  height: 2rem;
}
/* hover adopts the nav tile's blue — same move as the fullscreen menu */
.works__link:hover, .works__link:focus-visible {
  background: var(--blue);
}
.works__link:hover .works__code, .works__link:focus-visible .works__code, .works__link:hover .works__kind, .works__link:focus-visible .works__kind, .works__link:hover .works__num, .works__link:focus-visible .works__num, .works__link:hover .works__year, .works__link:focus-visible .works__year, .works__link:hover .works__arrow, .works__link:focus-visible .works__arrow {
  color: var(--white);
}
.works__link:hover .works__arrow, .works__link:focus-visible .works__arrow {
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 899px) {
.works__link {
    grid-template-columns: 2rem 1fr 1.25rem;
    gap: .8rem;
    row-gap: .35rem;
  }
.works__kind { grid-column: 2; font-size: .8rem; }
.works__year { display: none; }
}

/* ====================================================================
   6. FOOTER
   ==================================================================== */

.footer-intro {
  padding-bottom: 32px;
}

.footer-intro .eyebrow {
  font-family: redaction-20, sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
}

.footer-intro h2 {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-intro h2 em {
  font-weight: 400;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 0;
  margin-top: 8px;
  border-top: 1px solid var(--white);
}

.footer-refresh {
  font-size: 10px;
  color: var(--white);
  margin-top: 6px;
  letter-spacing: 0.06em;
  font-family: var(--font-text);
  font-weight: 400;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-icons {
  display: flex; gap: 16px;
}

.footer-icons a {
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-icons a:hover {
  color: var(--white);
}

@media (max-width: 600px) {
.footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
.footer-right {
    align-items: flex-start;
  }
}

/* ====================================================================
   7. SUBPAGES
   ==================================================================== */

.blend-hi {
  fill: #f0f0f0; transition: fill 0.22s ease;
}

.gsap-mark path {
  transition: fill 0.22s ease;
}

.infinite-grid {
  touch-action: none;
  width: 100%;
  height: 100svh;
  position: relative;
  overflow: clip;
  cursor: grab;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.infinite-grid[data-infinite-grid-status="loading"] {
  opacity: 0;
}

.infinite-grid[data-infinite-grid-status="dragging"] {
  cursor: grabbing;
}

.infinite-grid__collection {
  will-change: transform;
  width: 100%;
  height: 100%;
  position: absolute;
}

.infinite-grid__list {
  grid-template-columns: repeat(var(--grid-columns), auto);
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
}

.infinite-grid__item {
  aspect-ratio: 1;
  justify-content: center;
  align-items: center;
  width: 13em;
  padding: 1.75em;
  font-size: clamp(1.5em, 2vw, 3em);
  display: flex;
}

.infinite-grid__card {
  -webkit-user-select: none;
  user-select: none;
  border-radius: .125em;
  width: 80%;
  height: 100%;
  position: relative;
}

.infinite-grid__card.is--landscape {
  width: 100%;
  height: 75%;
}

.infinite-grid__card-img {
  pointer-events: none;
  object-fit: cover;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
}

.scrollinfo {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3rem;
  display: inline-block;
  padding: 4px 20px;
  width: 100px;
}

.subpage-hero {
  max-width: 1920px;
  min-height: 520px;
  margin: 0 auto 5rem;
  padding: 1rem;
  color: var(--white);
  align-content: flex-end;
}

.subpage-hero__title {
  font-family: var(--font-display);
  margin: 0 0 1.5rem;
  line-height: 1;
}

.subpage-hero__text {
  width: 33%;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.redact {
  position: relative; display: inline-block;
}

.redact i {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -4px;
  right: -4px;
  background: var(--w-fg);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}

.redact:hover i, .redact:focus-visible i, .redact.is-open i {
  transform: scaleX(0);
}

.about-section {
  max-width: 1920px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  color: var(--white);
}

.about-section__title {
  line-height: 1.1;
  margin: 0 0 2.5rem;
}

.about-bg__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 1rem;
  align-items: start;
}

.about-bg__group {
  grid-column: span 4;
}

.about-bg__media {
  grid-column: span 4;
}

.about-bg__label {
  font-family: redaction-20, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--white);
}

.about-bg__entry {
  padding: 1.1rem 0;
  border-bottom: 1px solid #333;
}

.about-bg__entry:last-child {
  border-bottom: none;
}

.about-bg__range {
  font-family: "space-mono", monospace;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.about-bg__role {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
}

.about-bg__place {
  font-size: 0.8125rem;
}

.about-bg__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.about-bg__tags span {
  font-family: "space-mono", monospace;
  font-size: 0.6875rem;
  border: 1px solid var(--white);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.about-media-slot {
  width: 90%;
  aspect-ratio: 4 / 5;
  display: flex;
  padding: 1rem;
}

.about-media-slot span {
  font-family: "space-mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.about-media-slot.is-wide {
  aspect-ratio: 16 / 10;
}

.about-media-cycle {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.about-media-cycle__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.about-media-cycle__img.is-active {
  opacity: 1;
}

.about-toolkit__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}

.about-toolkit__media {
  grid-column: span 5;
}

.about-toolkit__content {
  grid-column: span 7;
}

.about-skill-row {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.about-skill-name {
  font-size: 1.0625rem;
}

.about-skill-note {
  font-family: "space-mono", monospace;
  font-size: 0.6875rem;
  opacity: 0.6;
  text-align: right;
  white-space: nowrap;
}

.about-langs-section {
  margin-bottom: 7rem;
}

.about-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-langs__name {
  font-size: 1.5rem;
}

.about-langs__level {
  font-family: "space-mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.container {
  max-width: 1606px;
  margin: 0 auto;
  padding: 0 24px;
}

.ascii-stage {
  max-width: 1606px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ascii-canvas {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -10;
  white-space: pre;
  color: var(--white);
  user-select: none;
  padding: 0 24px;
  width: 100%;
}

.dots-row {
  display: none;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 20px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--white);
  transition: background 0.4s;
}

.dot.active {
  background: var(--white);
}

.scroll-hint {
  font-size: 9px;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 16px;
  transition: opacity 0.5s;
}

.scroll-hint.hidden {
  opacity: 0; pointer-events: none;
}

@media (max-width: 1630px) {
.ascii-canvas {
    font-size: clamp(6px, 1.6vw, 16px);
    line-height: clamp(6px, 1.6vw, 16px);
  }
}

@media (max-width: 899px) {
.subpage-hero__text {
    width: 50%;
  }
.about-bg__group {
    grid-column: span 6;
  }
.about-bg__media {
    grid-column: span 12; max-width: 360px;
  }
.about-toolkit__media {
    grid-column: span 12; max-width: 360px;
  }
.about-toolkit__content {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
.ascii-canvas {
    font-size: clamp(3.5px, 2.6vw, 4.25px);
    line-height: clamp(3.5px, 2.6vw, 4.25px);
  }
}

@media (max-width: 599px) {
.subpage-hero__text {
    width: 75%;
  }
.about-bg__group {
    grid-column: span 12;
  }
.about-skill-row {
    grid-template-columns: 1fr; gap: 0.4rem;
  }
.about-skill-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
.redact i {
    transition-duration: .01ms;
  }
}


/* ---------------------------------------------------------------------
   7.6  project detail  (p/p-*.html)
   --------------------------------------------------------------------- */
.stage {
  position: relative;
  max-width: none;
  padding: 0;
}
.stage-inner {
  padding-top: 8rem;
}

.pj-code {
  padding: 0 1rem 1.5rem;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 6rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: .0em;
  padding: 0 1rem .08em;
  margin-bottom: 2rem;
  overflow: hidden;
}
.title .ln { display: block; }
.title em { font-style: normal; font-weight: 400; }

/* rail — scrolls natively until pj.js upgrades it to the pinned version */
.rail-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}
.rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1rem;
  width: max-content;
  will-change: transform;
}
.item {
  flex: 0 0 auto;
  width: calc(var(--band, 340px) * var(--ar, 1.78));
}
.slab {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 1.78);
  overflow: hidden;
  border-radius: .25rem;
}
/* contain, not cover — the media is never scaled up or cropped */
.slab .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cap {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.cap .ln { display: block; overflow: hidden; }
.cap .ln > span { display: block; }
.cap .name {
  font-size: 1rem;
  letter-spacing: -.01em;
  margin-top: .25rem;
}
.cap .file { text-align: right; white-space: nowrap; }
.cap .game {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.cap .game .redact { white-space: nowrap; }

/* redaction bar */
.redact {
  position: relative;
  display: inline-block;
}
.redact i {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -4px;
  right: -4px;
  background: var(--white);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.redact:hover i, .redact:focus-visible i, .redact.is-open i { transform: scaleX(0); }

/* meta bar */
.meta {
  border-top: 1px solid var(--white);
  background: var(--black);
  margin-top: 3rem;
  padding: 1.25rem 1rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(15rem, 26%) repeat(2, minmax(5rem, 1fr)) auto;
  gap: 1.5rem;
  align-items: end;
}
.meta .desc {
  font-size: .875rem;
  line-height: 1.4;
  max-width: 34ch;
}
.meta dt { margin-bottom: .35rem; }
.meta dd { font-size: .875rem; }
.meta .next {
  display: flex;
  align-items: center;
  gap: .85rem;
  justify-self: end;
  text-align: right;
  margin-bottom: 0;
  text-decoration: none;
}
.meta .next .n { font-size: .875rem; }

.next:hover {
  text-decoration: underline;
}
/* pinned layout — only once pj.js has confirmed it is running */
@media (min-width: 900px) {
  .stage.is-live {
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
  }
  .stage.is-live .stage-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .stage.is-live .rail-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .stage.is-live .meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
  }
}

@media (max-width: 899px) {
.stage-inner { padding-top: 7rem; }
.title { font-size: clamp(2.4rem, 13vw, 5rem); }
.rail-wrap { overflow: visible; }
.rail {
    flex-direction: column;
    gap: 2.5rem;
    width: auto;
    transform: none !important;
  }
.item { width: 100%; }
.meta {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
.meta .desc { grid-column: 1 / -1; }
.meta .next { grid-column: 1 / -1; justify-self: start; text-align: left; }
}


/* ---------------------------------------------------------------------
   7.7  motion — render status placeholder
   --------------------------------------------------------------------- */
.render-status {
  font-family: "space-mono", monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 34rem;
  margin: 12rem auto;
  padding: 0 1.5rem;
}

.render-status__label {
  letter-spacing: 0.12em;
}

.render-status__file {
  color: #808080;
  margin-bottom: 2.5rem;
  overflow-wrap: anywhere;
}

.render-status__bar {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
}

.render-status__pct {
  letter-spacing: 0;
}

.render-status__meta {
  margin: 0;
}

.render-status__meta > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  border-top: 1px solid #333;
  padding: 0.5rem 0;
}

.render-status__meta dt {
  color: #808080;
}

.render-status__meta dd {
  margin: 0;
}

.render-status__note {
  margin-top: 2.5rem;
  color: #808080;
}

.render-status__caret {
  color: var(--white);
  animation: render-blink 1.06s step-end infinite;
}

@keyframes render-blink {
  50% { opacity: 0; }
}

@media (max-width: 600px) {
  .render-status {
    margin: 6rem auto;
    font-size: 0.75rem;
  }
  .render-status__meta > div {
    grid-template-columns: 5.5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .render-status__caret { animation: none; }
}



/* ---------------------------------------------------------------------
   7.9  playground — grid layout
   --------------------------------------------------------------------- */


.pg {
  --pg-gap: 16px;
  --pg-radius: 12px;
  --pg-pad: 1.5rem;
  --pg-max: 1606px;
  --pg-scrim: rgba(0, 0, 0, 0.6);
}

.pg-hero {
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 9rem var(--pg-pad) 3rem;
}

.pg-hero__title {
  font-size: clamp(2.75rem, 9vw, 8rem);
  line-height: 1;
  margin: 0 0 2rem;
}

.pg-hero__intro {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 40ch;
  margin: 0;
}

/* ---------------- grid ---------------- */

.pg-grid {
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 0 var(--pg-pad);
  display: grid;
  gap: var(--pg-gap);
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "c c c c c c a a a a a a"
    "c c c c c c b b b b b b"
    "d d d d e e e e f f f f"
    "g g g h h h i i i j j j";
}

/* edit the map above to rearrange — nothing else needs touching */
[data-area="a"] { grid-area: a; }
[data-area="b"] { grid-area: b; }
[data-area="c"] { grid-area: c; }
[data-area="d"] { grid-area: d; }
[data-area="e"] { grid-area: e; }
[data-area="f"] { grid-area: f; }
[data-area="g"] { grid-area: g; }
[data-area="h"] { grid-area: h; }
[data-area="i"] { grid-area: i; }
[data-area="j"] { grid-area: j; }


.pg-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--pg-radius);
  background: #111;
  aspect-ratio: var(--r, 1);
  color: inherit;
  text-decoration: none;
}


.pg-tile--fill {
  aspect-ratio: auto;
  height: auto;
  align-self: stretch;
  min-height: 0;
}

.pg-tile > img,
.pg-tile > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
}


.pg-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--pg-scrim);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pg-tile:hover .pg-tile__overlay,
.pg-tile:focus-visible .pg-tile__overlay { opacity: 1; }

.pg-tile__cap {
  margin: 0;
  font-family: neue-haas-grotesk-display, sans-serif;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #fff;
}

.pg-tile__title { display: block; font-weight: 600; }
.pg-tile__tech  { display: block; font-style: italic; opacity: 0.8; }

.pg-more {
  max-width: var(--pg-max);
  margin: 0.75rem auto 0;
  padding: 0 var(--pg-pad);
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
}


@media (max-width: 1024px) {
  .pg { --pg-gap: 14px; }
  .pg-hero { padding-top: 7rem; }
}


@media (max-width: 700px) {
  .pg { --pg-gap: 18px; }

  .pg-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h" "i" "j";
  }

  .pg-tile--fill {
    aspect-ratio: var(--r-mobile, 1.333);
    height: auto;
  }

  .pg-hero { padding-top: 5rem; }
  .pg-hero__title { margin-bottom: 1.5rem; }

  /* no hover on touch — captions stay visible */
  .pg-tile__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 45%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-tile__overlay { transition: none; }
}