/* =====================================================================
   FACETS OF THE ORDINARY — Photo Exhibit
   ---------------------------------------------------------------------
   BRANDING TOKENS  ▸  Edit the values in :root below to match the exact
   palette and fonts from your AI Studio design. Everything on the site
   reads from these variables, so changing them re-skins the whole site.
   ===================================================================== */

:root {
  /* ---- Colour palette (swap to your brand colours) ---- */
  --bg:        #0d0c0b;   /* page background (warm near-black) */
  --bg-2:      #141210;   /* alternate section background     */
  --surface:   #1b1916;   /* cards, panels                    */
  --surface-2: #262320;   /* raised surfaces, inputs          */
  --text:      #f4efe6;   /* primary text (warm white)        */
  --muted:     #a59c8c;   /* secondary text                   */
  --faint:     #6f685c;   /* tertiary / hints                 */
  --accent:    #cba35c;   /* primary accent (warm gold)       */
  --accent-2:  #e7d4ab;   /* lighter accent                   */
  --line:      rgba(244, 239, 230, 0.10); /* hairline borders */
  --heart:     #ff5a6e;   /* like / heart colour              */

  /* Buttons / accent-filled controls — theme-aware (see light theme below) */
  --btn-bg:       var(--accent);   /* primary button background */
  --btn-fg:       #1a1407;         /* text ON the primary button (high contrast) */
  --btn-bg-hover: var(--accent-2);

  /* ---- Typography (swap to your brand fonts) ---- */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* ---- Spacing / layout ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== Light theme =====================
   Activated by  <html data-theme="light">  (toggled in the nav).
   Only the colour tokens change — every component reads from them.   */
:root[data-theme="light"] {
  --bg:        #f4efe4;
  --bg-2:      #ebe3d4;
  --surface:   #fdfaf3;
  --surface-2: #efe8db;
  --text:      #211c14;
  --muted:     #5f574a;
  --faint:     #8c8474;
  --accent:    #8a5e12;   /* deeper gold — readable as text on light */
  --accent-2:  #6e4a0e;
  --line:      rgba(33, 28, 20, 0.13);
  --heart:     #e23b54;
  --btn-bg:       #211c14;   /* dark pill on light bg */
  --btn-fg:       #f6f1e6;   /* light text on the dark pill */
  --btn-bg-hover: #3a3327;
}
:root[data-theme="light"] body::after { mix-blend-mode: multiply; opacity: 0.05; }
:root[data-theme="light"] .hero-bg img { filter: brightness(0.78) saturate(0.95); }
/* keep the hero readable: its text sits over the page-colour fade at the bottom */

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.muted { color: var(--muted); }

/* Subtle film grain over the whole page for an exhibit feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
section { position: relative; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===================== Navigation ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: min(100% - calc(var(--gutter)*2), var(--maxw)); }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.brand .mark::before { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a:not(.nav-cta) { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); position: relative; padding: 0.3rem 0; transition: color 0.3s; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.35s var(--ease); }
.nav-links a:not(.nav-cta):hover, .nav-links a:not(.nav-cta).active { color: var(--text); }
.nav-links a:not(.nav-cta).active::after, .nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta { font-size: 0.78rem; padding: 0.7em 1.3em; }

/* Right-side nav cluster + theme toggle */
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.theme-toggle { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: border-color 0.3s, color 0.3s, transform 0.2s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:active { transform: scale(0.9); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 30px; justify-content: center; align-items: flex-end; z-index: 1100; }
.burger span { display: block; height: 2px; width: 26px; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s, width 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 26px; }

/* ===================== Hero ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 9vh, 110px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 120%; object-fit: cover; filter: brightness(0.5) saturate(0.9); will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* top scrim — keeps the nav legible over bright spots */
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 90%, transparent) 0%, transparent 26%),
    /* bottom scrim — keeps the eyebrow + headline + paragraph legible */
    linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 62%, transparent) 50%, transparent 82%),
    /* gentle overall wash so blown-out windows don't fight the text */
    color-mix(in srgb, var(--bg) 24%, transparent);
}
.hero .wrap { width: min(100% - calc(var(--gutter)*2), var(--maxw)); }
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.hero-eyebrow .rule { height: 1px; width: 60px; background: var(--accent); display: inline-block; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero-sub { margin-top: 1.8rem; max-width: 46ch; font-size: 1.05rem; color: var(--muted); }
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--faint); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 100% { top: 100%; } }

/* ===================== Reveal animations ===================== */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Word-by-word statement reveal */
.statement { padding: clamp(90px, 16vh, 200px) 0; }
.statement p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.22; letter-spacing: -0.01em; max-width: 22ch; }
.statement .word { display: inline-block; opacity: 0.16; transition: opacity 0.5s var(--ease); }
.statement .word.lit { opacity: 1; }
.statement .accent { color: var(--accent); }

/* ===================== Immersive 3D corridor ===================== */
.corridor {
  height: 100vh;
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-2), var(--bg));
  overflow: hidden;
}
.corridor-stage {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 46%;
}
.corridor-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.corridor .frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  margin: -190px 0 0 -140px;
  transform-style: preserve-3d;
}
.corridor .frame .matte {
  background: #100e0c;
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.corridor .frame img { width: 100%; height: 320px; object-fit: cover; filter: brightness(0.92); }
/* The matte behind each frame is always dark in both themes, so the caption
   text is always light (never the theme text colour, which is dark in light mode). */
.corridor .frame .cap { margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(244, 239, 230, 0.62); display: flex; justify-content: space-between; gap: 1rem; }
.corridor .frame .cap b { color: #f4efe6; font-weight: 600; }
/* depth fog */
.corridor::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 46%, transparent 30%, var(--bg) 92%);
}
.corridor-intro {
  position: absolute; z-index: 5; left: 50%; top: 12%; transform: translateX(-50%);
  text-align: center; width: 90%; pointer-events: none;
}
.corridor-intro h2 { font-size: clamp(2rem, 6vw, 4.5rem); }
.corridor-floor {
  position: absolute; left: 50%; bottom: 0; width: 200%; height: 50%;
  transform: translateX(-50%) rotateX(78deg);
  transform-origin: bottom;
  background:
    linear-gradient(transparent, rgba(203,163,92,0.05)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(244,239,230,0.05) 78px 80px);
  pointer-events: none; opacity: 0.5;
}

/* ===================== Featured works (parallax blocks) ===================== */
.featured { padding: clamp(70px, 12vh, 150px) 0; }
.feat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(40px, 7vh, 90px); }
.feat-head h2 { font-size: clamp(2.2rem, 6vw, 4.8rem); max-width: 14ch; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; margin-bottom: clamp(70px, 14vh, 170px); }
.feat-row:nth-child(even) .feat-media { order: 2; }
.feat-media { overflow: hidden; border-radius: var(--radius); position: relative; aspect-ratio: 4/5; }
.feat-media img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.feat-media .tag { position: absolute; top: 16px; left: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); padding: 0.4em 0.9em; border-radius: 100px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.feat-body .num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.feat-body h3 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.feat-body h3 em { font-style: italic; color: var(--accent-2); }
.feat-body p { color: var(--muted); max-width: 42ch; margin-bottom: 1.5rem; }
.feat-by { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; }
.feat-by img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.feat-by span { color: var(--faint); }
.feat-head > div { max-width: 60ch; }

/* ===================== The Collection (paginated grid) ===================== */
.collection .feat-head { margin-bottom: clamp(32px, 5vh, 60px); }
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.col-card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: block; }
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.col-card:hover img { transform: scale(1.06); }
.col-tag { position: absolute; top: 10px; left: 10px; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); color: var(--accent-2); padding: 0.35em 0.75em; border-radius: 100px; }
.col-card .ov { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.85)); opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.col-card:hover .ov { opacity: 1; transform: none; }
.col-card .ov h4 { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.col-card .ov span { font-size: 0.76rem; color: rgba(255,255,255,0.72); }

.col-pager { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: clamp(32px, 5vh, 56px); flex-wrap: wrap; }
.col-pager button { min-width: 44px; height: 44px; padding: 0 0.85rem; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.col-pager button:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--text); }
.col-pager button.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.col-pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===================== Stats ===================== */
.stats { padding: clamp(60px, 10vh, 120px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--accent-2); line-height: 1; }
.stat .l { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; margin-top: 0.6rem; }

/* ===================== Instructor / adviser ===================== */
.mentor { padding: clamp(70px, 12vh, 150px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
/* Desktop — horizontal credit spanning the container */
.mentor-inner { display: grid; grid-template-columns: 380px 1fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.mentor-portrait { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.mentor-portrait img { width: 100%; height: 100%; object-fit: cover; }
.mentor-name { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.03; margin-top: 1rem; }
.mentor-role { color: var(--muted); font-size: 1rem; margin-top: 0.7rem; }
.mentor-rule { display: block; width: 52px; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 1.3rem; }
/* Mobile — centred nameplate with a round portrait */
@media (max-width: 600px) {
  .mentor-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 400px; gap: 1.5rem; }
  .mentor-portrait { width: 168px; aspect-ratio: 1 / 1; border-radius: 50%; }
  .mentor-name { margin-top: 0.6rem; }
  .mentor-rule { margin: 1.1rem auto 0; }
}

/* ===================== CTA ===================== */
.cta { padding: clamp(90px, 18vh, 220px) 0; text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 9vw, 7rem); }
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p { color: var(--muted); margin: 1.4rem auto 2.6rem; max-width: 44ch; }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 8vh, 90px) 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.2rem; }
.footer .lead { font-family: var(--font-display); font-size: 1.5rem; max-width: 26ch; }
.footer a { color: var(--muted); display: block; padding: 0.3rem 0; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--faint); }

/* ===================== Page header (gallery/photographers) ===================== */
.page-head { padding: calc(var(--nav-h) + clamp(50px, 10vh, 120px)) 0 clamp(36px, 6vh, 70px); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head p { color: var(--muted); max-width: 52ch; margin-top: 1.2rem; }

/* ===================== Gallery grid ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; padding-bottom: clamp(28px, 5vh, 50px); }
.filters button { padding: 0.6em 1.2em; border-radius: 100px; border: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: all 0.3s; }
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

.grid { columns: 3; column-gap: 22px; padding-bottom: clamp(70px, 12vh, 140px); }
.card { break-inside: avoid; margin-bottom: 22px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface); transition: opacity 0.6s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease), box-shadow 0.4s var(--ease); }
.card img { width: 100%; transition: transform 0.7s var(--ease), filter 0.6s; }
.card:hover img { transform: scale(1.05); }

/* Scroll-in reveal: each photo "develops" — blurred + dim + low, then sharpens as it enters view */
.card.reveal { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(14px) brightness(0.7); }
.card.reveal.in { opacity: 1; transform: none; filter: none; }

/* Hover spotlight: blur + dim the rest of the wall, keep the focused photo sharp */
@media (hover: hover) {
  .grid:hover .card:not(:hover) { filter: blur(4px) brightness(0.55) saturate(0.9); transform: scale(0.985); }
  .grid:hover .card:hover { filter: none; transform: translateY(-5px); z-index: 2; box-shadow: 0 36px 80px rgba(0,0,0,0.5), 0 0 60px -12px var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .card.reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .grid:hover .card:not(:hover), .grid:hover .card:hover { filter: none; transform: none; }
}
/* Overlay always sits over a photo + dark scrim, so its text is light in
   BOTH themes (never inherit the theme text colour, which is dark in light mode). */
.card-info { position: absolute; inset: auto 0 0 0; padding: 2.6rem 1.2rem 1.1rem; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 32%, rgba(0,0,0,0.35) 68%, transparent 100%); opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.card:hover .card-info { opacity: 1; transform: none; }
.card-info h3 { font-size: 1.2rem; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.card-info .by { font-size: 0.78rem; color: rgba(255,255,255,0.85); margin-top: 0.2rem; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.card-meta { position: absolute; top: 12px; right: 12px; display: flex; gap: 0.4rem; align-items: center; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); padding: 0.35em 0.7em; border-radius: 100px; font-size: 0.72rem; opacity: 0; transition: opacity 0.4s; }
.card:hover .card-meta { opacity: 1; }
.card-meta svg { width: 13px; height: 13px; }

/* ===================== Lightbox / photo viewer ===================== */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; background:
    radial-gradient(130% 120% at 28% 18%, rgba(0,0,0,0.80), rgba(0,0,0,0.965) 68%),
    color-mix(in srgb, var(--bg) 55%, black);
  backdrop-filter: blur(18px) saturate(115%); overflow-y: auto; overscroll-behavior: contain; }
.lightbox.open { display: block; animation: lbFade 0.5s var(--ease) both; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
/* The viewer is an immersive dark room in BOTH light and dark themes, so every
   title, caption and label stays legible on the dark backdrop. Re-map the design
   tokens to their dark values within the lightbox only. */
.lightbox {
  --bg: #0d0c0b; --bg-2: #141210; --surface: #1b1916; --surface-2: #262320;
  --text: #f4efe6; --muted: #a89e8d; --faint: #877f71;
  --accent: #cba35c; --accent-2: #e7d4ab;
  --line: rgba(244, 239, 230, 0.13);
  --btn-bg: #cba35c; --btn-fg: #1a1407; --btn-bg-hover: #e7d4ab;
  color: var(--text);   /* base colour so inherited text (title, name, counts) stays light in both themes */
}
.lb-meta h2, .lb-author .nm, .like-count { color: var(--text); }
.lb-inner { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: clamp(56px, 7vh, 92px) clamp(14px, 3vw, 40px) clamp(40px, 7vh, 90px); }

/* The coverflow stage: blurred neighbours flank the big, sharp focused photo */
.lb-stage-row { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 48px); padding: 2.5vh 0; overflow: hidden; }
.lb-deck { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 48px); width: 100%; }
.lb-side { flex: 0 0 clamp(120px, 20vw, 340px); height: clamp(34vh, 46vh, 60vh); object-fit: cover; border-radius: 6px; opacity: 0.5; transform: scale(0.9); filter: blur(7px) brightness(0.48) saturate(0.85); box-shadow: 0 30px 70px rgba(0,0,0,0.55); cursor: pointer; transition: opacity 0.55s var(--ease), filter 0.55s var(--ease), transform 0.55s var(--ease); }
.lb-side:hover { opacity: 0.8; filter: blur(4px) brightness(0.62) saturate(0.95); transform: scale(0.93); }
.lb-focus { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lb-focus img { display: block; max-height: min(78vh, 880px); max-width: min(60vw, 900px); width: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 55px 140px rgba(0,0,0,0.78), 0 0 0 1px rgba(255,255,255,0.06); will-change: transform, opacity; }
/* soft spotlight glow behind the focused photograph */
.lb-focus::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88%; height: 84%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%); filter: blur(48px); z-index: -1; pointer-events: none; }
.lightbox.open .lb-info { animation: lbInfoIn 0.65s var(--ease) both; }
@keyframes lbInfoIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox.open .lb-info { animation: none; }
}

/* ---- Exhibition transition: walking frame to frame in the viewer ---- */
.lb-enter-next { animation: lbEnterNext 0.55s var(--ease) both; }
.lb-enter-prev { animation: lbEnterPrev 0.55s var(--ease) both; }
.lb-enter-open { animation: lbEnterOpen 0.6s var(--ease) both; }
@keyframes lbEnterNext { from { opacity: 0; transform: translateX(46px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes lbEnterPrev { from { opacity: 0; transform: translateX(-46px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes lbEnterOpen { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: none; } }
/* The title / caption / author rise in a gentle stagger as the photo changes */
.lb-meta.lb-rise > * { animation: lbRise 0.6s var(--ease) both; }
.lb-meta.lb-rise > .lb-cat { animation-delay: 0.04s; }
.lb-meta.lb-rise > h2 { animation-delay: 0.10s; }
.lb-meta.lb-rise > p { animation-delay: 0.18s; }
.lb-meta.lb-rise > .lb-author { animation-delay: 0.26s; }
@keyframes lbRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lb-enter-next, .lb-enter-prev, .lb-enter-open, .lb-meta.lb-rise > * { animation: none; }
}

.lb-heart-burst { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; pointer-events: none; opacity: 0; }
.lb-heart-burst.go { animation: burst 0.9s var(--ease); }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); } 15% { opacity: 1; } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }

/* Title, caption and meta sit below the focused photograph, centred on the page */
.lb-info { width: 100%; max-width: 820px; margin-top: clamp(24px, 4vh, 46px); }
.lb-meta { text-align: left; }
.lb-cat { font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lb-meta h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0.7rem 0 0.95rem; }
.lb-meta p { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 72ch; }
.lb-author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.7rem; }
.lb-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.lb-author .nm { font-weight: 600; font-size: 0.92rem; }
.lb-author .ro { color: var(--faint); font-size: 0.76rem; letter-spacing: 0.02em; margin-top: 0.1rem; }

.lb-actions { display: flex; align-items: center; gap: 0.5rem; padding: 1.1rem 0; margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background 0.3s, transform 0.2s, color 0.3s; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.88); }
.icon-btn svg { width: 24px; height: 24px; }
.like-btn.liked { color: var(--heart); }
.like-btn.liked svg { fill: var(--heart); animation: pop 0.4s var(--ease); }
@keyframes pop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }
.like-count { font-weight: 600; font-size: 0.9rem; margin-right: auto; padding-left: 0.3rem; }
.share-wrap { position: relative; }
.share-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem; display: none; flex-direction: column; gap: 0.2rem; min-width: 200px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 20; }
.share-menu.open { display: flex; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.85rem; text-align: left; transition: background 0.2s; width: 100%; }
.share-menu a:hover, .share-menu button:hover { background: var(--surface); }
.share-menu svg { width: 18px; height: 18px; }

.lb-comments { padding: clamp(22px, 3vh, 34px) 0 0.4rem; }
.lb-comments h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.2rem; }
.comment { display: flex; gap: 0.8rem; margin-bottom: 1.3rem; }
.comment .av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.comment .c-body { font-size: 0.9rem; }
.comment .c-body .who { font-weight: 600; margin-right: 0.5rem; }
.comment .c-body .when { color: var(--faint); font-size: 0.74rem; }
.comment .c-text { color: var(--muted); margin-top: 0.15rem; }

.lb-form { padding: 1rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.lb-form input, .lb-form textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text); font-family: inherit; font-size: 0.9rem; resize: none; }
.lb-form input:focus, .lb-form textarea:focus { outline: none; border-color: var(--accent); }
.lb-form .row { display: flex; gap: 0.6rem; }
.lb-form .row input { flex: 1; }
.lb-form button { background: var(--btn-bg); color: var(--btn-fg); border-radius: 10px; padding: 0 1.3rem; font-weight: 600; font-size: 0.85rem; }

.lb-close { position: absolute; top: 24px; right: 24px; z-index: 10; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.lb-close:hover { transform: rotate(90deg); background: color-mix(in srgb, var(--bg) 70%, transparent); border-color: var(--accent); color: var(--accent); }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 38%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); display: grid; place-items: center; z-index: 10; transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.lb-nav:hover { background: color-mix(in srgb, var(--bg) 64%, transparent); border-color: var(--accent); color: var(--accent); }
.lb-prev { left: clamp(8px, 2.5vw, 38px); } .lb-next { right: clamp(8px, 2.5vw, 38px); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-nav svg { width: 24px; height: 24px; }

/* ===================== Photographers ===================== */
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(70px, 12vh, 140px); }
.ph-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.8rem; align-items: start; }
.ph-portrait { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.ph-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ph-card:hover .ph-portrait img { transform: scale(1.05); }
.ph-card .ph-cat { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ph-card h3 { font-size: 1.7rem; margin: 0.4rem 0 0.5rem; }
.ph-loc { display: flex; align-items: center; gap: 0.4rem; color: var(--faint); font-size: 0.78rem; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.ph-loc svg { width: 14px; height: 14px; color: var(--accent); }
.ph-quote { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--accent-2); border-left: 2px solid var(--accent); padding-left: 1rem; margin-bottom: 1.1rem; }
.ph-card p { color: var(--muted); font-size: 0.92rem; }
.ph-stats { display: flex; gap: 1.6rem; margin-top: 1.2rem; }
.ph-stats div b { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-2); }
.ph-stats div span { display: block; font-size: 0.72rem; color: var(--faint); letter-spacing: 0.05em; }
.ph-socials { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.ph-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.3s; }
.ph-socials a:hover { border-color: var(--accent); color: var(--accent); }
.ph-socials svg { width: 16px; height: 16px; }

/* ===================== Toast ===================== */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 0.9rem 1.4rem; border-radius: 100px; font-size: 0.88rem; z-index: 3000; transition: transform 0.5s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===================== FAQ page ===================== */
.faq-wrap { max-width: 800px; padding-bottom: clamp(80px, 14vh, 160px); }

/* Shared section rhythm + eyebrow hierarchy */
.faq-about, .faq-list { padding-block: clamp(44px, 7vh, 84px); }
.faq-about .eyebrow, .faq-list-head .eyebrow { display: block; margin-bottom: 1.1rem; }

/* About the project */
.faq-about { border-bottom: 1px solid var(--line); }
.faq-about h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 1.9rem; max-width: 20ch; text-wrap: balance; }
.faq-about p { color: var(--muted); line-height: 1.85; margin-bottom: 1.35rem; max-width: 66ch; text-wrap: pretty; }
.faq-about p.lead { font-size: 1.18rem; line-height: 1.7; color: var(--text); margin-bottom: 1.7rem; }
.faq-about p:last-child { margin-bottom: 0; }

/* Q & A list */
.faq-list-head { margin-bottom: clamp(1.6rem, 3.5vh, 2.6rem); }
.faq-list-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 1.55rem 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; color: var(--text); transition: color 0.3s; text-wrap: balance; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.35rem; transition: transform 0.35s var(--ease); background:
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat; }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer p { color: var(--muted); line-height: 1.85; padding: 0.1rem 0 1.7rem; max-width: 62ch; text-wrap: pretty; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-item[open] .faq-answer { animation: faqOpen 0.45s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Closing call to action */
.faq-cta { text-align: center; padding-top: clamp(64px, 11vh, 120px); }
.faq-cta > p { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.7rem; }
.faq-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-answer { animation: none; } }

/* Embedded evaluation form */
.faq-evaluate { padding-top: clamp(54px, 9vh, 100px); margin-top: clamp(40px, 7vh, 80px); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.faq-evaluate .eyebrow { display: block; margin-bottom: 1.1rem; }
.faq-evaluate h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 0.9rem; text-wrap: balance; }
.faq-evaluate > p { color: var(--muted); line-height: 1.8; max-width: 60ch; margin-bottom: 2rem; text-wrap: pretty; }
.form-embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(8px, 2vw, 16px); box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.form-embed iframe { display: block; width: 100%; height: 1320px; border: 0; border-radius: 8px; background: #fff; }
@media (max-width: 560px) { .form-embed iframe { height: 1500px; } }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .grid { columns: 2; }
  .col-grid { grid-template-columns: repeat(3, 1fr); }
  .lb-side { flex-basis: clamp(90px, 16vw, 200px); }
  .lb-focus img { max-width: 70vw; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  /* IMPORTANT: a backdrop-filter on .nav would re-anchor the fixed menu
     overlay to the nav bar (collapsing it). Use a solid bg on mobile so the
     full-screen menu stays anchored to the viewport. */
  .nav.scrolled { background: var(--bg); backdrop-filter: none; }
  .nav-links { position: fixed; inset: 0; z-index: 1050; flex-direction: column; justify-content: center; gap: 2.4rem; background: var(--bg); transform: translateX(100%); transition: transform 0.5s var(--ease); }
  .nav-links.open { transform: none; }
  /* match the :not(.nav-cta) specificity used above, or the size won't apply */
  .nav-links a:not(.nav-cta) { font-size: 1.5rem; color: var(--text); }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .scroll-cue { display: none; }  /* would overlap the hero buttons on tall phones */
  .feat-row { grid-template-columns: 1fr; gap: 2rem; }
  .feat-row:nth-child(even) .feat-media { order: 0; }
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ph-grid { grid-template-columns: 1fr; }
  /* Lightbox on mobile: hide the side previews, photo goes full width */
  .lb-side { display: none; }
  .lb-focus img { max-width: 92vw; max-height: 60vh; }
  .lb-info { max-width: 92vw; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
}
@media (max-width: 560px) {
  .grid { columns: 1; }
  .corridor .frame { width: 200px; margin-left: -100px; }
  .ph-card { grid-template-columns: 120px 1fr; gap: 1.2rem; }
}

/* Corridor → simple swipeable strip on phones (3D walk-through is desktop-only) */
@media (max-width: 768px) {
  .corridor.is-flat { height: auto; min-height: 0; padding: clamp(60px, 10vh, 110px) 0; }
  .corridor.is-flat .corridor-intro {
    position: relative; left: auto; top: auto; transform: none; width: auto;
    text-align: left; padding: 0 var(--gutter); margin-bottom: 1.8rem; pointer-events: auto;
  }
  .corridor.is-flat .corridor-intro h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .corridor.is-flat .corridor-stage { position: relative; inset: auto; perspective: none; }
  .corridor.is-flat .corridor-floor { display: none; }
  .corridor.is-flat::after { display: none; }
  .corridor.is-flat .corridor-track {
    position: relative; inset: auto; transform: none !important;
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 1.2rem; -webkit-overflow-scrolling: touch;
  }
  .corridor.is-flat .frame {
    position: relative; top: auto; left: auto; margin: 0;
    width: 72vw; max-width: 280px; flex: 0 0 auto; transform: none !important;
    scroll-snap-align: center;
  }
  .corridor.is-flat .frame img { height: auto; aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== Admin metrics dashboard ===================== */
.admin-page { background: var(--bg); min-height: 100vh; }
.adm-wrap { width: min(100% - calc(var(--gutter) * 2), 1080px); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0 80px; }
.adm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.adm-eyebrow { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.adm-top h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 6px; }
.adm-lock { font-size: 0.8rem; color: var(--faint); margin-top: 10px; }
.adm-back { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0.6em 1em; border-radius: 100px; white-space: nowrap; transition: border-color 0.3s, color 0.3s; }
.adm-back:hover { border-color: var(--accent); color: var(--accent); }
.adm-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; white-space: nowrap; }
.adm-live { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.adm-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ed07a; box-shadow: 0 0 0 0 rgba(78,208,122,0.5); animation: adm-pulse 2s ease-out infinite; }
.adm-live.off { color: var(--faint); }
.adm-live.off .dot { background: var(--faint); animation: none; box-shadow: none; }
@keyframes adm-pulse { 0% { box-shadow: 0 0 0 0 rgba(78,208,122,0.5); } 70% { box-shadow: 0 0 0 7px rgba(78,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(78,208,122,0); } }

.adm-insights { margin-bottom: 14px; border-color: rgba(203,163,92,0.28); }
.adm-insights .adm-ai { color: var(--accent); font-size: 0.95em; margin-right: 0.2em; }
.adm-insights ul { list-style: none; margin-top: 6px; display: grid; gap: 10px; }
.adm-insights li { position: relative; padding-left: 20px; font-size: 0.94rem; color: var(--muted); line-height: 1.5; }
.adm-insights li b { color: var(--text); font-weight: 600; }
.adm-insights li::before { content: "›"; position: absolute; left: 4px; top: -1px; color: var(--accent); font-weight: 700; }
@media (min-width: 761px) { .adm-insights ul { grid-template-columns: 1fr 1fr; gap: 10px 28px; } }

.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.adm-kpi .l { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.adm-kpi .n { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; margin-top: 6px; color: var(--accent-2); }

.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.adm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.adm-panel h3 { font-size: 1.1rem; }
.adm-panel .sub { font-size: 0.7rem; color: var(--faint); margin: 2px 0 16px; }
.adm-subhead { font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

.adm-spark { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.adm-spark span { flex: 1; position: relative; background: linear-gradient(var(--accent), rgba(203,163,92,0.22)); border-radius: 3px 3px 0 0; min-height: 4px; transition: filter 0.2s; }
.adm-spark span:last-child { background: var(--accent-2); }
.adm-spark span:hover { filter: brightness(1.3); }
.adm-spark span::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font-size: 0.68rem; line-height: 1; white-space: nowrap; padding: 0.45em 0.6em; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45); opacity: 0; pointer-events: none;
  transition: opacity 0.16s, transform 0.16s; z-index: 6;
}
.adm-spark span:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.adm-bars { display: flex; flex-direction: column; gap: 12px; }
.adm-bar { font-size: 0.82rem; }
.adm-bar .r { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); }
.adm-bar .r b { color: var(--text); font-weight: 600; }
.adm-track { height: 8px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.adm-fill { height: 100%; background: var(--accent); border-radius: 100px; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.adm-table th { text-align: left; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0 8px 8px 0; }
.adm-table td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.adm-table td.t { color: var(--text); }
.adm-table .rank { color: var(--accent); font-family: var(--font-display); }

.adm-cmt { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.adm-cmt .adm-av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); font-weight: 600; font-size: 0.74rem; }
.adm-cmt .who { color: var(--text); font-weight: 600; }
.adm-cmt .meta { color: var(--faint); font-size: 0.7rem; }
.adm-cmt .txt { color: var(--muted); margin-top: 1px; }

.adm-note { font-size: 0.7rem; color: var(--faint); text-align: center; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.adm-empty { color: var(--faint); font-size: 0.85rem; padding: 6px 0; }
.adm-loading { color: var(--muted); padding: 50px 0; text-align: center; }
.adm-error { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.adm-error h3 { font-size: 1.3rem; margin-bottom: 10px; }
.adm-error p { color: var(--muted); margin-bottom: 8px; }
.adm-error .adm-dim { color: var(--faint); font-size: 0.78rem; }
.adm-error code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; }

@media (max-width: 760px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-grid2 { grid-template-columns: 1fr; }
}
