/* ==========================================================================
   koben. — art & museums · Architectural Exhibition Design System (v0.2.2)
   Gece Müzesi 2.0 Warm Obsidian × Daylight Cotton Gallery × Studio Restraint
   ========================================================================== */

:root {
  --bg-void: #0d0c0b;
  --bg-wall: #13110f;
  --bg-elevated: #1b1815;
  --bg-card: rgba(27, 24, 21, 0.82);
  --bg-card-hover: rgba(34, 30, 26, 0.94);
  --bg-cotton: #f5f0e6;
  --bg-cotton-deep: #ebe3d3;
  --bg-burgundy: #2c0f17;
  --header-bg: rgba(13, 12, 11, 0.82);

  --ink: #f5f0e6;
  --ink-secondary: #bdb5a7;
  --ink-muted: #888175;
  --ink-paper: #161513;
  --ink-paper-sub: #57524a;

  --brass: #d6a654;
  --brass-bright: #eed294;
  --brass-deep: #9c742e;
  --brass-glow: rgba(214, 166, 84, 0.16);
  --line: rgba(214, 166, 84, 0.20);
  --line-subtle: rgba(245, 240, 230, 0.085);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --container: 1200px;
}

/* Optional Daylight Cotton Gallery Theme */
html[data-theme="daylight"] {
  --bg-void: #f5f0e6;
  --bg-wall: #efe8da;
  --bg-elevated: #fcfaf5;
  --bg-card: rgba(252, 250, 245, 0.90);
  --bg-card-hover: #ffffff;
  --header-bg: rgba(245, 240, 230, 0.86);

  --ink: #161513;
  --ink-secondary: #4c473f;
  --ink-muted: #766f64;

  --brass: #8c641e;
  --brass-bright: #6e4d12;
  --brass-deep: #5c4010;
  --line: rgba(140, 100, 30, 0.22);
  --line-subtle: rgba(22, 21, 19, 0.10);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 72% 40% at 50% -6%, rgba(214, 166, 84, 0.15) 0%, rgba(214, 166, 84, 0.03) 48%, transparent 78%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-wall) 44%, var(--bg-void) 100%);
  color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="daylight"] body {
  background:
    radial-gradient(ellipse 70% 38% at 50% -6%, rgba(214, 166, 84, 0.16) 0%, transparent 72%),
    linear-gradient(180deg, #f7f3ea 0%, #efe8da 52%, #f5f0e6 100%);
}

body.gallery-blackout {
  background: #000000 !important;
  color: #f5f0e6 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: #d6a654;
  color: #0d0c0b;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   1. Sticky Architectural Header & Studio Brand Lockup
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--header-bg);
  backdrop-filter: saturate(165%) blur(20px);
  -webkit-backdrop-filter: saturate(165%) blur(20px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-vault-svg {
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 8px;
  background: #12100e;
  border: 1px solid rgba(214, 166, 84, 0.36);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}

.brand-dot {
  color: #d6a654;
  font-weight: 700;
  margin-left: 1px;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--brass);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(214, 166, 84, 0.08);
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
  text-transform: lowercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: #d6a654;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn,
.menu-toggle-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

html[data-theme="daylight"] .theme-btn,
html[data-theme="daylight"] .menu-toggle-btn {
  background: rgba(22, 21, 19, 0.04);
}

.theme-btn:hover,
.menu-toggle-btn:hover {
  border-color: var(--brass);
  color: var(--ink);
}

.menu-toggle-btn {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eed294 0%, #d6a654 100%);
  color: #110f0d;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(214, 166, 84, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(214, 166, 84, 0.38);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line-subtle);
  background: var(--bg-elevated);
  padding: 16px 28px 22px;
}

.mobile-drawer.is-open {
  display: grid;
  gap: 12px;
}

.mobile-drawer a {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-subtle);
}

/* ==========================================================================
   2. Typography & Shared Editorial Primitives
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--brass);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(214, 166, 84, 0.09);
  border: 1px solid rgba(214, 166, 84, 0.28);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6a654;
  box-shadow: 0 0 10px rgba(214, 166, 84, 0.8);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.3vw, 3.65rem);
  line-height: 1.06;
  margin: 16px 0 14px;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--brass);
}

.section-sub {
  font-size: 1.07rem;
  color: var(--ink-secondary);
  margin: 0;
  text-wrap: pretty;
}

section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line-subtle);
  position: relative;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eed294 0%, #d6a654 100%);
  color: #110f0d;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(214, 166, 84, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(214, 166, 84, 0.40);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: #d6a654;
  background: rgba(214, 166, 84, 0.09);
}

/* ==========================================================================
   3. Hero Section + Interactive 5-Screen Titanium iPhone Showcase
   ========================================================================== */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 5.6vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 20px 0 20px;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--brass);
}

.hero-lead {
  font-size: 1.13rem;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.release-note-strip {
  margin-top: 22px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  font-size: 0.83rem;
  color: var(--ink-secondary);
}

.release-pill {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(214, 166, 84, 0.16);
  color: var(--brass);
  text-transform: uppercase;
}

.metrics-ribbon {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-subtle);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-num {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1.04;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  text-transform: lowercase;
  margin-top: 4px;
}

/* Titanium iPhone Stage */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.spotlight-halo {
  position: absolute;
  top: -70px;
  width: 450px;
  height: 540px;
  background: radial-gradient(circle, rgba(214, 166, 84, 0.22) 0%, rgba(214, 166, 84, 0.04) 52%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.titanium-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #6b6760 0%, #242220 38%, #4d4943 72%, #191816 100%);
  box-shadow:
    0 36px 84px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 244, 218, 0.20) inset;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.titanium-frame:hover {
  transform: translateY(-4px);
}

.titanium-inner {
  background: #050505;
  padding: 4px;
  border-radius: 43px;
}

.screen-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 39px;
  overflow: hidden;
  background: #f5f0e6;
}

.screen-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.42s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-viewport img.is-active {
  opacity: 1;
  transform: scale(1);
}

.screen-switcher {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.screen-tab {
  appearance: none;
  border: 1px solid var(--line-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.screen-tab:hover {
  border-color: rgba(214, 166, 84, 0.48);
  color: var(--ink);
}

.screen-tab.is-active {
  background: #d6a654;
  border-color: #d6a654;
  color: #110f0d;
  font-weight: 600;
}

.screen-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  min-height: 1.4em;
  max-width: 380px;
}

/* ==========================================================================
   4. Institutions & Open-Access Provenance Marquee Bar
   ========================================================================== */
.provenance-ribbon {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(214, 166, 84, 0.025);
}

.provenance-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.provenance-label {
  font-family: var(--mono);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.provenance-institutions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-secondary);
}

.provenance-institutions span {
  opacity: 0.88;
}

/* ==========================================================================
   5. What's Crafted in v0.2.2 — Architectural Bento Grid & True-Scale Demo
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(214, 166, 84, 0.42);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-title {
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 10px 0 8px;
  color: var(--ink);
}

.bento-title em {
  font-style: italic;
  color: var(--brass);
}

.bento-body {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  margin: 0;
}

/* Interactive True-Scale Comparison Stage inside Bento */
.scale-arena {
  background: rgba(10, 9, 8, 0.62);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  min-height: 196px;
  position: relative;
}

html[data-theme="daylight"] .scale-arena {
  background: #efe8da;
}

.scale-human {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.scale-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.scale-work:hover {
  transform: translateY(-3px);
}

.scale-canvas-box {
  border: 2px solid #d6a654;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #1c1916;
}

.scale-canvas-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scale-caption {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-secondary);
  text-align: center;
}

/* Route Builder Preview Chip inside Bento */
.route-preview-box {
  background: rgba(10, 9, 8, 0.56);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 10px;
}

html[data-theme="daylight"] .route-preview-box {
  background: #efe8da;
}

.route-stop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-subtle);
}

.route-stop-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
}

/* ==========================================================================
   6. Etymology & Philosophy Triptych
   ========================================================================== */
.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
  border-color: rgba(214, 166, 84, 0.40);
  transform: translateY(-3px);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.14em;
}

.pillar-title {
  font-family: var(--serif);
  font-size: 1.88rem;
  font-weight: 400;
  margin: 12px 0 10px;
  color: var(--ink);
}

.pillar-title em {
  font-style: italic;
  color: var(--brass);
}

.pillar-body {
  color: var(--ink-secondary);
  font-size: 0.96rem;
  margin: 0;
}

/* ==========================================================================
   7. Interactive 6-Masterpiece Gallery, Optical Loupe & Wall-Label Plaque
   ========================================================================== */
.gallery-workbench {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 36px;
  align-items: stretch;
}

.frame-stage {
  background: radial-gradient(circle at 50% 0%, rgba(214, 166, 84, 0.14), transparent 66%), #100e0c;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.35s ease, border-color 0.35s ease;
}

body.gallery-blackout .frame-stage {
  background: #000000;
  border-color: rgba(214, 166, 84, 0.36);
}

.passepartout {
  position: relative;
  margin: auto;
  background: linear-gradient(180deg, #fbf8f2 0%, #efe8da 100%);
  padding: 20px 20px 26px;
  border-radius: 8px;
  border: 2.5px solid #d6a654;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  max-width: 100%;
  cursor: crosshair;
  transition: all 0.35s ease;
}

body.gallery-blackout .passepartout {
  background: #050505;
  border-color: rgba(214, 166, 84, 0.48);
  padding: 10px;
}

.passepartout img {
  max-height: 410px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
}

.optical-loupe {
  position: absolute;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 2px solid #eed294;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 10;
}

.optical-loupe.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.stage-toolbar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1b1815;
  cursor: pointer;
  opacity: 0.62;
  transition: all 0.18s ease;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb:hover {
  opacity: 0.92;
}

.work-thumb.is-active {
  opacity: 1;
  border-color: #eed294;
  transform: translateY(-2px);
}

.mode-pill {
  appearance: none;
  border: 1px solid rgba(214, 166, 84, 0.40);
  background: rgba(214, 166, 84, 0.10);
  color: #eed294;
  font-family: var(--mono);
  font-size: 0.73rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill.is-active {
  background: #eed294;
  color: #0d0c0b;
  font-weight: 600;
}

/* Museum Wall Label Plaque (Warm Cotton Paper) */
.wall-plaque {
  background: var(--bg-cotton);
  color: var(--ink-paper);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(214, 166, 84, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plaque-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(22, 21, 19, 0.12);
}

.plaque-eyebrow {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #846020;
  font-weight: 600;
}

.pd-badge {
  font-family: var(--mono);
  font-size: 0.69rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(22, 21, 19, 0.07);
  color: var(--ink-paper);
  font-weight: 500;
}

.plaque-artist {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-paper-sub);
  margin: 20px 0 4px;
}

.plaque-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.06;
  margin: 0 0 8px;
  color: var(--ink-paper);
}

.plaque-meta {
  font-family: var(--mono);
  font-size: 0.79rem;
  color: #7c5b20;
  margin-bottom: 16px;
}

.plaque-story {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2c2925;
  margin: 0 0 20px;
}

.plaque-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(22, 21, 19, 0.11);
  border-bottom: 1px solid rgba(22, 21, 19, 0.11);
  font-size: 0.83rem;
}

.spec-k {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-paper-sub);
}

.spec-v {
  font-weight: 500;
  color: var(--ink-paper);
  margin-top: 2px;
}

.palette-row {
  margin-top: 18px;
}

.palette-swatches {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.swatch-chip {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.16s ease;
}

.swatch-chip:hover {
  transform: scale(1.06);
}

.plaque-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listen-btn {
  appearance: none;
  border: 1px solid #161513;
  background: #161513;
  color: var(--bg-cotton);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.18s ease;
}

.listen-btn:hover {
  opacity: 0.88;
}

.swatch-feedback {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: #7c5b20;
}

/* ==========================================================================
   8. Interactive Color & Century Discovery Matrix
   ========================================================================== */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.interactive-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pigment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.pigment-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pigment-btn.is-active {
  border-color: #d6a654;
  background: rgba(214, 166, 84, 0.14);
}

.pigment-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.era-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 128px;
  margin: 20px 0 18px;
  padding-top: 14px;
}

.era-col {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  height: 100%;
  justify-content: flex-end;
}

.era-bar {
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: rgba(214, 166, 84, 0.22);
  border: 1px solid rgba(214, 166, 84, 0.30);
  transition: all 0.22s ease;
}

.era-col.is-active .era-bar,
.era-col:hover .era-bar {
  background: linear-gradient(180deg, #eed294, #d6a654);
  box-shadow: 0 0 18px rgba(214, 166, 84, 0.35);
}

.era-col.is-active {
  color: var(--brass);
  font-weight: 600;
}

.era-lbl {
  font-family: var(--mono);
  font-size: 0.67rem;
  white-space: nowrap;
}

.curator-callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(13, 12, 11, 0.52);
  border: 1px solid var(--line-subtle);
}

html[data-theme="daylight"] .curator-callout {
  background: #f5f0e6;
}

.curator-callout h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--brass);
}

.curator-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   9. Interactive World Museum Atlas (2,067 Natural Earth Dots + City Beacons)
   ========================================================================== */
.atlas-card {
  background: radial-gradient(circle at 50% 20%, rgba(214, 166, 84, 0.09), transparent 70%), #110f0d;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
}

.atlas-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  min-height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0908;
  border: 1px solid rgba(245, 240, 230, 0.08);
}

#worldAtlasCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.city-pill {
  appearance: none;
  border: 1px solid rgba(245, 240, 230, 0.11);
  background: rgba(255, 255, 255, 0.03);
  color: #bdb5a7;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.city-pill:hover {
  border-color: #d6a654;
  color: #f5f0e6;
}

.city-pill.is-active {
  background: #d6a654;
  border-color: #d6a654;
  color: #110f0d;
  font-weight: 600;
}

.city-Readout {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(27, 24, 21, 0.85);
  border: 1px solid rgba(245, 240, 230, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #f5f0e6;
}

.city-readout-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 0 0 4px;
  color: #f5f0e6;
}

.city-readout-museums {
  color: #bdb5a7;
  font-size: 0.94rem;
  margin: 0;
}

.city-coords {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #eed294;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(214, 166, 84, 0.28);
  background: rgba(214, 166, 84, 0.09);
}

/* ==========================================================================
   10. Bespoke Art Passport & Stamp Studio
   ========================================================================== */
.passport-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.passport-leather {
  background: linear-gradient(155deg, #3b131d 0%, #1d090f 100%);
  border: 1px solid rgba(214, 166, 84, 0.44);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  position: relative;
  color: #f5f0e6;
}

.passport-leather::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px dashed rgba(214, 166, 84, 0.30);
  pointer-events: none;
}

.passport-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #eed294;
}

.passport-emblem-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0;
}

.passport-seal-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px dashed #d6a654;
  display: grid;
  place-items: center;
  color: #eed294;
  flex-shrink: 0;
}

.passport-cover-title {
  font-family: var(--serif);
  font-size: 2.35rem;
  margin: 0;
  line-height: 1.06;
  color: #f5f0e6;
}

.stamp-folio {
  background: var(--bg-cotton);
  color: var(--ink-paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(214, 166, 84, 0.35);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stamp-tile {
  background: #fbf8f1;
  border: 1px solid rgba(22, 21, 19, 0.10);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.stamp-tile:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.stamp-tile.stamped {
  animation: inkPress 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes inkPress {
  0% { transform: scale(1.18) rotate(-4deg); }
  55% { transform: scale(0.95) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   11. iPad Pro Canvas & Privacy Architecture Bento
   ========================================================================== */
.ipad-frame {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(145deg, #5d5952, #1d1b19 50%, #43403b);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.60);
}

.ipad-frame img {
  width: 100%;
  border-radius: 22px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.privacy-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--brass);
  margin: 10px 0 8px;
}

.privacy-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-secondary);
}

.closing-banner {
  margin-top: 64px;
  padding: 52px 36px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 166, 84, 0.18), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  text-align: center;
}

/* ==========================================================================
   12. Legal / Support Subpages & Footer
   ========================================================================== */
.doc-main {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.doc-main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  color: var(--ink);
}

.doc-meta {
  font-family: var(--mono);
  font-size: 0.80rem;
  color: var(--ink-muted);
  margin: 0;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 28px;
}

.doc-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--brass);
  margin: 26px 0 8px;
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 22px 0 6px;
}

.doc-card p,
.doc-card li {
  color: var(--ink-secondary);
}

.doc-card code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--brass);
  background: rgba(214, 166, 84, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
}

.doc-card a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 56px 0 44px;
  background: #080706;
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  color: #f5f0e6;
}

.site-footer .brand-word {
  color: #f5f0e6;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.90rem;
  color: #bdb5a7;
}

.footer-links a:hover {
  color: #eed294;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #888175;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .gallery-workbench,
  .discovery-grid,
  .passport-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }
  .triptych-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
  .menu-toggle-btn {
    display: inline-grid;
  }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .metrics-ribbon,
  .triptych-grid,
  .privacy-grid,
  .stamp-grid,
  .plaque-specs {
    grid-template-columns: 1fr;
  }
  .wall-plaque,
  .interactive-panel,
  .atlas-card,
  .bento-card {
    padding: 24px 20px;
  }
  .brand-tag {
    display: none;
  }
}
