/* ============================================
   OBSIDIAN STUDIO — DESIGN SYSTEM
   ============================================ */

/* ---- NOHEMI FONT ---- */
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Thin.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Thin.woff')  format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-ExtraLight.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-ExtraLight.woff')  format('woff');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Light.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Light.woff')  format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Regular.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Medium.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Medium.woff')  format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-SemiBold.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-SemiBold.woff')  format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Bold.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Bold.woff')  format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-ExtraBold.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-ExtraBold.woff')  format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('Nohemi/Web-TT/Nohemi-Black.woff2') format('woff2'),
       url('Nohemi/Web-TT/Nohemi-Black.woff')  format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---- TOKENS ---- */
:root {
  --black:       #000000;
  --white:       #ffffff;
  --gray-50:     #0e0e0e;
  --gray-100:    #131313;
  --gray-150:    #1a1a1a;
  --gray-200:    #1f1f1f;
  --gray-250:    #2a2a2a;
  --gray-300:    #333333;
  --gray-400:    #4d4d4d;
  --gray-500:    #626262;
  --gray-600:    #939393;
  --gray-700:    #c4c7c8;
  --gray-800:    #e2e2e2;

  --font-sans:       'Inter', -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;
  --font-editorial:  'Nohemi', 'Helvetica Neue', Arial, sans-serif;
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:       72px;
  --gutter:      clamp(20px, 4vw, 48px);
  --gap:         24px;
  --section-gap: 140px;
  --max-w:       1440px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-editorial);
  background: var(--black);
  color: var(--gray-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---- LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
#loader.done { opacity: 0; }
.loader-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gray-250);
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.loader-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.loader-title {
  font-family: var(--font-editorial);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
}
.loader-status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.loader-percent {
  color: var(--white);
  font-weight: 500;
}

/* ---- CURSOR ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-expo), width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), background 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.hover { width: 40px; height: 40px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end; /* links only — identity moved to hero__content */
  padding: 0 var(--gutter);
  z-index: 500;
  mix-blend-mode: difference;
  opacity: 0;
}

/* Identity block — moved to hero__content. Kept here for easy rollback.
.nav__identity { display: flex; flex-direction: column; gap: 3px; }
.nav__name { font-family: var(--font-editorial); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--white); line-height: 1; }
.nav__role { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white); opacity: 0.45; line-height: 1; }
*/

/* Nav links */
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-editorial);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease-expo);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { opacity: 1; }

.nav__divider {
  color: var(--white);
  opacity: 0.3;
  font-size: 11px;
  user-select: none;
  font-family: var(--font-mono);
}

.nav__lang {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0.4;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
  font-weight: 700;
  border-bottom: 1px solid var(--white);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-300);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.35);
  position: relative;
  z-index: 0;
}
/* Hero background video */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease;
}
.hero__bg-video.loaded { opacity: 1; }
.hero__grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.55) 0%, transparent 42%),
    linear-gradient(to bottom, rgba(0,0,0,0.6)  0%, transparent 25%, transparent 55%, var(--black) 100%);
  z-index: 2;
}

/* ---- HERO TITLE — two direct children of .hero so mix-blend-mode reaches the video ---- */

/* Tight invert box: the element itself blends with the video (not a child of a
   stacking-context wrapper). White bg + difference = inverts the video area.
   Name text (black) appears as a stencil cutout on the inverted bright area.
   Rollback: restore nav__identity block above. */
.hero__name-block {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: difference;
  opacity: 0; /* animated in by GSAP */
}
.hero__name {
  font-family: var(--font-editorial);
  font-size: 28px;
  font-weight: 600; /* SemiBold — one step lighter than Bold */
  letter-spacing: 0.22em;
  color: var(--black);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Subtitle — inside the invert box, left-aligned, stencil style */
.hero__subs {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--black);
  margin-top: 10px;
  line-height: 1;
  text-align: left;
  /* width follows the name — no nowrap so it wraps if ever longer */
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .sl {
  color: var(--gray-300);
}

/* ---- WORK FEED ---- */
.feed-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feed-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-bottom: var(--section-gap);
}
.feed-item {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid var(--gray-300);
  background: var(--gray-150);
}
.feed-item--lg  { grid-column: span 8; height: 420px; }
.feed-item--sm  { grid-column: span 4; height: 420px; }
.feed-item--full{ grid-column: span 12; height: 500px; }
.feed-item--half{ grid-column: span 6; height: 460px; }

.feed-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
  transition: transform 1.2s var(--ease-expo), filter 0.8s ease, opacity 0.8s ease;
}
/* CSS gradient placeholders */
.feed-item__img.placeholder {
  background: linear-gradient(135deg, var(--gray-150) 0%, var(--gray-300) 100%);
  filter: none;
}
.feed-item:hover .feed-item__img {
  transform: scale(1.05);
  filter: grayscale(0);
  opacity: 1;
  mix-blend-mode: normal;
}
.feed-item__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feed-item:hover .feed-item__info { opacity: 1; }
.feed-item__title {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 6px;
}
.feed-item__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Viewfinder corner marks */
.feed-item::before,
.feed-item::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feed-item::before { top: 10px; left: 10px; border-top: 1px solid var(--white); border-left: 1px solid var(--white); }
.feed-item::after  { bottom: 10px; right: 10px; border-bottom: 1px solid var(--white); border-right: 1px solid var(--white); }
.feed-item:hover::before,
.feed-item:hover::after { opacity: 0.5; }

/* ---- ABOUT / STORY SECTION ---- */
.about-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter);
  border-top: 1px solid var(--gray-300);
  display: grid;
  grid-template-columns: 3fr 9fr;
  column-gap: calc(var(--gap) * 2.5);
  align-items: start;
}
/* Left — portrait */
.about-portrait {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-width: 300px;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: invert(1);
}
/* Normal-colour reveal layer — clipped to cursor square via JS */
.about-portrait__reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  clip-path: inset(0 100% 0 0); /* hidden until mouse enters */
  pointer-events: none;
}
/* Right — bio */
.about-bio {
  grid-column: 2;
  grid-row: 1;
}
.bio-table { border-top: 1px solid var(--gray-300); }
.bio-row {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bio-row__key {
  color: var(--gray-500);
  width: 90px;
  flex-shrink: 0;
  padding-top: 2px; /* align key baseline with val first line */
}
.bio-row__val {
  color: var(--gray-700);
  flex: 1;
  line-height: 1.75;
  text-transform: none;
  letter-spacing: 0.03em;
}
/* Intro row — slightly larger val text, same mono family */
.bio-row--intro .bio-row__val {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}

/* ---- CONTACT SECTION ---- */
.contact-section {
  position: relative;
  background: var(--black);
  background-image: url('assets/images/BANNER1.png');
  background-size: cover;
  background-position: center;
  padding: var(--section-gap) var(--gutter);
  overflow: hidden;
}
/* Gradient fades top + bottom over the background image */
.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 45%;
  pointer-events: none;
  z-index: 1;
}
.contact-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
}
.contact-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
}
/* Keep content and coords above the gradient overlays */
.contact-section > * { position: relative; z-index: 2; }
.contact-invert-box {
  display: inline-block;
  max-width: var(--max-w);
  padding: 16px 20px 18px;
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: difference;
  color: var(--black);
}
.contact-label-row {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}
.contact-label-row .sl { color: rgba(0,0,0,0.35); }
.contact-email-row { margin-bottom: 24px; }
.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease;
}
.contact-email:hover { opacity: 0.6; }
.contact-socials {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-soc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-soc__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}
.contact-soc__val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.25s ease;
}
a.contact-soc__val:hover { opacity: 0.6; }

/* Shared lat/lon follower styles */
.hero-coords,
.contact-coords {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  white-space: pre;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  user-select: none;
}

/* Hero-specific overrides */
.hero-coords {
  color: var(--white);
  mix-blend-mode: difference;
}

/* Contact-specific overrides */
.contact-coords {
  color: var(--white);
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--gray-300);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
/* ---- PROJECT MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-expo);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal-nav__logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}
.modal-close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.modal-close:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.modal-close__icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  display: inline-block;
}
.modal-close:hover .modal-close__icon { transform: rotate(90deg); }

.modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

/* Left scrollable media canvas */
.modal-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 48px var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--black);
}
.modal-canvas::-webkit-scrollbar { width: 2px; }
.modal-canvas::-webkit-scrollbar-track { background: var(--black); }
.modal-canvas::-webkit-scrollbar-thumb { background: var(--gray-300); }

.modal-media-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--gray-150);
  margin-bottom: var(--gap);
}
.modal-media-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 0.7s ease;
}
.modal-media-main:hover img { filter: grayscale(0); }
/* Viewfinder HUD */
.modal-hud-tl, .modal-hud-br {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
.modal-hud-tl { top: 12px; left: 12px; }
.modal-hud-br { bottom: 12px; right: 12px; }

.modal-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
  align-items: start;  /* portrait imgs don't stretch to match landscape row height */
}
.modal-media-grid img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.2);
  transition: filter 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-media-grid img.wide { grid-column: 1 / -1; }
.modal-media-grid img:hover { filter: grayscale(0); }

/* YouTube embed */
.modal-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: var(--gap);
  background: var(--black);
}
.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.media-ph {
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
}
.modal-media-wide {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}
.modal-media-wide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
}
.modal-media-wide:hover img { filter: grayscale(0); }

/* Right sidebar */
.modal-sidebar {
  width: 420px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 14, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-150);
}
.modal-sidebar::-webkit-scrollbar { width: 2px; }
.modal-sidebar::-webkit-scrollbar-track { background: var(--gray-150); }
.modal-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); }

.modal-sidebar__title {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}
.modal-sidebar__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}
.modal-sidebar__body {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.modal-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.modal-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-meta-row span:first-child {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  width: 90px;
  flex-shrink: 0;
  padding-top: 1px;
}
.modal-meta-row span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
  text-align: right;
  line-height: 1.4;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex: 1;
}
.tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
}
.tag:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* Next Project Navigation Card */
.modal-next-project {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 140px;
  margin-top: 40px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 14, 0.5);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s var(--ease-expo), background-color 0.4s var(--ease-expo);
}
.modal-next-project__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  transition: opacity 0.6s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.modal-next-project__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.modal-next-project__content {
  position: relative;
  z-index: 1;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-next-project__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.modal-next-project__title {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
}
.modal-next-project:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 20, 0.8);
}
.modal-next-project:hover .modal-next-project__bg {
  opacity: 0.35;
  transform: scale(1.03);
}

/* Custom focus styles for accessibility */
.feed-item:focus-visible,
.modal-close:focus-visible,
.modal-next-project:focus-visible,
.nav__link:focus-visible,
.contact-email:focus-visible,
.contact-soc__val:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}
/* ---- SCROLL INDICATOR ---- */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 2;
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: var(--gray-400);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ---- SVG FILTER (hidden) ---- */
.svg-filters { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .feed-item--lg   { grid-column: span 12; height: 320px; }
  .feed-item--sm   { grid-column: span 12; height: 280px; }
  .feed-item--full { height: 360px; }
  .feed-item--half { grid-column: span 12; height: 320px; }

  .about-section { grid-template-columns: 1fr; gap: 40px; padding: 60px var(--gutter); }
  .about-portrait { max-width: 240px; aspect-ratio: 1/1; grid-column: 1; grid-row: 1; }
  .about-bio { grid-column: 1; grid-row: 2; }

  .modal-body { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  .modal-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 14, 0.85);
    padding: 36px var(--gutter);
  }
  .modal-canvas {
    overflow-y: visible;
    padding: 36px var(--gutter);
  }
  .modal-meta-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav__links { gap: 20px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; }
  .nav__role  { display: none; }
  .footer { flex-direction: column; text-align: center; }
}
