*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #05070a;
  --ink: #101215;
  --muted: #59616a;
  --line: rgba(8, 12, 16, .22);
  --accent: #00ff41;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-anchor: none;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

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

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

.colophon {
  display: none;
}

.intro-name {
  position: fixed;
  left: 50%;
  top: clamp(58px, 11vh, 118px);
  z-index: 2;
  margin: 0;
  color: var(--accent);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(70px, 15vw, 220px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 0%;
  white-space: nowrap;
}

.intro-name .nm {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.scroll-hint {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 70;
  color: var(--accent);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0;
  pointer-events: none;
  animation: hintblink 1.6s ease-in-out infinite;
}

.intro {
  position: relative;
  z-index: 3;
  height: 197vh;
}

.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: 50% 50%;
}

.head {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 4;
  width: clamp(340px, 46vw, 670px);
  max-width: none;
  margin-bottom: -8px;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%) translateZ(calc(-1 * var(--half-depth)));
  transform-origin: 50% 100%;
}

@keyframes hintblink {

  0%,
  100% {
    opacity: .25;
  }

  50% {
    opacity: 1;
  }
}

.masthead {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: auto;
  height: calc(var(--masthead-h) + var(--header-shift, 0px));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--tablet-radius) var(--tablet-radius) 0 0;
  background: transparent;
  color: #171b1d;
  /* 2px in front of the tablet's front face: when the bezel grows past the tablet's top
     edge, the top wall + corner facets would otherwise depth-sort in front of it. */
  transform: translateZ(2px);
}

/* The inexpensive cover grows from the tablet top. Only the fixed-height strip below it
   pays for backdrop blur, so scroll depth no longer creates an enormous filtered surface. */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--masthead-h);
  border-radius: var(--tablet-radius) var(--tablet-radius) 0 0;
  background: linear-gradient(180deg, #f4f8fc, #e8eef4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96);
  pointer-events: none;
}

.masthead-glass {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 var(--masthead-h);
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--masthead-h);
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(72, 88, 106, .24);
  border-radius:
    max(0px, calc(var(--tablet-radius) - var(--header-shift, 0px)))
    max(0px, calc(var(--tablet-radius) - var(--header-shift, 0px)))
    0 0;
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(244, 248, 252, .78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 8px 22px rgba(96, 124, 158, .12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.masthead-spacer {
  height: calc(var(--masthead-h) - var(--paper-pad));
  margin-bottom: 16px;
}

.urlbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 3px 10px;
  border: 1px solid rgba(12, 14, 16, .7);
  border-radius: 4px;
  background: #ffffff;
  color: #1a1d1f;
}

.url-8bit {
  flex: 0 1 auto;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(7px, .78vw, 10px);
  line-height: 1;
  color: rgba(20, 24, 26, .84);
}

.url-name {
  position: relative;
  flex: 0 0 auto;
  margin: 0 .42em;
  color: var(--accent);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(18px, 2.1vw, 32px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: 0;
}

.url-sizer {
  visibility: hidden;
}

.url-live {
  position: absolute;
  inset: 0;
  white-space: nowrap;
}

.bookmarks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1;
}

.bm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(20, 24, 26, .9);
}

.bm-ico {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(20, 24, 26, .72);
  border-radius: 3px;
  background: #ff9fd8;
}

.bm-callsheet {
  appearance: none;
  padding: 4px 7px;
  border: 1px solid rgba(0, 112, 32, .55);
  border-radius: 3px;
  background: rgba(0, 255, 65, .08);
  color: #008b2b;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.bm-callsheet:hover {
  border-color: #00b73c;
  background: rgba(0, 255, 65, .16);
  color: #006f22;
}

.bm-callsheet[aria-busy="true"] {
  cursor: progress;
}

/* ===== HANDS — TUNING (see also main.js banner) =====
   width clamp: overall hand size.
   --hand-art-rise: fixed upward lift, in px.
   --hand-edge-x: horizontal seat; left more negative = further out, right less negative = further out.
   --hand-rz: whole-hand rotation.
   .hand-art rotate: art orientation.
   tattoo --fx/--fy: finger position, kept inline in index.html. */
.hand {
  --hand-art-rise: clamp(48px, 6vw, 76px);
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(280px, 31vw, 430px);
  z-index: 62;
  pointer-events: none;
  /* Single transform (X grip + vertical + Z depth + hand tilt) — a nested vertical layer
     projects differently under tablet tilt and pulls the hands together as they travel, so
     the vertical stays in THIS transform. The compositor scroll-timeline animates the whole
     transform with the static parts baked in; --hand-local-y is the fallback when the
     scroll-timeline is unavailable. */
  transform: translate3d(var(--hand-edge-x, 0), calc(var(--hand-local-y, 22vh) - var(--hand-art-rise)), 40px) rotate(var(--hand-rz, 0deg));
  transform-origin: var(--hand-origin-x, 50%) 35%;
  transform-style: preserve-3d;
  will-change: transform;
}

.hand img {
  width: 100%;
  height: auto;
  user-select: none;
}

.hand-art {
  position: relative;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}

.hand-frame {
  visibility: hidden;
  pointer-events: none;
}

.hand-frame:not(.hand-frame-sizer) {
  position: absolute;
  inset: 0;
}

.hand-frame.is-active {
  visibility: visible;
}

.hand-left {
  --hand-rz: -5deg;
  --hand-origin-x: 34%;
  --hand-edge-x: -49%;
}

.hand-left .hand-art {
  transform: rotate(-80deg);
}

.hand-right {
  --hand-rz: 5deg;
  --hand-origin-x: 66%;
  --hand-edge-x: -51%;
  left: 100%;
}

.hand-right .hand-art {
  transform: rotate(80deg);
}

.hand-right .hand-frame {
  transform: scaleX(-1);
}

.tattoo {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy);
  width: auto;
  white-space: nowrap;
  color: #101010;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(10px, 1.3vw, 15px);
  line-height: .95;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18);
  pointer-events: auto;
  /* --unrot cancels the .hand-art ±90° so tattoo text reads horizontally */
  transform: translateX(-50%) rotate(var(--unrot, 0deg)) rotate(var(--rot));
}

.hand-left .tattoo {
  --unrot: 90deg;
}

.hand-right .tattoo {
  --unrot: -90deg;
}

.tattoo-goback {
  display: none;
}

body.is-promo-mode .tattoo-goback {
  display: block;
}

.paper-wrap {
  /* Generous top head-room: extends the clip box UPWARD so the head sits INSIDE the clip in
     every browser (Safari ignores overflow-clip-margin and would crop the head at the box
     edge). margin-top pulls the wrap back up by the same amount, so the tablet's on-screen
     position and the scroll range are unchanged — meaning an over-generous value costs
     nothing (unlike the old clip-margin, which could add to the scroll range). Fixed, because
     the head caps at its clamp() max width, so its overshoot is bounded. */
  --paper-head-room: 720px;
  --paper-wrap-pad: clamp(12px, 4vw, 48px);
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: calc(-100vh - var(--paper-head-room));
  padding: calc(var(--paper-wrap-pad) + var(--paper-head-room)) var(--paper-wrap-pad) var(--paper-wrap-pad);
  overflow: clip;
  perspective: 1300px;
  perspective-origin: 50% 50%;
}

.tablet-object {
  --half-depth: 23px;
  --depth: calc(var(--half-depth) * 2);
  --tablet-radius: 30px;
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.paper {
  --paper-pad: clamp(14px, 2.3vw, 26px);
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--paper-pad);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: var(--tablet-radius);
  background: transparent;
  box-shadow:
    inset 0 0 34px rgba(214, 241, 255, .18),
    inset 0 0 2px rgba(255, 255, 255, .92),
    0 24px 70px rgba(0, 0, 0, .42);
  transform: translateZ(var(--half-depth));
  transform-style: preserve-3d;
}

.tablet-face {
  position: absolute;
  inset: 0;
  border-radius: var(--tablet-radius);
  pointer-events: none;
}

.tablet-interior-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--tablet-radius);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .62) 0 12%, transparent 56%),
    radial-gradient(circle at 4% 88%, rgba(190, 205, 225, .35), transparent 44%),
    radial-gradient(circle at 96% 24%, rgba(190, 205, 225, .30), transparent 42%),
    linear-gradient(135deg, #e8edf2, #d7dee6);
  box-shadow:
    inset 0 0 48px rgba(255, 255, 255, .38),
    inset 0 0 120px rgba(130, 156, 190, .12);
  transform: translateZ(calc(-1 * var(--half-depth) + 1px));
}

/* viewport-sized polychromatic grain on the recessed tablet interior */
.tablet-noise {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 160vh;
  overflow: hidden;
  border-radius: var(--tablet-radius);
  pointer-events: none;
  transform: translate3d(0, var(--viewport-plane-y, 0px), calc(-1 * var(--half-depth) + 4px));
}

.tablet-noise::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: var(--noise-tile, none);
  background-repeat: repeat;
  will-change: transform;
  animation: noiseflicker .5s steps(3, end) infinite;
}

@keyframes noiseflicker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  33% {
    transform: translate3d(43px, -31px, 0);
  }

  66% {
    transform: translate3d(-27px, 37px, 0);
  }

  100% {
    transform: translate3d(19px, 14px, 0);
  }
}

/* One viewport-sized dimmer replaces brightness filters on every non-focused project. */
.focus-dim {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 160vh;
  border-radius: var(--tablet-radius);
  background: rgba(5, 7, 10, .30);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--viewport-plane-y, 0px), .5px);
  transition: opacity .28s ease;
}

.paper.has-focus .focus-dim {
  opacity: 1;
}

.tablet-back {
  background:
    radial-gradient(circle at 52% 34%, rgba(255, 255, 255, .54), transparent 54%),
    linear-gradient(145deg, #eef3f7 0%, #d8e0e8 54%, #bcc8d4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 0 42px rgba(207, 247, 255, .22),
    0 0 40px rgba(255, 255, 255, .30),
    0 0 90px rgba(210, 225, 245, .22);
  transform: translateZ(calc(-1 * var(--half-depth)));
}

.tablet-side {
  border-radius: 0;
  background: linear-gradient(180deg, #f4f8fb, #dde5ec);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .92),
    inset 0 0 18px rgba(255, 255, 255, .62);
}

.tablet-side-top {
  inset: 0 var(--tablet-radius) auto;
  height: var(--depth);
  transform: translateZ(var(--half-depth)) rotateX(-90deg);
  transform-origin: top center;
}

.tablet-side-right {
  inset: var(--tablet-radius) 0 var(--tablet-radius) auto;
  width: var(--depth);
  transform: translateZ(var(--half-depth)) rotateY(-90deg);
  transform-origin: right center;
}

.tablet-side-bottom {
  inset: auto var(--tablet-radius) 0;
  height: var(--depth);
  transform: translateZ(var(--half-depth)) rotateX(90deg);
  transform-origin: bottom center;
}

.tablet-side-left {
  inset: var(--tablet-radius) auto var(--tablet-radius) 0;
  width: var(--depth);
  transform: translateZ(var(--half-depth)) rotateY(90deg);
  transform-origin: left center;
}

.tablet-corner {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.tablet-corner-bl {
  left: var(--tablet-radius);
  bottom: var(--tablet-radius);
  transform: translateZ(calc(-1 * var(--half-depth)));
}

.tablet-corner-br {
  right: var(--tablet-radius);
  bottom: var(--tablet-radius);
  transform: translateZ(calc(-1 * var(--half-depth))) scaleX(-1);
}

.tablet-corner-tl {
  left: var(--tablet-radius);
  top: var(--tablet-radius);
  transform: translateZ(calc(-1 * var(--half-depth))) scaleY(-1);
}

.tablet-corner-tr {
  right: var(--tablet-radius);
  top: var(--tablet-radius);
  transform: translateZ(calc(-1 * var(--half-depth))) scale(-1, -1);
}

.tablet-corner-seg {
  position: absolute;
  left: -4.5px;
  top: 0;
  width: 9px;
  height: var(--depth);
  background: linear-gradient(180deg, #f4f8fb, #dde5ec);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .92),
    inset 0 0 18px rgba(255, 255, 255, .62);
  transform: rotateZ(var(--seg-angle)) translateY(var(--tablet-radius)) rotateX(90deg);
  transform-origin: 50% 0;
}

.tablet-corner-seg:nth-child(1) {
  --seg-angle: 7.5deg;
}

.tablet-corner-seg:nth-child(2) {
  --seg-angle: 22.5deg;
}

.tablet-corner-seg:nth-child(3) {
  --seg-angle: 37.5deg;
}

.tablet-corner-seg:nth-child(4) {
  --seg-angle: 52.5deg;
}

.tablet-corner-seg:nth-child(5) {
  --seg-angle: 67.5deg;
}

.tablet-corner-seg:nth-child(6) {
  --seg-angle: 82.5deg;
}

.grid {
  position: relative;
  z-index: 1;
  columns: 280px 3;
  column-gap: 16px;
  padding: clamp(10px, 1.5vw, 16px);
  transform-style: preserve-3d;
}

#spatial {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  height: 135vh;
  pointer-events: none;
  background: transparent;
  transform: translate3d(0, var(--spatial-y, 0px), 1px);
}

.frame {
  --glow-a: #93a4b4;
  --glow-b: #d7e4ed;
  --glow-c: #7f92a8;
  display: inline-block;
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  overflow: visible;
  break-inside: avoid;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  transform: translateZ(var(--focus-z, 0px)) scale(var(--focus-scale, 1));
  transform-style: preserve-3d;
  transition: transform .28s ease;
}

.frame-box {
  --frame-depth: 8px;
  position: relative;
  overflow: visible;
  border-radius: 8px;
  transform: translateZ(0);
  transform-style: preserve-3d;
}

.frame-glow {
  --glow-spread: 25%;
  position: absolute;
  inset: calc(-1 * var(--glow-spread));
  border-radius: 32px;
  background-image:
    var(--glow-photo, none),
    radial-gradient(ellipse at 20% 50%, rgba(147, 164, 180, .72), transparent 58%),
    radial-gradient(ellipse at 78% 50%, rgba(215, 228, 237, .72), transparent 58%);
  background-image:
    var(--glow-photo, none),
    radial-gradient(ellipse 26% 50% at 26% 50%, color-mix(in srgb, var(--glow-a) 82%, white 18%) 0 5%, transparent 100%),
    radial-gradient(ellipse 32% 50% at 50% 50%, color-mix(in srgb, var(--glow-b) 82%, white 18%) 0 7%, transparent 100%),
    radial-gradient(ellipse 26% 50% at 74% 50%, color-mix(in srgb, var(--glow-c) 82%, white 18%) 0 5%, transparent 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .94;
  pointer-events: none;
  transform: translateZ(-39px);
}

.frame-project .frame-glow {
  background-image: var(--glow-photo, none);
}

.frame-project {
  cursor: pointer;
}

.frame-plane {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 8px;
  pointer-events: none;
}

.frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 0 22px rgba(226, 250, 255, .24),
    0 0 12px rgba(174, 226, 255, .10);
  transform: translateZ(0);
  transition: filter .28s ease;
}

.frame-project .frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%),
    radial-gradient(120% 100% at 50% 42%, rgba(255, 255, 255, .16) 0 24%, transparent 55%),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, .28) 100%);
}

.frame-project.is-hovered .frame-inner {
  filter: brightness(1.3);
}

.frame-inner img {
  width: 100%;
  height: auto;
}

.frame-inner picture {
  display: block;
}

.frame-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 160%;
  color: #00ff41;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 3.4vw, 4.5rem);
  line-height: .9;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 7px rgba(0, 255, 65, .82),
    0 0 20px rgba(0, 255, 65, .46);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(0);
  transition: opacity .18s ease-in-out;
}

.frame.is-hovered .frame-title {
  animation: frame-title-halogen .72s steps(1, end) .3s both;
}

@keyframes frame-title-halogen {
  0% {
    opacity: 0;
    text-shadow: 0 0 2px rgba(0, 255, 65, .12);
  }

  5% {
    opacity: .9;
    text-shadow: 0 0 8px rgba(0, 255, 65, .75), 0 0 22px rgba(0, 255, 65, .38);
  }

  12% {
    opacity: .05;
  }

  22% {
    opacity: 1;
  }

  29% {
    opacity: .18;
  }

  39% {
    opacity: .86;
  }

  46% {
    opacity: .08;
  }

  58% {
    opacity: 1;
  }

  66% {
    opacity: .24;
  }

  78% {
    opacity: .92;
  }

  85% {
    opacity: .12;
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 7px rgba(0, 255, 65, .82), 0 0 20px rgba(0, 255, 65, .46);
  }
}

.frame.is-derezzing .frame-title {
  opacity: 0;
}

.frame.is-derezzing .frame-glow {
  -webkit-mask-image: linear-gradient(to top, black 0, black var(--derez-solid), transparent var(--derez-fade));
  mask-image: linear-gradient(to top, black 0, black var(--derez-solid), transparent var(--derez-fade));
}

.frame.is-derezzing .frame-side-top {
  visibility: hidden;
}

.frame-back {
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(218, 249, 255, .24), transparent 55%),
    #d8dee2;
  box-shadow:
    inset 0 0 0 1px rgba(20, 24, 28, .18),
    inset 0 0 18px rgba(205, 243, 255, .20);
  transform: translateZ(calc(-1 * var(--frame-depth)));
}

.frame-side {
  border-radius: 0;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .30));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .78);
}

.frame-side-top {
  inset: 0 8px auto;
  height: var(--frame-depth);
  transform: rotateX(-90deg);
  transform-origin: top center;
}

.frame-side-right {
  inset: 8px 0 8px auto;
  width: var(--frame-depth);
  transform: rotateY(-90deg);
  transform-origin: right center;
}

.frame-side-bottom {
  inset: auto 8px 0;
  height: var(--frame-depth);
  transform: rotateX(90deg);
  transform-origin: bottom center;
}

.frame-side-left {
  inset: 8px auto 8px 0;
  width: var(--frame-depth);
  transform: rotateY(90deg);
  transform-origin: left center;
}

.frame-inner a {
  display: block;
}

.frame-project .frame-inner img {
  object-fit: contain;
  /* auto 16/9: intrinsic ratio once loaded; 16:9 BEFORE load, so cold-cache visits don't
     reflow the masonry under the user's first scroll (all thumbs are ~16:9). */
  aspect-ratio: auto 16 / 9;
  transform: scale(1.07) translate3d(var(--dio-x, 0px), var(--dio-y, 0px), 0);
  transform-origin: 50% 50%;
  will-change: transform;
}

.frame-project.is-spatial .frame-inner img {
  visibility: hidden;
}

.frame-essay .frame-inner,
.frame-insta .frame-inner {
  min-height: 260px;
  padding: clamp(18px, 2vw, 26px);
}

.essay-head,
.insta-bar {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #1e2a22;
}

.essay-body {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}

.insta-ph {
  display: grid;
  min-height: 200px;
  place-items: center;
  border: 1px dashed rgba(20, 24, 28, .3);
  color: #1e2a22;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  text-align: center;
}

#derez {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.frame.is-promo-hidden {
  visibility: hidden;
}

.grid.is-promo-grid-hidden {
  display: none;
}

body.is-promo-mode .focus-dim,
body.is-promo-mode #spatial,
.feature-frame .frame-glow {
  display: none;
}

.feature-frame {
  position: relative;
  display: none;
  width: calc(100% - 32px);
  margin: 16px;
  border-radius: 8px;
  transform-style: preserve-3d;
}

.feature-frame.is-active {
  display: block;
}

.feature-frame .frame-box {
  min-height: clamp(440px, 68vh, 680px);
}

.feature-frame .frame-inner {
  min-height: clamp(440px, 68vh, 680px);
  background: #f5f7f8;
}

.feature-content {
  min-height: inherit;
}

.feature-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  min-height: inherit;
}

.feature-media {
  display: grid;
  min-height: 360px;
  padding: clamp(18px, 3vw, 42px);
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .8), transparent 58%),
    linear-gradient(135deg, #ffe8f0, #edf4f8);
}

.feature-media img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(12, 16, 20, .16);
  box-shadow:
    0 24px 50px rgba(174, 73, 112, .18),
    0 0 30px rgba(255, 255, 255, .72);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 255, 65, .1), transparent 34%),
    #f8fafb;
}

.feature-kicker {
  color: #008d2b;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(7px, .8vw, 10px);
  line-height: 1.5;
}

.feature-copy h2 {
  margin: 14px 0 12px;
  color: #101315;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 400;
  line-height: .82;
}

.feature-copy p {
  max-width: 58ch;
  margin: 0 0 14px;
  color: #4d555d;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.45;
}

.feature-cta {
  align-self: flex-start;
  margin-top: 16px;
  padding: 15px 18px 13px;
  border: 1px solid #006d22;
  background: #00ff41;
  color: #07130a;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 1vw, 13px);
  line-height: 1;
  box-shadow: 0 0 22px rgba(0, 255, 65, .34);
}

.project-profile {
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--glow-a) 16%, transparent), transparent 34%),
    radial-gradient(circle at 0 22%, color-mix(in srgb, var(--glow-b) 12%, transparent), transparent 30%),
    #f7f9fa;
}

.project-profile-header {
  padding: clamp(38px, 6vw, 80px) clamp(24px, 5vw, 72px) clamp(24px, 4vw, 54px);
}

.project-profile-header h2 {
  max-width: 13ch;
  margin: 14px 0 0;
  color: #101315;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 400;
  line-height: .84;
}

.project-profile-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(min(310px, 100%), .65fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: 0 clamp(24px, 5vw, 72px) clamp(38px, 6vw, 82px);
}

.project-profile-thumb {
  overflow: hidden;
  border: 1px solid rgba(16, 19, 21, .18);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(28, 45, 60, .18);
}

.project-profile-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.project-profile-intro p,
.feature-notes-copy p {
  break-inside: avoid;
  margin: 0 0 18px;
  color: #3f484f;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.55;
}

.feature-section {
  padding: clamp(34px, 5vw, 72px);
  border-top: 1px solid rgba(16, 19, 21, .14);
}

.feature-section-label {
  margin-bottom: 20px;
  color: #008d2b;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(8px, .8vw, 11px);
  line-height: 1.4;
}

.feature-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.feature-video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(16, 19, 21, .18);
  border-radius: 8px;
  background: #080b0d;
  box-shadow: 0 18px 42px rgba(12, 18, 24, .2);
}

.feature-video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-notes-copy {
  max-width: 76ch;
  columns: 2 320px;
  column-gap: clamp(28px, 4vw, 64px);
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
}

.feature-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #dce3e8;
}

.feature-profile-footer {
  display: flex;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(16, 19, 21, .14);
}

.feature-more-note {
  margin: 0;
  color: #68727b;
  font-size: 14px;
  line-height: 1.4;
}

.feature-source-link {
  flex: none;
  padding: 12px 14px 10px;
  border: 1px solid #006d22;
  background: #00ff41;
  color: #07130a;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(8px, .85vw, 11px);
  line-height: 1.2;
  box-shadow: 0 0 20px rgba(0, 255, 65, .24);
}

.feature-close {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 4;
  width: auto;
  height: auto;
  padding: 8px 18px;
  border: 1px solid rgba(12, 16, 20, .4);
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: #101315;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1;
  transform: translateX(-50%);
  cursor: pointer;
}

@media (max-width: 760px) {
  .project-profile-lead {
    grid-template-columns: 1fr;
  }

  .feature-gallery {
    grid-template-columns: 1fr;
  }

  .feature-profile-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.promo-flash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}

body.is-promo-flicker .promo-flash {
  animation: promoFlash .36s linear 1;
}

body.is-promo-flicker .tablet-noise::before {
  animation: promoNoiseBurst .36s steps(5, end) 1;
}

@keyframes promoFlash {

  0%,
  22%,
  48%,
  78%,
  100% {
    opacity: 0;
  }

  10% {
    opacity: .5;
  }

  36% {
    opacity: .34;
  }

  66% {
    opacity: .46;
  }
}

@keyframes promoNoiseBurst {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  20% {
    transform: translate3d(52px, -41px, 0);
  }

  40% {
    transform: translate3d(-49px, 44px, 0);
  }

  60% {
    transform: translate3d(55px, 37px, 0);
  }

  80% {
    transform: translate3d(-46px, -52px, 0);
  }
}
