@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-MedIta.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/HelveticaNowDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --tracking: -0.030em;
}

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

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: #000;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

/* CURSOR */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  background: #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease,
    margin 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.cursor-dot.is-active { opacity: 1; }

.cursor-dot__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hovering a work card: the dot becomes the LE:MA-style solid blue
   "View Project" bubble instead of the difference circle. */
body.is-card-hover .cursor-dot {
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  background: #2e49f6;
  mix-blend-mode: normal;
}

body.is-card-hover .cursor-dot__label { opacity: 1; }

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 4vw;
  mix-blend-mode: difference;
}

.nav__logo img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav__link {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  letter-spacing: var(--tracking);
  opacity: 0.75;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.nav__link:hover { opacity: 1; }

.nav__link.is-active {
  opacity: 1;
  font-weight: 700;
}

/* PAGE SLIDER — right-edge position indicator, doubles as page nav */
.page-slider {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  z-index: 10;
  width: 24px;
  height: 180px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.page-slider__track {
  position: relative;
  width: 2px;
  height: 100%;
  background: #fff;
  opacity: 0.35;
  mix-blend-mode: difference;
  border-radius: 2px;
}

.page-slider__thumb {
  position: absolute;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: #fff;
  mix-blend-mode: difference;
  border-radius: 3px;
  transition: top 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* STAGE — shared fixed video background behind every page */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition: filter 0.5s ease, transform 0.5s ease;
}

/* Hovering a Work card pushes the background video back: it dims and
   blurs so the card and its context text come forward. The slight
   scale hides the transparent edge halo that blur would otherwise
   leave inside the clipped stage. */
body.is-card-hover .stage {
  filter: blur(14px) brightness(0.5);
  transform: scale(1.06);
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-screen loop of the focused Work card, faint behind the whole page.
   Fixed and sitting just above the stage; JS sets the image to the
   centered card and toggles .is-visible only while the Work page shows. */
.work-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.08); /* hides the transparent edge halo the blur creates */
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.work-bg.is-visible { opacity: 0.2; }

.hero-video__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.9s ease;
}

/* CONTENT STACK — a single fixed position; panels cross-fade in place
   instead of sliding, so nothing ever changes position on screen.
   mix-blend-mode lives here (not on the panels) because .content-stack is
   position:fixed and so forms its own stacking context — a blend set on a
   child would only see other children, never the video behind the stack.
   On the Work page the video is blacked out and .work-bg lives inside this
   stack, so the difference blend has a black backdrop and leaves the cards
   untouched; the text pages still invert against the live video. */
.content-stack {
  position: fixed;
  left: calc(4vw + 50px);
  right: 4vw;
  bottom: 6vw;
  z-index: 1;
  height: 0;
  mix-blend-mode: difference;
}

.content-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.content-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Home page only: JS applies a translateY offset here when leaving
   forward to About. Transition covers both opacity and transform so
   whichever one JS changes animates smoothly. */
.content-panel--hero {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-video__name {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.0rem, 8vw, 7.0rem);
  line-height: 0.95;
  letter-spacing: var(--tracking);
  white-space: nowrap;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.hero-video__role {
  margin-top: 0px;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 3.2rem);
  letter-spacing: var(--tracking);
  color: #fff;
  pointer-events: none;
  user-select: none;
}

/* CONTACT PAGE — bottom-anchored like the hero: a heading over a short
   list of ways to reach out. Sits inside .content-stack so it inherits
   the difference blend against the video. */
.contact__title {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: var(--tracking);
  color: #fff;
  margin-bottom: clamp(24px, 4vh, 44px);
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 22px);
}

.contact__item {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.contact__label {
  flex: 0 0 auto;
  width: 96px;
  font-weight: 500;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: var(--tracking);
  color: #fff;
  opacity: 0.55;
}

.contact__link {
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  letter-spacing: var(--tracking);
  color: #fff;
  transition: opacity 0.2s ease;
}

.contact__link:hover { opacity: 0.55; }

/* Cat working GIF — drifts around and bounces off the viewport edges like
   the classic DVD-logo screensaver (position driven by JS via transform).
   Lives in the Contact panel, where the blacked-out video makes the
   difference blend a no-op, so it renders in its true colours. */
.contact__cat {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(150px, 18vw, 260px);
  height: auto;
  border-radius: 12px;
  pointer-events: none;
  will-change: transform;
}

.intro__about-text {
  margin-top: 28px;
  max-width: 640px;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #fff;
  pointer-events: auto;
}

/* ABOUT QUOTE — testimonial, centered on screen via fixed positioning.
   Because it's position:fixed, it's no longer constrained by
   .content-stack's left/right bounds — width is now controlled purely
   here, via a fluid width capped by max-width. */
.about-quote {
  position: fixed;
  top: 40%;
  left: 48%;
  transform: translate(-50%, -50%) translateY(var(--slide, 0px));
  transition: transform 0.5s ease;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 90vw;
  max-width: 1050px;
  margin: 0;
  cursor: pointer; /* whole testimonial links to the LinkedIn recommendation */
}

/* "Read full recommendation on LinkedIn" call-to-action under the author. */
.about-quote__cta {
  margin-top: 14px;
  font-family: "Syne", "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  letter-spacing: var(--tracking);
  color: #fff;
  opacity: 0.55;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.about-quote:hover .about-quote__cta { opacity: 1; }

.about-quote__mark {
  font-family: "Syne", "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 15vw, 30.0rem);
  line-height: 0.6;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  user-select: none;
}

.about-quote__mark--close {
  position: absolute;
  right: 0;
  bottom: -120px;
}

/* Testimonial rotation: the finished quote fades out, then the next one
   types itself in with a blinking caret trailing the last character. */
.about-quote__body {
  transition: opacity 0.35s ease;
}

.about-quote__body.is-fading {
  opacity: 0;
}

/* Blinking caret at the end of the text while it's being typed. */
.about-quote__body.is-typing .about-quote__text::after {
  content: "";
  display: inline-block;
  width: 0.07em;
  height: 0.95em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: currentColor;
  animation: caret-blink 0.85s steps(1) infinite;
}

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

.about-quote__author {
  transition: opacity 0.4s ease;
}

.about-quote__text {
  font-family: "Syne", "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: var(--tracking);
  color: #fff;
}

.about-quote__author {
  margin-top: 20px;
  font-family: "Syne", "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #fff;
}

/* ABOUT GRID — three columns, each its own heading + paragraph */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  transform: translateY(var(--slide, 0px));
  transition: transform 0.5s ease;
}

.about-grid__heading {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  letter-spacing: var(--tracking);
  color: #fff;
  margin-bottom: 12px;
}

.about-grid .intro__about-text {
  margin-top: 0;
  max-width: none;
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.55;
}

.about-grid__item {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-grid__item.has-entered {
  opacity: 0.25;
}

.about-grid__item.has-entered.is-highlighted {
  opacity: 1;
}

/* WORK DECK — splayed hand-of-cards carousel. Landscape 16:9 cards fan
   out horizontally: the centered card sits straight and largest, side
   cards drop lower, shrink, and tilt outward like held playing cards.
   Fixed full-screen inside its panel (same pattern as .about-quote), so
   it escapes the bottom-anchored .content-stack. JS writes each card's
   transform every frame; CSS only sets the static look. */
.work-deck {
  position: fixed;
  inset: 0;
  transform: translateY(var(--slide, 0px));
  transition: transform 1.5s ease;
}

.work-head {
  position: absolute;
  top: 14vh;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.work-head__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: var(--tracking);
}

.work-head__note {
  margin-top: 34px;
  text-align: center;
  font-weight: 500;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.6;
}

.work-deck__stage {
  position: absolute;
  inset: 0;
  touch-action: none; /* horizontal drag is handled via pointer events */
}

.work-card {
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(58vw, 780px);
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #131315;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: grab;
  will-change: transform;
}

.work-deck__stage.is-dragging .work-card { cursor: grabbing; }

/* Full-card looping GIF (swapped in by JS while the Work page is visible).
   Plays at full opacity as the card's face; when the cursor is over the
   card it dims so the title + copy that fade in stay legible. */
.work-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  user-select: none;
}

.work-card:hover .work-card__thumb { opacity: 0.3; }

/* Injected by JS from each card's data-title / data-desc. The whole
   block is hidden until the cursor is over the card, then fades in. */
.work-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(22px, 4vw, 52px);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-card__label { opacity: 1; }

.work-card__name {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  letter-spacing: var(--tracking);
  line-height: 1.02;
}

.work-card__desc {
  margin-top: 14px;
  max-width: 52ch;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.5;
  opacity: 0.9;
}

/* Desktop reveals card copy on hover; the below-card caption is mobile-only. */
.work-caption { display: none; }

.work-nav {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  gap: 14px;
}

.work-nav__btn {
  width: 58px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.work-nav__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }

.work-nav__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* VIDEO LIGHTBOX — lives outside .content-stack so the iframe isn't
   caught in the difference blend. */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox__frame {
  width: min(80vw, 1200px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-lightbox__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* MEDIA SLIDER — swipeable gallery inside the lightbox for projects with
   local media (an mp4 plus one or more still images). */
.media-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-slider__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.media-slider__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.media-slider__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.media-slider__nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.6); }
.media-slider__nav:disabled { opacity: 0.25; cursor: default; }
.media-slider__nav--prev { left: 16px; }
.media-slider__nav--next { right: 16px; }

.media-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.media-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.media-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.video-lightbox__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

.video-lightbox__placeholder-title {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: var(--tracking);
}

.video-lightbox__placeholder-note {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.5;
}

.video-lightbox__close {
  position: absolute;
  top: 32px;
  right: 4vw;
  background: none;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.video-lightbox__close:hover { opacity: 1; }

@media (max-width: 900px) {
  .nav__link { font-size: clamp(0.95rem, 2.2vw, 1.3rem); }
  .nav__menu { gap: clamp(14px, 3vw, 28px); }
}

/* Tablet / narrow-desktop: the testimonial's oversized quote marks and
   the deep-hanging closing mark collide with the About grid below. Shrink
   the marks, tighten the block, and tuck the closing mark just under the
   text so the two sections stop overlapping. */
@media (max-width: 1100px) {
  .about-quote {
    top: 34%;
    gap: 16px;
  }
  .about-quote__text { font-size: clamp(1rem, 2.4vw, 1.6rem); }
  .about-quote__author { margin-top: 14px; }
  .about-quote__mark { font-size: clamp(2.4rem, 8vw, 6rem); }
  .about-quote__mark--close { bottom: -44px; }
}

@media (max-width: 700px) {
  /* Keep the bar clear of the notch / status bar (viewport-fit=cover). */
  .nav { padding: max(22px, env(safe-area-inset-top)) 5vw 22px; gap: 12px; }
  .nav__logo img { height: 26px; }
  .nav__menu { gap: 14px; }
  .nav__link { font-size: 0.9rem; letter-spacing: 0; }
  /* Contact is the only panel still anchored to the content-stack on mobile;
     inset its text 10% of the screen width from the left edge. */
  .content-stack { left: 10vw; bottom: 8vw; }

  /* The right-edge progress bar is desktop-only. */
  .page-slider { display: none; }

  /* Home: name + role perfectly centered in the viewport. Fixed positioning
     escapes the bottom-left content-stack; the difference blend is still
     inherited from the stack. Role breaks onto two controlled lines. */
  .content-panel--hero {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-video__role-line2 { display: block; }
  .hero-video__name { font-size: 3.51rem; }   /* +35%, then +30% again on mobile */
  .hero-video__role {
    font-size: 1.68rem;                        /* +20% on mobile */
    line-height: 1.15;                         /* tighter spacing between the two role lines */
    margin-top: 14px;                          /* drop the first role line a bit lower */
  }

  .work-card { width: min(88vw, 520px); top: 46%; }
  .work-head { top: 11vh; }
  .work-nav { bottom: calc(4vh + env(safe-area-inset-bottom)); }

  /* No hover on touch: hide the on-card text overlay (the caption below the
     card replaces it) and keep the card preview at full opacity. */
  .work-card__label { display: none; }
  .work-card:hover .work-card__thumb { opacity: 1; }

  /* Card title + description, shown below the focused card on touch.
     Confined to a fixed box between the card and the arrows and centered
     within it, so the text stays evenly placed but can never reach down
     into the arrows, no matter how long the description is. */
  .work-caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    left: 7vw;
    right: 7vw;
    top: 58vh;                                        /* just below the card */
    bottom: calc(12vh + env(safe-area-inset-bottom)); /* stays clear of the arrows */
    text-align: center;
    color: #fff;
    pointer-events: none;
  }
  .work-caption__name {
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: var(--tracking);
  }
  .work-caption__desc {
    margin-top: 10px;
    font-weight: 400;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.8;
  }

  .video-lightbox__frame { width: 92vw; }
  .video-lightbox__close { top: 20px; right: 5vw; }

  /* Contact: stack label over value so long email/LinkedIn lines fit. */
  .contact__item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact__label { width: auto; }
  .contact__link { font-size: 1.05rem; overflow-wrap: anywhere; }

  /* About becomes a scrollable single column so the testimonial and the
     three sections stack cleanly instead of piling on top of each other. */
  .content-panel--about {
    position: fixed;
    inset: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 92px 6vw 56px;
  }
  .about-quote {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    gap: 12px;
    margin: 0 0 40px;
  }
  .about-quote__mark { font-size: 2.2rem; }
  .about-quote__mark--close { position: static; align-self: flex-end; margin-top: -6px; }
  .about-quote__text { font-size: 1rem; line-height: 1.45; }
  .about-quote__author { margin-top: 12px; font-size: 0.9rem; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 0;
    transform: none;
  }
  .about-grid__item,
  .about-grid__item.has-entered { opacity: 1; }

  /* ── ONE-PAGE SCROLL (mobile only) ─────────────────────────────────
     The desktop page-flip panels become normal full-height sections in a
     single vertically-scrolling page. The video stays a fixed backdrop;
     per-section brightness is driven by scroll position in script.js. */
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .content-stack {
    position: relative;   /* stays above the fixed video: keeps z-index + blend */
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
  }

  .content-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: 100dvh;
  }

  .content-panel--hero { position: relative; inset: auto; min-height: 100dvh; }

  .content-panel--about {
    position: relative;
    inset: auto;
    min-height: 100dvh;
    display: block;
    overflow: visible;
    padding: 104px 6vw 72px;
  }

  .content-panel--work { position: relative; inset: auto; min-height: 100dvh; }
  .work-deck { position: absolute; inset: 0; transform: none; }
  /* Let vertical swipes scroll the page while horizontal drags still move
     the card wheel. */
  .work-deck__stage, .work-card { touch-action: pan-y; }

  .content-panel--contact {
    position: relative;
    inset: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5vw 0 10vw;
  }
  .contact__cat { position: absolute; transition: opacity 0.3s ease; }
  .content-panel--contact:not(.is-active) .contact__cat { opacity: 0; }
}