/* ============================================================
   DESIGN SYSTEM — Bangrui Fang Portfolio
   Reference: jackiezhang.co.za aesthetic
   Palette: dark cinematic / editorial / warm monochrome
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* Color */
  --bg:           #0e0d0c;
  --surface:      #161412;
  --surface-high: #1e1b18;
  --text:         #e8e3d8;
  --text-dim:     #6b6457;
  --text-muted:   #3a3632;
  --border:       #1f1d1a;
  --border-light: #2a2723;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Spacing tokens */
  --side-pad:     72px;
  --section-gap:  200px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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


/* ── UTILITIES ── */

/* Reusable metadata style */
.meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Reusable section rule */
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  margin-left: 24px;
}

/* Reusable section label */
.section-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0.72;
  white-space: nowrap;
}

/* Layout padding for major sections */
.section-padding {
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}


/* ── REVEAL ANIMATION ── */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

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

/* Letter-level reveal for role */
.role-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.role-letter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero name reveal */
.reveal-name {
  display: block;
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}

.reveal-name.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--side-pad);
  mix-blend-mode: normal;
}

.nav-mark {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-mark:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}


/* ── VIGNETTE overlay — cinematic dark-edge framing, pure CSS ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(
    ellipse 110% 100% at 50% 50%,
    transparent 52%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

/* ── Each scroll section floats above the fixed aurora (z 1) ── */
.hero,
.about,
.fan-section,
.footer,
.status-strip {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ── AURORA / smoke canvas inside hero ── */
#aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Keep all hero content above canvases */
.hero > *:not(#aurora-canvas):not(#spark-canvas) {
  position: relative;
  z-index: 1;
}

/* Subtle body gradient — breaks up the flat #0e0d0c ── */
body {
  background-image:
    radial-gradient(ellipse 140% 80% at 8% 60%, #131110 0%, transparent 55%),
    radial-gradient(ellipse 100% 60% at 92% 20%, #110f0d 0%, transparent 50%);
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

/* Spark canvas — sits behind everything in the hero */
#spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--side-pad);
}

/* Centred content column — receives the 3-D mouse-tilt transform */
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* 3-D perspective so rotateX/Y reads as depth */
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Giant name */
.hero-name-wrap {
  margin-bottom: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(88px, 12vw, 172px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--text);
  display: block;
  cursor: default;
  user-select: none;
}

.hero-name-line {
  display: block;
}

/* Role letters row */
.hero-role {
  margin-top: clamp(28px, 3.5vw, 48px);
}

.role-letters {
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.role-sep {
  display: inline-block;
  margin: 0 14px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.role-sep.is-visible {
  opacity: 1;
}

/* Statement */
.hero-statement {
  margin-top: clamp(28px, 3.5vw, 48px);
}

.hero-stmt-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  color: var(--text);
  opacity: 0.55;
}

/* Subtle scroll indicator line at bottom-centre */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  animation: scroll-pulse 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}




/* ══════════════════════════════════════════
   STATUS STRIP
══════════════════════════════════════════ */

.status-strip {
  border-top: none;
  border-bottom: none;
  /* soft shadow lines instead of hard 1px borders */
  box-shadow:
    0 -1px 0 0 rgba(255,255,255,0.04),
    0  1px 0 0 rgba(255,255,255,0.04);
  padding: 20px var(--side-pad);
  display: flex;
  align-items: center;
  gap: 40px;
}

.status-label {
  flex-shrink: 0;
  opacity: 0.4;
}

.status-text-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.status-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 1;
  transition: opacity 0.6s var(--ease-in-out);
  white-space: nowrap;
}

.status-text.fade-out {
  opacity: 0;
}

.status-cursor {
  display: inline-block;
  width: 5px;
  height: 12px;
  background: var(--text-muted);
  opacity: 0.6;
  animation: cursor-blink 1.1s step-end infinite;
  flex-shrink: 0;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0; }
}


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */

.about-header {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

.about-content {
  max-width: min(680px, 100%);
}

.about-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-dim);
  margin-bottom: 32px;
}


/* ══════════════════════════════════════════
   WORK
══════════════════════════════════════════ */

.work-header {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

/* Project shared */
.project {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 80px;
}

.project-num {
  display: block;
  margin-bottom: 20px;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
  display: block;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 420px;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 420px;
}

.project-year {
  opacity: 0.5;
}

/* Image placeholder */
.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.project-img-placeholder::after {
  content: attr(data-proj);
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─ PROJECT 01: image-led ─ */
.project--image-led {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.project-visual {
  height: 420px;
  overflow: hidden;
}

.project-visual .project-img-placeholder {
  height: 100%;
  transition: transform 0.8s var(--ease-out);
}

.project--image-led:hover .project-img-placeholder {
  transform: scale(1.03);
}

/* ─ PROJECT 02: title-led ─ */
.project--title-led {
  display: flex;
  justify-content: flex-end;
}

.project-info--wide {
  width: 60%;
}

.project-title--xl {
  font-size: clamp(64px, 8vw, 112px);
  margin-bottom: 24px;
}

/* ─ PROJECT 03: editorial ─ */
.project--editorial {
  padding-top: 56px;
}

.project-editorial-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}

.project-editorial-image {
  height: 500px;
  overflow: hidden;
}

.project-editorial-image .project-img-placeholder {
  height: 100%;
  transition: transform 0.8s var(--ease-out);
}

.project--editorial:hover .project-img-placeholder {
  transform: scale(1.03);
}

/* ─ PROJECT 04: compact / right-offset ─ */
.project--compact {
  display: flex;
  justify-content: flex-end;
}

.project-info--right {
  width: 44%;
}


/* ══════════════════════════════════════════
   PHOTOGRAPHY — FAN DECK
══════════════════════════════════════════ */

.fan-section {
  background: transparent;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  z-index: 2;
}

/* Gradient vignettes that dissolve the hard black edges
   into the warm --bg of the surrounding sections            */
.fan-section::before,
.fan-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 12;          /* above aurora canvas, below fan deck (150) */
}
.fan-section::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    #0e0d0c 0%,
    rgba(14,13,12,0.55) 45%,
    transparent 100%
  );
}
.fan-section::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    #0e0d0c 0%,
    rgba(14,13,12,0.55) 45%,
    transparent 100%
  );
}

.fan-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── The deck container ─────────────────────────────────── */
.fan-deck {
  position: relative;
  width: 220px;
  height: 320px;
  transform-style: preserve-3d;
  /* Must be above the backdrop (z-index:100) so expanded cards are never covered */
  z-index: 150;
  margin-top: 80px;
  cursor: default;
}

/* ── Each card ─────────────────────────────────────────── */
.fan-card {
  position: absolute;
  inset: 0;
  transform:
    rotate(var(--fr, 0deg))
    translate(var(--ftx, 0px), var(--fty, 0px));
  z-index: calc(10 + var(--fi, 0));
  transform-origin: center bottom;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.28s ease,
    z-index   0s;
}

/* ── Entrance animation ─────────────────────────────────── */
/* Before JS fires: cards stacked flat and invisible          */
.fan-deck:not(.is-entered) .fan-card {
  opacity: 0;
  transform: translateY(52px) scale(0.93);
  transition: none;
  cursor: default;
  pointer-events: none;
}

/* JS adds .is-entered → cards fan out with per-card stagger  */
.fan-deck.is-entered .fan-card {
  opacity: 1;
  transform:
    rotate(var(--fr, 0deg))
    translate(var(--ftx, 0px), var(--fty, 0px));
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.55s ease;
  transition-delay: calc(var(--fi, 0) * 95ms);
  pointer-events: auto;
}

/* JS adds .has-entered after entrance completes → fast hover */
.fan-deck.has-entered .fan-card {
  transition:
    transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.28s ease,
    z-index   0s;
  transition-delay: 0s;
}

.fan-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.4);
}

.fan-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.28s ease;
}

/* ── Fan expanded on deck hover ─────────────────────────── */
.fan-deck:not(.has-expanded):hover .fan-card {
  transform:
    rotate(calc(var(--fr, 0deg) * 1.55))
    translate(
      calc(var(--ftx, 0px) * 1.4),
      calc(var(--fty, 0px) * 1.4 - 18px)
    );
  transition-delay: 0s;
}

/* Hovered card lifts and brightens within the deck */
.fan-deck:not(.has-expanded):hover .fan-card:hover {
  transform:
    rotate(calc(var(--fr, 0deg) * 1.55))
    translate(
      calc(var(--ftx, 0px) * 1.4),
      calc(var(--fty, 0px) * 1.4 - 40px)
    );
  z-index: 50;
  transition-delay: 0s;
}

.fan-deck:not(.has-expanded):hover .fan-card:hover .fan-card-inner img {
  filter: brightness(1);
}

/* ── Background cards dim when one is expanded ──────────── */
.fan-deck.has-expanded .fan-card:not(.is-expanded) {
  opacity: 0.25;
  pointer-events: none;
}

/* ── Expanded (selected) card ─────────────────────────── */
.fan-card.is-expanded {
  transform:
    translate(var(--ex, 0px), var(--ey, 0px))
    scale(var(--es, 1.9))
    rotate(0deg) !important;
  z-index: 200 !important;
  cursor: zoom-out;
  will-change: transform;
  /* Cinematic expand/collapse — keep slow */
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.38s ease;
}

.fan-card.is-expanded .fan-card-inner img {
  filter: brightness(1);
}

/* ── Dismissal backdrop ─────────────────────────────── */
.fan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 100;
  pointer-events: none;
  transition: background 0.5s ease;
}

.fan-backdrop.is-visible {
  background: rgba(0,0,0,0.70);
  pointer-events: auto;
  cursor: zoom-out;
}

/* ── Label ───────────────────────────────────────────── */
.fan-label {
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  color: rgba(255,255,255,0.72);
  opacity: 1;
}

.fan-stage.has-info .fan-label {
  opacity: 0;
}

.fan-header {
  position: absolute;
  bottom: 36px;
  left: 60px;
  right: 60px;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fan-stage.has-info .fan-header {
  opacity: 0;
}

/* ── Info panel ─────────────────────────────────────── */
.fan-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 160;
  /* Hidden: shifted down below the section edge */
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.36s ease;
  /* Delay slightly so card animation leads */
  transition-delay: 0.18s;
}

.fan-info.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.20s;
}

.fan-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 60px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.88) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Large italic number on the left */
.fan-info-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  padding-top: 4px;
}

.fan-info-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* EDIT THIS — location line */
.fan-info-location {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* EDIT THIS — main title */
.fan-info-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  color: rgba(255,255,255,0.90);
  margin: 0;
  letter-spacing: 0.01em;
}

/* EDIT THIS — description */
.fan-info-desc {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.42);
  margin: 0;
  max-width: 540px;
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .fan-section {
    height: 100svh;
  }

  .fan-deck {
    width: 160px;
    height: 240px;
    margin-top: 60px;
  }

  /* Expand scale is smaller on mobile since viewport is tight */
  .fan-card.is-expanded {
    transform:
      translate(var(--ex, 0px), var(--ey, 0px))
      scale(var(--esm, 1.4))
      rotate(0deg) !important;
  }

  .fan-header {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .fan-info-inner {
    padding: 20px 24px 24px;
    gap: 20px;
  }

  .fan-info-num {
    font-size: 32px;
  }

  .fan-info-desc {
    display: none;
  }
}


.footer {
  padding: 160px var(--side-pad) 96px;
  border-top: none;
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.footer-closing {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  color: var(--text);
  opacity: 0.55;
  max-width: 560px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  opacity: 0.4;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link {
  color: var(--text-dim);
  transition: color 0.3s;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--text-dim);
  transition: width 0.4s var(--ease-out);
}

.footer-link:hover {
  color: var(--text);
}

.footer-link:hover::after {
  width: 100%;
}


/* ══════════════════════════════════════════
   MOBILE ADAPTATION  (≤ 768px)
══════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root {
    --side-pad: 48px;
    --section-gap: 144px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .project--image-led {
    grid-template-columns: 1fr;
  }

  .project--title-led,
  .project--compact {
    justify-content: flex-start;
  }

  .project-info--wide,
  .project-info--right {
    width: 100%;
  }

  .project-editorial-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --side-pad: 24px;
    --section-gap: 112px;
  }

  .nav {
    padding: 24px var(--side-pad);
  }

  .hero-name {
    font-size: clamp(72px, 16vw, 120px);
  }

  .hero-scroll-hint {
    bottom: 28px;
  }

  .project-title {
    font-size: clamp(36px, 9vw, 52px);
  }

  .project-title--xl {
    font-size: clamp(48px, 12vw, 72px);
  }

  .project-editorial-image {
    height: 300px;
  }

  .project-visual {
    height: 280px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-closing {
    font-size: clamp(28px, 9vw, 44px);
  }

  .about-body {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.9;
  }

  .nav-links a {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════
   SMALL MOBILE  (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --side-pad: 20px;
    --section-gap: 88px;
  }

  .nav {
    padding: 20px var(--side-pad);
  }

  .hero-name {
    font-size: clamp(58px, 17vw, 88px);
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-role {
    padding-top: 24px;
  }

  .role-letters {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .hero-stmt-text {
    font-size: clamp(20px, 6vw, 28px);
  }

  .about-body {
    font-size: 15px;
    line-height: 1.88;
  }

  .about-header {
    margin-bottom: 52px;
  }

  .footer {
    padding: 100px var(--side-pad) 64px;
  }

  .footer-closing {
    font-size: clamp(26px, 10vw, 38px);
  }

  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .status-strip {
    padding: 16px var(--side-pad);
    gap: 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   CONTACT MODAL
   ═══════════════════════════════════════════════════════════ */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.38s ease;
  padding: 24px;
}
.contact-overlay.is-open {
  background: rgba(0, 0, 0, 0.76);
  pointer-events: all;
}

.contact-modal {
  width: 100%;
  max-width: 540px;
  background: #111009;
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.contact-overlay.is-open .contact-modal {
  opacity: 1;
  transform: none;
}

/* ── Header ─────────────────────────────────────────────── */
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.contact-send-btn,
.contact-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.contact-send-btn {
  border-color: var(--border-light);
  color: var(--text);
}
.contact-send-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.contact-close-btn:hover {
  color: var(--text);
}
.contact-send-btn svg,
.contact-close-btn svg {
  width: 13px;
  height: 13px;
}
.contact-send-btn.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Fields ─────────────────────────────────────────────── */
.contact-form-wrap {
  display: block;
}
.contact-field {
  display: flex;
  align-items: baseline;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.contact-field--msg {
  align-items: flex-start;
  padding: 16px 18px 20px;
  border-bottom: none;
}
.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 54px;
  flex-shrink: 0;
  padding-top: 2px;
  user-select: none;
}
.contact-to {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(232, 227, 216, 0.42);
}
.contact-input {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  caret-color: var(--text);
}
.contact-input::placeholder {
  color: rgba(107, 100, 87, 0.55);
}
.contact-textarea {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  min-height: 140px;
  resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  caret-color: var(--text);
}
.contact-textarea::placeholder {
  color: rgba(107, 100, 87, 0.55);
}

/* shake on validation error */
@keyframes contactShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.contact-modal.shake {
  animation: contactShake 0.32s ease;
}

/* ── Success state ──────────────────────────────────────── */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}
.contact-success.is-visible {
  display: flex;
}
.contact-success-check {
  font-size: 22px;
  color: rgba(232, 227, 216, 0.45);
  margin-bottom: 18px;
  line-height: 1;
}
.contact-success-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 10px;
}
.contact-success-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}