@font-face {
  font-family: 'BBH Bartle';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url('https://cdn.jsdelivr.net/fontsource/fonts/bbh-bartle@latest/latin-400-normal.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/fontsource/fonts/bbh-bartle@latest/latin-400-normal.woff') format('woff');
}

@font-face {
  font-family: 'BBH Bogle';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url('https://cdn.jsdelivr.net/fontsource/fonts/bbh-bogle@latest/latin-400-normal.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/fontsource/fonts/bbh-bogle@latest/latin-400-normal.woff') format('woff');
}

:root {
  --bg-obsidian: #000000;
  --surface-elevated: #0a0d12;
  --surface-glass: rgba(15, 19, 26, 0.82);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subtle: rgba(255, 255, 255, 0.42);
  --hairline-idle: rgba(255, 255, 255, 0.14);
  --hairline-active: rgba(255, 255, 255, 1);
  --accent-indigo: #eab05d;
  --accent-emerald: #34d399;

  /* Flow & Stitch signature easing curves */
  --ease-morph: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.25, 0.8, 0.25, 1);

  --hud-pad-x: 40px;
  --hud-pad-y: 40px;

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', 'Inter', sans-serif;
  --font-bartle: 'BBH Bartle', 'BBH Sans Bartle', sans-serif;
  --font-bogle: 'BBH Bogle', 'BBH Sans Bogle', sans-serif;
}

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

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  selection-background-color: #ffffff;
  selection-color: #000000;
}

::selection {
  background: rgba(255, 255, 255, 0.92);
  color: #000000;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100dvh;
}

body.modal-open {
  overflow: hidden;
}

#mainContent,
.hud-layer {
  transition:
    transform 860ms var(--ease-morph),
    filter 860ms var(--ease-morph),
    opacity 860ms var(--ease-morph);
  transform-origin: center 50dvh;
  will-change: transform, filter, opacity;
}

body.case-study-active #mainContent,
body.case-study-active .hud-layer {
  transform: scale(0.92);
  filter: blur(24px) brightness(0.42);
  opacity: 0.25;
  pointer-events: none;
}

button,
a {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   AMBIENT STAGE (Flow-inspired atmospheric depth)
   ========================================================================== */
.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.24;
  transition:
    background 1400ms var(--ease-morph),
    transform 1400ms var(--ease-morph),
    opacity 900ms ease;
  will-change: transform, background;
}

.ambient-orb--primary {
  width: 68vw;
  height: 68vh;
  top: 8%;
  left: 16%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36) 0%, rgba(16, 185, 129, 0.14) 55%, transparent 75%);
}

.ambient-orb--secondary {
  width: 55vw;
  height: 55vh;
  bottom: 6%;
  right: 12%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(99, 102, 241, 0.12) 60%, transparent 78%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 80%);
}

/* ==========================================================================
   4-CORNER FIXED HUD LAYER (Matches Figma 74:1479, 74:1519, 77:1607)
   ========================================================================== */
.hud-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  pointer-events: auto;
}

.hud-corner--tl {
  top: var(--hud-pad-y);
  left: var(--hud-pad-x);
  align-items: flex-start;
  transition: opacity 420ms var(--ease-morph), transform 420ms var(--ease-morph);
}

.hud-corner--tr {
  top: var(--hud-pad-y);
  right: var(--hud-pad-x);
  align-items: flex-end;
  text-align: right;
  transition: opacity 420ms var(--ease-morph), transform 420ms var(--ease-morph);
}

.hud-corner--bl {
  bottom: var(--hud-pad-y);
  left: var(--hud-pad-x);
  align-items: flex-start;
  transition: opacity 420ms var(--ease-morph), transform 420ms var(--ease-morph);
}

.hud-corner--br {
  bottom: var(--hud-pad-y);
  right: var(--hud-pad-x);
  align-items: flex-end;
  text-align: right;
  transition: opacity 420ms var(--ease-morph), transform 420ms var(--ease-morph);
}

.hud-label {
  color: var(--text-muted);
  font-weight: 400;
  transition:
    color 250ms ease,
    opacity 420ms var(--ease-morph),
    transform 420ms var(--ease-morph);
}

.hud-value {
  color: var(--text-primary);
  font-weight: 800;
  transition:
    color 250ms ease,
    opacity 420ms var(--ease-morph),
    transform 420ms var(--ease-morph);
}

/* Fade away HUD labels, values, and indicators on vertical scroll or when jumping to Selected Works */
.hud-layer.is-scrolled .hud-label,
.hud-layer.is-scrolled .hud-value,
.hud-layer.is-scrolled .hud-corner,
.hud-layer.is-scrolled .hud-indicators {
  opacity: 0;
  pointer-events: none;
}

.hud-layer.is-scrolled .hud-corner--tl,
.hud-layer.is-scrolled .hud-corner--tr {
  transform: translateY(-8px);
}

.hud-layer.is-scrolled .hud-corner--bl,
.hud-layer.is-scrolled .hud-corner--br {
  transform: translateY(8px);
}

.hud-layer.is-scrolled .hud-indicators {
  transform: translate(-50%, 8px);
}

.hud-nav-link {
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.hud-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 350ms var(--ease-morph);
}

.hud-nav-link:hover {
  color: #ffffff;
}

.hud-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hud-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px 0;
  letter-spacing: 2.4px;
  transition: opacity 250ms ease, color 250ms ease;
}

.hud-resume-arrow {
  width: 19.4px;
  height: 8.8px;
  margin-left: 6.5px;
  margin-right: 2.4px;
  flex-shrink: 0;
  display: block;
  transform: translateY(-0.3px);
  transition: transform 280ms var(--ease-morph);
}

.hud-resume-btn:hover {
  opacity: 0.85;
  color: #ffffff;
}

.hud-resume-btn:hover .hud-resume-arrow,
.editorial-bio__cta:hover .hud-resume-arrow {
  transform: translate(3px, -0.3px);
}

.hud-status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  animation: pulseDot 2.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

/* Bottom Center 3-Bar Progress Indicator (Figma 74:1494 / 74:1533 / 77:1621) */
.hud-indicators {
  position: absolute;
  bottom: calc(var(--hud-pad-y) - 13px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  padding: 0 12px;
  z-index: 50;
  cursor: pointer;
  transition:
    opacity 420ms var(--ease-morph),
    transform 420ms var(--ease-morph);
}

.hud-indicator {
  position: relative;
  width: 36px;
  height: 28px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.hud-indicator__track {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
  transition:
    transform 220ms var(--ease-snappy),
    background-color 220ms ease;
}

.hud-indicator.is-active .hud-indicator__track {
  background: rgba(255, 255, 255, 0.36);
}

.hud-indicator:hover .hud-indicator__track {
  background: rgba(255, 255, 255, 0.55);
  transform: scaleY(2);
}

.hud-indicator__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ==========================================================================
   HERO 100dvh STAGE & MORPHING CURVED MASK
   ========================================================================== */
.hero-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 40px;
  overflow: hidden;
}

.hero-centerpiece-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* The Morphing Curved Mask Container:
   Transitions smoothly between the 3 exact Figma frame shapes every 6 seconds */
.morph-mask {
  position: relative;
  overflow: hidden;
  background: #090b10;
  border: none;
  box-shadow: none;
  scale: 1;
  opacity: 1;
  filter: blur(0px);
  transition:
    width 980ms var(--ease-morph),
    height 980ms var(--ease-morph),
    border-radius 980ms var(--ease-morph),
    opacity 1600ms var(--ease-cinema) 260ms,
    scale 1750ms var(--ease-cinema) 260ms,
    filter 1600ms var(--ease-cinema) 260ms;
  will-change: width, height, border-radius, opacity, scale, filter;
  cursor: pointer;
}

body.is-intro-loading .morph-mask {
  opacity: 0;
  scale: 0.89;
  filter: blur(26px);
}

/* Slide 01 (74:1479): 1583x755 Stadium Pill (border-radius: 500px) */
.morph-mask.shape-watch {
  width: min(82.45vw, 1583px);
  height: min(69.91vh, 755px);
  border-radius: 500px 500px 500px 500px;
}

/* Slide 02: Half-dial ("Full or Tight"): tight left corners, full pill arc right */
.morph-mask.shape-clock {
  width: min(84.11vw, 1615px);
  height: min(63.98vh, 691px);
  border-radius: 32px 500px 500px 32px;
}

/* Slide 03: Screen ("Full or Tight"): tight, car-display corners */
.morph-mask.shape-auto {
  width: min(74.79vw, 1436px);
  height: min(63.98vh, 691px);
  border-radius: 72px;
}

.morph-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.morph-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.07);
  filter: blur(8px) brightness(0.85);
  transition:
    opacity 1050ms var(--ease-cinema),
    transform 6200ms cubic-bezier(0.15, 0.5, 0.3, 1),
    filter 1050ms var(--ease-cinema);
  will-change: opacity, transform, filter;
}

.morph-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
  filter: blur(0px) brightness(1);
  z-index: 2;
}

.morph-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Subtle multi-stop atmospheric scrim so KIM TRAN & metadata read with crisp contrast */
.morph-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 68% 58% at 50% 50%, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.14) 65%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
}

/* ==========================================================================
   CENTERED HERO TYPOGRAPHY LOCKUP (Figma 74:1482 / 74:1521 / 77:1609)
   ========================================================================== */
.hero-lockup {
  position: absolute;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(60vw, 1140px);
  max-width: 60vw;
  pointer-events: none;
  user-select: none;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 3vh, 36px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1200ms var(--ease-cinema) 560ms,
    transform 1200ms var(--ease-cinema) 560ms;
}

body.is-intro-loading .hero-overline {
  opacity: 0;
  transform: translateY(12px);
}

.hero-title {
  --lockup-h: clamp(18px, 3.4vw, 62px);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--lockup-h) * 0.42);
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
  scale: 1;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.48));
  transition: scale 1850ms var(--ease-morph);
}

body.is-intro-loading .hero-title {
  scale: 1;
}

.hero-word {
  display: inline-flex;
  align-items: center;
}

.hero-glyph {
  display: block;
  height: var(--lockup-h);
  width: auto;
  flex-shrink: 0;
}

/* Staggered per-letter fade-in on load (timings set per letter in app.js) */
.hero-title .hero-word > * {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity var(--fade-dur, 700ms) var(--ease-cinema) var(--fade-delay, 0ms),
    filter var(--fade-dur, 700ms) var(--ease-cinema) var(--fade-delay, 0ms);
}

.hero-title .hero-word > *.is-faded-in {
  opacity: 1;
  filter: blur(0);
}

/* Interactive "I" in KIM TRAN with Grabbable Serif Dots (Figma 49:1293 & 162:10266) */
.interactive-i {
  --i-serif-base: calc(var(--lockup-h) * (52.5 / 80));
  --i-stem-width: calc(var(--lockup-h) * (35 / 80));
  --i-base-width: calc(var(--lockup-h) * (140 / 80));
  --ext-left: 0px;
  --ext-right: 0px;

  position: relative;
  display: inline-block;
  width: calc(var(--i-base-width) + var(--ext-left) + var(--ext-right));
  height: var(--lockup-h);
  margin-left: calc(var(--lockup-h) * 0.065);
  margin-right: calc(var(--lockup-h) * 0.075);
  pointer-events: auto;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.interactive-i.is-shrinking {
  transition: width 1400ms var(--ease-morph);
}

/* Expanded hover sensor around the "I" so corner dots stay visible while approaching them */
.interactive-i::before {
  content: '';
  position: absolute;
  inset: -16px -18px;
}

.interactive-i__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 33.125%;
  background-color: #ffffff;
  border-radius: 0;
  pointer-events: none;
}

.interactive-i__bar--top {
  top: 0;
}

.interactive-i__bar--bottom {
  bottom: 0;
}

.interactive-i__stem {
  position: absolute;
  top: 32%;
  bottom: 32%;
  left: calc(var(--i-serif-base) + var(--ext-left));
  width: var(--i-stem-width);
  background-color: #ffffff;
  pointer-events: none;
}

.interactive-i.is-shrinking .interactive-i__stem {
  transition: left 1400ms var(--ease-morph);
}

/* 8 Grabbable Corner Dots on the Left & Right "I" Serifs (Figma 162:10250..10253) */
.i-corner-point {
  --tx: 50%;

  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  z-index: 5;
  opacity: 0;
  transform: translate(var(--tx), -50%);
  transition: opacity 280ms ease;
}

.i-corner-point--left {
  --tx: -50%;
  left: 0;
}

.i-corner-point--right {
  --tx: 50%;
  right: 0;
}

.i-corner-point--row1 {
  top: 0%;
}

.i-corner-point--row2 {
  top: 33.125%;
}

.i-corner-point--row3 {
  top: 66.875%;
}

.i-corner-point--row4 {
  top: 100%;
}

/* Visual 8px metallic gray sphere matching Figma 162:10250 (no scale or color change on drag) */
.i-corner-point::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(7px, 0.55vw, 9px);
  height: clamp(7px, 0.55vw, 9px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #262930 0%, #636978 62%, #d4d8e2 100%);
  border: 1.2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* Interactive Expandable "R" & "N" in TRAN (Figma 165:10721, 165:10729 & 165:10720) */
.interactive-glyph {
  --glyph-base-width: calc(var(--lockup-h) * (140 / 80));
  --glyph-ext: 0px;

  position: relative;
  display: inline-block;
  width: calc(var(--glyph-base-width) + var(--glyph-ext));
  height: var(--lockup-h);
  pointer-events: auto;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.interactive-r {
  margin-left: calc(var(--lockup-h) * 0.075);
  margin-right: calc(var(--lockup-h) * 0.075);
}

.interactive-n {
  margin-left: calc(var(--lockup-h) * 0.075);
}

.interactive-glyph::before {
  content: '';
  position: absolute;
  inset: -16px -18px;
}

.interactive-glyph__svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Elegantly fade in all serif/edge dots ONLY when the letter is at its original size or actively being dragged */
.interactive-i:not(.is-cooling-down):hover .i-corner-point,
.interactive-i.is-grabbed .i-corner-point,
.interactive-glyph:not(.is-cooling-down):hover .i-corner-point,
.interactive-glyph.is-grabbed .i-corner-point {
  opacity: 1;
}

/* Once released (during 500ms hold + shrink back), fade off dots and block hover/grab until original size is restored */
.interactive-i.is-cooling-down .i-corner-point,
.interactive-glyph.is-cooling-down .i-corner-point {
  opacity: 0 !important;
  pointer-events: none !important;
}

.interactive-i.is-grabbed .i-corner-point,
.interactive-glyph.is-grabbed .i-corner-point {
  cursor: grabbing;
}

.hero-project-slot {
  margin-top: clamp(16px, 3vh, 36px);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1200ms var(--ease-cinema) 720ms,
    transform 1200ms var(--ease-cinema) 720ms;
}

body.is-intro-loading .hero-project-slot {
  opacity: 0;
  transform: translateY(-12px);
}

body.is-intro-loading .hud-corner,
body.is-intro-loading .hud-indicators {
  opacity: 0;
}

body.is-intro-loading .hud-corner--tl,
body.is-intro-loading .hud-corner--tr {
  transform: translateY(-8px);
}

body.is-intro-loading .hud-corner--bl,
body.is-intro-loading .hud-corner--br {
  transform: translateY(8px);
}

body.is-intro-loading .hud-indicators {
  transform: translate(-50%, 8px);
}

.hero-project-trigger {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
}

.hero-project-name {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.25vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  transition:
    opacity 340ms var(--ease-morph),
    transform 340ms var(--ease-morph),
    color 250ms ease,
    filter 340ms ease;
}

.hero-project-name.is-swapping-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  filter: blur(4px);
}

.hero-project-name.is-swapping-in {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  filter: blur(4px);
}

/* ==========================================================================
   SECTION 02: SELECTED WORKS INDEX & PERSPECTIVE (Matches Figma 162:10540)
   ========================================================================== */
.index-section {
  position: relative;
  z-index: 20;
  padding: 120px var(--hud-pad-x) 120px;
  background: #050609;
}

.index-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.index-header {
  margin-bottom: 0;
}

.index-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 15.84px;
  letter-spacing: 2.4px;
  color: #cb8a2c;
  text-transform: uppercase;
}

.index-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.index-title {
  font-family: var(--font-bartle);
  font-size: clamp(24px, 2.3vw, 44px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
}

/* Project List & Explicit Hairline Hover Opacity Spec (Figma 162:10574) */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-hairline {
  width: 100%;
  height: 1px;
  background-color: var(--hairline-idle);
  transition: background-color 320ms var(--ease-morph);
}

.project-hairline.is-highlighted {
  background-color: var(--hairline-active);
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 12px;
  cursor: pointer;
  transition: background-color 350ms var(--ease-morph);
}

.project-row:hover,
.project-row:focus-visible {
  background-color: rgba(255, 255, 255, 0.02);
  outline: none;
}

.project-row__left {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex: 1;
  min-width: 0;
}

.project-row__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 17.16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.44);
  transition: color 280ms ease;
  flex-shrink: 0;
}

.project-row:hover .project-row__num {
  color: #ffffff;
}

.project-row__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.project-row__title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-row__title {
  font-family: var(--font-bogle);
  font-size: clamp(28px, 2.2vw, 42px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 34px;
  color: #ffffff;
  transition: color 280ms ease, transform 350ms var(--ease-morph);
}

.project-row:hover .project-row__title {
  color: #ffffff;
}

.project-row__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 960px;
  transition: color 280ms ease;
}

.project-row:hover .project-row__desc {
  color: rgba(255, 255, 255, 0.85);
}

.project-row__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.project-row__year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 14.52px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.48);
}

.project-row__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  transition:
    transform 350ms var(--ease-morph),
    background-color 350ms var(--ease-morph),
    color 350ms ease;
}

.project-row:hover .project-row__arrow {
  transform: translateX(4px);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Floating Cursor Preview on Desktop Index Hover (Figma 2:105) */
.floating-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 210px;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 260ms var(--ease-morph);
  will-change: transform, opacity;
}

.floating-preview.is-visible {
  opacity: 1;
}

body.case-study-active .floating-preview {
  opacity: 0 !important;
}

.floating-preview__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 120px;
  border: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  background: #0b0e14;
  transform: scale(0.88);
  transition:
    border-radius 550ms var(--ease-morph),
    transform 340ms var(--ease-morph);
}

.floating-preview.is-visible .floating-preview__inner {
  transform: scale(1);
}

.floating-preview__inner.shape-clock {
  border-radius: 16px 120px 120px 16px; /* half-dial (Full or Tight) */
}

.floating-preview__inner.shape-auto {
  border-radius: 28px; /* screen (Full or Tight) */
}

.floating-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   03 — PERSPECTIVE & BIO SNAPSHOT GRID (Matches Figma 162:10627)
   ========================================================================== */
.editorial-bio-grid {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: minmax(0, 928fr) minmax(320px, 440fr);
  gap: 72px;
  align-items: start;
}

.editorial-bio__statement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.editorial-bio__headline {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0;
  color: #ffffff;
}

.editorial-bio__copy {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.68);
  max-width: 928px;
}

.editorial-bio__cta {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 14.52px;
  letter-spacing: 2.2px;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background-color 300ms var(--ease-morph),
    color 300ms ease,
    border-color 300ms ease,
    transform 300ms var(--ease-morph);
}

.editorial-bio__cta-arrow {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 300ms var(--ease-morph);
}

.editorial-bio__cta:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.editorial-bio__cta:hover .editorial-bio__cta-arrow {
  transform: translateX(3px);
}

.editorial-bio__metrics {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.metric-card {
  padding: 24px 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 93px;
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    transform 300ms var(--ease-morph);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.metric-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 13.2px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
}

.metric-card__value {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 24.2px;
  letter-spacing: 0;
  color: #ffffff;
}

.index-footer {
  margin-top: 0;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 14.52px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.45);
}

.index-footer__right {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   CASE STUDY DEEP-DIVE MODAL (Matches Figma 162:10291)
   Rack-focus depth transition: blurs & fades into place rather than sliding up
   ========================================================================== */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.case-modal.is-open {
  pointer-events: auto;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 760ms var(--ease-morph);
}

.case-modal.is-open .case-modal__backdrop {
  opacity: 1;
}

.case-modal__sheet {
  position: relative;
  z-index: 2;
  width: min(94vw, 1360px);
  height: min(90dvh, 1020px);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 36px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  filter: blur(28px);
  transform: scale(0.96);
  transition:
    opacity 620ms var(--ease-morph),
    filter 680ms var(--ease-morph),
    transform 680ms var(--ease-morph);
  will-change: opacity, filter, transform;
}

.case-modal.is-open .case-modal__sheet {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
  transition:
    opacity 820ms var(--ease-morph) 110ms,
    filter 880ms var(--ease-morph) 110ms,
    transform 880ms var(--ease-morph) 110ms;
}

.case-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.case-modal__crumb {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-modal__divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.case-modal__code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.72);
}

.case-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 250ms ease, color 250ms ease;
}

.case-modal__close:hover {
  background-color: #ffffff;
  color: #000000;
}

.case-modal__close-icon {
  font-size: 20px;
  line-height: 1;
}

.case-modal__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 56px 56px 80px;
}

.case-hero {
  position: relative;
  padding-bottom: 44px;
}

.case-hero__title {
  font-family: var(--font-bartle);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.154;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
}

.case-hero__subtitle {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.417;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

.case-visual-primary {
  margin: 12px 0 56px;
}

.case-visual-primary__frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 51vh, 520px);
  overflow: hidden;
  border-radius: 260px;
  border: none;
  transition: border-radius 650ms var(--ease-morph);
}

.case-visual-primary__frame.shape-clock {
  border-radius: 24px 260px 260px 24px; /* half-dial (Full or Tight) */
}

.case-visual-primary__frame.shape-auto {
  border-radius: 56px; /* screen (Full or Tight) */
}

.case-visual-primary__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered Watch Video & PNG Bezel Frame Stage (Figma 165:10704 fpo-video)
   - Container is 1246x520, watch frame is 425x425 centered (81.73% of height)
   - Inner circular screen opening in the 1024x1024 bezel PNG has diameter 766px (74.80%).
   - Sizing the circular video to 75.3% behind the bezel PNG tucks its circular rim 2px under the opaque inner bezel with zero gap and zero bleed. */
.case-watch-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 73.56%; /* 10% smaller than the original 81.73% (Kim, 2026-11-21) */
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.case-watch-stage.is-hidden {
  display: none;
}

.case-watch-stage__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75.3%;
  height: 75.3%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  z-index: 1;
  background: #000000;
}

.case-watch-stage__bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.case-body-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.case-meta-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-meta-block.is-hidden {
  display: none;
}

.case-meta-block__label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.45);
}

.case-meta-block__val {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #ffffff;
}

.case-meta-block__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-block__note {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.inline-token {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #eab05d;
  background: rgba(234, 176, 93, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
}

.case-section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #cb8a2c;
  text-transform: uppercase;
}

.case-narrative__heading {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.286;
  color: #ffffff;
}

.case-narrative__p {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.case-pillars {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-pillars.is-hidden {
  display: none;
}

.case-pillar {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-pillar__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.case-pillar__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.case-pillar__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.case-secondary-gallery {
  margin-top: 16px;
}

.case-figure__img-wrap {
  width: 100%;
  height: clamp(260px, 46vh, 480px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-figure__img-wrap.is-full-bleed {
  height: clamp(280px, 64vh, 667px);
  border-radius: 0;
  border: none;
}

.case-figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-figure__caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.48);
}

.case-next-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.case-next-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.5);
}

.case-next-footer__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: #ffffff;
  transition: transform 300ms var(--ease-morph), color 250ms ease;
}

.case-next-footer__title {
  font-family: var(--font-bartle);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 400;
  text-align: left;
}

.case-next-footer__arrow {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 700;
}

.case-next-footer__btn:hover {
  transform: translateX(8px);
  color: #eab05d;
}

/* ==========================================================================
   RESUME & EXPERIENCE CASE-STUDY MODAL (Matches Case Study Layout & Typefaces)
   ========================================================================== */
.resume-modal {
  z-index: 85;
}

.resume-body-grid {
  margin-top: 8px;
}

.resume-experience-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-case-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-case-item {
  padding: 26px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 250ms ease, background-color 250ms ease;
}

.resume-case-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.18);
}

.resume-case-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.resume-case-item__company {
  font-family: var(--font-bogle);
  font-size: 20px;
  font-weight: 400; /* BBH Bogle ships a single 400 weight; avoids faux-bold */
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
}

.resume-case-item__role {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #eab05d;
}

.resume-case-item__bullets {
  margin-top: 16px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.72);
}

.resume-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.82);
}

.resume-meta-contact {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-contact-box__btn {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  transition: transform 250ms var(--ease-morph), background-color 250ms ease;
}

.resume-contact-box__btn:hover {
  transform: scale(1.04);
  background: #eab05d;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile Optimization)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --hud-pad-x: 28px;
    --hud-pad-y: 28px;
  }

  .morph-mask.shape-watch {
    width: 88vw;
    height: 62dvh;
    border-radius: 340px;
  }

  .morph-mask.shape-clock {
    width: 88vw;
    height: 58dvh;
    border-radius: 24px 340px 340px 24px;
  }

  .morph-mask.shape-auto {
    width: 84vw;
    height: 58dvh;
    border-radius: 56px;
  }

  .editorial-bio-grid,
  .case-body-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .floating-preview {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --hud-pad-x: 20px;
    --hud-pad-y: 20px;
  }

  .hud-corner {
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 1.8px;
  }

  .hero-stage {
    padding: 72px 16px;
  }

  /* Preserve the 3 distinct curved silhouettes on mobile screens */
  .morph-mask.shape-watch {
    width: 91vw;
    height: 56dvh;
    border-radius: 220px;
  }

  .morph-mask.shape-clock {
    width: 91vw;
    height: 53dvh;
    border-radius: 18px 220px 220px 18px;
  }

  .morph-mask.shape-auto {
    width: 89vw;
    height: 53dvh;
    border-radius: 40px;
  }

  .hero-title {
    --lockup-h: clamp(18px, 6.2vw, 38px);
  }

  .hero-overline {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }

  .hero-project-slot {
    margin-top: 20px;
  }

  .hero-project-name {
    font-size: 11px;
    letter-spacing: 1.8px;
  }

  .hud-indicators {
    bottom: 64px;
  }

  .index-section {
    padding: 84px 20px 110px;
  }

  .project-row {
    gap: 14px;
    padding: 28px 4px;
  }

  .project-row__left {
    gap: 18px;
  }

  .project-row__year {
    display: none;
  }

  .project-row__arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .case-modal__topbar {
    padding: 18px 20px;
  }

  .case-modal__scroll {
    padding: 32px 20px 64px;
  }

  .case-pillars {
    grid-template-columns: 1fr;
  }

  .case-visual-primary__frame {
    border-radius: 140px;
  }

  .case-visual-primary__frame.shape-clock {
    border-radius: 16px 140px 140px 16px;
  }

  .case-visual-primary__frame.shape-auto {
    border-radius: 32px;
  }

  .resume-drawer__header,
  .resume-drawer__content {
    padding: 24px 20px;
  }

  .resume-contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Resume press & video links under each role */
.resume-media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.resume-media-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-idle);
  border-radius: 500px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  transition: border-color 240ms ease, color 240ms ease, background-color 240ms ease;
}

.resume-media-link:hover,
.resume-media-link:focus-visible {
  border-color: var(--accent-indigo);
  color: #ffffff;
  background-color: rgba(234, 176, 93, 0.08);
}

.resume-media-link__icon {
  color: var(--accent-indigo);
  font-size: 10px;
}

/* ==========================================================================
   REGULAR SUBPAGES (case studies + resume)
   HUD-style corner navigation (same margins + type as the index HUD),
   no bars or containers.
   ========================================================================== */
body.subpage {
  background-color: var(--bg-obsidian);
}

.site-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 60;
  pointer-events: none;
}

/* Soft scrim behind the corners once scrolled, so text stays readable
   without a visible bar. */
.site-hud::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--hud-pad-y) * 2 + 48px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 420ms var(--ease-morph);
  pointer-events: none;
}

.site-hud.is-scrolled::before {
  opacity: 1;
}

/* Top-left: @TRANKIM / DESIGNING AT GDM links home */
.site-hud__home:hover .hud-label {
  color: #ffffff;
}

.site-hud__home:hover .hud-nav-link::after,
.site-hud__home:focus-visible .hud-nav-link::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Top-right: WORK / RESUME → (clickable, with the index HUD hover cues) */
.site-hud .hud-nav-link:hover {
  color: #ffffff;
}

.site-hud .hud-resume-btn {
  position: relative;
}

/* Current page: white text + a small gold dot to its left */
.site-hud .is-current {
  color: #ffffff;
}

.site-hud .is-current::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(234, 176, 93, 0.6);
  transform: translateY(-50%);
}

.subpage-main {
  position: relative;
  z-index: 1;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: calc(var(--hud-pad-y) + 104px) 56px 24px;
}

.subpage-main .case-hero .case-modal__crumb {
  margin-bottom: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 32px 56px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   PAGE TRANSITIONS (rack-focus ease, no container)
   Enter: each top-level section of a subpage blurs/fades into place in turn.
   Leave: page.js adds body.is-leaving, the page blurs out, then navigates.
   ========================================================================== */
@keyframes pageRackFocusIn {
  from {
    opacity: 0;
    filter: blur(22px);
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes hudCornerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

body.subpage .subpage-main > * {
  animation: pageRackFocusIn 900ms var(--ease-morph) both;
}

body.subpage .subpage-main > *:nth-child(1) {
  animation-delay: 60ms;
}

body.subpage .subpage-main > *:nth-child(2) {
  animation-delay: 160ms;
}

body.subpage .subpage-main > *:nth-child(3) {
  animation-delay: 250ms;
}

body.subpage .subpage-main > *:nth-child(4) {
  animation-delay: 330ms;
}

body.subpage .subpage-main > *:nth-child(n + 5) {
  animation-delay: 400ms;
}

body.subpage .site-hud .hud-corner {
  animation: hudCornerIn 700ms var(--ease-morph) 120ms both;
}

body.subpage .site-footer {
  animation: pageRackFocusIn 900ms var(--ease-morph) 450ms both;
}

body.is-leaving #mainContent,
body.is-leaving .hud-layer,
body.is-leaving .subpage-main,
body.is-leaving .site-hud,
body.is-leaving .site-footer,
body.is-leaving .floating-preview {
  opacity: 0;
  filter: blur(18px);
  transform: scale(0.975);
  pointer-events: none;
  transition:
    opacity 360ms var(--ease-morph),
    filter 380ms var(--ease-morph),
    transform 420ms var(--ease-morph);
}

@media (prefers-reduced-motion: reduce) {
  body.subpage .subpage-main > *,
  body.subpage .site-hud .hud-corner,
  body.subpage .site-footer {
    animation: none;
  }
}

@media (max-width: 768px) {
  .subpage-main {
    padding: calc(var(--hud-pad-y) + 84px) 20px 16px;
  }

  .site-footer {
    padding: 24px 20px 36px;
  }
}

/* Deep link from a subpage's WORK link (index.html#selectedWorks):
   jump instantly and render the hero in its final state, no intro. */
html.is-deep-link {
  scroll-behavior: auto;
}

html.is-deep-link .hero-title .hero-word > *,
html.is-deep-link .hero-overline,
html.is-deep-link .hero-title {
  transition: none !important;
  animation: none !important;
}

html.is-deep-link .hero-title .hero-word > * {
  opacity: 1;
  filter: none;
}

/* ==========================================================================
   STUDIO GROTESK (home page: Selected works + Perspective + footer)
   Bricolage Grotesque titles/headline · Geist body · Geist Mono captions.
   BBH Bartle is reserved for the KIM TRAN name only. Colors use theme vars.
   ========================================================================== */
.index-section {
  --font-studio: 'Bricolage Grotesque', 'Geist', 'Inter', sans-serif;
  --font-studio-body: 'Geist', 'Inter', sans-serif;
  --font-studio-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

/* "Selected works" demoted to a small caption with a count */
.index-section .index-header__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.index-section .index-title {
  font-family: var(--font-studio-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.index-section .index-title__count {
  font-family: var(--font-studio-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Project rows: titles lead */
.index-section .project-row__num,
.index-section .project-row__year {
  font-family: var(--font-studio-mono);
  font-weight: 400;
}

.index-section .project-row__num {
  font-family: var(--font-studio);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 2.2em;
}

.index-section .project-row__title {
  font-family: var(--font-studio);
  font-optical-sizing: auto;
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.index-section .project-row__desc {
  font-family: var(--font-studio-body);
  font-size: 16px;
  line-height: 1.4;
}

/* Perspective */
.index-section .index-eyebrow,
.index-section .metric-card__label,
.index-section .editorial-bio__cta {
  font-family: var(--font-studio-mono);
  font-weight: 500;
}

.index-section .editorial-bio__headline {
  font-family: var(--font-studio);
  font-optical-sizing: auto;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.index-section .editorial-bio__muted {
  color: var(--text-muted);
}

.index-section .editorial-bio__copy {
  font-family: var(--font-studio-body);
  font-size: 16px;
  line-height: 1.7;
}

.index-section .metric-card__value {
  font-family: var(--font-studio);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Footer: point of view + Bartle signature, then mono meta */
.index-section .index-footer--studio {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}

.index-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.index-footer__pov {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-studio);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--text-primary);
}

.index-footer__sig {
  font-family: var(--font-bartle);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.index-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-studio-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .index-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .index-footer__meta {
    flex-direction: column;
    gap: 8px;
  }

  .index-section .metric-card__value {
    font-size: 22px;
  }
}

/* Keep the demoted caption muted in both themes (beats theme-light .index-title) */
#selectedWorks .index-title,
#selectedWorks .index-title__count {
  color: var(--text-muted);
}

/* Tuck the small caption close to the list it labels (container gap is 88px) */
#selectedWorks .project-list {
  margin-top: -60px;
}

/* Grid / hairline background texture removed (dark mode too; light already hid it) */
.ambient-grid {
  display: none;
}

/* Footer KIM TRAN: small draggable clone of the hero glyph lockup (app.js) */
.footer-wordmark {
  --lockup-h: 22px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--lockup-h) * 0.42);
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text-primary);
}

.footer-wordmark .interactive-i__bar,
.footer-wordmark .interactive-i__stem {
  background-color: currentColor;
}

.footer-wordmark .i-corner-point {
  width: 18px;
  height: 18px;
}

.footer-wordmark .i-corner-point::after {
  width: 6px;
  height: 6px;
}

/* Day / night toggle in the HUD (page.js) */
.hud-theme-toggle {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}


/* ==========================================================================
   ONE ARROW: every small arrow uses the HUD "RESUME ⟶" arrow shape
   (long shaft, attached open head — same polygon as .hud-resume-arrow).
   The text "→" glyphs stay in the markup for screen readers that ignore
   aria-hidden, but are drawn with this mask instead.
   ========================================================================== */
.project-row__arrow,
.editorial-bio__cta-arrow,
.case-next-footer__arrow {
  font-size: 0 !important;
  line-height: 0;
  color: inherit;
}

.project-row__arrow::before,
.editorial-bio__cta-arrow::before,
.case-next-footer__arrow::before {
  content: '';
  display: inline-block;
  width: 19.4px;
  height: 8.8px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 47'%3E%3Cpolygon points='0,21.5 90,21.5 79.5,7 90,7 104,25.5 90,44.5 79.5,44.5 90,29.5 0,29.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 47'%3E%3Cpolygon points='0,21.5 90,21.5 79.5,7 90,7 104,25.5 90,44.5 79.5,44.5 90,29.5 0,29.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.project-row__arrow::before {
  width: 22px;
  height: 10px;
}

.case-next-footer__arrow::before {
  width: clamp(30px, 3vw, 42px);
  height: clamp(14px, 1.35vw, 19px);
}

/* ==========================================================================
   RESUME: PROJECT-FIRST ENTRIES (2026-11-20)
   Project name leads; role sits under it; date + org move to the right.
   Core capabilities are a plain list (no pills).
   ========================================================================== */
.resume-capabilities {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.resume-case-item__project {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.resume-case-item__role {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.resume-case-item__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 5px;
  text-align: right;
}

.resume-case-item__org {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .resume-case-item__top {
    flex-direction: column;
    gap: 10px;
  }

  .resume-case-item__meta {
    order: -1;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-top: 0;
    text-align: left;
  }

  .resume-case-item__meta .case-pillar__tag::after {
    content: '·';
    margin-left: 10px;
  }
}

/* Resume experience: open list with hairlines instead of boxed cards
   (beats the light-mode outline rule from theme-light.css). */
body.subpage .resume-case-list {
  gap: 0;
}

body.subpage .resume-case-list .resume-case-item {
  padding: 32px 0;
  border: 0;
  border-top: 1px solid var(--hairline-idle);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.subpage .resume-case-list .resume-case-item:last-child {
  border-bottom: 0;
}

body.subpage .resume-case-list .resume-case-item:hover {
  background: transparent;
  border-color: var(--hairline-idle);
}

/* ===== AMBIENT COLOR FIELD (watch hero) =====
   ambient.js paints a tiny canvas; upscaling + blur makes it a soft wash.
   Video + bezel (.case-watch-stage z-index 2) stay sharp on top. */
.case-ambient {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  z-index: 1;
  filter: blur(28px) saturate(1.1);
  opacity: 0;
  transition: opacity 1200ms ease;
  pointer-events: none;
}
.case-visual-primary__frame.has-ambient .case-ambient { opacity: 1; }
.case-visual-primary__frame.has-ambient { cursor: crosshair; touch-action: pan-y; background: #060a1e; }
.case-visual-primary__frame.has-ambient .case-visual-primary__img { opacity: 0; }

/* ===== RESUME: NARROWER MEASURE + DENSER INTER (2026-11-20) =====
   Narrower page so experience lines wrap earlier (~70ch); Inter at a
   variable 450 weight with slight tracking so body copy reads less airy.
   Hairline above EXPERIENCE removed (the list's own top rule carries it). */
body.subpage .subpage-main.resume-page {
  width: min(100%, 1160px);
}

body.subpage .resume-page .case-narrative__p,
body.subpage .resume-page .resume-case-item__bullets {
  font-weight: 450;
  letter-spacing: -0.006em;
}

body.subpage .resume-page .resume-case-item__bullets strong {
  font-weight: 620;
}

body.subpage .resume-page .resume-capabilities li,
body.subpage .resume-page .case-meta-block__val {
  font-weight: 450;
}

body.subpage .resume-page .resume-experience-section {
  border-top: 0;
  padding-top: 8px;
}

body.subpage .resume-page .case-narrative__heading {
  font-weight: 500;
  letter-spacing: -0.018em;
}

/* ===== SITE-WIDE DENSER INTER BODY (2026-11-20) =====
   Same Inter body style used on case studies + resume: variable 450 weight
   with slight negative tracking (index body uses Geist, unaffected). */
body.subpage .case-narrative__p,
body.subpage .case-meta-block__val,
body.subpage .case-meta-block__list,
body.subpage .case-meta-block__note,
body.subpage .resume-case-item__bullets,
body.subpage .resume-capabilities li {
  font-weight: 450;
  letter-spacing: -0.006em;
}

body.subpage .case-narrative__p strong,
body.subpage .resume-case-item__bullets strong {
  font-weight: 620;
}

body.subpage .case-narrative__heading {
  font-weight: 500;
  letter-spacing: -0.018em;
}

/* Resume sidebar: no rule under the contact block (beats light-theme rule) */
body.subpage .case-meta-col .resume-meta-contact {
  border-bottom: 0;
  padding-bottom: 0;
}


/* Page tint: ambient.js writes --ambient-tint (r g b) from the hero field;
   the page background leans a few percent toward it (no top glow). */
html.has-ambient-tint body.subpage {
  background-color: color-mix(in srgb, var(--bg-obsidian) 93%, rgb(var(--ambient-tint, 36 70 200)) 7%);
}
html[data-theme="light"].has-ambient-tint body.subpage {
  background-color: color-mix(in srgb, var(--bg-obsidian) 94%, rgb(var(--ambient-tint, 36 70 200)) 6%);
}
/* Keep the scrolled HUD fade in step with the tinted page. */
html.has-ambient-tint { --page-tinted: color-mix(in srgb, var(--bg-obsidian) 93%, rgb(var(--ambient-tint, 36 70 200)) 7%); }
html[data-theme="light"].has-ambient-tint { --page-tinted: color-mix(in srgb, var(--bg-obsidian) 94%, rgb(var(--ambient-tint, 36 70 200)) 6%); }
html.has-ambient-tint .site-hud::before,
html[data-theme="light"].has-ambient-tint .site-hud::before {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--page-tinted) 90%, transparent) 0%,
    color-mix(in srgb, var(--page-tinted) 60%, transparent) 55%,
    transparent 100%);
}

/* Footer KIM TRAN: smaller, quiet gray corner dots (no amber, rim or shadow). */
html .footer-wordmark .i-corner-point::after {
  display: block;
  width: 6px;
  height: 6px;
  border: 0;
  box-shadow: none;
  background: linear-gradient(135deg, #5c5f66 0%, #9a9ea6 100%);
}
html[data-theme="light"] .footer-wordmark .i-corner-point::after {
  background: linear-gradient(135deg, #8d8981 0%, #c2beb6 100%);
}

/* ===== PEEK GALLERY (project pages) — main item + blurred next peek; see gallery.js ===== */
.peek-gallery {
  position: relative;
  margin-top: 24px;
  /* full-bleed: main item centres on the viewport, the peek bleeds off the right edge */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  outline: none;
}
body:has(.peek-gallery) { overflow-x: clip; }
.peek-gallery__stage {
  position: relative;
  height: clamp(300px, 34vw, 640px); /* fallback; gallery.js sizes it from the column width */
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.peek-gallery.is-dragging .peek-gallery__stage { cursor: grabbing; }
.peek-gallery__item {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-elevated, #111);
  cursor: pointer;
  will-change: transform, width, height, filter, opacity;
}
.peek-gallery__item.is-main { cursor: inherit; }
.peek-gallery__item img,
.peek-gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.peek-gallery__cap {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: normal;
  pointer-events: none;
}
.peek-gallery__cap b { color: var(--text-primary); font-weight: 500; }
.peek-gallery__nav {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 8px;
}
.peek-gallery__nav button {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  opacity: 0.55;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease;
}
.peek-gallery__nav button:hover,
.peek-gallery__nav button:focus-visible { opacity: 1; }
.peek-gallery__nav button:focus-visible { outline: 1px solid var(--text-primary); outline-offset: 2px; }
.peek-gallery__nav i {
  width: 22px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 47'%3E%3Cpolygon points='0,21.5 90,21.5 79.5,7 90,7 104,25.5 90,44.5 79.5,44.5 90,29.5 0,29.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 47'%3E%3Cpolygon points='0,21.5 90,21.5 79.5,7 90,7 104,25.5 90,44.5 79.5,44.5 90,29.5 0,29.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.peek-gallery__nav button[data-dir="-1"] i { transform: scaleX(-1); }
.peek-gallery__nav button:active i { transform: translateX(3px); }
.peek-gallery__nav button[data-dir="-1"]:active i { transform: scaleX(-1) translateX(3px); }

/* ===== RESUME HEADER KIM TRAN (wordmark.js) =====
   Same draggable glyph lockup as the footer, sized to the old Bartle title;
   reuses the footer's small gray corner dots. */
.case-hero__title.resume-wordmark {
  display: block;
  line-height: 0;
}
.resume-wordmark .resume-wordmark__lockup {
  --lockup-h: clamp(20px, 2.6vw, 36px);
  color: var(--text-primary);
}
.resume-wordmark .i-corner-point {
  width: 18px;
  height: 18px;
}


/* caption parts fade up one after another once the image has settled */
.peek-gallery__cap-part {
  display: inline;
  opacity: 0;
  animation: peekCapIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(80ms + var(--k, 0) * 110ms);
}
@keyframes peekCapIn {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .peek-gallery__cap-part { animation: none; opacity: 1; }
}

/* ===== CASE STUDIES: SAME NARROWER MEASURE AS RESUME (2026-11-21) =====
   Project pages share the resume's 1160px column; the Peek gallery stays full-bleed. */
body.subpage .subpage-main.case-page {
  width: min(100%, 1160px);
}

/* Home hero I / R / N dots: slightly smaller (was clamp 7–9px + 1.2px white
   rim) and no hairline rim (Kim 2026-11-21). Footer/resume stay 6px gray. */
.hero-title .i-corner-point::after {
  width: 7px;
  height: 7px;
  border: 0;
}

/* Subpage footer: hairline spans the same 1160px column as the page content
   (was 1360px box with padding, so the rule overhung). */
body.subpage .site-footer {
  width: min(calc(100% - 112px), 1048px);
  padding: 32px 0 48px;
}
@media (max-width: 768px) {
  body.subpage .site-footer {
    width: calc(100% - 40px);
    padding: 24px 0 36px;
  }
}

/* K / M / T / A dots positioned on true letter vertices by glyphs.js
   (inline left/top %), centered on the point. */
.i-corner-point.i-corner-point--vertex {
  right: auto;
  --tx: -50%;
}

/* Hero + resume header: K and M are static (no dots, no grab). */
.interactive-glyph.is-static {
  pointer-events: none;
}
.interactive-glyph.is-static .i-corner-point {
  display: none;
}

/* ==========================================================================
   MODULAR ELEVATION SHEET (Android Auto Projected — multi-screen scalability)
   True-scale horizontal skyline grounded on one shared datum baseline.
   Uses theme vars only so Darkroom (#000) and Daylight (#f3f1ec) stay in sync.
   ========================================================================== */
.case-elevation {
  border-top: 1px solid var(--hairline-idle);
  padding: 48px 0 52px;
}

.case-elevation__head {
  margin-bottom: 32px;
  max-width: 680px;
}

.case-elevation__datum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hairline-idle);
  margin-bottom: 28px;
}

/* Column widths match true source pixel widths (644, 620, 552, 866) so every
   display shares the exact same physical scale on one baseline. */
.case-elevation__grid {
  display: grid;
  grid-template-columns: 644fr 620fr 552fr 866fr;
  grid-template-rows: auto auto;
  column-gap: 22px;
  row-gap: 0;
}

.case-elevation__unit {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  margin: 0;
  min-width: 0;
}

.case-elevation__upper {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-self: end;
  padding-bottom: 22px;
  position: relative;
}

.case-elevation__upper::after {
  content: '';
  position: absolute;
  left: 0;
  right: -22px;
  bottom: 0;
  height: 1px;
  background: var(--hairline-idle);
}

.case-elevation__unit:last-child .case-elevation__upper::after {
  right: 0;
}

.case-elevation__dim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.case-elevation__dim-line {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: var(--hairline-idle);
  position: relative;
}

.case-elevation__dim-line::before,
.case-elevation__dim-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--text-subtle);
}

.case-elevation__dim-line::before { left: 0; }
.case-elevation__dim-line::after { right: 0; }

.case-elevation__frame {
  position: relative;
}

/* Amber rail-axis ticks outside each active display bezel */
.case-elevation__unit[data-rail="bottom"] .case-elevation__frame::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -9px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--amber-mark, var(--accent-indigo));
  box-shadow: 0 0 10px rgba(234, 176, 93, 0.42);
  opacity: 0.92;
}

.case-elevation__unit[data-rail="left"] .case-elevation__frame::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: -9px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--amber-mark, var(--accent-indigo));
  box-shadow: 0 0 10px rgba(234, 176, 93, 0.42);
  opacity: 0.92;
}

html[data-theme="light"] .case-elevation__unit[data-rail="bottom"] .case-elevation__frame::after,
html[data-theme="light"] .case-elevation__unit[data-rail="left"] .case-elevation__frame::before {
  box-shadow: none;
}

.case-elevation__device {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #08090c;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.11);
}

html[data-theme="light"] .case-elevation__device {
  box-shadow: 0 14px 36px rgba(20, 20, 20, 0.12), 0 0 0 1px rgba(20, 20, 20, 0.11);
}

.case-elevation__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.008);
}

.case-elevation__spec {
  align-self: start;
  padding-top: 16px;
}

.case-elevation__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text, var(--accent-indigo));
}

.case-elevation__name {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.case-elevation__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .case-elevation {
    padding: 36px 0 40px;
  }

  .case-elevation__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    row-gap: 32px;
  }

  .case-elevation__unit {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .case-elevation__upper {
    align-self: stretch;
  }

  .case-elevation__upper::after {
    right: 0;
  }
}

@media (max-width: 540px) {
  .case-elevation__grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .case-elevation__unit[data-rail="left"] .case-elevation__frame::before {
    left: -7px;
  }
}

/* Lenovo bedside scene: wide photo + animated clock close-up laid over the
   device, scaled/aligned to the clock in the photo. Feathered radial mask
   hides the GIF's dithered edges so it melts into the background. */
.case-figure__img-wrap.lenovo-scene {
  position: relative;
  height: auto;
  aspect-ratio: 1024 / 682;
}
.lenovo-scene .case-figure__img {
  display: block;
}
.lenovo-scene__anim {
  position: absolute;
  left: 38.5%;
  top: 47.4%;
  width: 24.2%;
  height: auto;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
}


/* Peek gallery: Lenovo bedside scene keeps its animated clock overlay inside the item */
.peek-gallery__item.lenovo-scene img.lenovo-scene__anim {
  position: absolute;
  left: 38.5%;
  top: 47.4%;
  width: 24.2%;
  height: auto;
  object-fit: fill;
}
/* Panel items: artwork on a black, rounded card (stays black in both themes) */
.peek-gallery__item--panel { background: #000; }
.peek-gallery__item--panel img { object-fit: contain; }

/* Lenovo scene overlay is a <video>; beat `.peek-gallery__item video` sizing */
.peek-gallery__item.lenovo-scene .lenovo-scene__anim {
  position: absolute;
  left: 38.5%;
  top: 47.4%;
  width: 24.2%;
  height: auto;
  object-fit: fill;
}

/* Footer "Say hello." mailto: same type, thin underline that firms up on hover */
.index-footer__hello {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 200ms ease;
}
.index-footer__hello:hover,
.index-footer__hello:focus-visible {
  text-decoration-color: currentColor;
}

