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

:root {
  --color-cinematic-black: #0A0E14;
  --color-warm-black: #141A22;
  --color-deep-burgundy: #5E1A2A;
  --color-wine-maroon: #7A2C3C;
  --color-matte-gold: #D3A17D;
  --color-warm-gold: #EDC9AC;
  --color-headline-ivory: #F2E8D5;
  --color-soft-ivory: #E7D8BE;
  --color-muted-gray-cream: #9BA3AD;
  --color-charcoal-gray: #222C3A;
  --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(10,14,20,0.92), rgba(10,14,20,0));
  transition: background var(--dur-hover) var(--ease-cinematic);
}
.site-nav.scrolled {
  background: rgba(10,14,20,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(211,161,125,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; }
@media (max-width: 1360px) {
  .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%, #f6ddc6 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(211,161,125,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(237,201,172,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%; }

/* ---------- 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(10,14,20,0.97); backdrop-filter: blur(12px);
  border: 1px solid rgba(211,161,125,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;
}
.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(211,161,125,0.08); }
/* grouped mega-menu: quiet section labels + a hairline before the portal link */
.sub-menu .sub-head {
  padding: 12px 22px 4px; margin: 0;
  font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-matte-gold); opacity: 0.7; pointer-events: none;
}
.sub-menu .sub-head:first-child { padding-top: 4px; }
.sub-menu .sub-sep { margin-top: 8px; padding-top: 4px; border-top: 1px solid rgba(211,161,125,0.16); }

.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; }
  .nav-links {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(10,14,20,0.98);
    flex-direction: column; justify-content: safe center; gap: clamp(16px, 3vh, 28px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 80px 16px 40px;
    opacity: 0; pointer-events: none;
    transition: opacity 400ms var(--ease-cinematic);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.05rem; }
  /* dropdown becomes an inline indented list inside the full-screen menu */
  .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; border: none; box-shadow: none; background: transparent;
    padding: 4px 0 0; text-align: center;
  }
  .sub-menu a { font-size: 0.8rem; padding: 6px 0; }
}

/* ---------- Buttons ---------- */
.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;
  transition: all var(--dur-hover) var(--ease-cinematic);
}
.btn:hover {
  color: var(--color-cinematic-black);
  background: var(--color-matte-gold);
  box-shadow: 0 0 34px rgba(211,161,125,0.22);
}
.btn.solid { background: var(--color-matte-gold); color: var(--color-cinematic-black); }
.btn.solid:hover { background: var(--color-warm-gold); }
.btn.quiet { border-color: rgba(211,161,125,0.35); }

/* ---------- 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(10,14,20,0.94) 0%, rgba(10,14,20,0.42) 38%, rgba(10,14,20,0.18) 62%, rgba(10,14,20,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 40px 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 20px rgba(0,0,0,0.7);
}
.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(211,161,125,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(10,14,20,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(211,161,125,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(211,161,125,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(211,161,125,0.16); border-bottom: 1px solid rgba(211,161,125,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(211,161,125,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(211,161,125,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 {
  background: var(--color-warm-black);
  border: 1px solid rgba(211,161,125,0.12);
  padding: 38px 32px;
  transition: border-color var(--dur-hover) var(--ease-cinematic);
}
.info-card:hover { border-color: rgba(211,161,125,0.4); }
.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(211,161,125,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(211,161,125,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(211,161,125,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(94,26,42,0.55));
  border-top: 1px solid rgba(211,161,125,0.15);
  border-bottom: 1px solid rgba(211,161,125,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(211,161,125,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); }

/* ---------- 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, #f6ddc6 0%, #d3a17d 40%, #9a6f4e 75%, #7e5a3e 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,32,18,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(237,201,172,0.45),
    inset 0 1px 1px rgba(255,244,214,0.95),
    inset 0 -2px 3px rgba(52,32,18,0.55);
}
.footer-note {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(211,161,125,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.75rem; color: rgba(155,163,173,0.7);
}

/* ---------- Watercolor bloom accent ---------- */
.bloom {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(122,44,60,0.28), rgba(94,26,42,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(10,14,20,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(211,161,125,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(211,161,125,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;
  height: min(760px, 100vh);
  overflow: hidden; pointer-events: none; z-index: 0;
  will-change: transform;
}
.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(10,14,20,1) 0%, rgba(10,14,20,0.9) 10%, rgba(10,14,20,0) 48%),
    linear-gradient(to bottom, rgba(10,14,20,0.65) 0%, rgba(10,14,20,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 */
}
.hero-wash.wash-full::after {
  background:
    linear-gradient(to top, rgba(10,14,20,1) 0%, rgba(10,14,20,0.85) 14%, rgba(10,14,20,0) 58%),
    linear-gradient(to bottom, rgba(10,14,20,0.65) 0%, rgba(10,14,20,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(10,14,20,0.8) 0%, rgba(10,14,20,0.5) 52%, rgba(10,14,20,0) 78%);
}

/* ---------- 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; }
}

/* ============================================================
   GoldBrush Academy additions (goldbrush-site only)
   ============================================================ */

/* Academy wordmark next to the GBA emblem in the nav */
.gba-wordmark {
  font-family: var(--font-heading);
  color: var(--color-headline-ivory);
  line-height: 1.05; letter-spacing: 0.06em;
  font-size: 1.16rem; white-space: nowrap;
}
.gba-wordmark small {
  display: block; font-family: var(--font-body);
  font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--color-matte-gold); margin-top: 3px;
}
@media (max-width: 560px) { .gba-wordmark { display: none; } }

/* Course emblem: the square program logos, framed quietly */
.course-emblem {
  width: min(300px, 62vw); margin: 0 auto;
  border: 1px solid rgba(211,161,125,0.25);
  background: var(--color-warm-black);
  box-shadow: 0 22px 54px rgba(0,0,0,0.5);
}
.course-emblem img { width: 100%; display: block; }

/* Program cards: emblem strip on top of info-card */
.course-card .emblem {
  margin: -38px -32px 22px;
  border-bottom: 1px solid rgba(211,161,125,0.14);
  background: var(--color-cinematic-black);
  overflow: hidden;
}
.course-card .emblem img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%;
  transition: transform 1200ms var(--ease-cinematic);
}
.course-card:hover .emblem img { transform: scale(1.04); }
/* square/portrait logos (logoFit): transparent PNGs, so let them sit on the same dark
   emblem as the wide logos — just contained so the whole mark shows, nothing cropped */
.course-card .emblem.emblem-contain img { object-fit: contain; object-position: center; padding: 8px 0; }
.course-card:hover .emblem.emblem-contain img { transform: scale(1.02); }
.course-card .prime-flag {
  display: inline-block; margin-left: 10px; padding: 2px 9px;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-cinematic-black); background: var(--color-matte-gold);
}

/* "What the membership holds" lists on course pages */
.included-list { list-style: none; max-width: 640px; }
.included-list li {
  padding: 13px 0 13px 30px; position: relative;
  border-bottom: 1px solid rgba(211,161,125,0.1);
  color: var(--color-muted-gray-cream); font-size: 0.95rem;
}
.included-list li::before {
  content: ''; position: absolute; left: 4px; top: 21px;
  width: 8px; height: 8px; background: var(--color-matte-gold);
  transform: rotate(45deg);
}

/* Small fact grid (duration / format / level) on course pages */
.fact-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(211,161,125,0.16);
  border-bottom: 1px solid rgba(211,161,125,0.16);
}
.fact-grid .label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-matte-gold); margin-bottom: 6px;
}
.fact-grid .value { color: var(--color-soft-ivory); font-size: 0.95rem; }

/* ---------- Atelier parallax hero (index.html) ----------
   A faint, oversized studio image; the camera drifts through it as the
   mouse moves. Image: assets/img/hero-atelier.jpg (21:9 or wider).
   If the file is absent the layer removes itself and the gradient
   ambiance below carries the hero alone. */
.atelier-hero { position: relative; overflow: hidden; }
.atelier-stage {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(211,161,125,0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(94,26,42,0.25), transparent 65%),
    var(--color-cinematic-black);
}
.atelier-layer {
  position: absolute; inset: 0;
  will-change: transform;
}
.atelier-layer img {
  position: absolute; left: 50%; top: 50%;
  width: 124%; height: 124%; max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover; object-position: center;
  opacity: 0;                                  /* fades in on load */
  filter: brightness(0.62) saturate(0.92);
  transition: opacity 2600ms var(--ease-cinematic);
}
.atelier-hero.lit .atelier-layer img { opacity: 0.55; }  /* the faint impression */
/* soft moving glow that travels slightly against the image — cheap depth */
.atelier-glow {
  position: absolute; inset: -10%;
  will-change: transform;
  background: radial-gradient(ellipse 42% 38% at 50% 44%,
    rgba(237,201,172,0.10), transparent 70%);
}
.atelier-hero .hero-scrim { z-index: 1; }
.atelier-hero .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .atelier-layer, .atelier-glow { transform: none !important; }
  .atelier-hero.lit .atelier-layer img { opacity: 0.4; }
}

/* ---------- Mentor figure: nearest layer of the atelier hero ----------
   Sits above the studio image and scrim, below the text (z 1 vs
   container z 2, later sibling than the scrim). Moves slightly MORE
   than the room behind her — near things travel farther. */
.atelier-mentor {
  position: absolute; right: clamp(8px, 4vw, 72px); bottom: 0;
  height: min(78%, 640px); z-index: 1;
  pointer-events: none; will-change: transform;
}
.atelier-mentor img {
  height: 100%; width: auto; max-width: none; display: block;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.65))
          drop-shadow(0 0 44px rgba(211,161,125,0.18));
  opacity: 0; transform: translateY(18px);
  transition: opacity 1800ms var(--ease-cinematic), transform 1800ms var(--ease-cinematic);
}
.atelier-hero.mentor-lit .atelier-mentor img { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .atelier-mentor { height: 52%; right: 0; opacity: 0.85; }
}
@media (max-width: 640px) {
  .atelier-mentor { display: none; }   /* text owns the small screen */
}
@media (prefers-reduced-motion: reduce) {
  .atelier-mentor { transform: none !important; }
  .atelier-mentor img { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Compact student slider (Home) ----------
   Small strip of student works above the testimonials; same cinematic
   easing as the big slider on the artist site, half the size. */
.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(10,14,20,0.65); color: var(--color-matte-gold);
  border: 1px solid rgba(211,161,125,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; } }

/* Gallery page: arrival highlight when a slide is clicked through */
figure.archive-card.spotlit .frame-classic {
  box-shadow: 0 28px 64px rgba(0,0,0,0.68), 0 0 0 2px var(--color-matte-gold),
              0 0 60px rgba(237,201,172,0.4);
  transition: box-shadow 800ms var(--ease-cinematic);
}

/* ---------- Student Gallery: pinned top row ----------
   The masonry below fills column-by-column (vertical), so the three
   artist-pinned works get a real ROW of their own above it. */
.gallery-top-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3vw, 44px); align-items: end;
  margin-bottom: clamp(34px, 4vw, 56px);
  padding-bottom: clamp(34px, 4vw, 56px);
  border-bottom: 1px solid rgba(211,161,125,0.18);
}
@media (max-width: 680px) { .gallery-top-row { grid-template-columns: 1fr; } }

/* ============================================================
   FINESSE LAYER — ported from the artist site (madhubantimukherjee.com),
   re-themed for Atelier Slate. Same design language: tactile buttons,
   card depth + sheen + cursor-follow glow + 3D tilt, frosted glass,
   animated gold border, parallax dividers, refined type. Appended last so
   it overrides the flat baseline rules above via the cascade.
   ============================================================ */

/* ---------- Tactile 3D buttons ---------- */
.btn {
  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 {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(211,161,125,0.5), 0 0 34px rgba(211,161,125,0.22);
}
.btn:active { transform: translateY(0); }
.btn.solid {
  border: none; color: #251706; font-weight: 600;
  background: linear-gradient(135deg, #f3d9c4 0%, #d9a988 48%, #b98a72 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 5px rgba(120,70,45,0.35),
    0 9px 22px -8px rgba(211,161,125,0.55),
    0 3px 7px rgba(0,0,0,0.42);
}
.btn.solid:hover {
  color: #251706;
  background: linear-gradient(135deg, #f7e2cf 0%, #e6bd9c 48%, #c89873 100%);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 16px 34px -8px rgba(211,161,125,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,70,45,0.5), 0 4px 10px -4px rgba(211,161,125,0.4);
}
.btn.quiet {
  border: 1px solid rgba(211,161,125,0.35);
  color: var(--color-matte-gold);
  /* slate-tinted frosted glass (was warm on the artist site) */
  background: linear-gradient(160deg, rgba(26,34,44,0.5), rgba(12,16,20,0.35));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(230,238,247,0.08), 0 8px 20px -12px rgba(0,0,0,0.75);
}
.btn.quiet:hover {
  color: var(--color-headline-ivory);
  background: rgba(211,161,125,0.12);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(230,238,247,0.16),
    0 14px 28px -12px rgba(0,0,0,0.75),
    0 0 26px -8px rgba(211,161,125,0.32);
}
.btn.quiet:active { transform: translateY(-1px); }

/* ---------- info-card: depth + top sheen + cursor-follow glow + tilt ---------- */
.info-card {
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(230,238,247,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);
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237,201,172,0.5), transparent);
  opacity: 0.7; z-index: 2;
}
.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(237,201,172,0.16), transparent 62%);
}
.info-card:hover {
  border-color: rgba(211,161,125,0.4);
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(230,238,247,0.12),
    0 34px 54px -22px rgba(0,0,0,0.85),
    0 0 40px -12px rgba(211,161,125,0.28);
}
.info-card:hover::after { opacity: 1; }
.info-card > * { position: relative; z-index: 1; }

/* ---------- Frosted glass panel (reusable, slate-tinted) ---------- */
.glass {
  background: linear-gradient(158deg, rgba(26,34,44,0.5), rgba(13,17,22,0.35));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(211,161,125,0.22);
  box-shadow: inset 0 1px 0 rgba(230,238,247,0.12), 0 20px 50px -24px rgba(0,0,0,0.8);
}

/* ---------- Animated gold gradient border (sparing — 1 feature panel/page) ---------- */
@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, #f6ddc6 92deg,
    transparent 132deg, transparent 232deg,
    var(--color-matte-gold) 262deg, #f6ddc6 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;
}

/* ---------- Parallax section dividers ---------- */
.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(211,161,125,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(211,161,125,0.4); will-change: transform;
}

/* ---------- Category impression wash (reusable behind cards) ---------- */
.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%);
}

/* ---------- Refined type rhythm (gentle, site-wide) ---------- */
h1, h2, h3 { text-wrap: balance; }
h2 { line-height: 1.1; }
p { text-wrap: pretty; }
.essay p, .journal-reader .body p { letter-spacing: 0.004em; }

/* ---------- Reduced motion: freeze the finesse motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .info-card { will-change: auto; }
  .info-card:hover { transform: none; }
  .info-card::after { display: none; }
  .grad-border::after { animation: none !important; }
}

/* ---------- Aurora ambient background (soft, slow "flames") ----------
   A generative canvas drift (MM.aurora) in the Aurora Slate palette —
   deep slate with faint burgundy + rose-gold threads. Injected behind a
   host (e.g. .page-hero). A vignette keeps text legible; reduced-motion
   renders a single static frame. Kept faint and slow — never neon. */
.aurora-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora-bg canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: saturate(1.05) contrast(1.02);
}
.aurora-bg .aurora-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 92% at 50% 40%,
    transparent 0%, rgba(8,10,15,0.42) 60%, rgba(6,8,12,0.9) 100%);
}
/* the hero's text/content must sit above the aurora */
.page-hero { position: relative; }
.page-hero > .container { position: relative; z-index: 1; }
