/* ===================================================================
   LAIYANA — DREAMY COQUETTE & STUDYWITHEMMANE NOTION DESIGN SYSTEM
   Mature, modern, editorial coquette aesthetic:
   - Refined Cormorant Garamond & Playfair Display serifs paired with
     clean Plus Jakarta Sans & JetBrains Mono
   - Soft silk-pearl, rosewater, and antique-mauve palettes
   - Authentic Notion-inspired workspace blocks & database views
   =================================================================== */

:root {
  --coquette-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --editorial-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Quicksand', system-ui, -apple-system, sans-serif;
  --mono: 'Quicksand', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 20px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
}

/* ---------- Theme 1: Light (Silk Pearl & Dusty Rosewater) ---------- */
[data-mood="light"] {
  --bg: #fcf9fa;
  --bg2: #f6eef1;
  --card: #ffffff;
  --mat: #ffffff;
  --ink: #2a1f26;
  --ink2: #685560;
  --ink3: #998691;
  --line: rgba(184, 93, 123, 0.16);
  --line-strong: rgba(184, 93, 123, 0.3);
  --accent: #b85d7b;
  --accent-soft: rgba(184, 93, 123, 0.1);
  --accent-ink: #ffffff;
  --glass: rgba(252, 249, 250, 0.86);
  --shadow: 0 16px 40px -16px rgba(74, 38, 52, 0.12), 0 2px 10px rgba(74, 38, 52, 0.04);
  --shadow-hover: 0 22px 48px -14px rgba(184, 93, 123, 0.18), 0 4px 14px rgba(74, 38, 52, 0.06);
  --silk-grad: linear-gradient(135deg, #b85d7b 0%, #d488a2 50%, #9e6b8e 100%);
  --sig-start: #9e4b68;
  --sig-mid: #c4738e;
  --sig-end: #8e5f7f;
  --banner-bg: linear-gradient(135deg, #fdf6f8 0%, #f7ebef 48%, #f3edf5 100%);
  color-scheme: light;
}

/* ---------- Theme 2: Dusk (Velvet Mauve & Champagne) ---------- */
[data-mood="dusk"] {
  --bg: #1c161d;
  --bg2: #251d26;
  --card: #29202b;
  --mat: #fcf6f8;
  --ink: #f6eff3;
  --ink2: #cbb8c3;
  --ink3: #96818e;
  --line: rgba(224, 163, 184, 0.18);
  --line-strong: rgba(224, 163, 184, 0.34);
  --accent: #dfa0b6;
  --accent-soft: rgba(223, 160, 182, 0.14);
  --accent-ink: #1c161d;
  --glass: rgba(28, 22, 29, 0.88);
  --shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 28px 56px -16px rgba(0, 0, 0, 0.7), 0 0 24px rgba(223, 160, 182, 0.12);
  --silk-grad: linear-gradient(135deg, #dfa0b6 0%, #eabcc9 50%, #bfa2d4 100%);
  --sig-start: #dfa0b6;
  --sig-mid: #f0c4d2;
  --sig-end: #c8a4d4;
  --banner-bg: linear-gradient(135deg, #241b26 0%, #2d212f 52%, #261f2e 100%);
  color-scheme: dark;
}

/* ---------- Theme 3: Night (Midnight Espresso & Rose Gold) ---------- */
[data-mood="night"] {
  --bg: #120e13;
  --bg2: #19131b;
  --card: #1f1821;
  --mat: #faf3f6;
  --ink: #f8f2f5;
  --ink2: #c6b5bf;
  --ink3: #8c7b85;
  --line: rgba(227, 163, 185, 0.15);
  --line-strong: rgba(227, 163, 185, 0.3);
  --accent: #e3a3b9;
  --accent-soft: rgba(227, 163, 185, 0.14);
  --accent-ink: #120e13;
  --glass: rgba(18, 14, 19, 0.9);
  --shadow: 0 24px 52px -20px rgba(0, 0, 0, 0.75);
  --shadow-hover: 0 30px 60px -18px rgba(0, 0, 0, 0.85), 0 0 28px rgba(227, 163, 185, 0.14);
  --silk-grad: linear-gradient(135deg, #e3a3b9 0%, #f0c7d4 50%, #c6a5d4 100%);
  --sig-start: #e3a3b9;
  --sig-mid: #f4cdd9;
  --sig-end: #c9a7d6;
  --banner-bg: linear-gradient(135deg, #171119 0%, #201722 50%, #1a1521 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.75;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease-smooth), color .7s var(--ease-smooth);
  overflow-x: hidden;
}
body.lock { overflow: hidden; }

/* Subtle fine-art paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px;
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow); transition: top .2s;
}
.skip:focus { top: 16px; }

/* ===================================================================
   SOFT WELCOME INTRO OVERLAY
   =================================================================== */
.soft-intro {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 1; transition: opacity .7s var(--ease-smooth), visibility .7s;
}
.soft-intro.leaving {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.soft-intro-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.soft-intro-card {
  position: relative; z-index: 2; text-align: center; max-width: 460px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 42px);
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-hover);
  animation: introRise .85s var(--ease) both;
}
@keyframes introRise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.intro-bow {
  display: inline-block; font-size: 1.45rem; color: var(--accent); margin-bottom: 8px;
}
.intro-kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.intro-title {
  font-family: var(--coquette-serif); font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 400; line-height: 1.1; margin-bottom: 12px; color: var(--ink);
}
.intro-sub {
  font-size: .95rem; color: var(--ink2); line-height: 1.65; margin-bottom: 24px;
}
.intro-enter { padding: 11px 28px; font-size: .88rem; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--silk-grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 200;
}

/* ---------- Editorial Accent Typography ---------- */
.editorial-accent,
h1 em,
h2 em {
  font-family: var(--coquette-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  background: var(--silk-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coquette-line {
  font-family: var(--coquette-serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1, h2 {
  font-family: var(--coquette-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); }

/* ---------- Header Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px var(--pad);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease-smooth), background-color .7s var(--ease-smooth);
}
.bar.away { transform: translateY(-100%); }

.mark {
  font-family: var(--coquette-serif);
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.mark:hover { transform: translateY(-1px); opacity: 0.85; }
.mark-bow {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
  color: var(--accent);
}

.nav { display: flex; gap: 8px; font-size: .86rem; font-weight: 500; }
.nav a {
  text-decoration: none;
  color: var(--ink2);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

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

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink2); background: var(--card);
  transition: transform .25s var(--ease), border-color .2s, color .2s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.chip b { font-weight: 600; color: var(--accent); }
.chip svg { fill: var(--accent); }
.swatch {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--silk-grad);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink2); background: var(--card);
  font-size: .85rem;
  transition: transform .25s var(--ease), border-color .2s, color .2s;
}
.icon-btn:hover { transform: scale(1.06); border-color: var(--accent); color: var(--accent); }

/* ---------- Shared Eyebrow & Buttons ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, color .2s;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.btn.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: var(--accent-ink);
  box-shadow: 0 12px 26px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ===================================================================
   DREAMY COQUETTE EDITORIAL BANNER
   =================================================================== */
.illustrative-header {
  position: relative; z-index: 2; max-width: var(--max); margin: 22px auto 0;
  padding: 0 var(--pad);
}
.illustrative-canvas {
  position: relative; border-radius: 28px;
  padding: clamp(28px, 4.5vw, 48px) clamp(20px, 3vw, 40px);
  text-align: center; overflow: hidden;
  background: var(--banner-bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
}

.sky-backdrop {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.silk-orb {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55;
}
.silk-orb-1 {
  width: 340px; height: 260px; top: -70px; left: 8%;
  background: radial-gradient(circle, rgba(223, 160, 182, 0.38), transparent 70%);
  animation: silkDrift 16s ease-in-out infinite alternate;
}
.silk-orb-2 {
  width: 380px; height: 280px; bottom: -90px; right: 10%;
  background: radial-gradient(circle, rgba(188, 158, 212, 0.28), transparent 70%);
  animation: silkDrift 20s ease-in-out infinite alternate-reverse;
}
.silk-orb-3 {
  width: 260px; height: 200px; top: 25%; left: 42%;
  background: radial-gradient(circle, rgba(255, 240, 245, 0.5), transparent 70%);
}
[data-mood="dusk"] .silk-orb-3,
[data-mood="night"] .silk-orb-3 {
  background: radial-gradient(circle, rgba(223, 160, 182, 0.14), transparent 70%);
}
@keyframes silkDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -12px) scale(1.06); }
}

.header-wing {
  position: relative; z-index: 3; display: flex; align-items: center; flex: none;
}

/* Left Wing: Minimalist Notion Clock Widget */
.notion-clock-widget {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--glass); backdrop-filter: blur(14px);
  padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 172px; text-align: left;
  transition: transform .3s var(--ease), border-color .25s;
}
.notion-clock-widget:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.clock-top-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.clock-dot { width: 6px; height: 6px; border-radius: 50%; background: #52b788; }
.clock-label {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  color: var(--ink3); letter-spacing: .03em;
}
.clock-time {
  font-family: var(--coquette-serif); font-size: 1.7rem; font-weight: 600;
  color: var(--ink); line-height: 1.05; margin: 2px 0;
}
.clock-date {
  font-size: .76rem; font-weight: 500; color: var(--ink2); margin-bottom: 8px;
}
.clock-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: .66rem; font-weight: 500; color: var(--accent);
}
.status-pulse {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Right Wing: Notion Studio Status Card */
.studio-status-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--glass); backdrop-filter: blur(14px);
  padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 210px; text-align: left;
  transition: transform .3s var(--ease), border-color .25s;
}
.studio-status-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.status-card-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.status-k {
  font-family: var(--mono); font-size: .68rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em;
}

/* Center Signature */
.illustrative-content { position: relative; z-index: 3; flex: 1; max-width: 520px; }
.illustrative-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.ribbon-icon { font-size: .9rem; }

.illustrative-title { margin: 4px 0 10px; line-height: 1; }
.laiyana-draw-wrap {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; outline: none;
}
.laiyana-draw-svg { width: clamp(240px, 38vw, 440px); height: auto; overflow: visible; display: block; }
.draw-char-svg {
  font-family: var(--coquette-serif);
  font-style: italic;
  font-size: 92px;
  font-weight: 500;
  letter-spacing: 0.01em;
  fill: transparent;
  stroke: url(#roseSilkGradSvg);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: fill .6s var(--ease), stroke-dashoffset .45s ease-out;
  user-select: none;
}
.draw-char-svg.drawing { stroke-dashoffset: 0; }
.draw-char-svg.completed { stroke-dashoffset: 0; fill: url(#roseSilkGradSvg); stroke-width: 0.6px; }
.draw-flourish {
  fill: none; stroke: url(#roseSilkGradSvg); stroke-width: 1.5px; stroke-linecap: round;
  stroke-dasharray: 460; stroke-dashoffset: 460; opacity: 0.65;
  transition: stroke-dashoffset .6s ease-out;
}
.draw-flourish.drawn { stroke-dashoffset: 0; }

.draw-hint-tooltip {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; color: var(--ink3);
  opacity: 0; pointer-events: none; transition: opacity .25s; white-space: nowrap;
}
.laiyana-draw-wrap:hover .draw-hint-tooltip { opacity: 1; }

.illustrative-tagline {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.tag-pill {
  font-size: .78rem; font-weight: 500; color: var(--ink2);
  background: var(--card); padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.tag-dot { color: var(--ink3); font-size: .8rem; }

@media (max-width: 1024px) {
  .illustrative-canvas { flex-direction: column; gap: 20px; }
  .header-wing { justify-content: center; width: 100%; }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 84px); align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: -10% -15%; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 35%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 60%);
  transition: background .25s;
}
.hero-title { font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin: 16px 0 20px; line-height: 1.04; }
.lede {
  max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--ink2);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero Stage (Featured Portraits & Paintings) */
.stage { position: relative; perspective: 1200px; }
.stage-header-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.stage-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .08em; color: var(--ink2);
}
.tab-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulseDot 1.8s infinite;
}
.hero-status-pill {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
}

.stage-open {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--mat);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-smooth), box-shadow .45s var(--ease-smooth);
}
.stage-open:hover { box-shadow: var(--shadow-hover); }
.stage-layers { position: absolute; inset: clamp(14px, 2vw, 22px); }
.layer {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(1.02);
  transition: opacity .9s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}
.layer.on { opacity: 1; transform: scale(1); }
.layer img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.stage-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.cap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-title { font-family: var(--coquette-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.cap-meta { font-family: var(--mono); font-size: .72rem; color: var(--ink3); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dots button { width: 20px; height: 20px; display: grid; place-items: center; }
.dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 99px;
  background: var(--ink3); opacity: 0.45; transition: width .35s var(--ease), background-color .25s, opacity .25s;
}
.dots button[aria-selected="true"]::before {
  width: 18px; background: var(--accent); opacity: 1;
}

/* ===================================================================
   NOTION BREADCRUMBS & TAGS
   =================================================================== */
.notion-breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink3); margin: 0 0 18px;
}
.notion-bc-item.active { color: var(--accent); font-weight: 600; }
.notion-bc-slash { opacity: 0.45; }

/* Notion Property Tags */
.notion-tag {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center;
}
.notion-tag.pink { background: rgba(214, 104, 144, 0.13); color: #b2436c; }
.notion-tag.rose { background: rgba(194, 109, 138, 0.14); color: #9c4260; }
.notion-tag.lavender { background: rgba(145, 118, 194, 0.14); color: #674ea7; }
.notion-tag.sage { background: rgba(94, 158, 128, 0.14); color: #3a7559; }
.notion-tag.peach { background: rgba(209, 140, 102, 0.14); color: #a35a34; }

[data-mood="dusk"] .notion-tag.pink, [data-mood="night"] .notion-tag.pink { background: rgba(223, 160, 182, 0.18); color: #f0bdd0; }
[data-mood="dusk"] .notion-tag.rose, [data-mood="night"] .notion-tag.rose { background: rgba(223, 160, 182, 0.18); color: #e8b0c4; }
[data-mood="dusk"] .notion-tag.lavender, [data-mood="night"] .notion-tag.lavender { background: rgba(176, 152, 224, 0.18); color: #d3c2f5; }
[data-mood="dusk"] .notion-tag.sage, [data-mood="night"] .notion-tag.sage { background: rgba(118, 186, 152, 0.18); color: #a4dec0; }
[data-mood="dusk"] .notion-tag.peach, [data-mood="night"] .notion-tag.peach { background: rgba(230, 168, 132, 0.18); color: #f2c4a8; }

/* ===================================================================
   SECTIONS & GALLERY
   =================================================================== */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 108px) var(--pad) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4.5vw, 48px); }
.section-head h2 { margin-top: 10px; }
.section-title-group { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.notion-db-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 10px;
  font-family: var(--mono); font-size: .72rem; color: var(--ink2);
}
.notion-db-pill .db-icon { color: var(--accent); }
.notion-db-pill .db-tag { background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 6px; }

.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-wrap {
  position: relative; display: inline-flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 12px 0 34px; min-width: 220px; transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { position: absolute; left: 12px; color: var(--ink3); pointer-events: none; }
#workSearch {
  width: 100%; border: 0; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: .82rem; font-weight: 500; padding: 7px 18px 7px 0;
}
#workSearch:focus { outline: none; }
#workSearch::placeholder { color: var(--ink3); }
.search-clear {
  position: absolute; right: 10px; font-size: .72rem; color: var(--ink3);
  padding: 2px 5px; border-radius: 999px; transition: color .2s;
}
.search-clear:hover { color: var(--accent); }
.work-empty {
  text-align: center; padding: 48px 16px; color: var(--ink2); font-size: .95rem;
}
.work-empty button {
  color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin-left: 6px;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  font-size: .8rem; font-weight: 500; padding: 7px 15px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink2);
  background: var(--card); transition: all .2s var(--ease);
}
.filters button:hover { color: var(--accent); border-color: var(--accent); }
.filters button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.seg button {
  font-size: .78rem; font-weight: 500; padding: 5px 14px; border-radius: 999px; color: var(--ink2); transition: all .2s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Gallery Wall (Masonry) ---------- */
.wall { columns: 3; column-gap: clamp(18px, 2.4vw, 30px); }
.piece {
  position: relative; break-inside: avoid; margin: 0 0 clamp(18px, 2.4vw, 30px);
  animation: rise .65s var(--ease-smooth) both; animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.piece-open { display: block; width: 100%; text-align: left; }

.mat {
  display: block; background: var(--mat); padding: clamp(12px, 1.5vw, 18px);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mat::after {
  content: '౨ৎ'; position: absolute; top: 10px; left: 14px;
  font-size: .85rem; color: var(--accent); opacity: 0.55; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.piece-open:hover .mat::after { opacity: 0.95; transform: scale(1.1); }
.mat img { width: 100%; height: auto; border-radius: 10px; }
.piece-open:hover .mat { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 4px 0; }
.meta .t { font-family: var(--coquette-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.meta .s { font-family: var(--mono); font-size: .72rem; color: var(--ink3); text-align: right; flex-shrink: 0; }
.price-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--line); font-weight: 600; font-size: .72rem;
}

.heart {
  position: absolute; top: clamp(16px, 2vw, 24px); right: clamp(16px, 2vw, 24px);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); color: var(--accent);
  border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.heart:hover { transform: scale(1.1); }
.heart svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .2s; }
.heart[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.heart[aria-pressed="true"] svg { fill: #ffffff; stroke: #ffffff; }

.badge-new {
  position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px);
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  background: var(--accent); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px; display: none;
}
.wall[data-personal="true"] .piece[data-new="true"] .badge-new { display: block; }

/* ---------- Index View ---------- */
.index { list-style: none; border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 48px 1fr 180px 100px; gap: 16px; align-items: baseline;
  width: 100%; text-align: left; padding: 18px 6px; border-top: 1px solid var(--line);
  transition: padding .3s var(--ease), color .2s;
}
.row:hover { padding-left: 16px; color: var(--accent); }
.row .n, .row .tag, .row .y { font-family: var(--mono); font-size: .78rem; color: var(--ink3); }
.row .tt { font-family: var(--coquette-serif); font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.1; }
.row .y { text-align: right; }
.peek {
  position: fixed; z-index: 90; left: 0; top: 0; width: 200px; height: auto; pointer-events: none; opacity: 0;
  background: var(--mat); padding: 8px; border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transform: translate(-999px, -999px) rotate(-2deg); transition: opacity .2s;
}
.peek.on { opacity: 1; }

/* ---------- Visit Memory Ring ---------- */
.visit { display: flex; align-items: center; gap: 16px; margin-top: clamp(32px, 5vw, 56px); color: var(--ink2); font-size: .92rem; }
.ring { width: 42px; height: 42px; flex: none; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1s var(--ease-smooth); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; max-width: 420px; }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 22%;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-greetings { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.greeting-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--ink);
}
.lang-badge {
  font-family: var(--mono); font-size: .65rem; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  padding: 2px 6px; border-radius: 999px;
}
.about-copy h2 { margin: 10px 0 16px; }
.about-lead {
  font-family: var(--coquette-serif); font-style: italic; font-size: 1.38rem !important;
  color: var(--ink) !important; line-height: 1.45; padding: 12px 18px;
  border-left: 3px solid var(--accent); background: var(--bg2);
  border-radius: 0 12px 12px 0; margin: 12px 0 18px !important;
}
.about-copy p:not(.eyebrow):not(.about-lead) { color: var(--ink2); max-width: 54ch; margin-bottom: 14px; font-size: 1rem; }

/* ---------- Contact / Collaboration ---------- */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 84px); align-items: start; padding-bottom: clamp(64px, 10vw, 128px); }
.contact-copy h2 { margin: 12px 0 18px; }
.contact-copy p:not(.eyebrow):not(.desk-note) { color: var(--ink2); max-width: 44ch; font-size: 1rem; }

.notion-desk-callout {
  background: var(--bg2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  padding: 16px 20px; margin-top: 22px;
}
.notion-desk-callout .desk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notion-desk-callout .desk-icon { color: var(--accent); }
.notion-desk-callout .desk-title { font-size: .88rem; font-weight: 600; color: var(--ink); }
.notion-desk-callout .desk-note { font-size: .9rem; color: var(--ink2); margin: 0; line-height: 1.55; }

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.contact-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.contact-card-title { font-family: var(--coquette-serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }

.field-label,
.form label {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 16px; margin-bottom: 6px;
}
.field-label { margin-top: 0; }

.inquiry-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.inquiry-pill {
  font-size: .78rem; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink2);
  transition: all .2s var(--ease);
}
.inquiry-pill:hover { border-color: var(--accent); color: var(--accent); }
.inquiry-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.form input, .form textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form input.bad, .form textarea.bad { border-color: #d6456b; }
.form-row { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-size: .86rem; color: var(--ink2); }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--pad); border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink3);
}
.foot button { text-decoration: underline; text-underline-offset: 4px; color: var(--ink2); }
.foot button:hover { color: var(--accent); }

/* ---------- Saved Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 140; background: rgba(18, 14, 19, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(430px, 100vw);
  background: var(--bg); border-left: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease-smooth); visibility: hidden;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.2);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head h2 { font-size: 2rem; }
.drawer-list { list-style: none; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.drawer-list .empty { color: var(--ink2); font-size: .9rem; padding: 12px 0; }
.drawer-item {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.drawer-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.drawer-item .dt { font-family: var(--coquette-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.drawer-item .dm { font-family: var(--mono); font-size: .7rem; color: var(--ink3); }
.drawer-item button.open { text-align: left; }
.drawer-ask { margin-top: 18px; justify-content: center; }
.drawer-ask[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Artwork Inspector Viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 180; background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: grid; grid-template-columns: 1fr 380px; grid-template-rows: auto 1fr;
  opacity: 0; transition: opacity .3s var(--ease-smooth);
}
.viewer.open { opacity: 1; }
.v-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); }
.v-count { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--accent); }
.v-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(48px, 6vw, 84px) 24px; overflow: hidden; touch-action: pan-y; }
.v-frame {
  max-width: 100%; max-height: 100%; display: grid; place-items: center; background: var(--mat);
  padding: clamp(10px, 1.6vw, 20px); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; cursor: zoom-in;
}
.v-frame img { max-width: 100%; max-height: calc(100svh - 180px); width: auto; height: auto; border-radius: 10px; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .45s var(--ease-smooth), opacity .3s; user-select: none; }
.v-frame.zoomed { cursor: zoom-out; }
.v-frame.zoomed img { transform: scale(2); }
.v-frame.swap img { opacity: 0; }
.v-nav {
  position: absolute; top: 50%; transform: translateY(-60%); width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); display: grid; place-items: center;
  font-size: 1rem; box-shadow: var(--shadow); transition: border-color .2s, transform .25s var(--ease); z-index: 2;
}
.v-nav:hover { border-color: var(--accent); transform: translateY(-60%) scale(1.08); }
.v-nav.prev { left: clamp(8px, 1.6vw, 22px); } .v-nav.next { right: clamp(8px, 1.6vw, 22px); }
.v-info { padding: 16px clamp(20px, 3vw, 40px) 36px 8px; overflow: auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; }
.v-info h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.v-note { color: var(--ink2); font-size: .96rem; line-height: 1.65; }
.v-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.v-actions .btn { padding: 9px 18px; font-size: .82rem; }
.suggest {
  text-align: left; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px 16px;
  color: var(--ink2); font-size: .86rem; background: var(--bg2); transition: border-color .2s, color .2s;
}
.suggest:hover { border-color: var(--accent); color: var(--ink); }
.suggest strong { color: var(--accent); font-weight: 600; }

/* Comments & Critiques in Viewer */
.v-comments {
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.v-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-comments-title { font-family: var(--coquette-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.v-comment-form { display: flex; flex-direction: column; gap: 8px; }
.v-comment-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v-comment-form input,
.v-comment-form textarea {
  font: inherit; font-size: .84rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  transition: border-color .2s, box-shadow .2s;
}
.v-comment-form input { flex: 1; min-width: 120px; }
.v-comment-form textarea { resize: vertical; min-height: 58px; }
.v-comment-form input:focus,
.v-comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.v-comment-types {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line);
}
.c-type-btn {
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: var(--ink2); transition: all .2s;
}
.c-type-btn.active { background: var(--accent); color: var(--accent-ink); }
.v-comment-submit { align-self: flex-start; padding: 7px 16px; font-size: .8rem; }

.v-comments-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.v-comment-empty { font-size: .82rem; color: var(--ink3); font-style: italic; }
.v-comment-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: .84rem;
}
.v-comment-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.v-comment-author { font-weight: 600; color: var(--ink); font-size: .8rem; }
.v-comment-right { display: inline-flex; align-items: center; gap: 6px; }
.v-comment-del { font-size: .7rem; color: var(--ink3); padding: 2px 5px; }
.v-comment-del:hover { color: var(--accent); }
.v-comment-body { color: var(--ink2); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

.comment-badge {
  display: inline-block; margin-left: 6px; font-size: .7rem; color: var(--ink3); font-weight: 500;
}
.keys { font-family: var(--mono); font-size: .7rem; color: var(--ink3); margin-top: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 24px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 22px;
  border-radius: 999px; font-size: .84rem; font-weight: 500;
  pointer-events: none; box-shadow: var(--shadow);
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-smooth) var(--d, 0s), transform .8s var(--ease-smooth) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wall { columns: 2; }
  .viewer { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .v-info { padding: 4px var(--pad) 24px; justify-content: flex-start; max-height: 38svh; }
  .v-frame img { max-height: calc(100svh - 420px); }
  .keys { display: none; }
}
@media (max-width: 860px) {
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .stage { max-width: 440px; }
  .portrait { max-width: 360px; }
  .row { grid-template-columns: 36px 1fr 80px; } .row .tag { display: none; }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 10px; }
  .wall { columns: 1; }
  .chip #moodLabel { display: none; }
}

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