/* ===================================================================
   Myra Orgain Portfolio — Design System v2
   Editorial / Dark / Technical
   =================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Custom Properties — Dark Mode (Default) ───────────────────── */
:root {
  /* Colors */
  --color-bg:         #0A0A0A;
  --color-surface:    #141414;
  --color-surface-2:  #1C1C1C;
  --color-text:       #E8E6E1;
  --color-text-muted: #8A8A8A;   /* 6.22:1 on #0A0A0A ✓ WCAG AA */
  --color-text-dim:   #767676;   /* 4.81:1 on #0A0A0A ✓ WCAG AA */
  --color-border:     rgba(255,255,255,0.06);
  --color-nav-bg:     rgba(10,10,10,0.72);
  --color-accent:     #E04B2A;
  --color-accent-soft: rgba(224,75,42,0.14);

  /* Case study accent colors */
  --accent-vista:      #C94C35;
  --accent-apple:      #E8A4A4;
  --accent-referral:   #2A7A5E;
  --accent-health:     #1A2B4A;
  --accent-telehealth: #3A8EC4;
  --accent-infinitus:  #6366F1;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 780px;
  --nav-height: 84px; /* 58px pill height + 26px top float gap */

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Light Mode Override ────────────────────────────────────────── */
[data-theme="light"] {
  --color-bg:         #F5F4F0;
  --color-surface:    #FFFFFF;
  --color-surface-2:  #EDEDEA;
  --color-text:       #1A1A1A;
  --color-text-muted: #6B6B6B;   /* 5.26:1 on #F5F4F0 ✓ WCAG AA */
  --color-text-dim:   #6B6B6B;   /* 5.26:1 on #F5F4F0 ✓ WCAG AA */
  --color-border:     rgba(0,0,0,0.08);
  --color-nav-bg:     rgba(245,244,240,0.88);
  --color-accent:     #D63E1E;
  --color-accent-soft: rgba(214,62,30,0.10);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; } /* belt-and-suspenders: no top gap behind fixed nav */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ── Text selection ─────────────────────────────────────────────── */
/* Light mode: white knockout on vermillion — 5.83:1 contrast       */
::selection {
  background-color: #D63E1E;
  color: #FFFFFF;
}
/* Dark mode: dark knockout on lighter vermillion — 6.28:1 contrast */
[data-theme="dark"] ::selection {
  background-color: #E8623D;
  color: #1A1A1A;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  cursor: none;
  line-height: 1.6;
  transition: background-color 300ms ease, color 300ms ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Bottom scroll-blur ─────────────────────────────────────────── */
#scroll-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 90%);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 90%);
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.2s ease;
  /* Force GPU compositing layer — prevents backdrop-filter repaint glitch on scroll */
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

/* ── Grain Texture Overlay ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
[data-theme="light"] body::after { opacity: 0.018; }

/* ── Accessibility ──────────────────────────────────────────────── */
/* Skip to main content link — visually hidden until keyboard focus */
.skip-link {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  overflow: visible;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
}

/* Keyboard focus ring — visible, on-brand */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove focus ring for mouse/touch users */
:focus:not(:focus-visible) { outline: none; }

/* ── Global Nav — floating pill ─────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  /* 3-column grid: equal flanks ensure links are truly centred */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 58px;
  width: clamp(340px, 38vw, 500px);
  padding: 0 var(--space-6);
  border-radius: 999px;
  background: var(--color-nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.site-nav__logo {
  justify-self: start; /* anchors in left 1fr column */
  display: flex;
  align-items: center;
  color: var(--color-text);
}
.site-nav__logo img {
  width: 28px;
  height: 28px;
}
.site-nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-6);
  padding: 0;
  margin: 0;
}
.site-nav__links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.site-nav__links a:hover,
.site-nav__links a.active { color: var(--color-text); }

/* ── Theme Toggle Button ────────────────────────────────────────── */
.theme-toggle {
  justify-self: end; /* anchors in right 1fr column */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background-color var(--transition);
  line-height: 0;
}
.theme-toggle:hover { background: var(--color-accent-soft); }
.theme-toggle:hover { color: var(--color-text); }
.theme-toggle svg { display: block; width: 20px; height: 20px; }
.site-nav__mark { width: 22px; height: 22px; }

/* Light mode is default — show moon (click to go dark) */
html .theme-toggle__sun  { display: none; }
html .theme-toggle__moon { display: block; }
/* In dark mode — show sun (click to go light) */
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun  { display: block; }

/* ── Layout Utilities ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}
.page-top { padding-top: var(--nav-height); }

/* ── Section Label (01 — SELECTED WORK) ─────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.section-label__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}
.section-label__text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Homepage Hero ──────────────────────────────────────────────── */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--nav-height) var(--space-8) var(--space-16);
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(245,244,240,0.78), rgba(245,244,240,0.78)),
    url('../assets/images/BG_MO_full.png');
  background-size: cover, max(162vw, 160vh);
  background-position: center center, center top;
  background-repeat: no-repeat, no-repeat;
}
[data-theme="dark"] .home-hero {
  background-image:
    linear-gradient(rgba(10,10,10,0.72), rgba(10,10,10,0.72)),
    url('../assets/images/BG_MO_full.png');
  background-size: cover, max(162vw, 160vh);
  background-position: center center, center top;
}
/* Fade hero into page background at bottom */
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 1; /* above scanlines (::before), below content (z-index via stacking) */
}
.home-hero__inner {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* On washed photo background, use near-black for guaranteed contrast */
  color: #1A1A1A; /* 16.8:1 on #F5F4F0, 10.3:1 on worst-case washed photo bg ✓ */
  margin-bottom: clamp(4rem, 15vh, 15rem);
}
[data-theme="dark"] .home-hero__eyebrow {
  color: #E8E6E1; /* 6.3:1 on worst-case bright dot area (72% wash) ✓ WCAG AA */
}
.hero-name {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 700;
}

.home-hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: clamp(4rem, 15vh, 15rem);
  position: relative;
}
.home-hero__line-1 {
  display: block;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.02em;
}
.home-hero__headline em {
  display: inline-block;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  font-style: normal;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.home-hero__sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #1A1A1A; /* 16.8:1 on #F5F4F0, 10.3:1 on worst-case washed photo bg ✓ */
  max-width: min(100%, 64rem);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .home-hero__sub {
  color: #E8E6E1; /* 6.3:1 on worst-case bright dot area (72% wash) ✓ WCAG AA */
}
/* ── Featured Projects — full-page scroll-snap ───────────────────── */
.featured-section {
  padding: 0;
}
.featured-snap-item {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + var(--space-4)) var(--space-8) var(--space-8);
  max-width: calc(var(--max-width) + var(--space-16));
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.featured-snap-item__header {
  flex-shrink: 0;
  margin-bottom: var(--space-5);
}
/* Disable the default section-label bottom margin inside snap header */
.featured-snap-item__header .section-label {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.featured-snap-item .featured-card {
  flex: 1;
  min-height: 0; /* critical for flex shrink */
  aspect-ratio: unset;
  border-radius: 20px;
}
/* Blown-up typography inside snap cards */
.featured-snap-item .featured-card__title {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  letter-spacing: -0.02em;
}
.featured-snap-item .featured-card__subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
}
.featured-snap-item .featured-card__overlay {
  padding: var(--space-10) var(--space-10);
}
.featured-snap-item .featured-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
/* Larger glow on the snap-size Infinitus card */
.featured-snap-item .card--infinitus-glow {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
}
.featured-snap-item .card--referral-tint {
  background: rgba(255,242,238,0.08);
}
.featured-snap-item .card--infinitus .featured-card__subtitle,
.featured-snap-item .card--referral .featured-card__subtitle {
  color: rgba(26,5,0,0.65);
}

.featured-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-slow), border-color var(--transition);
}
.featured-card:hover {
  transform: scale(1.01);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="light"] .featured-card:hover {
  border-color: rgba(0,0,0,0.15);
}
.featured-card__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.featured-card:hover .featured-card__image {
  transform: scale(1.04);
}
.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.08) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
}
.featured-card__num {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 500;
  z-index: 5;
}
.featured-card__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-2);
}
.featured-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.featured-card__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
}
.featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.featured-card:hover .featured-card__cta { color: #fff; }
.featured-card__cta svg {
  width: 14px; height: 14px;
  transition: transform var(--transition);
}
.featured-card:hover .featured-card__cta svg { transform: translateX(3px); }

/* Infinitus card variant — light vermillion */
.card--infinitus {
  background: linear-gradient(135deg, #FFF2EE 0%, #FAD4C4 55%, #F5A890 100%);
}
.card--infinitus-glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,75,42,0.15) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}
.card--infinitus .featured-card__image {
  object-fit: contain;
  object-position: center 18%;
}

/* Referral Scheduling card variant — light vermillion */
.card--referral {
  background: #FFF2EE;
}
.card--referral-tint {
  position: absolute;
  inset: 0;
  background: rgba(255,242,238,0.08);
  z-index: 1;
  pointer-events: none;
}
.card--referral .featured-card__image {
  opacity: 1;
  z-index: 2;
  object-fit: contain;
  object-position: center 18%;
}
.card--referral .featured-card__overlay { z-index: 3; }

/* Shared light overlay for text readability */
.card--infinitus .featured-card__overlay,
.card--referral .featured-card__overlay {
  background: linear-gradient(
    to top,
    rgba(255,242,238,0.96) 0%,
    rgba(255,242,238,0.60) 45%,
    rgba(255,242,238,0) 72%
  );
}

/* WCAG AA text colors for light cards — all values verified ≥ 4.5:1 */
.card--infinitus .featured-card__num,
.card--referral .featured-card__num {
  color: #B33A1E;
}
.card--infinitus .featured-card__label,
.card--referral .featured-card__label {
  color: #5A2218;
}
.card--infinitus .featured-card__title,
.card--referral .featured-card__title {
  color: #1A0500;
}
.card--infinitus .featured-card__subtitle,
.card--referral .featured-card__subtitle {
  color: rgba(26,5,0,0.65);
}
.card--infinitus .featured-card__cta,
.card--referral .featured-card__cta {
  color: #5A2218;
}
.card--infinitus:hover .featured-card__cta,
.card--referral:hover .featured-card__cta {
  color: #1A0500;
}
/* Lock badge — dark treatment on light cards */
.card--infinitus .cs-lock-badge,
.card--referral .cs-lock-badge {
  background: rgba(26,5,0,0.07);
  border-color: rgba(26,5,0,0.15);
  color: rgba(26,5,0,0.6);
}

/* ── Archive List ───────────────────────────────────────────────── */
.archive-section {
  padding: var(--space-16) 0 var(--space-24);
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-item {
  border-top: 1px solid var(--color-border);
}
.archive-item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.archive-link {
  display: grid;
  grid-template-columns: 120px 1fr 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-2);
  transition: background-color var(--transition), padding-left var(--transition);
}
.archive-link:hover {
  background: var(--color-accent-soft);
  padding-left: var(--space-4);
}
.archive-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}
.archive-project {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.archive-role {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 300;
}
.archive-arrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  transition: color var(--transition), transform var(--transition);
}
.archive-link:hover .archive-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .archive-link {
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-3);
  }
  .archive-role { display: none; }
}

/* ── Case Study Layout ──────────────────────────────────────────── */
.cs-hero {
  padding: calc(var(--nav-height) + var(--space-16)) 0 0;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  /* Scanline texture matching homepage editorial style */
}
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.018) 2px,
    rgba(255,255,255,0.018) 4px
  );
  pointer-events: none;
  z-index: 0;
}
.cs-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
}
.cs-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cs-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--space-8) var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.cs-hero__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.75); /* ~5.7:1 on dark overlays used in cs-hero */
}
.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.cs-hero__overview {
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 640px;
  opacity: 0.85;
  font-weight: 300;
}

/* ── Sticky Case Study Nav ──────────────────────────────────────── */
.cs-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.cs-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  gap: var(--space-8);
}
.cs-nav__link {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cs-nav__link:hover { color: var(--color-text); }
.cs-nav__link.active {
  color: var(--color-text);
  border-bottom-color: currentColor;
}

/* ── Case Study Sections ────────────────────────────────────────── */
.cs-section {
  padding: var(--space-20) 0;
}
.cs-section + .cs-section {
  border-top: 1px solid var(--color-border);
}
.cs-section--solution {
  background: var(--color-surface);
}
.cs-section__header {
  margin-bottom: var(--space-12);
}
.cs-section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.cs-section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Meta grid ────────────────────────────────────────────────── */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-8) 0 var(--space-16);
}
.cs-meta__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.cs-meta__value {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Impact Stats ───────────────────────────────────────────────── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  margin: var(--space-12) 0;
}
.cs-stat {
  padding: var(--space-6);
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.cs-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.cs-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Image blocks ───────────────────────────────────────────────── */
.cs-image {
  border-radius: 8px;
  overflow: hidden;
  margin: var(--space-8) 0;
}
.cs-image img { width: 100%; }
.cs-image__caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.cs-image-grid {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.cs-image-grid--2 { grid-template-columns: 1fr 1fr; }
.cs-image-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .cs-image-grid--2,
  .cs-image-grid--3 { grid-template-columns: 1fr; }
}
.cs-image-grid .cs-image { margin: 0; }

/* ── Body copy ──────────────────────────────────────────────────── */
.cs-body {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 300;
}
.cs-body p + p { margin-top: var(--space-4); }
.cs-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-10) 0 var(--space-4);
}
.cs-body ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin: var(--space-4) 0;
}
.cs-body ul li { margin-bottom: var(--space-2); }
.cs-body blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ── Process steps ──────────────────────────────────────────────── */
.cs-process-steps {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  flex-wrap: wrap;
}
.cs-process-step {
  flex: 1;
  min-width: 120px;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  letter-spacing: 0.02em;
}
.cs-process-step::after {
  content: '→';
  position: absolute;
  right: calc(-1 * var(--space-4));
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.cs-process-step:last-child::after { display: none; }

/* ── About Page ─────────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-16) 0 clamp(100px, 140px, 160px);
  border-top: 1px solid var(--color-border);
}
.site-footer--minimal {
  padding: var(--space-10) 0 320px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-footer__copyright {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-dim);
  text-align: center;
  width: 100%;
}
.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.site-footer__contact a {
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}
.site-footer__contact a:hover { color: var(--color-accent); }
.site-footer__sep { color: var(--color-text-dim); }

.site-footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* ── Footer tagline ──────────────────────────────────────────────── */
.footer-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.footer-tagline__great {
  font-weight: 700;
  color: var(--color-accent);
}

/* ── Book a time button ──────────────────────────────────────────── */
.btn-book {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45em 1.1em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-book svg {
  color: var(--color-accent);
  flex-shrink: 0;
  transition: color var(--transition);
}
.btn-book:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-accent-soft);
}

/* ── Booking modal (Cal.com) ─────────────────────────────────────── */
#booking-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: var(--space-4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}
#booking-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Close button floats above the modal, top-right corner */
.booking-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10002;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
[data-theme="light"] .booking-modal__close {
  border-color: rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.72);
  color: rgba(0,0,0,0.56);
}
.booking-modal__close:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
/* Panel: transparent shell — Cal.com's card provides all visual styling */
.booking-modal__panel {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  width: min(900px, 100%);
  /* Height clips the Cal.com "Powered by" footer that sits below the card */
  height: min(560px, calc(90vh - 2rem));
  transform: translateY(16px);
  transition: transform 280ms cubic-bezier(0.25,0.46,0.45,0.94);
}
#booking-modal[aria-hidden="false"] .booking-modal__panel {
  transform: translateY(0);
}
/* Cal.com iframe */
#cal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
body.modal-open { overflow: hidden; }

/* ── Floating Action Button ──────────────────────────────────────── */
.fab-book {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  /* Hidden on init — JS adds fab--visible */
  opacity: 0;
  transition:
    opacity 450ms ease,
    transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color var(--transition),
    color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
[data-theme="light"] .fab-book {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 8px 32px rgba(0,0,0,0.10),
    0 24px 64px rgba(0,0,0,0.07);
}
.fab-book.fab--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Docking: slides down as if dropping into the footer */
.fab-book.fab--docking {
  opacity: 0;
  transform: translateX(-50%) translateY(56px) scale(0.88);
  pointer-events: none;
}
.fab-book svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.fab-book:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-accent-soft);
  box-shadow: 0 6px 32px rgba(224,75,42,0.18);
}
/* Ripple pulse — fires once via JS */
@keyframes fab-pulse {
  0%   { box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 0   rgba(224,75,42,0.45); }
  60%  { box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 22px rgba(224,75,42,0);   }
  100% { box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 0   rgba(224,75,42,0);   }
}
@keyframes fab-pulse-light {
  0%   { box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.10), 0 24px 64px rgba(0,0,0,0.07), 0 0 0 0   rgba(224,75,42,0.35); }
  60%  { box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.10), 0 24px 64px rgba(0,0,0,0.07), 0 0 0 26px rgba(224,75,42,0);   }
  100% { box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.10), 0 24px 64px rgba(0,0,0,0.07), 0 0 0 0   rgba(224,75,42,0);   }
}
.fab-book.fab--pulse {
  animation: fab-pulse 1.3s ease-out;
}
[data-theme="light"] .fab-book.fab--pulse {
  animation: fab-pulse-light 1.3s ease-out;
}
/* Footer btn hidden while FAB is active; shown when footer is in view */
body.fab-active .btn-book {
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}
body.fab-active.footer--in-view .btn-book {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mini Audio Player ───────────────────────────────────────────── */
#mini-player {
  position: fixed;
  top: 18px;
  right: 8px;
  bottom: auto;
  left: auto;
  z-index: 600;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  /* Glassmorphic — more transparent than the nav so blur shows through.
     Dark mode default; light mode override below. */
  background: rgba(12, 12, 12, 0.52);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 8px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.34,1.56,0.64,1);
  max-width: calc(100vw - 32px);
}
/* Mini player position at narrow viewports is handled entirely by JS (positionMiniPlayer) */
@media (max-width: 1200px) {
  #mini-player { max-width: calc(100vw - 24px); }
}
[data-theme="light"] #mini-player {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
#mini-player.mini-player--visible {
  opacity: 1;
  transform: translateY(0);
}
.mini-player__art {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mini-player__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 180px;
}
.mini-player__track {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player__artist {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player__btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.mini-player__btn:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.mini-player__close {
  opacity: 0.6;
}
.mini-player__close:hover { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .site-nav {
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 0 var(--space-4);
    height: 52px;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-nav__links { gap: var(--space-4); }
  .site-nav__links a { font-size: 0.72rem; }

  /* Layout */
  .container { padding: 0 var(--space-4); }
  .content-width { padding: 0 var(--space-4); }

  /* Hero */
  .home-hero {
    padding: var(--nav-height) var(--space-4) var(--space-16);
  }
  .home-hero__eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; }
  .home-hero__line-1  { font-size: clamp(2.6rem, 9vw, 4rem); }
  .home-hero__headline em { font-size: clamp(2.6rem, 9vw, 4rem); }
  .home-hero__sub     { font-size: 0.9rem; }

  /* Featured grid */
  .featured-grid { grid-template-columns: 1fr; }

  /* Archive */
  .archive-link {
    grid-template-columns: 72px 1fr auto;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-2);
  }
  .archive-role { display: none; }
  .archive-project { font-size: var(--text-base); }

  /* Case studies */
  .cs-hero__content { padding: var(--space-12) var(--space-4) var(--space-8); }
  .cs-nav__inner    { padding: 0 var(--space-4); gap: var(--space-4); overflow-x: auto; }
  .cs-nav__link     { white-space: nowrap; font-size: 0.7rem; }
  .cs-section       { padding: var(--space-12) 0; }
  .cs-stats         { grid-template-columns: 1fr 1fr; }
  .cs-meta          { grid-template-columns: 1fr 1fr; }
  .cs-image-grid--2,
  .cs-image-grid--3 { grid-template-columns: 1fr; }
  .cs-body          { font-size: var(--text-base); }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-hero { padding-top: calc(var(--nav-height) + var(--space-12)); }

  /* Footer */
  .site-footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer__contact { justify-content: center; flex-wrap: wrap; }
  .site-footer__right { flex-direction: column; gap: var(--space-3); align-items: center; }
  .footer-tagline { text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-nav__links a[href*="mailto"] { display: none; } /* hide Contact on very small screens */
  .home-hero__eyebrow { font-size: 0.72rem; }
  .home-hero__line-1,
  .home-hero__headline em { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .cs-stats { grid-template-columns: 1fr; }
  .archive-link { grid-template-columns: 64px 1fr auto; }
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up--delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up--delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up--delay-3 { animation-delay: 0.35s; opacity: 0; }
.fade-up--delay-4 { animation-delay: 0.5s; opacity: 0; }

/* ── Glitch effect ───────────────────────────────────────────────── */
@keyframes glitch-skew {
  0%   { clip-path: inset(0 0 95% 0); transform: skew(-4deg); opacity: 0.9; }
  20%  { clip-path: inset(40% 0 40% 0); transform: skew(3deg); opacity: 0.8; }
  40%  { clip-path: inset(75% 0 5% 0); transform: skew(-2deg); opacity: 0.9; }
  60%  { clip-path: inset(10% 0 70% 0); transform: skew(4deg); opacity: 0.7; }
  80%  { clip-path: inset(50% 0 30% 0); transform: skew(-3deg); opacity: 0.9; }
  100% { clip-path: inset(0 0 95% 0); transform: skew(0); opacity: 1; }
}

.glitch-active::before,
.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  pointer-events: none;
}
.glitch-active::before {
  color: rgba(200, 85, 58, 0.7);
  animation: glitch-skew 0.18s steps(2) forwards;
  left: 2px;
}
.glitch-active::after {
  color: rgba(99, 102, 241, 0.6);
  animation: glitch-skew 0.18s steps(2) reverse forwards;
  left: -2px;
}

/* ── Scanline overlay on hero ────────────────────────────────────── */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255,255,255,0.07) 3px,
    rgba(255,255,255,0.07) 4px
  );
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .home-hero::before {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
}
.home-hero__inner { position: relative; z-index: 2; } /* above ::after fade overlay */

/* ── Portrait / Cortana Glow Effect ────────────────────────────── */
.portrait-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 2px;
  line-height: 0;
}

.portrait-img {
  display: block;
  width: 100%;
  filter: grayscale(1) contrast(1.15) brightness(0.82);
  mix-blend-mode: luminosity;
}

/* Atmospheric red glow overlay */
.portrait-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 15%, rgba(200,85,58,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 85%, rgba(200,85,58,0.18) 0%, transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Scanline texture */
.portrait-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.10) 2px,
    rgba(0,0,0,0.10) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Animated scan sweep */
.portrait-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(200,85,58,0.7) 40%, rgba(200,85,58,0.9) 50%, rgba(200,85,58,0.7) 60%, transparent 100%);
  animation: scan-sweep 5s linear infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes scan-sweep {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* Corner bracket marks */
.portrait-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(200,85,58,0.65);
  border-style: solid;
  z-index: 4;
  pointer-events: none;
}
.portrait-corner--tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.portrait-corner--tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.portrait-corner--bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.portrait-corner--br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

/* Label bar at bottom */
.portrait-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,85,58,0.7);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

/* ── Blob portrait shape ─────────────────────────────────────────── */
.portrait-blob {
  overflow: hidden;
  animation: blob-morph 9s ease-in-out infinite;
  will-change: border-radius;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  20%       { border-radius: 44% 56% 30% 70% / 50% 60% 40% 50%; }
  40%       { border-radius: 30% 70% 55% 45% / 40% 30% 70% 60%; }
  60%       { border-radius: 55% 45% 70% 30% / 60% 55% 45% 40%; }
  80%       { border-radius: 38% 62% 40% 60% / 50% 38% 62% 50%; }
}

/* ── Anglerfish / headpiece photo ────────────────────────────────── */
.headpiece-frame {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
}
.headpiece-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%; /* crop to show headpiece, cut body */
  filter: grayscale(1) contrast(1.08);
  display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.headpiece-frame:hover img { transform: scale(1.04); }

/* ── Nav logo mark ───────────────────────────────────────────────── */
.site-nav__mark {
  color: var(--color-accent);
  transition: opacity var(--transition);
  display: block;
}
.site-nav__logo:hover .site-nav__mark {
  opacity: 0.75;
}
