/* ============================================================
   Madhubanti Mukherjee — Artist Portfolio
   Design tokens per AGENTS.md · Motion per ANIMATION_MOTION_GUIDE.md
   ============================================================ */

:root {
  --color-cinematic-black: #0F0A08;
  --color-warm-black: #1A1310;
  --color-deep-burgundy: #4A1116;
  --color-wine-maroon: #6E1F2B;
  --color-matte-gold: #C9A961;
  --color-warm-gold: #D4B26C;
  --color-headline-ivory: #F2E8D5;
  --color-soft-ivory: #E7D8BE;
  --color-muted-gray-cream: #A8A099;
  --color-charcoal-gray: #2E2A28;
  --color-muted-olive: #6F7155;

  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'DM Sans', -apple-system, sans-serif;

  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 300ms;
  --dur-text: 700ms;
  --dur-section: 1000ms;
  --dur-bloom: 2200ms;

  --max-width: 1360px;
  --essay-width: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-cinematic-black);
  color: var(--color-soft-ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--color-wine-maroon); color: var(--color-headline-ivory); }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-headline-ivory);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { color: var(--color-muted-gray-cream); max-width: 68ch; }

a { color: var(--color-matte-gold); text-decoration: none; transition: color var(--dur-hover) var(--ease-cinematic); }
a:hover { color: var(--color-warm-gold); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.essay { max-width: var(--essay-width); margin: 0 auto; }

section { padding: clamp(72px, 10vw, 150px) 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--color-matte-gold); color: var(--color-cinematic-black);
  padding: 10px 18px; font-size: 0.85rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(15,10,8,0.92), rgba(15,10,8,0));
  transition: background var(--dur-hover) var(--ease-cinematic);
}
.site-nav.scrolled {
  background: rgba(15,10,8,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,97,0.14);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--color-headline-ivory);
  display: flex; align-items: center; gap: 12px;
}
.brand-logo { height: 52px; width: auto; display: block; }
.footer-logo { height: 108px; }
/* Brand crop windows are sized inline by MM.logoMark()/MM.signature()
   from measured source coordinates — no fixed sizes here. */
.site-nav .nav-brand { gap: 16px; flex: none; }
.site-nav .nav-links { flex: none; }
/* The condensed hub nav leaves ample room, so the signature can stay far
   longer than the old ten-link bar allowed — hide it only on small phones
   where the top bar (emblem + signature + hamburger) would actually crowd. */
@media (max-width: 600px) {
  .site-nav .signature-wrap { display: none !important; }
}
.brand-signature { display: block; filter: brightness(1.1); }
.signature-text {
  font-family: 'Alex Brush', 'Cormorant Garamond', cursive;
  color: var(--color-warm-gold);
  line-height: 1; white-space: nowrap;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Gallery wall presentation: slim shining gold frame ---------- */
.frame-classic {
  position: relative; overflow: hidden;
  background: #060403;                       /* slim dark mat */
  padding: clamp(8px, 3%, 14px);
  border: 3px solid transparent;             /* sleek, minimal gold */
  border-image: linear-gradient(135deg, #7c5f2c, #e8cd8d 30%, #a8834a 52%, #f0d9a0 74%, #7c5f2c) 1;
  box-shadow: 0 16px 38px rgba(0,0,0,0.55);
  transition: box-shadow 800ms var(--ease-cinematic);
}
.frame-classic img {
  display: block; width: 100%;
  border: 1px solid rgba(201,169,97,0.4);
  transition: filter 900ms var(--ease-cinematic);
}
/* the beam of light that sweeps across on hover */
.frame-classic .sheen {
  position: absolute; top: -60%; left: -30%;
  width: 55%; height: 220%;
  transform: rotate(22deg) translateX(-220%);
  background: linear-gradient(90deg,
    transparent, rgba(255,241,205,0.16) 30%,
    rgba(255,251,235,0.32) 50%,
    rgba(255,241,205,0.14) 70%, transparent);
  opacity: 0; pointer-events: none;
  transition: transform 1500ms var(--ease-cinematic), opacity 400ms ease;
}
/* Apple-dock style magnification: organic grow over neighbours, smooth
   spring-like return. figure.* specificity beats the .reveal.visible
   transform that would otherwise override the hover state. */
figure.archive-card {
  cursor: zoom-in;
  position: relative; z-index: 1;
  transition: opacity var(--dur-section) var(--ease-cinematic),
              transform 550ms cubic-bezier(0.34, 1.25, 0.5, 1);
  will-change: transform;
}
figure.archive-card:hover {
  transform: translateY(-6px) scale(1.05) !important;
  z-index: 10;                                /* rises above its neighbours */
}
figure.archive-card:hover .frame-classic {
  box-shadow: 0 28px 64px rgba(0,0,0,0.68), 0 0 46px rgba(212,178,108,0.25);
}
.archive-card:hover .frame-classic img { filter: brightness(1.1) contrast(1.03); }
.archive-card:hover .sheen { transform: rotate(22deg) translateX(340%); opacity: 1; }

/* Museum-wall column layout: tight, ordered, max three across */
.masonry { columns: 3; column-gap: clamp(26px, 3vw, 44px); }
.masonry > figure { break-inside: avoid; margin: 0 0 clamp(26px, 3vw, 44px); }
@media (max-width: 1080px) { .masonry { columns: 2; } }
@media (max-width: 680px)  { .masonry { columns: 1; } }
.nav-brand .monogram { color: var(--color-matte-gold); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-muted-gray-cream);
  padding-bottom: 4px; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-matte-gold);
  transition: width var(--dur-hover) var(--ease-cinematic);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-headline-ivory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
/* explicit Home only appears in the full-screen mobile menu */
.nav-links .mobile-only { display: none; }

/* ---------- Learning dropdown (course pages on GoldBrush Academy) ---------- */
.nav-links li { position: relative; }
.nav-links .caret { font-size: 0.6rem; color: var(--color-matte-gold); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 10px);
  min-width: 300px; list-style: none; padding: 10px 0;
  background: rgba(15,10,8,0.97); backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,97,0.28);
  box-shadow: 0 24px 54px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 350ms var(--ease-cinematic), transform 350ms var(--ease-cinematic), visibility 0s 350ms;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 350ms var(--ease-cinematic), transform 350ms var(--ease-cinematic), visibility 0s;
}
/* the rightmost hub opens toward the left so its panel never clips the edge */
.has-sub.align-right .sub-menu { left: auto; right: 0; transform: translate(0, 10px); }
.has-sub.align-right:hover .sub-menu, .has-sub.align-right:focus-within .sub-menu { transform: translate(0, 0); }
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block; padding: 11px 22px;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: none;
  color: var(--color-muted-gray-cream); white-space: nowrap;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { color: var(--color-warm-gold); background: rgba(201,169,97,0.08); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--color-headline-ivory); font-size: 1.5rem; line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 210; }
  .nav-links .mobile-only { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(15,10,8,0.98);
    flex-direction: column; justify-content: flex-start; align-items: center;
    gap: 4px; padding: 92px 20px 48px; overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity 400ms var(--ease-cinematic);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links a { font-size: 1.05rem; padding: 9px 0; display: inline-block; }
  .nav-links .caret { transition: transform 300ms var(--ease-cinematic); }
  .has-sub.open > a .caret { transform: rotate(180deg); }
  /* each hub becomes a collapsible accordion panel — collapsed until tapped,
     so the mobile menu stays short even with several hubs */
  .sub-menu, .has-sub.align-right .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    left: auto; right: auto;
    min-width: 0; border: none; box-shadow: none; background: transparent;
    max-height: 0; overflow: hidden; padding: 0; text-align: center;
    transition: max-height 400ms var(--ease-cinematic);
  }
  .has-sub.open .sub-menu { max-height: 60vh; padding: 2px 0 12px; }
  .sub-menu a { font-size: 0.85rem; padding: 8px 0; color: var(--color-warm-gold); }
}

/* ---------- Buttons (finesse layer: tactile 3D, art-led) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--color-matte-gold);
  color: var(--color-matte-gold);
  background: transparent;
  cursor: pointer;
  /* explicit properties (not `all`) so transform can be lifted smoothly */
  transition: transform var(--dur-hover) var(--ease-cinematic),
              color var(--dur-hover) var(--ease-cinematic),
              background var(--dur-hover) var(--ease-cinematic),
              border-color var(--dur-hover) var(--ease-cinematic),
              box-shadow var(--dur-hover) var(--ease-cinematic);
}
.btn:hover {
  color: var(--color-cinematic-black);
  background: var(--color-matte-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(201,169,97,0.5), 0 0 34px rgba(201,169,97,0.22);
}
.btn:active { transform: translateY(0); }

/* Solid gold — pressable, dimensional */
.btn.solid {
  border: none;
  color: #251706; font-weight: 600;
  background: linear-gradient(135deg, #ecd291 0%, #cca960 48%, #b68d43 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 5px rgba(120,80,20,0.35),
    0 9px 22px -8px rgba(201,169,97,0.55),
    0 3px 7px rgba(0,0,0,0.42);
}
.btn.solid:hover {
  color: #251706;
  background: linear-gradient(135deg, #f2dca0 0%, #d4b26c 48%, #bd934a 100%);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 16px 34px -8px rgba(201,169,97,0.6),
    0 5px 12px rgba(0,0,0,0.45);
}
.btn.solid:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow:
    inset 0 2px 6px rgba(120,80,20,0.5),
    0 4px 10px -4px rgba(201,169,97,0.4);
}

/* Quiet ghost — frosted glass depth */
.btn.quiet {
  border: 1px solid rgba(201,169,97,0.35);
  color: var(--color-matte-gold);
  background: linear-gradient(160deg, rgba(42,31,24,0.5), rgba(20,14,10,0.35));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,240,210,0.08),
    0 8px 20px -12px rgba(0,0,0,0.75);
}
.btn.quiet:hover {
  color: var(--color-headline-ivory);
  background: rgba(201,169,97,0.12);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,240,210,0.16),
    0 14px 28px -12px rgba(0,0,0,0.75),
    0 0 26px -8px rgba(201,169,97,0.32);
}
.btn.quiet:active { transform: translateY(-1px); }

/* ---------- Section labels & dividers ---------- */
.section-label {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-matte-gold);
  display: block; margin-bottom: 18px;
}
.gold-line {
  height: 1px; width: 72px; background: var(--color-matte-gold);
  margin: 26px 0; transform-origin: left;
}
.center .gold-line { margin-left: auto; margin-right: auto; transform-origin: center; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--color-headline-ivory);
  line-height: 1.5;
  max-width: 850px;
}

/* ---------- Reveal-on-scroll motion ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-section) var(--ease-cinematic),
              transform var(--dur-section) var(--ease-cinematic);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 120ms; }
.reveal.d2 { transition-delay: 260ms; }
.reveal.d3 { transition-delay: 420ms; }

.reveal-line {
  opacity: 0; transform: scaleX(0);
  transition: opacity 800ms var(--ease-cinematic), transform 800ms var(--ease-cinematic);
}
.reveal-line.visible { opacity: 1; transform: scaleX(1); }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute; inset: -4%;
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  filter: blur(18px) brightness(0.72);
  transform: scale(1.08);
  transition: filter 3400ms var(--ease-cinematic), transform 3800ms var(--ease-cinematic);
}
.hero.revealed .hero-media img { filter: blur(0) brightness(0.82); transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,10,8,0.94) 0%, rgba(15,10,8,0.42) 38%, rgba(15,10,8,0.18) 62%, rgba(15,10,8,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 clamp(20px, 4vw, 56px) clamp(72px, 10vh, 130px);
  max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero-content h1 {
  max-width: 820px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 4px 28px rgba(0,0,0,0.75), 0 8px 60px rgba(0,0,0,0.6);
}
.hero-sub {
  margin-top: 22px; max-width: 620px;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--color-soft-ivory);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 3px 22px rgba(0,0,0,0.75);
}
.hero-content .section-label { text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
.hero-ctas { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-caption {
  position: absolute; right: clamp(20px, 4vw, 56px); bottom: 26px; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242,232,213,0.55);
}

/* ---------- Artwork cards ---------- */
.artwork-grid {
  display: grid; gap: clamp(24px, 3vw, 44px);
  grid-template-columns: repeat(3, 1fr);   /* never more than three in a row */
}
@media (max-width: 1020px) { .artwork-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .artwork-grid { grid-template-columns: 1fr; } }
.artwork-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--color-warm-black);
  border: 1px solid rgba(201,169,97,0.1);
  display: block;
}
.artwork-card .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.artwork-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease-cinematic), filter 800ms var(--ease-cinematic);
}
.artwork-card:hover img { transform: scale(1.035); filter: contrast(1.06) brightness(1.04); }
.artwork-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,10,8,0.85), transparent 55%);
  opacity: 0.65; transition: opacity var(--dur-hover) var(--ease-cinematic);
}
.artwork-card:hover .card-overlay { opacity: 0.95; }
.artwork-card .card-info {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2;
}
.artwork-card .card-info h3 { font-size: 1.25rem; }
.artwork-card .card-info .meta {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted-gray-cream); margin-top: 5px;
}
.artwork-card .card-line {
  height: 1px; width: 0; background: var(--color-matte-gold);
  margin-top: 12px; transition: width 500ms var(--ease-cinematic);
}
.artwork-card:hover .card-line { width: 56px; }
.availability {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-matte-gold); border: 1px solid rgba(201,169,97,0.4);
  padding: 3px 10px; margin-top: 10px;
}

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 44px; }
.filter-btn {
  background: none; border: 1px solid rgba(201,169,97,0.25);
  color: var(--color-muted-gray-cream); cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 18px;
  transition: all var(--dur-hover) var(--ease-cinematic);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--color-cinematic-black); background: var(--color-matte-gold); border-color: var(--color-matte-gold);
}

/* ---------- Artwork detail ---------- */
.artwork-hero {
  padding: 130px 0 40px;
  background: var(--color-warm-black);
}
.artwork-hero .frame-wrap {
  max-width: 1000px; margin: 0 auto;
  padding: 0 20px;
}
.artwork-hero img {
  width: 100%; max-height: 78vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.artwork-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px; margin: 40px 0;
  padding: 30px 0; border-top: 1px solid rgba(201,169,97,0.16); border-bottom: 1px solid rgba(201,169,97,0.16);
}
.artwork-meta-grid .label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-matte-gold); margin-bottom: 6px;
}
.artwork-meta-grid .value { color: var(--color-soft-ivory); font-size: 0.95rem; }

/* ---------- Journal ---------- */
.journal-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.journal-card {
  background: var(--color-warm-black);
  border: 1px solid rgba(201,169,97,0.1);
  padding: 34px 30px;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease-cinematic), transform 600ms var(--ease-cinematic);
}
.journal-card:hover { border-color: rgba(201,169,97,0.4); transform: translateY(-3px); }
.journal-card .cat {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-matte-gold);
}
.journal-card h3 { margin: 14px 0 12px; }
.journal-card .excerpt { font-size: 0.92rem; }
.journal-card .read { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 18px; display: inline-block; }

.journal-reader { max-width: var(--essay-width); margin: 0 auto; }
.journal-reader h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.journal-reader .body p { margin-bottom: 1.4em; font-size: 1.02rem; line-height: 1.9; }

/* ---------- Cards (courses, awards) ---------- */
.card-row { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.info-card {
  position: relative; overflow: hidden;
  background: var(--color-warm-black);
  border: 1px solid rgba(201,169,97,0.12);
  padding: 38px 32px;
  /* seated depth: inner top highlight + close contact shadow + soft cast */
  box-shadow:
    inset 0 1px 0 rgba(255,240,210,0.06),
    0 1px 2px rgba(0,0,0,0.4),
    0 18px 34px -20px rgba(0,0,0,0.75);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color 0.45s var(--ease-cinematic),
              transform 0.5s var(--ease-cinematic),
              box-shadow 0.45s var(--ease-cinematic);
}
/* fine gold hairline along the top edge */
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,178,108,0.5), transparent);
  opacity: 0.7;
}
/* cursor-follow gold light pool (position driven by --mx/--my from JS) */
.info-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.45s var(--ease-cinematic);
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,0%),
    rgba(212,178,108,0.16), transparent 62%);
}
.info-card:hover {
  border-color: rgba(201,169,97,0.4);
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255,240,210,0.12),
    0 34px 54px -22px rgba(0,0,0,0.85),
    0 0 40px -12px rgba(201,169,97,0.28);
}
.info-card:hover::after { opacity: 1; }
/* content sits above the light pool */
.info-card > * { position: relative; z-index: 1; }

/* Category impression: a washed-out painting behind a card's text. Sits below
   the content (z-index 0 beats the `.info-card > *` rule), faint, and fades out
   toward the top so the tag + heading stay crisp. */
.info-card .cat-wash {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.28; pointer-events: none;
  filter: saturate(0.92);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.42) 52%, transparent 90%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.42) 52%, transparent 90%);
}

/* ---------- Frosted glass panel (reusable surface utility) ----------
   Surface treatment only — no padding — so it can dress any existing panel
   (contact form, CTA bands, corporate inquiry). Add padding at the use site. */
.glass {
  background: linear-gradient(158deg, rgba(40,29,23,0.5), rgba(17,12,9,0.35));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(201,169,97,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,240,210,0.12),
    0 20px 50px -24px rgba(0,0,0,0.8);
}

/* ---------- Animated gold gradient border (sparing — 1 feature panel/page) ----------
   A slow conic sweep painted only in the 1.5px border ring (mask-exclude).
   pointer-events:none so it never blocks the panel's contents. */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes angspin { to { --ang: 360deg; } }
.grad-border { position: relative; }
.grad-border::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang),
    transparent 0deg, transparent 42deg,
    var(--color-warm-gold) 74deg, #f0d9a0 92deg,
    transparent 132deg, transparent 232deg,
    var(--color-matte-gold) 262deg, #f0d9a0 280deg,
    transparent 316deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: angspin 8s linear infinite;
}
.info-card .tag {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-matte-gold);
}
.info-card h3 { margin: 12px 0 12px; }
.info-card p { font-size: 0.92rem; }
.info-card .meta { font-size: 0.78rem; color: var(--color-muted-gray-cream); margin-top: 14px; letter-spacing: 0.06em; }

/* ---------- Awards timeline ---------- */
.timeline { border-left: 1px solid rgba(201,169,97,0.3); padding-left: 40px; max-width: 760px; }
.timeline-item { position: relative; padding-bottom: 52px; }
.timeline-item::before {
  content: ''; position: absolute; left: -44.5px; top: 8px;
  width: 9px; height: 9px; background: var(--color-matte-gold); transform: rotate(45deg);
}
.timeline-item .year { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--color-matte-gold); text-transform: uppercase; }
.timeline-item h3 { margin: 8px 0 8px; }
.timeline-item p { font-size: 0.93rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--color-warm-black);
  border-left: 2px solid var(--color-matte-gold);
  padding: 34px 36px;
}
.testimonial .words { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--color-headline-ivory); line-height: 1.6; }
.testimonial .who { margin-top: 18px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-matte-gold); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-matte-gold); margin-bottom: 9px;
}
input, select, textarea {
  width: 100%;
  background: var(--color-warm-black);
  border: 1px solid rgba(201,169,97,0.22);
  color: var(--color-soft-ivory);
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color var(--dur-hover) var(--ease-cinematic);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--color-matte-gold);
  box-shadow: 0 0 0 1px rgba(201,169,97,0.3);
}
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row span { font-size: 0.85rem; color: var(--color-muted-gray-cream); }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: linear-gradient(160deg, var(--color-warm-black), rgba(74,17,22,0.55));
  border-top: 1px solid rgba(201,169,97,0.15);
  border-bottom: 1px solid rgba(201,169,97,0.15);
}
.newsletter-form { display: flex; gap: 14px; max-width: 560px; margin: 30px auto 0; }
.newsletter-form input { flex: 1; }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* ---------- Footer ---------- */
footer {
  background: var(--color-warm-black);
  border-top: 1px solid rgba(201,169,97,0.12);
  padding: 70px 0 40px;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-matte-gold); margin-bottom: 18px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--color-muted-gray-cream); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--color-warm-gold); }

/* ---------- Hero text legibility over washes, site-wide ---------- */
.page-hero h1 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 4px 28px rgba(0,0,0,0.7), 0 8px 56px rgba(0,0,0,0.55);
}
.page-hero p, .page-hero .section-label, .page-hero h2 {
  text-shadow: 0 1px 8px rgba(0,0,0,0.85), 0 3px 20px rgba(0,0,0,0.6);
}

/* ---------- Section washes: faint dreamy backgrounds (MM.sectionWash) ---------- */
.section-wash {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
  /* every wash dissolves at its top and foot — sections meet through darkness */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 140px), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 140px), transparent);
}
.section-wash.capped {
  bottom: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
/* slow breathing for washes — a living background, never a busy one */
@keyframes washBreathe {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(0, -1.6%, 0); }
}

/* ---------- Social icon buttons: small dimensional gold medallions ---------- */
.social-row { display: flex; gap: 12px; margin: 4px 0 18px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,246,220,0.85), rgba(255,246,220,0) 42%),
    linear-gradient(145deg, #f0d9a0 0%, #c9a961 40%, #8a6b33 75%, #6f5426 100%);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.55),
    inset 0 1px 1px rgba(255,244,214,0.85),
    inset 0 -2px 3px rgba(52,36,10,0.6);
  transition: transform 300ms var(--ease-cinematic), box-shadow 300ms var(--ease-cinematic);
}
.social-btn svg { width: 19px; height: 19px; fill: #1A1008; }
.social-btn:hover, .social-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 9px 20px rgba(0,0,0,0.6),
    0 0 20px rgba(212,178,108,0.45),
    inset 0 1px 1px rgba(255,244,214,0.95),
    inset 0 -2px 3px rgba(52,36,10,0.55);
}
.footer-note {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(201,169,97,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.75rem; color: rgba(168,160,153,0.7);
}

/* ---------- Watercolor bloom accent ---------- */
.bloom {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(110,31,43,0.28), rgba(74,17,22,0.1) 55%, transparent 72%);
  filter: blur(46px);
  animation: bloom var(--dur-bloom) var(--ease-cinematic) both;
}
@keyframes bloom {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Overlay panel (3D gallery + shared) ---------- */
.overlay-panel {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,10,8,0.9);
  opacity: 0; pointer-events: none;
  transition: opacity 600ms var(--ease-cinematic);
}
.overlay-panel.open { opacity: 1; pointer-events: auto; }
.overlay-inner {
  background: var(--color-warm-black);
  border: 1px solid rgba(201,169,97,0.25);
  max-width: 980px; width: calc(100% - 40px); max-height: 88vh; overflow-y: auto;
  display: grid; grid-template-columns: 1.25fr 1fr;
}
@media (max-width: 800px) { .overlay-inner { grid-template-columns: 1fr; } }
.overlay-inner .art img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.overlay-inner .info { padding: 40px 36px; }
.overlay-close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: 1px solid rgba(201,169,97,0.4); color: var(--color-matte-gold);
  width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer;
  transition: all var(--dur-hover) var(--ease-cinematic);
}
.overlay-close:hover { background: var(--color-matte-gold); color: var(--color-cinematic-black); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 190px 0 80px; position: relative; overflow: hidden; }
.page-hero p { margin-top: 20px; font-size: 1.02rem; }
.page-hero .container { position: relative; z-index: 1; }

/* Faint animated painting wash behind page-hero text: graded into the
   dark ground on every edge, slow breathing drift, gentle 3D parallax. */
.hero-wash {
  position: absolute; top: 0; right: 0; left: 0;
  /* never taller than the hero itself — a fixed height let the section edge
     slice the image mid-fade (the Philosophy guillotine, generalized) */
  height: min(760px, 100%);
  overflow: hidden; pointer-events: none; z-index: 0;
  will-change: transform;
  /* the whole layer dissolves toward its foot, whatever its height */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.35) 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.35) 82%, transparent 100%);
}
.hero-wash img {
  position: absolute; right: 0; top: 2%;
  height: 96%; width: auto; max-width: 70%;
  object-fit: contain; object-position: right top;
  opacity: 0.24;
  filter: saturate(0.92);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 82%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 82%);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.hero-wash::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,10,8,1) 0%, rgba(15,10,8,0.9) 10%, rgba(15,10,8,0) 48%),
    linear-gradient(to bottom, rgba(15,10,8,0.65) 0%, rgba(15,10,8,0) 26%);
}
/* wash-wide: the painting claims more of the hero — larger, more present,
   still dissolving toward the text side */
.hero-wash.wash-wide img {
  max-width: 94%; height: 104%; top: -2%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 38%, rgba(0,0,0,0) 94%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 38%, rgba(0,0,0,0) 94%);
}

/* fade-foot: the wash dissolves much earlier into the dark — for pages
   whose hero content sits low or whose image ends abruptly */
.hero-wash.fade-foot::after {
  background:
    linear-gradient(to top, rgba(15,10,8,1) 0%, rgba(15,10,8,0.96) 24%, rgba(15,10,8,0) 66%),
    linear-gradient(to bottom, rgba(15,10,8,0.65) 0%, rgba(15,10,8,0) 26%);
}
@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.035) translate3d(-1.2%, 1.2%, 0); }
}

/* Full-bleed hero wash variant: painting spans edge to edge, more present,
   with a pool of darkness gathered at the center to cradle the text. */
.hero-wash.wash-full {
  height: 100%;   /* end exactly with the hero — no mid-fade clipping */
  -webkit-mask-image: none; mask-image: none;  /* its own gradients handle the edges */
}
.hero-wash.wash-full::after {
  inset: -2px 0;   /* overhang kills the 1px subpixel seam at the section boundary */
  background:
    linear-gradient(to top, rgba(15,10,8,1) 0%, rgba(15,10,8,0.85) 14%, rgba(15,10,8,0) 58%),
    linear-gradient(to bottom, rgba(15,10,8,0.65) 0%, rgba(15,10,8,0) 26%);
}
.hero-wash.wash-full img {
  left: 0; right: 0; top: -3%;
  width: 100%; height: 106%; max-width: none;
  object-fit: cover; object-position: center 32%;
  opacity: 0.3;
  -webkit-mask-image: none; mask-image: none;
}
.hero-wash.wash-full::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 72% at 50% 42%,
    rgba(15,10,8,0.8) 0%, rgba(15,10,8,0.5) 52%, rgba(15,10,8,0) 78%);
}

/* ---------- Parallax section dividers (gold hairline + drifting mark) ----------
   Drop <div class="divider"><span class="ln"></span><span class="mk"></span></div>
   at a section seam. The line and diamond drift gently on scroll via --dvy/--dvm
   set by MM.initDividers (reduced-motion disables it). */
.divider {
  position: relative; max-width: var(--max-width, 1360px);
  margin: 6px auto; height: 0; pointer-events: none;
}
.divider .ln {
  display: block; height: 1px; margin: 0 clamp(20px, 5vw, 56px);
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.32), transparent);
  transform: translateY(var(--dvy, 0px)); will-change: transform;
}
.divider .mk {
  position: absolute; left: 50%; top: -5px; width: 10px; height: 10px;
  transform: translate(-50%, var(--dvm, 0px)) rotate(45deg);
  background: linear-gradient(135deg, var(--color-matte-gold), var(--color-warm-gold));
  border: 1px solid rgba(240,217,160,0.5);
  box-shadow: 0 0 18px rgba(201,169,97,0.4); will-change: transform;
}

/* ---------- Finesse: refined type rhythm (gentle, site-wide) ---------- */
/* Balance headline line-breaks and soften large-display leading without
   fighting the existing clamp sizes. */
h1, h2, h3 { text-wrap: balance; }
h2 { line-height: 1.1; }
/* Avoid orphans/rivers in reading passages; the measure is already capped
   by max-width on p / .essay / .journal-reader. */
p { text-wrap: pretty; }
.essay p, .journal-reader .body p { letter-spacing: 0.004em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-line { opacity: 1 !important; transform: none !important; }
  .hero-media img { filter: blur(0) brightness(0.8) !important; transform: none !important; }
  /* no card tilt/lift or cursor-follow glow when motion is reduced */
  .info-card { will-change: auto; }
  .info-card:hover { transform: none; }
  .info-card::after { display: none; }
  /* freeze the animated gradient border to a static gold edge */
  .grad-border::after { animation: none !important; }
}

/* ---------- Compact student slider (.mini-slider) — reusable component ----------
   Small strip of student works; framed slides, cinematic centering. Used by
   MM.miniStudentSlider (e.g. on the workshops page). */
.mini-slider {
  position: relative; display: flex; align-items: center; gap: 10px;
  overflow: hidden; padding: 12px 0;
}
.mini-slider .ms-viewport { overflow: hidden; flex: 1; }
.mini-slider .ms-track {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  will-change: transform;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ms-slide {
  flex: none; width: min(240px, 56vw); margin: 0; display: block;
  transform: scale(0.92); opacity: 0.45; filter: saturate(0.75);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 900ms ease, filter 900ms ease;
  cursor: pointer;
}
.ms-slide.active { transform: scale(1); opacity: 1; filter: none; }
/* landscape works (e.g. the Innocence group photo) span ~3 portrait slots */
.ms-slide.wide { width: min(760px, 90vw); }
.ms-slide img { width: 100%; display: block; }
.ms-slide figcaption {
  text-align: center; margin-top: 10px;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-muted-gray-cream);
  opacity: 0; transition: opacity 900ms ease;
}
.ms-slide.active figcaption { opacity: 1; }
.ms-slide figcaption .who { color: var(--color-warm-gold); }
.ms-arrow {
  flex: none; width: 42px; height: 42px; z-index: 2;
  background: rgba(15,10,8,0.65); color: var(--color-matte-gold);
  border: 1px solid rgba(201,169,97,0.4); font-size: 1rem; cursor: pointer;
  transition: all 300ms var(--ease-cinematic);
}
.ms-arrow:hover { background: var(--color-matte-gold); color: var(--color-cinematic-black); }
@media (max-width: 640px) { .ms-arrow { display: none; } }
