/* ================================
   RESET & BASE
================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #F7F5F2;
  --ink:      #0D0D0D;
  --ink-2:    #5A5A5A;
  --ink-3:    #9A9A9A;
  --border:   rgba(0,0,0,0.08);
  --white:    #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --accent:     #7B6EF6;
  --accent-soft: rgba(123,110,246,0.10);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 500; }

/* ================================
   SELECTION
================================ */
::selection { background: var(--ink); color: var(--bg); }

/* ================================
   NAV
================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  transition: padding 0.4s var(--ease-out), background 0.4s ease;
}
#nav.scrolled {
  padding: 14px 48px;
  background: rgba(247,245,242,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
}
.nl {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nl:hover,
.nl.active { color: var(--ink); }

.nl::after {
  content: '';
  display: block;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
  margin-top: 2px;
}
.nl:hover::after { width: 100%; }

.nav-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247,245,242,0.72);
}

/* ================================
   HERO
================================ */
.hero {
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 100px 0 48px;
  gap: 0;
}

/* Top bar */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}
.hero-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
}

/* Center block */
.hero-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding: 40px 0;
}

.hero-name-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}

.hero-center h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.5vw, 124px);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.h-line {
  display: block;
  opacity: 0;
  transform: translateY(56px);
  animation: lineReveal 0.95s var(--ease-out) forwards;
}
.h-line:nth-child(1) { animation-delay: 0.28s; }
.h-line:nth-child(2) { animation-delay: 0.38s; font-style: italic; color: var(--accent); }
.h-line:nth-child(3) { animation-delay: 0.48s; }

/* Right column */
.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}

.hero-bio {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 46ch;
}
.hero-bio em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

/* Bottom bar */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.75s forwards;
}

.hero-disciplines {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hdot { opacity: 0.3; }

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* Scroll indicator */
.hero-scrollbar {
  position: absolute;
  bottom: 48px;
  right: 48px;
  width: 1px;
  height: 56px;
  background: var(--border);
  z-index: 2;
}
.hero-scrollbar-fill {
  width: 100%;
  height: 50%;
  background: var(--ink-3);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Responsive hero */
@media (max-width: 1024px) {
  .hero-center {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }
  .hero-center h1 { font-size: clamp(52px, 10vw, 88px); }
}
@media (max-width: 768px) {
  .hero { padding: 0 24px; }
  .hero-inner {padding: 72px 0 32px;gap: 0;padding-top: 0;}
  .hero-top { padding-bottom: 24px; margin-bottom: 0; }
  .hero-center { padding: 24px 0; gap: 24px; }
  .hero-bottom { padding-top: 20px; }
  .hero-disciplines { display: none; }
  .hero-center h1 { font-size: clamp(40px, 11vw, 68px); }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
}

/* ================================
   BUTTONS
================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn-primary .arr { transition: transform 0.3s ease; }
.btn-primary:hover .arr { transform: translateY(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease;
  background: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: var(--white); border-color: rgba(0,0,0,0.15); }

/* Background texture (used in hero) */
.hero-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 55%, rgba(26,86,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 88% 18%, rgba(139,47,255,0.04) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.strip-track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
  will-change: transform;
}
.strip-inner {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.strip-inner .sep { opacity: 0.3; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   SECTION COMMON
================================ */
.section-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--accent); }

/* ================================
   WORK
================================ */
.work {
  padding: 100px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.wh-left { display: flex; flex-direction: column; }
.wh-note {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 28ch;
  text-align: right;
  line-height: 1.6;
  font-style: italic;
}

/* ================================
   MASONRY GRID
   Exact layout with NO gaps/holes:
   
   Row 1 (h:480px): [01 tall 5col rows1-2] [02 sq 4col] [gap 3col]  ← wait, let me plan:

   12 columns, 3 rows:
   Row heights: 460px, 460px, 340px

   01: col 1-7, row 1-2 (tall)
   02: col 7-10, row 1   (square-ish)
   03: col 10-13, row 1  (square-ish)
   04: col 7-13, row 2   (wide)
   05: col 1-5, row 3    (medium)
   06: col 5-9, row 3    (medium)
   [fill] col 9-13 row 3 → we only have 6 projects, 
   so make row3 = 3 equal cols: col 1-5, 5-9, 9-13 but we need 3 cards there...
   → Let's do: row3 has cards 04+05+06 in thirds (4col each).
   And rows 1-2: 01 tall (col 1-7), 02 square (col 7-10 row1), 03 square (col 10-13 row1),
   04 wide (col 7-13 row2)

   That gives: top-right 2 squares stacked next to big left → 
   But 02+03 stacked = 2 rows → with 01 tall same 2 rows ✓
   Bottom row: 3 equal cards

   Visual:
   [    01 TALL     ] [  02  ] [  03  ]
   [    01 TALL     ] [   04 WIDE     ]
   [ 04 wide ] [ 05 med ] [ 06 med ]   ← 

   Actually cleanest:
   [    01    ][  02  ][  03  ]
   [    01    ][    04 wide   ]
   [ 05 ] [ 06 ] [ 04 isn't here ]
   
   Final plan - 6 cards, clean rectangle:
   Rows 1-2 (2×420px = 840px total + gap):
     01: col 1-7, row 1/span2
     02: col 7-10, row 1
     03: col 10-13, row 1
     04: col 7-13, row 2
   Row 3 (340px):
     05: col 1-5
     06: col 5-9
     [need a 7th or adjust to 2 cards in row3]
   
   → 2 medium cards in row3, col 1-7 and 7-13:
================================ */

.masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 420px 420px 340px;
  gap: 16px;
}

/* 01 — tall, rows 1+2, cols 1-7 */
.card:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}
/* 02 — square, row 1, cols 7-10 */
.card:nth-child(2) {
  grid-column: 7 / 10;
  grid-row: 1 / 2;
}
/* 03 — square, row 1, cols 10-13 */
.card:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}
/* 04 — wide, row 2, cols 7-13 */
.card:nth-child(4) {
  grid-column: 7 / 13;
  grid-row: 2 / 3;
}
/* 05 — wide half, row 3, cols 1-7 */
.card:nth-child(5) {
  grid-column: 1 / 7;
  grid-row: 3 / 4;
}
/* 06 — wide half, row 3, cols 7-13 */
.card:nth-child(6) {
  grid-column: 7 / 13;
  grid-row: 3 / 4;
}

/* ================================
   CARD COMPONENT
================================ */
.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #E8E5E0;
  cursor: pointer;
  isolation: isolate;
}

/* Media layer */
.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card-vid, .card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card-vid,
.card:hover .card-img {
  transform: scale(1.04);
}

/* Persistent dark gradient for bottom readability */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Noise texture overlay */
.card-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Meta (always visible bottom-left) */
.card-meta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.card:hover .card-meta {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.card-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  letter-spacing: -0.04em;
}
.card:nth-child(2) .card-num,
.card:nth-child(3) .card-num { font-size: 36px; }

.card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.card-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Reveal on hover */
.card-reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.72) 100%
  );
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.card:hover .card-reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.card-reveal h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
/* Smaller title for compact cards */
.card:nth-child(2) .card-reveal h3,
.card:nth-child(3) .card-reveal h3 { font-size: 20px; }

.card-reveal p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 44ch;
  font-weight: 300;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  align-self: flex-start;
}
.card-cta:hover { background: rgba(255,255,255,0.25); transform: translateX(3px); }

/* Accent color line on hover */
.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--c, var(--accent));
  z-index: 10;
  transition: width 0.5s var(--ease-out);
}
.card:hover::before { width: 100%; }

/* ================================
   CARD ENTRANCE ANIMATION
================================ */
.card {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
}
.card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

/* ================================
   ABOUT
================================ */
.about {
  padding: 100px 48px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left { display: flex; flex-direction: column; gap: 40px; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-body p {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 50ch;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sk {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.sk:first-child { border-top: 1px solid var(--border); }
.sk-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  width: 60px;
}
.sk span:last-child {
  font-size: 14px;
  color: var(--ink-2);
  text-align: right;
}

/* Experience list */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 80px; /* align with content */
}
.exp-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.exp-item:first-child { border-top: 1px solid var(--border); }
.exp-item:hover { padding-left: 12px; }
.exp-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 4px;
}
.exp-item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-item strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.exp-item > div > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.exp-item p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 4px;
  font-weight: 300;
}

/* ================================
   CONTACT
================================ */
.contact {
  padding: 120px 48px 60px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.contact-inner {
  max-width: 900px;
}
.contact-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 64px;
}
.contact-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 40px;
  transition: color 0.3s ease;
  position: relative;
  width: fit-content;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.contact-email:hover::after { transform: scaleX(0); }
.contact-email:hover { color: var(--ink-2); }

.contact-links {
  display: flex;
  gap: 32px;
}
.contact-links a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.contact-links a:hover { color: var(--ink); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 80px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ================================
   MODAL
================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(680px, 100vw);
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
}
.modal.open .modal-panel {
  transform: translateX(0);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 24px 28px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  width: 100%;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 0.5; }

.modal-body {
  padding: 0 48px 80px;
}

/* Modal content styles */
.m-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 24px;
}

.modal-body h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.modal-body .m-sub {
  font-size: 15px;
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 32px;
}

.m-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.modal-body .m-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: 40px;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.m-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.m-features-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.m-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m-features li {
  padding: 14px 0;
  padding-left: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 300;
  position: relative;
}
.m-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-size: 12px;
}

.m-placeholders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0;
}
.m-placeholder {
  aspect-ratio: 16/9;
  border-radius: 8px;
  opacity: 0.6;
}

/* ================================
   KEYFRAMES
================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1100px) {
  .masonry {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 380px 380px 380px;
  }
  .card:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 2; }
  .card:nth-child(2) { grid-column: 1 / 4; grid-row: 2 / 3; }
  .card:nth-child(3) { grid-column: 4 / 7; grid-row: 2 / 3; }
  .card:nth-child(4) { grid-column: 1 / 7; grid-row: 3 / 4; }
  .card:nth-child(5) { grid-column: 1 / 4; grid-row: 4 / 5; }
  .card:nth-child(6) { grid-column: 4 / 7; grid-row: 4 / 5; }
  .masonry { grid-template-rows: 380px 380px 380px 380px; }
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .exp-list { margin-top: 0; }
}

@media (max-width: 768px) {
  #nav { padding: 16px 24px; }
  #nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .work { padding: 72px 24px; }
  .masonry {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .card:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 320px;
  }
  /* Always show reveal info on mobile */
  .card-meta { opacity: 0; }
  .card-reveal {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .about { padding: 72px 24px; }
  .contact { padding: 80px 24px 48px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .work-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .wh-note { text-align: left; max-width: 100%; }
  .section-title { text-align: left; }
  .modal-body { padding: 0 24px 60px; }
}

/* ================================
   MUSIC PROMPT MODAL
================================ */
.music-prompt {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: mpFadeIn 0.5s var(--ease-out) 1.2s forwards;
}
.music-prompt.dismissed {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@keyframes mpFadeIn {
  to { opacity: 1; }
}

.mp-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 340px;
  width: calc(100vw - 48px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.14);
  transform: translateY(16px);
  animation: mpSlideUp 0.5s var(--ease-out) 1.2s forwards;
  opacity: 0;
}
@keyframes mpSlideUp {
  to { transform: translateY(0); opacity: 1; }
}

.mp-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent);
  line-height: 1;
}
.mp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.mp-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 28px;
  font-style: italic;
}
.mp-actions {
  display: flex;
  gap: 10px;
}
.mp-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}
.mp-btn:hover { transform: translateY(-2px); }
.mp-btn--yes {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(123,110,246,0.3);
}
.mp-btn--yes:hover { box-shadow: 0 8px 24px rgba(123,110,246,0.4); }
.mp-btn--no {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--border);
}
.mp-btn--no:hover { color: var(--ink); border-color: rgba(0,0,0,0.2); }

/* ================================
   PLAYER WIDGET
================================ */
.player-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.player-widget.ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Inactive pill */
.pw-inactive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: #f7f5f2ed;
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  cursor: default;
}
.pw-inactive-icon {
  font-size: 14px;
  color: var(--ink-3);
}
.pw-activate {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.pw-activate:hover { opacity: 0.7; }

/* Active player card */
.pw-active {
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Default: only show the state that matches data-active */
[data-active="false"] .pw-active { display: none; }
[data-active="true"]  .pw-inactive { display: none; }

.pw-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.pw-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pw-track {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.pw-artist {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-toggle-list {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 16px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 1;
}
.pw-toggle-list:hover { color: var(--accent); }
.pw-toggle-list.open { color: var(--accent); }

.pw-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pw-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.pw-btn:hover { color: var(--ink); background: rgba(0,0,0,0.05); }
.pw-btn--play {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pw-btn--play:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(123,110,246,0.35); }

/* Play/pause icon toggle */
.player-widget .pw-pause-icon { display: none; }
.player-widget[data-playing="true"] .pw-play-icon  { display: none; }
.player-widget[data-playing="true"] .pw-pause-icon { display: block; }

/* Timeline */
.pw-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pw-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 28px;
}
#pwRange {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  position: relative;
}
#pwRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(123,110,246,0.3);
  transition: box-shadow 0.2s;
}
#pwRange::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(123,110,246,0.15);
}
#pwRange::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Playlist drawer */
.pw-playlist {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  max-height: 160px;
  overflow-y: auto;
}
.pw-playlist.open { display: block; }
.pw-playlist ol { list-style: none; padding: 0; margin: 0; }
.pw-playlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.pw-playlist li:hover { background: rgba(0,0,0,0.04); }
.pw-playlist li.current { background: var(--accent-soft); }
.pw-pl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pw-pl-track {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pw-pl-artist {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pw-pl-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  flex-shrink: 0;
}
li.current .pw-pl-num { color: var(--accent); font-weight: 700; }

/* Bars animation (playing indicator in playlist) */
.pw-bars {
  display: none;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}
li.current .pw-bars { display: flex; }
li.current .pw-pl-num { display: none; }
.pw-bar {
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  animation: pwBar 1.2s ease-in-out infinite;
}
.pw-bar:nth-child(2) { animation-duration: 0.9s; }
.pw-bar:nth-child(3) { animation-duration: 1.5s; }
@keyframes pwBar {
  0%,100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 768px) {
  .player-widget { bottom: 16px; left: 16px; }
  .pw-active { width: calc(100vw - 80px); max-width: 280px; }
}

/* ================================
   MODAL SLIDER
================================ */
.modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  margin-bottom: 28px;
}

.ms-track { width: 100%; height: 100%; position: relative; }

.ms-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.ms-slide.active {
  opacity: 1;
  pointer-events: all;
}

.ms-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ms-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.ms-arrow:hover { background: rgba(255,255,255,0.24); }
.ms-prev { left: 12px; }
.ms-next { right: 12px; }

.ms-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.ms-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ms-dot.active {
  background: var(--sc, var(--accent));
  transform: scale(1.3);
}

/* ================================
   MODAL AUDIO PLAYER
================================ */
.modal-audio {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ma-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: default;
}
.ma-item:last-child { border-bottom: none; }
.ma-item:hover { background: rgba(0,0,0,0.025); }
.ma-item[data-playing="true"] { background: rgba(123,110,246,0.05); }

.ma-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ma-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ma-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ma-play {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ma-play:hover {
  background: var(--ac, var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(123,110,246,0.3);
}

/* Icon toggle via parent data-playing */
.ma-pause-icon { display: none; }
.ma-item[data-playing="true"] .ma-play {
  background: var(--ac, var(--accent));
  color: #fff;
  border-color: transparent;
}
.ma-item[data-playing="true"] .ma-play-icon  { display: none; }
.ma-item[data-playing="true"] .ma-pause-icon { display: block; }

/* ================================
   MOBILE SWIPE HINT
================================ */
.swipe-hint {
  position: sticky;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  width: fit-content;
  padding: 10px 18px 10px 10px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 100px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  opacity: 0;
  transform: translateY(8px);
  animation: hintIn 0.5s var(--ease-out) 0.7s forwards;
}

.sh-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  animation: nudge 1.1s ease-in-out 1.2s infinite;
}

.sh-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.swipe-hint--out {
  animation: hintOut 0.4s var(--ease-out) forwards !important;
}

@keyframes hintIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes hintOut {
  to { opacity: 0; transform: translateY(6px) scale(0.97); }
}
@keyframes nudge {
  0%,100% { transform: translateX(0); }
  40%     { transform: translateX(5px); }
  70%     { transform: translateX(2px); }
}

@media (min-width: 769px) {
  .swipe-hint { display: none; }
}

/* ================================
   MICROANIMATIONS & SUBTLE DETAILS
================================ */

/* Nav links — smooth underline grow */
.nl {
  position: relative;
  padding-bottom: 2px;
}

/* Section index numbers — fade in on scroll via .visible class */
.section-idx {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* Skill rows — slide right on hover */
.sk {
  transition: padding-left 0.3s var(--ease-out);
}
.sk:hover { padding-left: 8px; }
.sk:hover .sk-label { color: var(--accent); }
.sk-label { transition: color 0.3s ease; }

/* Experience items — already have hover, add border accent */
.exp-item {
  transition: padding-left 0.3s var(--ease-out), border-color 0.3s ease;
  border-left: 2px solid transparent;
}
.exp-item:hover {
  padding-left: 16px;
  border-left-color: var(--accent);
}

/* Contact email — letter spacing breathe on hover */
.contact-email {
  transition: letter-spacing 0.4s var(--ease-out), color 0.3s ease;
}
.contact-email:hover { letter-spacing: 0.01em; }

/* Contact links — icon slide */
.contact-links a {
  transition: color 0.2s, gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.contact-links a:hover { gap: 8px; }

/* Cards — subtle border glow on hover */
.card {
  transition:
    opacity   0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    box-shadow 0.4s ease;
}
.card.visible:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

/* Card number — scale pulse once on card visible */
.card.visible .card-num {
  animation: numPop 0.6s var(--ease-out) 0.3s both;
}
@keyframes numPop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1);    opacity: 1; }
}

/* Playlist items in music player — indent on hover */
#pwList li {
  transition: padding-left 0.2s var(--ease-out), background 0.15s;
}
#pwList li:hover { padding-left: 8px; }

/* Modal panel slides in with spring */
.modal-panel {
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Modal features list items — stagger fade on open */
.modal.open .m-features li {
  opacity: 0;
  animation: featureIn 0.4s var(--ease-out) forwards;
}
.modal.open .m-features li:nth-child(1)  { animation-delay: 0.15s; }
.modal.open .m-features li:nth-child(2)  { animation-delay: 0.20s; }
.modal.open .m-features li:nth-child(3)  { animation-delay: 0.25s; }
.modal.open .m-features li:nth-child(4)  { animation-delay: 0.30s; }
.modal.open .m-features li:nth-child(5)  { animation-delay: 0.35s; }
.modal.open .m-features li:nth-child(6)  { animation-delay: 0.40s; }
.modal.open .m-features li:nth-child(7)  { animation-delay: 0.45s; }
.modal.open .m-features li:nth-child(8)  { animation-delay: 0.50s; }
@keyframes featureIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Tags in modal — scale in staggered */
.modal.open .m-tags span {
  opacity: 0;
  animation: tagPop 0.35s var(--ease-out) forwards;
}
.modal.open .m-tags span:nth-child(1) { animation-delay: 0.05s; }
.modal.open .m-tags span:nth-child(2) { animation-delay: 0.09s; }
.modal.open .m-tags span:nth-child(3) { animation-delay: 0.13s; }
.modal.open .m-tags span:nth-child(4) { animation-delay: 0.17s; }
.modal.open .m-tags span:nth-child(5) { animation-delay: 0.21s; }
.modal.open .m-tags span:nth-child(6) { animation-delay: 0.25s; }
.modal.open .m-tags span:nth-child(7) { animation-delay: 0.29s; }
.modal.open .m-tags span:nth-child(8) { animation-delay: 0.33s; }
@keyframes tagPop {
  from { opacity: 0; transform: scale(0.88) translateY(4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Scroll indicator in hero — subtle breathe */
.hero-scrollbar-fill {
  will-change: transform, opacity;
}

/* Strip marquee — pause on hover */
.strip:hover .strip-track { animation-play-state: paused; }

/* About section — section title reveal */
.about .section-title em,
.contact-title em {
  display: inline-block;
  transition: letter-spacing 0.5s var(--ease-out);
}
.about .section-title:hover em,
.contact-title:hover em { letter-spacing: 0.01em; }

/* Music player play button — spin quarter turn on activate */
.pw-btn--play {
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.2s var(--ease-out);
}
.pw-btn--play:active { transform: scale(0.92); }

/* Footer — subtle fade up */
.footer {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}


@media (max-width:480px) {
    .hero-index {
        font-size: 9px;
    }
    
    .hero-status {
        display: none;
    }
    
    p.hero-eyebrow {
        display: none;
    }
}



/* LA FRANCE */

/* ================================
   FEATURED REEL — La France (temp)
================================ */
.featured-reel {
  background: var(--ink);
  padding: 80px 48px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-top: 72px; /* altura del nav */
  position: relative;
}

.fr-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.fr-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.fr-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(123,110,246,0.12);
  border: 1px solid rgba(123,110,246,0.25);
  padding: 6px 16px;
  border-radius: 100px;
}

.fr-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.fr-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.fr-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}

.fr-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.fr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fr-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fr-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.fr-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-style: italic;
}

.fr-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

.fr-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.fr-dot { opacity: 0.3; }

@media (max-width: 900px) {
  .fr-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fr-info {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .featured-reel {
    padding: 60px 24px 48px;
    margin-top: 60px;
  }
}