/* ============================================================
   Michael Beck — Portfolio
   Natural palette · Ghibli-inspired editorial layout
   ============================================================ */

:root {
  /* Monochrome palette — Eileen-style, with white glow accent */
  --bone:        #0A0A0B;   /* page background (near-black) */
  --ivory:       #131318;   /* card surface */
  --ivory-warm:  #18181E;   /* slightly lifted card variant */
  --charcoal:    #EAEAEE;   /* primary text (bone on dark) */
  --charcoal-2:  #9CA0A8;   /* secondary text (smoke) */
  --sage:        #6B6B73;   /* mid grey */
  --sage-deep:   #8F8F95;   /* lighter mid grey */
  --terracotta:  #FAFAFA;   /* accent (now pure white — used for glow) */
  --terracotta-2:#D4D4D8;   /* silver accent */
  --olive:       #5C5C63;   /* deep grey */
  --stone:       #2D2D33;   /* hairline / soft borders */
  --stone-soft:  #1F1F25;   /* deeper background block */
  --cream-cloud: #25252B;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --card-radius: 6px;
  --max-card:    1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  transition: width .08s ease-out;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

/* ============================================================
   STICKY TOP NAV
   ============================================================ */

.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 28px 0;
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.top-nav.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  background: rgba(15, 15, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.6);
}
.top-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.top-logo-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  animation: spin-slow 24s linear infinite;
}
.top-logo-mark svg { width: 100%; height: 100%; }
.top-logo-year {
  color: var(--terracotta-2);
  margin-left: 2px;
}
.top-nav-links {
  display: flex;
  gap: 28px;
}
.top-nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--charcoal-2);
  position: relative;
  padding: 4px 2px;
  transition: color .2s;
}
.top-nav-links a:hover { color: var(--charcoal); }
.top-nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transition: width .25s ease, left .25s ease;
}
.top-nav-links a:hover::after {
  width: 100%;
  left: 0;
}
.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAFAFA;
  color: #0A0A0B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 100px;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.top-cta:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 24px -4px rgba(255, 255, 255, 0.5);
}
.arrow-diagonal {
  font-size: 14px;
  transition: transform .2s;
  display: inline-block;
}
.top-cta:hover .arrow-diagonal {
  transform: translate(2px, -2px);
}

@keyframes spin-slow {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   SECTION PROGRESS RAIL (right edge)
   ============================================================ */

.section-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 8px;
  background: rgba(15, 15, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s;
}
.section-rail.is-visible {
  opacity: 1;
}
.rail-dot {
  width: 26px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rail-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all .25s;
}
.rail-dot.is-active::before {
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 12px rgba(255, 255, 255, 0.5);
}
.rail-dot span {
  position: absolute;
  right: 28px;
  white-space: nowrap;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.rail-dot:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   FLOATING PARTICLES
   ============================================================ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particles .p {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  /* 4-point sparkle star shape */
  clip-path: polygon(
    50% 0%, 56% 44%, 100% 50%, 56% 56%,
    50% 100%, 44% 56%, 0% 50%, 44% 44%
  );
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.25));
  animation: drift 22s ease-in-out infinite, twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.25) rotate(45deg); }
}
.particles .p1  { top: 8%;  left: 6%;  width: 14px; height: 14px; animation-duration: 28s, 5s;  animation-delay: 0s,  -1s; }
.particles .p2  { top: 18%; left: 88%; width: 20px; height: 20px; animation-duration: 24s, 6s;  animation-delay: -3s, -2s; }
.particles .p3  { top: 28%; left: 18%; width: 10px; height: 10px; animation-duration: 30s, 4s;  animation-delay: -6s, -3s; }
.particles .p4  { top: 38%; left: 72%; width: 16px; height: 16px; animation-duration: 26s, 7s;  animation-delay: -2s, -4s; }
.particles .p5  { top: 48%; left: 36%; width: 12px; height: 12px; animation-duration: 22s, 5s;  animation-delay: -8s, -1s; }
.particles .p6  { top: 58%; left: 8%;  width: 22px; height: 22px; animation-duration: 32s, 6s;  animation-delay: -1s, -2s; }
.particles .p7  { top: 68%; left: 92%; width: 12px; height: 12px; animation-duration: 24s, 4s;  animation-delay: -5s, -3s; }
.particles .p8  { top: 78%; left: 26%; width: 18px; height: 18px; animation-duration: 28s, 7s;  animation-delay: -7s, 0s;  }
.particles .p9  { top: 88%; left: 64%; width: 10px; height: 10px; animation-duration: 30s, 5s;  animation-delay: -4s, -1s; }
.particles .p10 { top: 12%; left: 48%; width: 14px; height: 14px; animation-duration: 26s, 6s;  animation-delay: -9s, -3s; }
.particles .p11 { top: 22%; left: 76%; width: 9px;  height: 9px;  animation-duration: 22s, 4s;  animation-delay: -2s, -2s; }
.particles .p12 { top: 32%; left: 4%;  width: 18px; height: 18px; animation-duration: 24s, 7s;  animation-delay: -6s, -4s; }
.particles .p13 { top: 42%; left: 56%; width: 12px; height: 12px; animation-duration: 30s, 5s;  animation-delay: -3s, -1s; }
.particles .p14 { top: 52%; left: 84%; width: 24px; height: 24px; animation-duration: 28s, 6s;  animation-delay: -10s, -2s; }
.particles .p15 { top: 62%; left: 42%; width: 9px;  height: 9px;  animation-duration: 26s, 4s;  animation-delay: -1s, -3s; }
.particles .p16 { top: 72%; left: 16%; width: 14px; height: 14px; animation-duration: 24s, 7s;  animation-delay: -8s, 0s;  }
.particles .p17 { top: 82%; left: 80%; width: 16px; height: 16px; animation-duration: 22s, 5s;  animation-delay: -5s, -2s; }
.particles .p18 { top: 92%; left: 32%; width: 12px; height: 12px; animation-duration: 30s, 6s;  animation-delay: -7s, -1s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
  25%      { transform: translate(14px, -22px) scale(1.2); opacity: .9; }
  50%      { transform: translate(-18px, -8px) scale(.85); opacity: .4; }
  75%      { transform: translate(10px, 18px) scale(1.1); opacity: .75; }
}

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

img { display: block; max-width: 100%; }

/* ============================================================
   SCENE — full-viewport section with sky-style gradient
   ============================================================ */

.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
}

/* Monochrome scene gradients — dark slate base, subtly modulated per section */
.scene::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #0E0E12 0%,
    #131318 50%,
    #0A0A0B 100%);
  z-index: 0;
}

/* Atmospheric glow accents replace warm clouds */
.scene::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 240px at 15% 18%,
      rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 65%),
    radial-gradient(ellipse 800px 260px at 85% 88%,
      rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 65%);
  z-index: 0;
  pointer-events: none;
}

/* Per-scene subtle gradient variations — kept very close to base for cohesion */
#hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0F0F14 0%, #16161C 50%, #0A0A0B 100%);
}
#about::before {
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #101015 0%, #14141A 50%, #0B0B0E 100%);
}
#approach::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% 35%, rgba(255, 255, 255, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #0F0F16 0%, #16161E 50%, #0A0A0E 100%);
}
#project-01::before {
  background: linear-gradient(180deg, #0E0E12 0%, #17171E 50%, #0C0C10 100%);
}
#project-02::before {
  background: linear-gradient(180deg, #0F0F14 0%, #161620 50%, #0B0B0E 100%);
}
#project-03::before {
  background: linear-gradient(180deg, #101016 0%, #18181F 50%, #0C0C10 100%);
}
#project-04::before {
  background: linear-gradient(180deg, #0E0E12 0%, #16161D 50%, #0B0B0F 100%);
}
#connect::before {
  background: linear-gradient(180deg, #0F0F14 0%, #15151B 50%, #0A0A0E 100%);
}
#contact::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #11111A 0%, #161620 50%, #0A0A0D 100%);
}

/* ============================================================
   CARD
   ============================================================ */

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-card);
  background: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius);
  padding: 36px 56px 28px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.7),
    0 10px 30px -15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

/* ---------- Top nav ---------- */
.card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
}
.card-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.card-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-2);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.card-nav-links a:hover { color: var(--charcoal); }
.card-nav-links li.active a {
  color: var(--charcoal);
  font-weight: 600;
}
.card-nav-links li.active a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-btn span {
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
.menu-btn span:nth-child(2) { width: 16px; margin-left: auto; }
.menu-btn span:nth-child(3) { width: 22px; }

/* ---------- Body grid ---------- */
.card-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  min-height: 460px;
}
.card-body-reverse {
  grid-template-columns: 1fr 1.05fr;
}
.card-body-contact {
  grid-template-columns: 1fr;
}

.card-content {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-right: 16px;
  max-width: 560px;
}
.card-content-wide {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  margin-bottom: 14px;
}

/* Numbered section chip — monochrome */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-bottom: 22px;
  font-family: var(--font-body);
}
.chip-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 100px;
}
.chip-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
}
.chip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-2);
}

/* ============================================================
   HERO LETTER SPLIT REVEAL
   ============================================================ */

.split-text .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.split-text em {
  display: inline-block;
  font-style: italic;
  transform: translateY(110%);
  opacity: 0;
  animation: letter-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
/* Stagger by letter index — first word "Michael" (7) then "Beck" (4) */
.split-text .word:nth-child(1) em:nth-child(1) { animation-delay: .15s; }
.split-text .word:nth-child(1) em:nth-child(2) { animation-delay: .20s; }
.split-text .word:nth-child(1) em:nth-child(3) { animation-delay: .25s; }
.split-text .word:nth-child(1) em:nth-child(4) { animation-delay: .30s; }
.split-text .word:nth-child(1) em:nth-child(5) { animation-delay: .35s; }
.split-text .word:nth-child(1) em:nth-child(6) { animation-delay: .40s; }
.split-text .word:nth-child(1) em:nth-child(7) { animation-delay: .45s; }
.split-text .word:nth-child(3) em:nth-child(1) { animation-delay: .55s; }
.split-text .word:nth-child(3) em:nth-child(2) { animation-delay: .60s; }
.split-text .word:nth-child(3) em:nth-child(3) { animation-delay: .65s; }
.split-text .word:nth-child(3) em:nth-child(4) { animation-delay: .70s; }

@keyframes letter-rise {
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   SCROLL CUE (animated chevron)
   ============================================================ */

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
  color: var(--charcoal-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  align-self: flex-start;
}
.scroll-cue-arrow {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(43, 37, 32, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bounce-down 1.8s ease-in-out infinite;
}
.scroll-cue-arrow svg {
  width: 14px; height: 14px;
  color: var(--charcoal);
}
.scroll-cue:hover .scroll-cue-arrow {
  border-color: var(--terracotta-2);
  background: var(--terracotta);
  color: var(--ivory);
}
.scroll-cue:hover .scroll-cue-arrow svg { color: var(--ivory); }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   SECTION REVEAL ON SCROLL
   ============================================================ */

.scene .card {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.scene.in-view .card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Hero is always in view at load — make immediate */
#hero .card {
  opacity: 1;
  transform: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.display em {
  font-style: italic;
  font-weight: 700;
}
.display-xl {
  font-size: clamp(64px, 9vw, 128px);
}

.body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--charcoal-2);
  margin-bottom: 12px;
  max-width: 440px;
}
.body-lg {
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 32px;
}
.body-meta {
  font-size: 13px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--charcoal-2);
}
.body-meta strong {
  color: var(--charcoal);
  font-weight: 600;
}

.role {
  font-size: 13px;
  color: var(--charcoal);
  margin-top: 6px;
}
.role strong {
  font-weight: 600;
}

.card-meta {
  margin-bottom: auto;
  padding-bottom: 32px;
}

/* ---------- Toolkit tags ---------- */
.toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  max-width: 480px;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 14px -4px rgba(255, 255, 255, 0.3);
}

/* ---------- Actions ---------- */
.card-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.card-content-wide .card-actions {
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FAFAFA;
  color: #0A0A0B;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 28px -4px rgba(255, 255, 255, 0.55),
    0 0 60px -10px rgba(255, 255, 255, 0.35);
}
.btn-primary .play {
  font-size: 10px;
  display: inline-block;
  transform: translateY(0);
}
.btn-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s, text-shadow .25s;
}
.btn-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   CARD VISUAL — portrait + diagonal overlay
   ============================================================ */

.card-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

/* Angled colored overlay behind portrait — like the coral in the reference */
.diagonal {
  position: absolute;
  top: -20px;
  bottom: -28px;
  left: 0;
  right: -56px; /* extend past the card edge */
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.diagonal-terracotta { background: linear-gradient(180deg, #2D2D33 0%, #1A1A20 60%, #0F0F14 100%); }
.diagonal-sage       { background: linear-gradient(180deg, #2F2F35 0%, #1C1C22 60%, #101016 100%); }
.diagonal-olive      { background: linear-gradient(180deg, #303036 0%, #1D1D23 60%, #111117 100%); }
.diagonal-stone      { background: linear-gradient(180deg, #34343A 0%, #1F1F25 60%, #131319 100%); }

.card-body-reverse .diagonal {
  left: -56px;
  right: 0;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.portrait {
  position: relative;
  z-index: 2;
  height: 540px;
  width: auto;
  object-fit: cover;
  object-position: center top;
  margin-top: -60px;  /* break the card frame on top */
  margin-bottom: -28px; /* break the card frame on bottom */
  filter: drop-shadow(0 30px 40px rgba(43, 37, 32, 0.25));
}
.portrait-bowtie {
  height: 540px;
  border-radius: 4px;
}
/* Cutout PNG with transparent background — no card frame, blends with diagonal */
.portrait-cutout {
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 24px rgba(0, 0, 0, 0.5));
  margin-top: -80px;
  margin-bottom: -28px;
  height: 620px;
}

/* About — two portraits side-by-side, prominent but column-bound so the text column stays clear */
.portrait-pair {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  align-self: center;
  justify-self: center;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  margin: 16px auto;
  padding: 0;
}

/* Give the visual column extra real estate in the About section so the portraits can grow */
#about .card-body-reverse {
  grid-template-columns: 1.25fr 1fr;
}
.portrait-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: visible;
  display: block;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  transform-origin: center center;
}
.portrait-pair .portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 22px 36px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.45));
  transition: filter .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.portrait-pair .portrait-slot:hover {
  transform: translateY(-8px) scale(1.03);
  z-index: 3;
}
.portrait-pair .portrait-slot:hover .portrait {
  filter:
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 26px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}

/* In About, push the visual column to center the smaller pair within its area */
#about .card-visual {
  align-items: center;
  justify-content: center;
}
.portrait-flannel {
  height: 560px;
  border-radius: 4px;
}

/* ---------- Brand stage (for project cards with logos) ---------- */
.brand-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 20px;
}
.brand-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: var(--ivory);
  border-radius: 50%;
  padding: 24px;
  box-shadow:
    0 20px 40px -20px rgba(43, 37, 32, 0.35),
    0 0 0 1px rgba(43, 37, 32, 0.08);
}
.brand-svg {
  width: 240px;
  height: 240px;
  background: var(--ivory);
  border-radius: 6px;
  padding: 14px;
  box-shadow:
    0 20px 40px -20px rgba(43, 37, 32, 0.35),
    0 0 0 1px rgba(43, 37, 32, 0.08);
}
.brand-caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  text-align: center;
  text-shadow: 0 1px 6px rgba(43, 37, 32, 0.25);
}

/* Dark plate for ARGUS-style logos */
.brand-plate {
  background: var(--ivory);
  border-radius: 6px;
  padding: 24px 32px;
  box-shadow:
    0 20px 40px -20px rgba(43, 37, 32, 0.35),
    0 0 0 1px rgba(43, 37, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-plate-dark {
  background: var(--charcoal);
  padding: 32px 36px;
}
.brand-logo-full {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Design studio thumbnail grid ---------- */
.thumb-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 30px 20px;
  align-self: center;
}
.thumb-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 20px 10px;
}
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 18px 36px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: zoom-in;
  background: #000;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .4s ease;
}
.thumb figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 12px;
  background: rgba(15, 15, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.thumb:hover img {
  transform: scale(1.06);
}
.thumb:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Featured portrait thumbnail (last item, spotlight) */
.thumb-portrait {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 4;
  max-width: calc(50% - 6px);
  margin: 4px auto 0;
}

/* ============================================================
   COMPOSITE GALLERY — prominent full-width showcase (Project 04)
   ============================================================ */

/* Wider card for Project 04 so composites get more real estate */
#project-04 .card {
  max-width: 1320px;
}

.composite-gallery {
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.composite-gallery .strip-head {
  margin-bottom: 18px;
}
.composite-gallery .filter-pills {
  display: inline-flex;
  margin: 0 0 22px 0;
  align-self: flex-start;
}

/* Large prominent grid: 3 across with tall feature item */
.thumb-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
}
.thumb-grid-large .thumb {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 65%),
    #000;
}
.thumb-grid-large .thumb img {
  object-fit: contain;
  padding: 6px;
  transition: transform .7s ease, filter .4s ease;
}
.thumb-grid-large .thumb:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}
.thumb-grid-large .thumb figcaption {
  font-size: 11px;
  padding: 7px 14px;
  left: 18px;
  bottom: 16px;
}

/* Feature spotlight (last composite) — spans 2 cols, cinematic landscape */
.thumb-grid-large .thumb-feature {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
  max-width: none;
  margin: 0;
}
.thumb-grid-large .thumb-feature img {
  object-position: center 30%;
}
.thumb-grid-large .thumb-feature figcaption {
  font-size: 13px;
  padding: 9px 18px;
  letter-spacing: 0.2em;
  background: rgba(15, 15, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ============================================================
   APPAREL STRIP — Noble Ambitionz mockups
   ============================================================ */

.apparel-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand spotlight — Noble Ambitionz looping motion logo */
.brand-spotlight {
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-video-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 20px;
}
.brand-video-wrap::before {
  content: "";
  position: absolute;
  inset: 12px 14% 30%;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.brand-video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  /* Blend the video's black background into the dark page (black → transparent) */
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 32px rgba(255, 255, 255, 0.15));
  border-radius: 0;
}
.brand-video-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 4px 0 0;
}
.brand-video-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}
.brand-video-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-2);
}
.strip-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}
.strip-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 10px rgba(255, 255, 255, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 10px rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0),    0 0 18px rgba(255, 255, 255, 0.25); }
}
.strip-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}
.strip-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  opacity: 0.7;
}

.apparel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.garment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.garment-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #1F1F25 0%, #131319 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px -16px rgba(0, 0, 0, 0.6);
  transition: transform .35s ease, box-shadow .35s ease;
}
.garment-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4%;
  transition: transform .5s ease, filter .35s ease;
  filter: drop-shadow(0 14px 24px rgba(43, 37, 32, 0.25));
}
.garment:hover .garment-frame {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 36px -16px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.garment:hover .garment-frame img {
  transform: scale(1.03) rotate(-1deg);
}
.garment figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}
.garment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.garment-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* ============================================================
   FOOTER NAV — prev / next
   ============================================================ */

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.foot-link:hover {
  background: #FFFFFF;
  color: #0A0A0B;
  border-color: #FFFFFF;
  box-shadow: 0 0 22px -4px rgba(255, 255, 255, 0.4);
}
.foot-link .arrow {
  font-size: 14px;
  display: inline-block;
}

/* ============================================================
   CONNECT — social cards
   ============================================================ */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 720px;
  margin: 8px auto 0;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.social-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 26px -8px rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}
.social-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.social-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.social-card-instagram .social-icon {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}
.social-card-linkedin .social-icon {
  background: #0A66C2;
  color: #0A66C2;
}
.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.social-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.social-handle {
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
}
.social-arrow {
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal-2);
  opacity: 0.6;
  transition: opacity .2s, transform .2s;
}
.social-card:hover .social-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.contact-list li:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 20px -8px rgba(255, 255, 255, 0.3);
}
.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.contact-list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  transition: color .2s, text-shadow .2s;
}
.contact-list li:hover a {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.contact-label {
  color: var(--charcoal-2) !important;
}

/* Page footer */
.page-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .scene { padding: 60px 20px; }
  .card {
    padding: 24px 28px 22px;
    min-height: auto;
  }
  .card-body,
  .card-body-reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card-visual {
    order: 2;
    min-height: 320px;
    margin-top: 24px;
  }
  .card-content {
    padding-right: 0;
  }
  .portrait { height: 380px; margin-top: 0; margin-bottom: -22px; }
  .portrait-pair { grid-template-columns: 1fr 1fr; gap: 2px; min-height: 320px; }
  .portrait-pair .portrait { max-height: 360px; }
  .diagonal,
  .card-body-reverse .diagonal {
    left: -28px; right: -28px;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }
  .card-nav-links { gap: 18px; }
  .card-nav-links a { font-size: 12px; }
  .display { font-size: clamp(44px, 12vw, 64px); }
  .display-xl { font-size: clamp(54px, 14vw, 80px); }
  .card-foot { flex-direction: column; gap: 10px; align-items: stretch; }
  .foot-link { justify-content: center; }
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
  .contact-label { text-align: center; }
  .social-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-rail { display: none; }
  .top-nav { padding: 8px 12px 0; }
  .top-nav-links { display: none; }
  .top-nav-inner { padding: 8px 14px; gap: 10px; }
  .top-cta { padding: 8px 14px; font-size: 11px; }
  .top-logo-text { font-size: 11px; }
  .thumb-grid-3 { grid-template-columns: 1fr 1fr; }
  .thumb-grid-large { grid-template-columns: 1fr 1fr; gap: 10px; }
  .thumb-grid-large .thumb { aspect-ratio: 1 / 1; }
  .thumb-grid-large .thumb-feature { grid-column: span 2; aspect-ratio: 16 / 10; }
  #project-04 .card { max-width: 100%; }
  .apparel-grid { grid-template-columns: 1fr 1fr; }
  .apparel-grid .garment:nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
  .strip-meta { display: none; }
  .chip { gap: 8px; padding: 5px 10px 5px 6px; }
  .chip-num { font-size: 9px; padding: 3px 7px; }
  .chip-label { font-size: 10px; }
  .scroll-cue { font-size: 10px; padding-top: 24px; }
  .work-index { font-size: 12px; }
  .filter-pills { gap: 6px; }
  .pill { font-size: 11px; padding: 7px 14px; }
  .marquee-track { font-size: clamp(42px, 8vw, 64px); }
  .cursor-follower { display: none; }
}

/* ============================================================
   HERO — Eileen-style 3-column edge-to-edge layout
   ============================================================ */

#hero {
  padding: 70px 40px 50px;
  min-height: 100vh;
}
.hero-card {
  max-width: 1640px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 18px 34px 28px;
  min-height: auto;
  opacity: 1;
  transform: none;
}

/* Top nav — wordmark left + links right (Eileen-style) */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}
.hero-wordmark {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--charcoal);
}
.hero-nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 18px;
}
.hero-nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.hero-nav-links a:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Main 3-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 3fr) minmax(240px, 1fr);
  gap: 56px;
  align-items: stretch;
  min-height: 78vh;
}

/* ---------- LEFT COLUMN ---------- */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-year {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--charcoal-2);
  margin: 0 0 -6px;
  text-transform: uppercase;
}
.hero-greeting {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(64px, 7.2vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  margin: 0;
}
.hero-greeting .hero-line {
  display: block;
}
.hero-greeting em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: #FFFFFF;
}
.hero-kinetic {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal-2);
  margin: -8px 0 0;
}
.hero-kinetic .rotator {
  display: inline-block;
  min-width: 17ch;
  position: relative;
  height: 1.2em;
  vertical-align: bottom;
  overflow: visible;
  white-space: nowrap;
}
.hero-kinetic .rotator-item {
  white-space: nowrap;
}

.hero-socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
}
.hero-socials a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--charcoal-2);
  transition: color .25s, transform .25s, text-shadow .25s;
}
.hero-socials a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}
.hero-socials svg { width: 100%; height: 100%; }

.hero-skills {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-skills li {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal-2);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color .2s, padding .25s;
  cursor: default;
}
.hero-skills li:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

/* ---------- MIDDLE COLUMN ---------- */
.hero-middle {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-top: 4px;
  max-width: 720px;
}
.hero-index-grid .hero-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-index-grid .hero-item:last-child {
  border-bottom: none;
}
.hero-item h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 10px;
}
.hero-item .ix-bracket {
  font-family: var(--font-body);
  font-weight: 700;
  margin-right: 10px;
  color: #FFFFFF;
  display: inline-block;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.hero-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-item li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--charcoal-2);
}
.hero-item .ix-bullet {
  color: #FFFFFF;
  opacity: 0.55;
  font-size: 10px;
  flex-shrink: 0;
}
.hero-item a {
  color: var(--charcoal);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color .25s, border-color .25s, text-shadow .25s;
}
.hero-item a:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* Centered editorial photo at the bottom of the middle column */
.hero-portrait-wrap {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(360px, 50vh, 560px);
}
.hero-portrait {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
/* Ghibli-style diagonal panel behind the portrait — dark grey monochrome */
.hero-diagonal {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #2A2A30 0%, #1A1A20 60%, #0F0F14 100%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 4px;
  opacity: 0.85;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.portrait-hero {
  width: auto;
  max-width: 100%;
  height: clamp(360px, 46vh, 560px);
  object-fit: contain;
  object-position: center bottom;
  margin: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 26px rgba(0, 0, 0, 0.5));
}

/* ---------- RIGHT COLUMN ---------- */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: right;
}
.hero-right-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hero-status {
  margin: 0;
  font-size: 12px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-cta .arrow-diagonal {
  font-size: 14px;
  transition: transform .25s;
}
.hero-cta:hover .arrow-diagonal {
  transform: translate(3px, -2px);
}
.hero-location {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal-2);
  margin: 4px 0 0;
}
.star-mark {
  display: inline-block;
  color: #FFFFFF;
  opacity: 0.7;
  margin-right: 4px;
  font-size: 11px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.hero-right-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--charcoal-2);
}
.hero-mail {
  color: var(--charcoal-2);
  transition: color .25s, text-shadow .25s;
}
.hero-mail:hover {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.hero-copyright {
  opacity: 0.7;
}

/* Hero card-foot — slimmer prev/next strip */
#hero .card-foot {
  margin-top: 28px;
  padding-top: 18px;
}

/* Mobile fallback */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }
  .hero-index-grid { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
  .hero-right { text-align: left; }
  .hero-right-top { align-items: flex-start; }
  .hero-skills { margin-top: 16px; }
  .portrait-hero { height: clamp(320px, 50vw, 480px); }
}
@media (max-width: 760px) {
  #hero { padding: 50px 18px; }
  .hero-card { padding: 14px 12px 22px; }
  .hero-nav { gap: 12px; padding-bottom: 16px; margin-bottom: 18px; }
  .hero-nav-links { display: none; }
  .hero-greeting { font-size: clamp(52px, 14vw, 80px); }
  .hero-index-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-grid { gap: 26px; }
}

/* ============================================================
   GLOW WORDS — competence highlights with breathing pulse
   ============================================================ */
.hl {
  position: relative;
  color: #FFFFFF;
  font-weight: 700;
  font-style: italic;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(255, 255, 255, 0.18);
  animation: glow-breathe 4.2s ease-in-out infinite;
}
.hl:nth-of-type(2) { animation-delay: -0.7s; }
.hl:nth-of-type(3) { animation-delay: -1.4s; }
.hl:nth-of-type(4) { animation-delay: -2.1s; }
.hl:nth-of-type(5) { animation-delay: -2.8s; }
.hl:nth-of-type(6) { animation-delay: -3.5s; }
.hl:nth-of-type(7) { animation-delay: -1.1s; }
.hl:nth-of-type(8) { animation-delay: -2.5s; }

@keyframes glow-breathe {
  0%, 100% {
    text-shadow:
      0 0 8px  rgba(255, 255, 255, 0.45),
      0 0 18px rgba(255, 255, 255, 0.25),
      0 0 36px rgba(255, 255, 255, 0.12);
  }
  50% {
    text-shadow:
      0 0 14px rgba(255, 255, 255, 0.85),
      0 0 28px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.3);
  }
}
.competence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 28px auto 0;
}
.competence-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.competence-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 22px -6px rgba(255, 255, 255, 0.35);
}
.cp-dot {
  color: #FFFFFF;
  opacity: 0.6;
  font-size: 10px;
  transition: opacity .25s, text-shadow .25s;
}
.competence-pill:hover .cp-dot {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* ============================================================
   AVAILABLE STATUS BADGE — Eileen-style
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal-2);
}
.status-dot {
  width: 8px; height: 8px;
  background: #62F08A;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(98, 240, 138, 0.18),
    0 0 12px rgba(98, 240, 138, 0.7);
  animation: avail-pulse 2.2s ease-in-out infinite;
}
.status-emoji {
  color: var(--charcoal);
  font-weight: 600;
  margin-left: 2px;
}
@keyframes avail-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(98, 240, 138, 0.18), 0 0 12px rgba(98, 240, 138, 0.7); }
  50%      { box-shadow: 0 0 0 7px rgba(98, 240, 138, 0),    0 0 20px rgba(98, 240, 138, 0.3); }
}

/* ============================================================
   ROTATING WORD — kinetic typography
   ============================================================ */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 8ch;
  height: 1.1em;
  vertical-align: bottom;
  overflow: hidden;
}
.rotator-item {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}
.rotator-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.rotator-item.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

/* ============================================================
   WORK INDEX — Eileen-style numbered list
   ============================================================ */
.work-index {
  list-style: none;
  margin: 24px 0 32px;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.work-index li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding .25s;
}
.work-index li:hover {
  padding-left: 8px;
}
.ix-num {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--charcoal-2);
  font-feature-settings: "tnum" 1;
}
.work-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  transition: color .25s, text-shadow .25s;
}
.work-index a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}
.ix-bullet {
  font-size: 10px;
  color: #FFFFFF;
  opacity: 0.55;
  transition: opacity .25s, text-shadow .25s;
}
.work-index a:hover .ix-bullet {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.ix-meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--charcoal-2);
  margin-left: 4px;
}

/* ============================================================
   FILTER TOGGLE PILLS — Design Studio
   ============================================================ */
.filter-pills {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin: 4px auto 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  position: relative;
  z-index: 2;
  align-self: center;
}
.pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal-2);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s, text-shadow .25s;
}
.pill:hover {
  color: var(--charcoal);
}
.pill.is-active {
  color: #0A0A0B;
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 24px -4px rgba(255, 255, 255, 0.6),
    0 0 60px -10px rgba(255, 255, 255, 0.4);
  text-shadow: none;
}

/* Filter visibility — when filter applied, hide the other set */
#project-04[data-filter="composites"] .apparel-strip      { display: none; }
#project-04[data-filter="apparel"]    .composite-gallery .thumb-grid,
#project-04[data-filter="apparel"]    .composite-gallery .strip-head { display: none; }

/* ============================================================
   MARQUEE STRIP — kinetic typography
   ============================================================ */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 28px 0;
  background: transparent;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bone), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bone), transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  color: var(--charcoal);
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}
.marquee-item em {
  font-style: normal;
  color: #FFFFFF;
  opacity: 0.45;
  font-size: 0.5em;
  margin-left: 24px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Cursor follower removed — using native cursor for best scroll performance. */
