@font-face {
  font-family: "Delight";
  src: url("../fonts/Delight-Black.woff2") format("woff2"),
       url("../fonts/Delight-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "DxBurst";
  src: url("../fonts/Dx-Burst/Dx Burst/DxBurst-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}


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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #000;
  font-family: "Delight", sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  background: url("../assets/images/image.png") center / cover no-repeat;
  z-index: 1;
}

.blur {
  position: fixed;
  inset: 0;
  background: url("../assets/images/image.png") center / cover no-repeat;
  filter: blur(4px) contrast(1.15) saturate(1.2) brightness(0.8);
  transform: scale(1.05);
  z-index: 2;
  pointer-events: none;
}

.texture {
  position: fixed;
  inset: 0;
  background: url("../assets/textures/frost.png") center / cover repeat;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  z-index: 3;
  pointer-events: none;
}

/*
  Full viewport — same bounding box as .bg.
  <image xMidYMid slice> == CSS center/cover → perfect pixel alignment.
  filter:invert(1) inverts only the image.png pixels inside the letters,
  no blur or texture involved.
*/
.title-link { display: contents; }
.title image { pointer-events: auto; cursor: pointer; }   /* only the letters are clickable → home */
.title {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  user-select: none;
  transform-origin: top left;
  will-change: transform;
}

/* ============================================================
   HEADER — slides down when logo nears corner
   ============================================================ */

.site-header {
  --header-p: 0;
  --logo-tx: 24px;
  --logo-ty: 16px;
  --logo-h: 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  box-sizing: border-box;
  min-height: calc(var(--logo-ty) + var(--logo-h) + 10px);
  padding: calc(var(--logo-ty) + env(safe-area-inset-top, 0px)) var(--logo-tx) 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transform: translateY(calc((1 - var(--header-p)) * -110%));
  will-change: transform;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  opacity: var(--header-p);
  pointer-events: none;
}

.header-nav {
  opacity: var(--header-p);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.header-nav a {
  font-family: "DxBurst", cursive;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.03em;
  color: rgba(240, 237, 232, 0.62);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: rgba(240, 237, 232, 0.95);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
}

/* ============================================================
   PAGE WRAPPER + HERO SPACER
   ============================================================ */

.page {
  position: relative;
  z-index: 5;
}

.hero-gap {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

/* Mobile-only hero texts (SVG textPath doesn't scale well at narrow widths) */
.hero-text-mobile,
.hero-scroll-mobile {
  display: none;
}

/* YELLOW accent text — centered in the hero using DxBurst */
.hero-burst {
  position: absolute;

  top: 48%;
  left: 35%;

  transform:
    translate(-50%, -20%)
    rotate(-4deg);

  width: min(1200px, 90vw);

  overflow: visible;

  z-index: 5;

  pointer-events: none;
}

.hero-burst text {
  font-family: "DxBurst", sans-serif;
  font-size: clamp(120px, 18vw, 320px);
  fill: #e8e80c;
  letter-spacing: -0.04em;
}

.hero-scroll {
  position:absolute;
  top: 90%;
  left: 80%;


  transform:
    translate(-50%, -50%)
    rotate(4deg);

  width: min(1200px, 90vw);

  overflow: visible;

  z-index: 5;

  pointer-events: none;
}

.hero-scroll text {
  font-family: "DxBurst", sans-serif;
  font-size: clamp(50px, 6vw, 120px);
  fill: #e8e80c;
  letter-spacing: -0.04em;
}

/* ============================================================
   SHARED
   ============================================================ */

.s-label {
  display: block;
  font-family: "DxBurst", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8e80c;
  margin-bottom: 3rem;
  text-align: center;
}


/* ============================================================
   MANIFESTO
   ============================================================ */

/* ============================================================
   SECTION TEXTURES
   All three content sections share a base grain (::before) and
   each gets a directional accent texture (::after) with a
   gradient mask so placement feels intentional, not tiled.
   mix-blend-mode: screen preserves near-white text while
   brightening the dark background in high-texture areas.
   ============================================================ */

.manifesto,
.cases,
.lab {
  position: relative;
  isolation: isolate;
}

/* Base grain — uniform, very subtle, ties all sections together */
.manifesto::before,
.cases::before,
.lab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/textures/grain.jpg") repeat;
  background-size: 520px 520px;
  mix-blend-mode: screen;
  opacity: 0.055;
  pointer-events: none;
}

/* Manifesto accent: grunge fades in from bottom-left corner */
.manifesto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/textures/grunge.jpg") repeat;
  background-size: 640px 640px;
  mix-blend-mode: screen;
  opacity: 0.09;
  mask-image: radial-gradient(ellipse 55% 65% at 0% 100%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 0% 100%, black 0%, transparent 100%);
  pointer-events: none;
}

/* Cases accent: halftone on the right edge only */
.cases::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/textures/halftone.png") repeat;
  mix-blend-mode: screen;
  opacity: 0.05;
  mask-image: linear-gradient(to left, black 0%, transparent 28%);
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 28%);
  pointer-events: none;
}

/* Lab accent: denser grain raining down from top edge */
.lab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/textures/grain.jpg") repeat;
  background-size: 360px 360px;
  mix-blend-mode: screen;
  opacity: 0.10;
  mask-image: linear-gradient(to bottom, black 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 45%);
  pointer-events: none;
}

/* 2px blur on all texture overlays — softens the tile seams at any zoom level */
.manifesto::before, .manifesto::after,
.cases::before, .cases::after,
.lab::before, .lab::after,
.case::before, .case::after {
  filter: blur(0.5px);
}

/* Cards have overflow:clip — extend past bounds so blur doesn't leave pale edge bands */
.case::before,
.case::after {
  inset: -6px;
}

.manifesto {
  position: relative;
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem 5vw 7rem;
  min-height: clamp(28rem, 70vh, 42rem);
}

.manifesto__inner {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

.manifesto__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.manifesto__headline {
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 6.25rem);
  line-height: 0.95;
  color: #faf8f4;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.manifesto__sub {
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  color: rgba(240, 237, 232, 0.88);
  max-width: 34ch;
}

.manifesto__contact {
  display: inline-block;
  font-family: "DxBurst", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: #e8e80c;
  text-decoration: none;
  transition: color 0.35s ease;
}

.manifesto__contact:hover {
  color: #f5f56a;
}

.manifesto__bird {
  position: absolute;
  right: 5vw;
  top: 50%;
  z-index: 1;
  display: block;
  width: min(36vw, 528px);
  height: auto;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(89%) sepia(68%) saturate(640%) hue-rotate(11deg) brightness(1.06);
}


/* ============================================================
   CASES
   ============================================================ */

/*
  --card-h  : visible height of each case card
  --hdr     : header height when fully scrolled in (logo corner state)
  --fan     : vertical step between stacked sticky cards
*/
:root {
  --card-h: clamp(12rem, 38vh, 22rem);
  --hdr:    80px;   /* header height when fully scrolled */
  --fan:    72px;   /* peek strip per card — tall enough to show the title */
}

.cases {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem 0 0;
}

.cases > .s-label {
  padding: 0 5vw 3rem;
}

.cases__list {
  display: flex;
  flex-direction: column;
}

.cases__sentinel {
  height: 100dvh;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── Each card: sticky fan stacking ── */
.case {
  position: sticky;
  width: 100%;
  height: var(--card-h);
  background: #0c0c0c;
  isolation: isolate;
  overflow: clip;   /* clip avoids the safari sticky+overflow:hidden bug */
  cursor: pointer;

  /* Entry: invisible, sweeps open from top edge downward */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition:
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.25s ease,
    background 0.35s ease;
}

.case.is-visible {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
}

.case:hover {
  background: #121110;
}

/* Fan stacking — each subsequent card sticks slightly lower */
.case:nth-child(1) { top: var(--hdr);                                    z-index: 1; }
.case:nth-child(2) { top: calc(var(--hdr) + var(--fan));                 z-index: 2; }
.case:nth-child(3) { top: calc(var(--hdr) + var(--fan) * 2);             z-index: 3; }
.case:nth-child(4) { top: calc(var(--hdr) + var(--fan) * 3);             z-index: 4; }

/* Base grain — same across all cards, very subtle */
.case::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../assets/textures/grain.jpg") repeat;
  background-size: 520px;
  mix-blend-mode: screen;
  opacity: 0.08;
  pointer-events: none;
}

/* Accent texture — unique direction + texture per card */
.case::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Card 1 — grunge bleeding from top-left corner */
.case:nth-child(1)::after {
  background: url("../assets/textures/grunge.jpg") repeat;
  background-size: 580px;
  opacity: 0.14;
  mask-image: radial-gradient(ellipse 65% 80% at 8% 8%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 8% 8%, black 0%, transparent 70%);
}

/* Card 2 — halftone diagonal sweep from bottom-right */
.case:nth-child(2)::after {
  background: url("../assets/textures/halftone.png") repeat;
  background-size: 420px;
  opacity: 0.07;
  mask-image: linear-gradient(120deg, transparent 30%, black 75%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, black 75%);
}

/* Card 3 — grunge pooling at bottom-right corner */
.case:nth-child(3)::after {
  background: url("../assets/textures/grunge.jpg") repeat;
  background-size: 680px;
  opacity: 0.13;
  mask-image: radial-gradient(ellipse 70% 85% at 92% 95%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 92% 95%, black 0%, transparent 72%);
}

/* Card 4 — dense grain vignette from center */
.case:nth-child(4)::after {
  background: url("../assets/textures/grain.jpg") repeat;
  background-size: 310px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 0%, transparent 100%);
}

.case__copy {
  position: absolute;
  left: clamp(2rem, 5.5vw, 4.5rem);
  top: clamp(1.6rem, 3vw, 2.4rem);
  right: clamp(2rem, 5.5vw, 4.5rem);
  max-width: 34rem;
  z-index: 3;
  pointer-events: none;
}

.case__title {
  display: inline-block;
  transform-origin: left top;
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.8vw, 3.75rem);
  line-height: 1;
  color: #f0ede8;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  will-change: transform;
}

.case__title em {
  font-style: normal;
  font-size: 0.32em;
  letter-spacing: 0.12em;
  vertical-align: middle;
  color: rgba(232, 232, 12, 0.65);
}

.case__desc {
  margin-top: 1.1rem;
  max-width: 30ch;
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(240, 237, 232, 0.55);
  transition: color 0.35s ease;
}

.case:hover .case__desc {
  color: rgba(240, 237, 232, 0.88);
}

.case__desc em {
  font-style: normal;
  color: rgba(232, 232, 12, 0.7);
}

.case__meta {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 232, 12, 0.85);
}

/* Full-card click target */
.case__hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
}

/* Ghost number — outline by default, fills amber on hover */
.case__num {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  font-family: "DxBurst", sans-serif;
  font-weight: normal;
  font-size: clamp(5.5rem, 18vw, 13rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232, 232, 12, 0.32);
  user-select: none;
  pointer-events: none;
  transition: color 0.45s ease, -webkit-text-stroke 0.45s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case:hover .case__num {
  color: rgba(232, 232, 12, 0.12);
  -webkit-text-stroke: 1.5px rgba(232, 232, 12, 0.7);
  transform: translateY(-50%) translateX(-8px);
}

/* ============================================================
   LAB
   ============================================================ */

.lab {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem 5vw 9rem;
  margin-top: -100dvh;
  position: relative;
}

.lab__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.lab__head .s-label {
  margin-bottom: 0;
}

.lab__headline {
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.5vw, 3rem);
  line-height: 1.05;
  color: rgba(240, 237, 232, 0.3);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: right;
}

/* ── List rows ── */

.lab__list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lab__item {
  display: grid;
  grid-template-columns: clamp(3rem, 4.5vw, 5rem) 1fr max-content;
  align-items: center;
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: clamp(1.1rem, 1.8vw, 1.6rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.25s ease;
}

.lab__item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.lab__num {
  font-family: "DxBurst", sans-serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
  color: #e8e80c;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lab__main {
  min-width: 0;
}

.lab__name {
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 4.25rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(240, 237, 232, 0.28);
  transition: color 0.3s ease;
}

.lab__desc {
  margin-top: 0.5rem;
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  line-height: 1.35;
  color: rgba(240, 237, 232, 0.32);
  transition: color 0.3s ease;
}

.lab__item:hover .lab__desc {
  color: rgba(240, 237, 232, 0.6);
}

/* Per-letter span — inline-block so each glyph can transform independently */
.lab__char {
  display: inline-block;
  white-space: pre;
  will-change: transform;
}

.lab__item:hover .lab__name {
  color: #f0ede8;
}

.lab__tag {
  font-family: "Delight", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.18);
  transition: color 0.3s ease;
}

.lab__item:hover .lab__tag {
  color: rgba(240, 237, 232, 0.5);
}


/* ============================================================
   LABWORK — native horizontal scroller of field studies
   ============================================================ */

.labwork { position: relative; margin-top: 2.5rem; }

.labwork__scroller {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  height: clamp(22rem, 64vh, 40rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.labwork__scroller::-webkit-scrollbar { display: none; }
.labwork__scroller.is-drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.labwork__slide {
  position: relative;
  flex: 0 0 min(78vw, 660px);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 3px;
  background: #0a0908;
  scroll-snap-align: center;
  user-select: none;
}
.labwork__slide:first-child { scroll-snap-align: start; }
.labwork__slide:last-child { margin-right: 4vw; }

.labwork__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

/* image slides — amber duotone of any photo */
.labwork__slide--image .labwork__media img,
.labwork__slide--image .labwork__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(1) brightness(0.62) contrast(1.05) sepia(0.55) saturate(2.2) hue-rotate(var(--tint, -12deg));
}
.labwork__slide--image.is-active .labwork__media img { transform: scale(1); }

/* cohesive wash + grain on every slide */
.labwork__slide::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 11, 9, 0.9), rgba(12, 11, 9, 0.04) 55%),
    radial-gradient(120% 90% at 80% 6%, rgba(232, 232, 12, 0.16), transparent 55%);
}
.labwork__slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/textures/grain.jpg") repeat; background-size: 340px;
  mix-blend-mode: screen; opacity: 0.07;
}

/* ── TERMINAL — amber CRT, matching dev.html ── */
.labwork__slide--terminal::after { content: none; }   /* drop the page-wide grain texture here */
.labwork__slide--terminal .labwork__media {
  background: #0c0b09;                       /* dev warm near-black */
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.5) 2px 3px);
}
.labwork__term {
  margin: 0; padding: clamp(1.2rem, 4vw, 2.4rem);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  line-height: 1.75; color: #eca838;          /* dev --fg amber */
  text-shadow: 0 0 7px rgba(236, 168, 56, 0.45);
  white-space: pre-wrap; word-break: break-word;
}

/* ── PRESS placeholder ── */
.labwork__slide--press .labwork__media {
  background: #100f0b;
  background-image: url("../assets/textures/halftone.png");
  background-size: 340px; background-blend-mode: soft-light;
}
.labwork__press { position: absolute; inset: 0; padding: clamp(1.4rem, 4vw, 2.6rem); }
.labwork__press-kicker {
  display: block; font-family: "Delight", sans-serif; font-weight: 900;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #e8e80c;
  border-bottom: 1px solid rgba(240, 237, 232, 0.25); padding-bottom: 0.6rem;
}
.labwork__press-head {
  margin: 1.1rem 0 1.4rem; max-width: 16ch;
  font-family: "Times New Roman", Georgia, serif; font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem); line-height: 1.02; color: #f0ede8;
}
.labwork__press-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.labwork__press-cols span {
  height: 4.5rem; border-top: 1px solid rgba(240, 237, 232, 0.22);
  background: repeating-linear-gradient(0deg, rgba(240, 237, 232, 0.16) 0 1px, transparent 1px 6px);
}

/* ── SIGNAL — grunge texture video, pushed warm ── */
.labwork__slide--signal .labwork__media { background: #0a0a0a; }
.labwork__slide--signal .labwork__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.7) contrast(1.15) sepia(0.5) saturate(2) hue-rotate(-12deg);
}

/* info (number / kinetic title / tag) */
.labwork__info {
  position: absolute; z-index: 2;
  left: clamp(1.2rem, 4vw, 3rem); right: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(1.2rem, 4vw, 2.4rem); pointer-events: none;
}
.labwork__num { font-family: "DxBurst", sans-serif; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1; color: #e8e80c; }
.labwork__title {
  font-family: "Delight", sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.9; font-size: clamp(2.4rem, 8vw, 6rem);
  color: #f0ede8; margin: 0.4rem 0 0.55rem;
  white-space: nowrap;            /* keep one line when fonts swap → the number above won't jump */
  height: 0.9em; overflow: visible;
}
.labwork__char { display: inline-block; white-space: pre; }
.labwork__tag {
  font-family: "Delight", sans-serif; font-weight: 900; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240, 237, 232, 0.6);
}

/* bar — native progress, no buttons */
.labwork__bar { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.2rem; }
.labwork__count { font-family: "DxBurst", sans-serif; font-size: 1.35rem; color: #e8e80c; min-width: 5ch; }
.labwork__rail { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.12); position: relative; }
.labwork__fill { position: absolute; left: 0; top: 0; height: 100%; width: 12%; background: #e8e80c; transition: width 0.12s linear; }
.labwork__hint {
  font-family: "Delight", sans-serif; font-weight: 900; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240, 237, 232, 0.35); white-space: nowrap;
}
.labwork__open {
  display: inline-block; margin-top: 1.6rem;
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(232, 232, 12, 0.55);
  border-radius: 3px;
  font-family: "DxBurst", cursive; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.03em; color: #e8e80c; text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.labwork__open:hover { background: #e8e80c; color: #0c0c0c; border-color: #e8e80c; }

@media (max-width: 640px) {
  .labwork__scroller { height: clamp(18rem, 86vw, 30rem); }
  .labwork__slide { flex-basis: 86vw; }
  .labwork__hint { display: none; }
}


/* ============================================================
   OUTRO / CONTACT
   ============================================================ */

.outro {
  position: relative;
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(5rem, 12vw, 9rem) 5vw clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.outro__kicker {
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(240, 237, 232, 0.5);
}

.outro__mail {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: "DxBurst", sans-serif;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #e8e80c;
  text-decoration: none;
  transition: color 0.35s ease;
}

.outro__mail:hover { color: #f5f56a; }

.outro__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

.outro__nav a {
  font-family: "DxBurst", cursive;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.03em;
  color: rgba(240, 237, 232, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.outro__nav a:hover { color: #f0ede8; }

.outro__sign {
  margin-top: 3rem;
  font-family: "Delight", sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.18);
}


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


/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  :root {
    --fan: 56px;
  }

  .manifesto__inner {
    max-width: 75%;
  }

  .manifesto__bird {
    width: min(40vw, 380px);
  }

  .case__num {
    opacity: 0.7;
  }

  .hero-burst {
    left: 50%;
    top: 42%;
  }

  .hero-scroll {
    left: 65%;
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  :root {
    --hdr:    64px;
    --fan:    48px;
    --card-h: clamp(10rem, 46vw, 16rem);
  }

  /* Safe-area padding for the page bottom (home indicator) */
  .page {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .manifesto {
    padding: 4rem 5vw 5rem;
    min-height: unset;
  }

  .manifesto__inner {
    max-width: 100%;
  }

  .manifesto__bird {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: block;
    width: 55%;
    margin-top: 2.5rem;
  }

  .case__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .case__copy {
    max-width: none;
  }

  /* Cards are short on mobile — keep title + meta, drop the long description */
  .case__desc {
    display: none;
  }

  .case__meta {
    margin-top: 0.45rem;
  }

  .case__num {
    font-size: clamp(4rem, 14vw, 8rem);
  }

  .s-label {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  /* Lab list — drop image thumbnail column on mobile, 3-col layout */
  .lab__item {
    grid-template-columns: clamp(2.5rem, 9vw, 4rem) 1fr max-content;
    column-gap: clamp(0.75rem, 3vw, 1.5rem);
  }

  .lab__num {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
  }

  .lab__name {
    font-size: clamp(1.2rem, 5.5vw, 2.2rem);
  }

  /* SVG curved textPath doesn't render well at mobile widths — use plain text */
  .hero-burst,
  .hero-scroll {
    display: none;
  }

  /* "made this." — positioned clear of Dynamic Island / notch */
  .hero-text-mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%) rotate(-4deg);
    font-family: "DxBurst", sans-serif;
    font-size: clamp(44px, 11vw, 72px);
    color: #e8e80c;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 5;
  }

  /* "scroll down" — centered at bottom, above home indicator */
  .hero-scroll-mobile {
    display: block;
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 20px) + 1.75rem);
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    font-family: "DxBurst", sans-serif;
    font-size: clamp(9vw, 36px, 52px);
    color: #e8e80c;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 5;
  }

  /* Hamburger button */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    font-family: "Delight", sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.65);
    flex-shrink: 0;
    z-index: 2;
  }

  /* Header — logo in corner, menu button on right */
  .site-header {
    align-items: center;
    justify-content: flex-end;
  }

  /* Nav dropdown — hidden by default, appears below header */
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

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

  .header-nav a {
    padding: 1rem 1.5rem;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: rgba(240, 237, 232, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .header-nav a:first-child {
    border-top: none;
  }
}
