/* =============================================================================
   IDEAMI 2026 — THEME  (variant: "atelier-dark")
   -----------------------------------------------------------------------------
   Quiet-luxury / poetic editorial, DARK palette.
   Fonts: Playfair Display (elegant serif) + Inter (clean sans, Apple-like).
   Light sibling: theme-light.css (swap the <link> in the .html to compare).
   Only the :root block below differs between the dark and light versions.
   ========================================================================== */

:root {
  /* ---- palette (dark) ---- */
  --bg:        #0a0a0c;
  --ink:       #f2efe9;   /* main text — high contrast */
  --ink-soft:  #c3bdb2;   /* secondary — still clearly readable on dark */
  --ink-dim:   #8b857a;   /* tertiary  — never below this on dark */
  --line:      rgba(242,239,233,0.14);
  --line-soft: rgba(242,239,233,0.08);
  --accent:    #d9b877;   /* champagne gold — the ONLY accent */
  --accent-hi: #f0dcac;
  --verse:     #c3b2d8;   /* muted mauve for poetic lines */
  --white:     #ffffff;
  --glow-a:    rgba(217,184,119,0.12);
  --glow-b:    rgba(195,178,216,0.08);

  /* ---- type & metrics (shared with light) ---- */
  --maxw:      760px;
  --ff-display:'Inter', system-ui, sans-serif;   /* all-sans, Apple-clean */
  --ff-ui:     'Inter', system-ui, sans-serif;
  --ff-body:   'Inter', system-ui, sans-serif;
}

/* ===========================================================================
   The rest of the file is palette-agnostic: it reads the variables above,
   so theme-light.css only needs to redefine :root.
   ======================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* one quiet warm glow, static */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 50% -10%, var(--glow-a), transparent 60%),
    radial-gradient(50vmax 50vmax at 85% 8%, var(--glow-b), transparent 62%);
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hi); }

/* ---- scroll progress -------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 60; transition: width .1s linear;
}

/* ---- sticky nav ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 22px;
  position: relative;
}
/* right-edge fade + chevron: only visible when the link row can scroll more */
.nav-hint {
  flex: none; width: 20px; text-align: center; cursor: pointer;
  font-family: var(--ff-ui); font-size: 20px; line-height: 1; color: var(--accent);
  opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; animation: navnudge 1.6s ease-in-out infinite;
}
.nav.has-more .nav-hint { opacity: 1; transform: none; pointer-events: auto; }
.nav.has-more .nav-inner::after {
  content: ""; position: absolute; right: 40px; top: 8px; bottom: 8px; width: 42px;
  pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--bg));
}
@keyframes navnudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .nav-hint { animation: none; } }
.nav-brand {
  font-family: var(--ff-ui); font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink); font-size: 13px; flex: none;
}
.nav-brand:hover { color: var(--accent); }
.nav-links {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin-left: auto;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--ff-ui); font-weight: 500; font-size: 12px;
  letter-spacing: .3px; color: var(--ink-soft); white-space: nowrap; padding: 6px 12px;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); }

/* ---- hero ------------------------------------------------------------- */
.hero { position: relative; }

/* full-bleed image hero */
.hero.has-img {
  min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero-media img {
  /* ===== HERO IMAGE FADE — tweak these ============================
     --fade-start : how far down the image stays FULLY visible (%).
     --fade-end   : where the image has FULLY faded to black (%).
     Below in the @media block there are SEPARATE mobile values.
     ================================================================ */
  --fade-start: 20%;
  --fade-end:   69%;

  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  opacity: 0.62;                 /* image presence (0 = gone, 1 = full) */
  filter: saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 var(--fade-start), rgba(0,0,0,0) var(--fade-end));
          mask-image: linear-gradient(180deg, #000 0%, #000 var(--fade-start), rgba(0,0,0,0) var(--fade-end));
}
/* mobile-only fade override (phones ≤ 620px) — edit these independently */
@media (max-width: 620px) {
  .hero-media img { --fade-start: 30%; --fade-end: 45%; }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.40) 0%, transparent 22%, transparent 46%, var(--bg) 80%);
}
.hero.has-img .hero-body {
  position: relative; z-index: 2; margin: 0 auto;
  padding: clamp(50px, 10vh, 120px) 28px clamp(46px, 8vh, 84px);
}

.hero-body {
  max-width: 680px; margin: 0 auto; position: relative;
  padding: clamp(70px, 15vh, 150px) 28px clamp(40px, 8vh, 80px);
  text-align: center;
}
.hero.no-img .hero-body { padding-top: clamp(90px, 18vh, 180px); }
.hero.has-img .hero-name,
.hero.has-img .hero-tagline,
.hero.has-img .hero-roles,
.hero.has-img .hero-bio { text-shadow: 0 2px 24px rgba(0,0,0,0.55); }

.hero-name {
  font-family: var(--ff-ui); font-weight: 600; letter-spacing: 6px;
  text-transform: uppercase; font-size: 13px; color: var(--accent);
  margin: 0 0 24px;
}
.hero-tagline {
  font-family: var(--ff-display); font-weight: 300;
  color: var(--white); font-size: clamp(29px, 5.4vw, 52px); line-height: 1.14;
  letter-spacing: -0.02em; margin: 0 0 30px;
}
.hero-roles {
  font-family: var(--ff-ui); font-weight: 400; font-size: 14px;
  color: var(--ink-soft); line-height: 1.85; margin: 0 auto 22px; max-width: 580px;
}
.hero-bio {
  color: var(--ink-soft); max-width: 580px; margin: 0 auto 30px; font-size: 16px;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  font-family: var(--ff-ui); font-weight: 500; font-size: 13px;
  color: var(--ink); padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); transition: all .2s ease;
}
.pill:hover { color: var(--white); border-color: var(--accent); }
.pill-short { display: none; }   /* desktop shows full label; mobile swaps */

/* social icons under the hero buttons */
.hero-social { display: flex; gap: 14px; justify-content: center; margin-top: 20px; }
.social-ico {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-ico svg { width: 20px; height: 20px; display: block; }
.social-ico:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hero.has-img .social-ico { color: var(--ink); }

/* ---- main wrap -------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px 90px; }

/* ---- intro video ------------------------------------------------------ */
.video {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 16/9;
  margin: 10px auto 40px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- collapsible sections -------------------------------------------- */
.card {
  position: relative; margin: 0;
  border-top: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
  scroll-margin-top: 64px;
}
.card:last-of-type { border-bottom: 1px solid var(--line-soft); }
.card.in { opacity: 1; transform: none; }

.card-head {
  width: 100%; display: flex; align-items: baseline; gap: 22px;
  padding: 34px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; color: inherit; font: inherit;
}
.card-num {
  font-family: var(--ff-ui); font-weight: 500; font-size: 12px;
  color: var(--ink-dim); flex: none; width: 26px; letter-spacing: .5px; padding-top: 12px;
}
.card-htext { flex: 1; min-width: 0; }
.card-titlerow { display: flex; align-items: baseline; gap: 12px; }
.card-title {
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); transition: color .2s ease;
}
.card-head:hover .card-title { color: var(--accent); }
.card-verse {
  display: block; font-family: var(--ff-display); font-weight: 400;
  color: var(--verse); font-size: 14.5px; line-height: 1.55; margin-top: 8px;
  letter-spacing: .1px;
}
.card-caret {
  font-family: var(--ff-ui); font-weight: 300; font-size: 24px; line-height: 1;
  color: var(--ink-dim); flex: none; padding-top: 10px;
  transition: transform .35s ease, color .2s ease;
}
.card.open .card-caret { transform: rotate(45deg); color: var(--accent); }
.card-head:hover .card-caret { color: var(--ink-soft); }

.card-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1);
}
.card.open .card-body { grid-template-rows: 1fr; }
.card-body-inner { overflow: hidden; min-height: 0; padding-left: 4px; }
.card-body-inner > *:first-child { margin-top: 0; }
.card.open .card-body-inner { padding-bottom: 36px; }

.intro { color: var(--ink-soft); font-size: 15px; margin: 2px 0 12px; }

.list { list-style: none; margin: 8px 0 0; padding: 0; }
.list li {
  position: relative; padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line-soft); font-size: 16px; line-height: 1.65;
}
.list li:last-child { border-bottom: none; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8;
}
.list strong { color: var(--white); font-weight: 600; }

.tag {
  display: inline-block; font-family: var(--ff-ui); font-weight: 600;
  font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--verse); margin-right: 8px;
}

.expand {
  display: inline-block; margin-top: 22px;
  font-family: var(--ff-ui); font-weight: 500; font-size: 12.5px; letter-spacing: .3px;
  color: var(--accent); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
}
.expand:hover { border-color: var(--accent); }

/* ---- testimonials ----------------------------------------------------- */
.tq {
  margin: 0 0 4px; padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tq:last-child { border-bottom: none; }
.tq-quote {
  margin: 0 0 12px; color: var(--ink); font-size: 16px; line-height: 1.7;
}
.tq-by { display: flex; flex-direction: column; gap: 1px; }
.tq-name {
  font-family: var(--ff-ui); font-weight: 600; font-size: 14px; color: var(--accent);
  letter-spacing: .2px;
}
.tq-role {
  font-family: var(--ff-ui); font-weight: 400; font-size: 12.5px; color: var(--ink-dim);
}
.card-head.static { cursor: default; }

/* ---- rosettamind feature blocks --------------------------------------- */
.feat {
  padding: 28px 0; border-top: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.feat.in { opacity: 1; transform: none; }
.feat:first-of-type { border-top: none; }
.feat-title {
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(22px, 3.2vw, 28px);
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 8px;
}
.feat-desc { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; max-width: 560px; }
.feat-links { display: flex; gap: 10px; }

/* ---- exhibits page ---------------------------------------------------- */
.exhibits-hero .hero-body { margin-top: 0; padding-top: clamp(80px, 14vh, 150px); }
.wrap-back { margin-top: 50px; text-align: center; }

/* ---- footer ----------------------------------------------------------- */
.foot {
  max-width: var(--maxw); margin: 60px auto 0; padding: 56px 28px 90px;
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 46px;
}
.foot-title {
  font-family: var(--ff-ui); font-weight: 600; letter-spacing: .2px;
  font-size: 15px; color: var(--ink); margin: 0 0 16px;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { padding: 5px 0; }
.foot-list a { color: var(--ink-soft); font-family: var(--ff-ui); font-weight: 400; font-size: 14.5px; }
.foot-list a:hover { color: var(--accent); }
.foot-meta {
  grid-column: 1 / -1; margin-top: 16px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim); font-family: var(--ff-ui); font-weight: 400; font-size: 12.5px;
}
.foot-copy { margin-top: 6px; font-family: var(--ff-ui); }

/* ---- theme toggle (floating, dev convenience) ------------------------ */
.theme-toggle {
  position: fixed; bottom: 18px; right: 18px; z-index: 70;
  font-family: var(--ff-ui); font-weight: 500; font-size: 12px; letter-spacing: .4px;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; backdrop-filter: blur(12px); transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 16px 20px 70px; }
  .hero-body { padding-left: 22px; padding-right: 22px; }
  .card-head { gap: 14px; padding: 28px 2px; }
  .card-body-inner { padding-left: 2px; }
  .foot { grid-template-columns: 1fr; }

  /* phones: keep the 3 CTAs on a single row using shorter labels */
  .hero-links { flex-wrap: nowrap; gap: 8px; }
  .hero-links .pill { padding: 9px 12px; font-size: 12px; white-space: nowrap; }
  .pill-full { display: none; }
  .pill-short { display: inline; }
}
