/* ================================================
   ASHA SHAKYA — PORTFOLIO DESIGN SYSTEM
   Inspired by: Stripe · Linear · Notion · Airbnb
   ================================================ */



/* ───────────────────────────────────────────────
   DESIGN TOKENS
   Structural tokens are voice/scheme-independent.
   Color + font tokens are set per html[data-voice][data-scheme]
   below; :root carries friendly+light as the safe fallback.
   ─────────────────────────────────────────────── */
:root {
  --font-mono: 'JetBrains Mono', 'Geist Mono', 'IBM Plex Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing — 4px base unit (--space-N = N × 4px), no gaps */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-full: 9999px;

  /* Shadows — neutral, voice/scheme-independent */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.10);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Layout */
  --max-width: 1080px;
  --nav-height: 64px;

  /* Color/font fallback = friendly + light (overridden below) */
  --bg-base:       #FBF6EC;
  --bg-surface:    #F5EDDC;
  --bg-elevated:   #F0E7D2;
  --border:        rgba(42,32,19,0.12);
  --border-hover:  rgba(42,32,19,0.22);

  --accent:        #E3A72A;
  --accent-light:  #8A6510;
  --accent-glow:   rgba(138,101,16,0.10);
  --accent-soft:   #F7E2AC;
  --accent-grad:   linear-gradient(135deg, #C68A1E, #8A6510);
  --emerald:       #5F7439;
  --emerald-light: #7C8F4A;
  --amber:         #A9670F;

  --text-primary:  #2A2013;
  --text-secondary:#6b5c3f;
  --text-muted:    #7e6e4c;
  --text-inverse:  #FBF6EC;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', serif;
  --headline-weight: 600;
  --headline-tracking: -0.01em;
  --body-weight: 400;

  --shadow-glow: 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ───────────────────────────────────────────────
   VOICE × SCHEME MATRIX
   ─────────────────────────────────────────────── */
html[data-voice="friendly"] {
  --font-display: 'Bricolage Grotesque', serif;
  --font-sans: 'Geist', 'Inter', sans-serif;
  --headline-weight: 600;
  --headline-tracking: -0.01em;
  --accent: #E3A72A;
}
html[data-voice="friendly"][data-scheme="light"] {
  --bg-base:#FBF6EC; --bg-surface:#F5EDDC; --bg-elevated:#F0E7D2;
  --border: rgba(42,32,19,0.12); --border-hover: rgba(42,32,19,0.22);
  --accent-light:#8A6510; --accent-glow: rgba(138,101,16,0.10); --accent-soft:#F7E2AC; --accent-grad: linear-gradient(135deg,#C68A1E,#8A6510);
  --text-primary:#2A2013; --text-secondary:#6b5c3f; --text-muted:#7e6e4c; --text-inverse:#FBF6EC;
  --emerald:#5F7439; --emerald-light:#7C8F4A; --amber:#A9670F;
}
html[data-voice="friendly"][data-scheme="dark"] {
  --bg-base:#0A0806; --bg-surface:#0F0B07; --bg-elevated:#130E0A;
  --border: rgba(245,237,220,0.14); --border-hover: rgba(245,237,220,0.24);
  --accent-light:#E3A72A; --accent-glow: rgba(227,167,42,0.15); --accent-soft:#3a3220; --accent-grad: linear-gradient(135deg,#E3A72A,#8A6510);
  --text-primary:#F5EDDC; --text-secondary:#c9b98d; --text-muted:#9c8d68; --text-inverse:#211C12;
  --emerald:#7A8F4E; --emerald-light:#9BAE6E; --amber:#C98A2E;
}

html[data-voice="professional"] {
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-sans: 'IBM Plex Sans', 'Geist', sans-serif;
  --headline-weight: 700;
  --headline-tracking: -0.02em;
  --body-weight: 400;
  --accent: #1B3358;
}
html[data-voice="professional"][data-scheme="light"] {
  --bg-base:#F7F9FB; --bg-surface:#EEF1F5; --bg-elevated:#E3E8EE;
  --border: rgba(20,35,58,0.14); --border-hover: rgba(20,35,58,0.26);
  --accent-light:#1B3358; --accent-glow: rgba(27,51,88,0.10); --accent-soft:#DCE4EE; --accent-grad: linear-gradient(135deg,#24446F,#0F1F38);
  --text-primary:#151E2B; --text-secondary:#4C5A6E; --text-muted:#6B7889; --text-inverse:#F7F9FB;
  --emerald:#3F7A50; --emerald-light:#2F9C50; --amber:#B8770F;
}
html[data-voice="professional"][data-scheme="dark"] {
  --bg-base:#0F141C; --bg-surface:#161C27; --bg-elevated:#1E2632;
  --border: rgba(230,238,248,0.14); --border-hover: rgba(230,238,248,0.26);
  --accent:#6E9AD1; --accent-light:#6E9AD1; --accent-glow: rgba(110,154,209,0.15); --accent-soft:#1D2E45; --accent-grad: linear-gradient(135deg,#6E9AD1,#1B3358);
  --text-primary:#F4F7FB; --text-secondary:#A7B4C4; --text-muted:#7C8AA0; --text-inverse:#0F141C;
  --emerald:#4FBE72; --emerald-light:#6FDE92; --amber:#E0A030;
}

html[data-voice="mysterious"] {
  --font-display: 'Cormorant', serif;
  --font-sans: 'Jost', sans-serif;
  --headline-weight: 500;
  --headline-tracking: -0.01em;
  --body-weight: 300;
  --accent: #0A0A0A;
}
html[data-voice="mysterious"][data-scheme="light"] {
  --bg-base:#FFFFFF; --bg-surface:#F4F4F4; --bg-elevated:#EBEBEB;
  --border: rgba(10,10,10,0.14); --border-hover: rgba(10,10,10,0.26);
  --accent:#0A0A0A; --accent-light:#0A0A0A; --accent-glow: rgba(10,10,10,0.08); --accent-soft:#E8E8E8; --accent-grad: linear-gradient(135deg,#3a3a3a,#0A0A0A);
  --text-primary:#0A0A0A; --text-secondary:#555555; --text-muted:#757575; --text-inverse:#FFFFFF;
  --emerald:#3F6B4E; --emerald-light:#578566; --amber:#7A6A2E;
}
html[data-voice="mysterious"][data-scheme="dark"] {
  --bg-base:#0A0A0A; --bg-surface:#141414; --bg-elevated:#1d1d1d;
  --border: rgba(245,245,245,0.14); --border-hover: rgba(245,245,245,0.26);
  --accent:#FFFFFF; --accent-light:#FFFFFF; --accent-glow: rgba(255,255,255,0.12); --accent-soft:#2b2b2b; --accent-grad: linear-gradient(135deg,#FFFFFF,#bdbdbd);
  --text-primary:#F5F5F5; --text-secondary:#a0a0a0; --text-muted:#7a7a7a; --text-inverse:#0A0A0A;
  --emerald:#7FB894; --emerald-light:#9CCBAE; --amber:#C9B26B;
}

/* ───────────────────────────────────────────────
   RESET & BASE
   ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth, theme-wide colour crossfade when switching tone/scheme — scoped to
   colour-only properties (cheap to animate, no layout thrash). Elements that
   declare their own more specific `transition` (buttons, cards, hover states)
   simply keep using that instead of this one. */
*, *::before, *::after {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, fill 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: var(--body-weight);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ───────────────────────────────────────────────
   TYPOGRAPHY
   ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--headline-weight);
  line-height: 1.15;
  letter-spacing: var(--headline-tracking);
  color: var(--text-primary);
}

.display-xl {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  line-height: 1.08;
}

.display-lg {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-6xl));
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  line-height: 1.1;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  margin: 10px 0 0;
}

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.text-emerald { color: var(--emerald-light); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ───────────────────────────────────────────────
   LAYOUT
   ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

/* ───────────────────────────────────────────────
   NAVIGATION
   ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(0,0,0,0.04);
  transition: background var(--duration-base) var(--ease-in-out), border-color var(--duration-base) var(--ease-in-out);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo-img {
  height: 22px;
  width: auto;
  display: block;
  transition: filter 0.2s ease;
}
[data-scheme="dark"] .nav-logo-img { filter: invert(1); }

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--emerald);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); opacity: 0.8; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all var(--duration-fast);
  background: transparent;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-base);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-cta { display: none; }
}

/* ───────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 var(--space-6);
  min-height: 44px;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: none;
}

[data-scheme="light"] .btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  background: transparent;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.btn-icon:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-lg {
  padding: 12px 24px;
  min-height: 44px;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
}

/* ───────────────────────────────────────────────
   CARD COMPONENTS
   ─────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base), transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-glass {
  background: rgba(17,17,24,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ───────────────────────────────────────────────
   TAGS & BADGES
   ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.tag-default {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-accent {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.tag-emerald {
  background: rgba(16,185,129,0.1);
  color: var(--emerald-light);
  border: 1px solid rgba(16,185,129,0.2);
}

.tag-amber {
  background: rgba(245,158,11,0.1);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.2);
}

/* ───────────────────────────────────────────────
   SECTION LABELS
   ─────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.section-label::before { content: none; }

/* ───────────────────────────────────────────────
   DIVIDER
   ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* ───────────────────────────────────────────────
   SKIP LINK
   ─────────────────────────────────────────────── */
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:100;
  background:var(--text-primary); color:var(--bg-base); padding:12px 18px; border-radius:8px;
  font-family:'Geist',sans-serif; font-size:0.85rem; text-decoration:none; transition:top 0.2s ease;
}
.skip-link:focus{ top:12px; }

/* ───────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ─────────────────────────────────────────────── */
.scroll-progress-track{ position:fixed; top:0; left:0; right:0; height:3px; z-index:60; }
.scroll-progress-bar{ height:100%; width:0%; background:var(--accent-light); transition:width 0.1s linear, background var(--duration-base) ease; }

/* ───────────────────────────────────────────────
   CURSOR GLOW (Desktop only)
   ─────────────────────────────────────────────── */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  mix-blend-mode: soft-light;
  filter: blur(6px);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.cursor-glow.active { opacity: 0.55; }
[data-scheme="dark"] .cursor-glow.active { opacity: 0.3; }

@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ───────────────────────────────────────────────
   SCROLL ANIMATIONS
   ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.fade-in.in-view { opacity: 1; }

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 80ms; }
.stagger-3 { transition-delay: 160ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 320ms; }

/* ───────────────────────────────────────────────
   HERO SECTION
   ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + clamp(28px, 5vw, 56px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin: 14px 0 0;
}

.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-description {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero-eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 5; }
.hero-role {
  position: relative;
  font-family: var(--font-display); font-weight: var(--headline-weight);
  font-size: clamp(1.35rem, 3.4vw, 2rem); color: var(--accent-light);
  margin: 6px 0 0; height: 1.3em; line-height: 1.3em;
}
.hero-role-text {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; filter: blur(6px); transform: translateY(8px);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1), filter 1.1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform, filter;
}
.hero-role-text.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-role-text { transition: none !important; filter: none !important; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  animation: bounce-scroll 2.5s ease-in-out infinite;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ───────────────────────────────────────────────
   MARQUEE
   ─────────────────────────────────────────────── */
.marquee-section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-section:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast);
}

.marquee-item:hover { color: var(--text-secondary); }

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   WORK / PROJECT CARDS
   ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  gap: var(--space-6);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration-base),
              box-shadow var(--duration-base),
              transform var(--duration-slow) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.project-card-reversed {
  direction: rtl;
}

.project-card-reversed > * { direction: ltr; }

.project-card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
  aspect-ratio: 16/10;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4) 0;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-card-title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.project-card-metric {
  display: flex;
  flex-direction: column;
}

.project-card-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--emerald-light);
  letter-spacing: -0.01em;
}

.project-card-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--duration-fast);
}

.project-card:hover .project-card-link { gap: var(--space-3); }

.arrow-icon {
  transition: transform var(--duration-fast);
}

.project-card:hover .arrow-icon { transform: translateX(4px); }

/* Mini Cards Grid */
.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.project-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.project-mini-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-mini-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-mini-card:hover .project-mini-image img { transform: scale(1.05); }

.project-mini-body {
  padding: var(--space-4);
}

.project-mini-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.project-mini-year {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card-reversed { direction: ltr; }
}

@media (max-width: 768px) {
  .projects-mini-grid { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────────────────────────────
   ABOUT SECTION
   ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.about-photo-wrapper {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.about-photo-badge {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}

.about-content { padding-top: var(--space-4); }

.about-statement {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  line-height: 1.3;
  margin-bottom: var(--space-6);
}

.about-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-body p + p { margin-top: var(--space-4); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.skill-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.skill-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-grid > * { min-width: 0; }
  .hero-cta-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-photo { max-width: 280px; aspect-ratio: 1/1; border-radius: 50%; }
  .about-photo-wrapper { display: flex; justify-content: center; }
  .about-photo-badge { white-space: normal; max-width: 90%; text-align: center; }
}

.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6); text-align: left; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
@media (max-width: 1024px) {
  .about-columns { grid-template-columns: 1fr; gap: var(--space-10); }
}
@media (max-width: 860px) {
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────────────────────────────
   PROCESS SECTION
   ─────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-base), transform var(--duration-base);
}

.process-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.process-number {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--accent-light);
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.process-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 20px;
}

.process-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.process-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   CTA / CONTACT SECTION
   ─────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: var(--headline-weight);
  letter-spacing: var(--headline-tracking);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ───────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────── */
.footer {
  padding: clamp(48px, 8vw, 80px) 0 40px;
  position: relative;
  overflow: hidden;
}

.footer h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer-link:hover { color: var(--text-primary); }

/* ───────────────────────────────────────────────
   CASE STUDY PAGE
   ─────────────────────────────────────────────── */
.case-hero {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  border-bottom: 1px solid var(--border);
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-meta-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.case-meta-value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}

.case-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.case-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border);
}

.case-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.case-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.case-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.case-content li { margin-bottom: var(--space-2); }

.case-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: var(--space-8) 0;
  overflow: hidden;
}

.case-image img { width: 100%; display: block; }

.case-insight {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.case-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.case-metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.case-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--emerald-light);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: var(--space-1);
}

.case-metric-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}

.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.case-nav-link:hover { color: var(--text-primary); }
.case-nav-link strong { color: var(--text-primary); font-size: var(--text-base); }

@media (max-width: 768px) {
  .case-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .case-metric-grid { grid-template-columns: 1fr; }
  .case-content { padding: var(--space-8) clamp(20px, 5vw, 32px); }
}

/* ───────────────────────────────────────────────
   CONTACT PAGE
   ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: border-color var(--duration-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.form-textarea { resize: vertical; min-height: 140px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   WORK PAGE FILTERS
   ─────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.filter-tab:hover { color: var(--text-primary); border-color: var(--border-hover); }

.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-6);
}

/* ───────────────────────────────────────────────
   ABOUT PAGE - TIMELINE
   ─────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-base);
}

.timeline-date {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding-left: var(--space-8);
  padding-top: 2px;
}

.timeline-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--accent-light);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { padding-left: var(--space-6); }
}

/* ───────────────────────────────────────────────
   UTILITIES
   ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

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

/* ───────────────────────────────────────────────
   SUBPAGE HERO (Gallery / Blog / Interests headers)
   ─────────────────────────────────────────────── */
.subpage-hero { padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-8); }
.back-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.82rem; color: var(--text-muted); text-decoration: none; margin-bottom: var(--space-5);
  min-height: 44px; transition: color var(--duration-fast);
}
.back-link:hover { color: var(--text-primary); }

/* ───────────────────────────────────────────────
   GALLERY GRID
   ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); margin-top: var(--space-8); }
.g-card {
  aspect-ratio: 4/5; border-radius: var(--radius-md); position: relative; overflow: hidden; border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: var(--space-4); margin: 0;
  transition: box-shadow var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out);
  background: var(--bg-surface);
}
.g-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.22); border-color: var(--accent-light); }
.g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform var(--duration-slow) var(--ease-out); }
.g-card:hover img { transform: scale(1.08); }
.g-card .cap {
  position: relative; font-size: 0.68rem; color: #fff; letter-spacing: 0.03em; text-shadow: 0 1px 6px rgba(0,0,0,0.5); z-index: 1; margin: 0;
  transition: transform var(--duration-slow) var(--ease-out);
}
.g-card:hover .cap { transform: translateY(-2px); }
.g-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%); transition: opacity var(--duration-slow) var(--ease-out); }
.g-card:hover::after { opacity: 0.85; }
.g-card.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-note { font-size: 0.82rem; color: var(--text-muted); margin-top: var(--space-4); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } .g-card.tall { grid-row: span 1; } }

/* Gallery page only — landscape images, same grid/layout otherwise. */
.gallery-grid--landscape .g-card:not(.tall) { aspect-ratio: 3/2; }

/* ───────────────────────────────────────────────
   HOMEPAGE GALLERY MARQUEE — two rows drifting in
   opposite directions, built from the homepage
   #gallery grid's cards at runtime (see inline
   script). The source grid stays in the DOM
   (.visually-hidden) so the CMS's cheerio
   add/reorder/delete logic keeps working untouched.
   Full-bleed: spans the full viewport width,
   ignoring the page's usual container margin.
   ─────────────────────────────────────────────── */
.gallery-marquee { overflow: hidden; margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.gallery-marquee--full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.gallery-marquee-row { display: flex; gap: var(--space-6); width: max-content; will-change: transform; }
.gallery-marquee-row .g-card {
  flex: 0 0 auto; width: clamp(240px, 26vw, 340px); aspect-ratio: 3/2; margin: 0;
}
.gallery-marquee-row.row-ltr { animation: galleryMarqueeLTR 55s linear infinite; }
.gallery-marquee-row.row-rtl { animation: galleryMarqueeRTL 65s linear infinite; }
@keyframes galleryMarqueeLTR { from { transform: translateX(-50%); } to { transform: translateX(0%); } }
@keyframes galleryMarqueeRTL { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
.gallery-marquee:hover .gallery-marquee-row { animation-play-state: paused; }
@media (max-width: 640px) { .gallery-marquee-row .g-card { width: clamp(180px, 62vw, 260px); } }
@media (prefers-reduced-motion: reduce) { .gallery-marquee-row { animation: none !important; } }

/* ───────────────────────────────────────────────
   BLOG GRID
   ─────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); margin-top: var(--space-8); }
#blog .blog-grid { grid-template-columns: repeat(3,1fr); }
.blog-card { border-top: 1px solid var(--border); padding-top: var(--space-6); transition: border-color var(--duration-base); }
.blog-card .eyebrow { margin-bottom: var(--space-3); }
.blog-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.blog-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.blog-card .read { display: inline-block; margin-top: var(--space-3); font-size: 0.74rem; color: var(--accent-light); text-decoration: none; border-bottom: 1px solid var(--accent-light); }
.blog-thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 14px; border: 1px solid var(--border); }
@media (max-width: 860px) { .blog-grid, #blog .blog-grid { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   STUDY CARDS (expand / collapse case-study summaries)
   ─────────────────────────────────────────────── */
.study-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); margin-top: var(--space-5);
  background: var(--bg-surface); transition: background var(--duration-base), border-color var(--duration-base);
}
.study-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; cursor: pointer; }
.study-head h3 { font-size: 1.35rem; }
.study-head .meta { font-size: 0.72rem; color: var(--accent-light); }
.study-toggle { font-size: 0.85rem; color: var(--accent-light); white-space: nowrap; }
.study-body {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6); margin-top: 0;
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease, margin-top 0.5s ease;
}
.study-card.open .study-body { max-height: 800px; margin-top: var(--space-6); }
.study-body h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-2); font-family: var(--font-sans); font-weight: 600; }
.study-body p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.study-body .case-link { display: inline-block; margin-top: var(--space-3); font-size: 0.78rem; color: var(--accent-light); }
@media (max-width: 860px) { .study-body { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   STUDY ROWS (simple linked card, no expand)
   ─────────────────────────────────────────────── */
.study-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); margin-top: var(--space-6); background: var(--bg-surface);
  transition: background var(--duration-base) ease, transform var(--duration-base) ease;
}
.study-row:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateX(4px); }
.study-row h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: var(--headline-weight); margin: 0; }
.study-row .meta { font-family: 'Geist', sans-serif; font-size: 0.78rem; color: var(--text-secondary); }
.study-row p { margin: 10px 0 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; max-width: 60ch; }
.study-row .arrow { font-size: 1.1rem; color: var(--accent-light); flex-shrink: 0; }

/* ───────────────────────────────────────────────
   INTEREST GRID
   ─────────────────────────────────────────────── */
.interest-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); margin-top: var(--space-8); }
#interests .interest-grid { grid-template-columns: repeat(3,1fr); }
.interest-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); background: var(--bg-surface);
  transition: background var(--duration-base), border-color var(--duration-base), transform var(--duration-fast);
}
.interest-card:hover { transform: translateY(-3px); border-color: var(--accent-light); }
.interest-card .glyph { font-size: 1.4rem; margin-bottom: var(--space-3); display: block; }
.interest-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin-bottom: var(--space-2); }
.interest-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.interest-thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-3); border: 1px solid var(--border); }
@media (max-width: 860px) { .interest-grid { grid-template-columns: repeat(2,1fr); } #interests .interest-grid { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   WORK ROWS (Works teaser + Works page list)
   ─────────────────────────────────────────────── */
.work-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-8); align-items: center;
  padding: var(--space-6) clamp(20px, 5vw, 56px); margin: 0 calc(-1 * clamp(20px, 5vw, 56px)); border-top: 1px solid var(--border);
  text-decoration: none; color: inherit; border-radius: 12px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.work-row:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateX(4px); }
.work-row h3 { font-size: 1.2rem; font-weight: 500; font-style: normal; text-transform: none; letter-spacing: normal; }
.work-row .meta { display: block; font-family: 'Geist', sans-serif; font-size: 0.78rem; color: var(--accent-light); margin-top: 4px; }
.work-row p { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.94rem; max-width: 52ch; }
.work-row .arrow { font-size: 1.1rem; color: var(--accent-light); transition: transform var(--duration-fast); display: inline-block; }
.nda-badge{
  display:none; align-items:center; gap:4px; font-family:'Geist',sans-serif; font-size:0.68rem; font-weight:600;
  text-transform:uppercase; letter-spacing:0.04em; color:var(--bg-base); background:var(--text-primary);
  padding:3px 9px; border-radius:999px; margin-left:8px; vertical-align:middle;
}
.work-row[data-nda="true"] .nda-badge{ display:inline-flex; }
.nda-notice{
  display:none; align-items:center; gap:8px; font-family:'Geist',sans-serif; font-size:0.85rem; font-weight:500;
  color:var(--bg-base); background:var(--text-primary); padding:10px 16px; border-radius:12px;
  max-width:700px; margin:var(--space-4) 0 0;
}
.nda-notice[data-nda="true"]{ display:flex; }
.work-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
@media (max-width: 860px) {
  .work-row { grid-template-columns: 56px 1fr; gap: 8px var(--space-4); }
  .work-row .arrow { display: none; }
}

/* ───────────────────────────────────────────────
   PROJECT GRID — image-forward cards for the merged
   Case Studies + Quick Works listing. Reuses the same
   .work-row element (and its data-cms-id children) so
   the CMS's add/delete/reorder logic keeps working —
   this is purely a visual override, scoped to any
   .work-row living inside a .project-grid.
   ─────────────────────────────────────────────── */
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6);
}
.project-grid .work-row {
  display: flex; flex-direction: column; grid-template-columns: unset;
  padding: 0; margin: 0; border-top: none; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-surface); min-width: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
.project-grid .work-row:hover { background: var(--bg-surface); transform: translateY(-3px); box-shadow: 0 6px 18px #0000000d; border-color: var(--border); }
.project-card-body { padding: var(--space-5) var(--space-5) var(--space-4); }
.project-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card-tag {
  font-family: 'Geist', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted);
}
.project-grid .work-row h3 { font-size: 1.1rem; margin: 0 0 6px; }
.project-grid .work-row p { max-width: none; }
.project-card-img-wrap { position: relative; margin-top: auto; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elevated); min-width: 0; }
.project-card-img-wrap .work-thumb {
  width: 100%; height: 100%; border-radius: 0; border: none;
  transition: transform 0.4s var(--ease-out);
}
.project-grid .work-row:hover .project-card-img-wrap .work-thumb { transform: scale(1.05); }
.project-card-img-wrap .arrow {
  position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-base); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.project-grid .work-row:hover .project-card-img-wrap .arrow { opacity: 1; transform: translateY(0); }
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   VIEW MORE ROW (end of a trimmed homepage section)
   ─────────────────────────────────────────────── */
.view-more-row { margin-top: var(--space-8); display: flex; }

/* ───────────────────────────────────────────────
   SCHEME-ONLY OVERRIDES (voice-independent)
   Everything voice-specific lives in the matrix above;
   accents/glows below read var(--accent) via color-mix()
   so they auto-adapt to whichever voice is active.
   ─────────────────────────────────────────────── */
[data-scheme="light"] .cursor-glow { mix-blend-mode: multiply; }

#mobileMenu {
  background: color-mix(in srgb, var(--bg-base) 97%, transparent) !important;
}

#mobileMenu a { color: var(--text-primary) !important; }

/* ───────────────────────────────────────────────
   FOCUS MODE (accessibility) — independent of voice/scheme
   High contrast · Reduced motion · Larger text · WCAG AAA
   ─────────────────────────────────────────────── */
[data-a11y="true"] {
  --bg-base:       #000000;
  --bg-surface:    #0A0A0A;
  --bg-elevated:   #111111;
  --border:        rgba(255,255,0,0.25);
  --border-hover:  rgba(255,255,0,0.5);

  --accent:        #FFD700;
  --accent-light:  #FFE566;
  --accent-glow:   rgba(255,215,0,0.15);
  --accent-grad:   linear-gradient(135deg, #FFD700, #FFA500);
  --emerald:       #00FF88;
  --emerald-light: #00FFB3;
  --amber:         #FFAA00;

  --text-primary:  #FFFFFF;
  --text-secondary:#E5E5E5;
  --text-muted:    #AAAAAA;

  --shadow-glow: 0 0 30px rgba(255,215,0,0.2);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
}

[data-a11y="true"] body {
  font-size: 18px;
  letter-spacing: 0.01em;
}

[data-a11y="true"] *:focus-visible {
  outline: 3px solid #FFD700 !important;
  outline-offset: 4px !important;
  border-radius: 4px;
}

/* Stop all animations in accessible mode */
[data-a11y="true"] *,
[data-a11y="true"] *::before,
[data-a11y="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05ms !important;
}

[data-a11y="true"] .breath,
[data-a11y="true"] .cursor-glow {
  display: none;
}

[data-a11y="true"] .nav.scrolled {
  background: rgba(0,0,0,0.98);
  border-bottom-color: rgba(255,215,0,0.4);
}

[data-a11y="true"] .nav-link:hover,
[data-a11y="true"] .nav-link.active {
  color: var(--accent-light);
}

[data-a11y="true"] .nav-logo-dot {
  background: #FFD700;
  box-shadow: 0 0 0 0 rgba(255,215,0,0.5);
  animation: none;
}

[data-a11y="true"] .btn-primary {
  background: #FFD700;
  color: #000;
  font-weight: 700;
  box-shadow: none;
}

[data-a11y="true"] .btn-secondary {
  border-color: rgba(255,215,0,0.5);
  color: #FFD700;
}

[data-a11y="true"] .btn-primary:hover {
  background: #FFE566;
  transform: none;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.3);
}

[data-a11y="true"] .hero-badge {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.08);
}

[data-a11y="true"] .hero-badge-dot {
  background: #00FF88;
}

[data-a11y="true"] .section-label {
  color: #FFD700;
}

[data-a11y="true"] .section-label::before {
  background: #FFD700;
}

[data-a11y="true"] .tag-accent {
  background: rgba(255,215,0,0.12);
  color: #FFE566;
  border-color: rgba(255,215,0,0.3);
}

[data-a11y="true"] .project-card:hover,
[data-a11y="true"] .card:hover {
  transform: none;
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.2);
}

[data-a11y="true"] .cta-section {
  border-color: rgba(255,215,0,0.3);
}

[data-a11y="true"] .form-input:focus,
[data-a11y="true"] .form-textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

[data-a11y="true"] .hero-scroll { display: none; }

[data-a11y="true"] #mobileMenu {
  background: rgba(0,0,0,0.99) !important;
  border: 2px solid rgba(255,215,0,0.3);
}

[data-a11y="true"] .nav-cta {
  border-color: rgba(255,215,0,0.4);
  color: #FFD700;
}

/* ───────────────────────────────────────────────
   SCHEME TOGGLE — plain always-visible light/dark button, sits outside
   the settings menu (one click, no menu needed).
   ─────────────────────────────────────────────── */
.scheme-btn{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:var(--bg-surface);
  color:var(--text-primary); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.9rem;
  flex-shrink:0; transition:transform 0.25s ease, background var(--duration-base) ease, border-color var(--duration-base) ease;
}
.scheme-btn:hover{ transform:scale(1.08); border-color:var(--accent-light); }

/* ───────────────────────────────────────────────
   SETTINGS MENU (Tone) — tucked behind a hamburger icon in the nav
   instead of showing an always-visible button.
   ─────────────────────────────────────────────── */
.settings-btn{
  display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%;
  border:1px solid var(--border); background:var(--bg-surface); cursor:pointer;
  transition:all 0.2s ease; flex-shrink:0; gap:3px; flex-direction:column;
}
.settings-btn span{ display:block; width:14px; height:1.5px; background:var(--text-secondary); border-radius:1px; transition:background 0.2s ease; }
.settings-btn:hover{ border-color:var(--accent-light); }
.settings-btn:hover span{ background:var(--accent-light); }
.settings-btn[aria-expanded="true"]{ border-color:var(--accent-light); background:var(--accent-glow); }
.settings-btn[aria-expanded="true"] span{ background:var(--accent-light); }
@media (max-width: 768px) { .settings-btn { display: none; } }

.settings-menu{
  position:fixed; top:calc(var(--nav-height) + 10px); right:20px; z-index:200; width:220px;
  padding:14px; border-radius:var(--radius-lg); border:1px solid var(--border);
  background:color-mix(in srgb, var(--bg-base) 92%, transparent); backdrop-filter:blur(14px);
  box-shadow:0 12px 30px rgba(0,0,0,0.16);
  opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity 0.2s ease, transform 0.2s ease;
}
.settings-menu.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
.settings-menu-section + .settings-menu-section{ margin-top:16px; padding-top:14px; border-top:1px solid var(--border); }
.tone-menu-label{
  font-family:var(--font-sans); font-size:0.62rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-muted); margin:0 0 10px;
}
.mood-pills{ display:flex; flex-direction:column; gap:6px; }
#mobileMenu .mobile-tone-section{ width:220px; max-width:80vw; }
#mobileMenu .tone-menu-label{ text-align:center; }
.pill{
  font-family:'Geist',sans-serif; font-weight:500; font-size:0.85rem; letter-spacing:0.02em;
  width:100%; padding:9px 12px; min-height:36px; border-radius:var(--radius-md); border:1px solid var(--border); background:transparent; color:var(--text-muted);
  cursor:pointer; display:flex; align-items:center; gap:8px; transition:all 0.25s ease;
}
.pill .dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.pill[data-active="true"]{ border-color:var(--accent-light); color:var(--text-primary); background:var(--accent-soft); }
.pill:hover{ border-color:var(--accent-light); }
@media (max-width:640px){
  .settings-menu{ right:12px; width:200px; }
}

/* ───────────────────────────────────────────────
   EASTER EGGS
   ─────────────────────────────────────────────── */
.egg-toast{
  position:fixed; top:76px; left:50%; transform:translateX(-50%) translateY(-8px);
  background:var(--text-primary); color:var(--bg-base); padding:16px 24px; border-radius:14px;
  z-index:90; max-width:320px; text-align:center; box-shadow:0 12px 30px rgba(0,0,0,0.25);
  opacity:0; pointer-events:none; transition:opacity 0.4s ease, transform 0.4s ease;
}
.egg-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.egg-toast p{ margin:0; font-family:var(--font-sans); }
.egg-toast p:first-child{ font-weight:600; margin-bottom:4px; }
.egg-sub{ font-size:0.8rem; opacity:0.85; }

.egg-note{
  position:fixed; bottom:80px; right:20px; max-width:300px; background:var(--bg-surface); border:1px solid var(--border);
  border-radius:14px; padding:24px; z-index:90; box-shadow:0 12px 30px rgba(0,0,0,0.18);
  opacity:0; transform:translateY(10px); transition:opacity 0.4s ease, transform 0.4s ease; pointer-events:none;
}
.egg-note.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
.egg-close{
  position:absolute; top:8px; right:8px; width:28px; height:28px; border-radius:50%; border:1px solid var(--border);
  background:var(--bg-base); color:var(--text-primary); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.75rem;
}
.egg-note-text{ font-family:var(--font-display); font-style:italic; line-height:1.5; margin:0 0 12px; padding-right:20px; }
.egg-note-sign{ font-family:var(--font-sans); font-size:0.85rem; color:var(--text-muted); margin:0; }
@media (max-width:560px){
  .egg-note{ right:12px; left:12px; max-width:none; bottom:70px; }
  .egg-toast{ max-width:calc(100vw - 32px); }
}

/* ───────────────────────────────────────────────
   BREATH (hero ambient blob)
   ─────────────────────────────────────────────── */
.breath{
  position:absolute; width:220px; height:220px; border-radius:50%; right:6%; top:18%;
  background:radial-gradient(circle, var(--accent-soft), transparent 70%); z-index:-1;
  animation:breathe 4.8s ease-in-out infinite; opacity:0.7; pointer-events:none;
}
[data-scheme="dark"] .breath{ opacity:0.22; }
@keyframes breathe{ 0%,100%{ transform:scale(0.92); } 50%{ transform:scale(1.05); } }

/* ───────────────────────────────────────────────
   DREAM ORBS — soft, independently-drifting blurred
   gradient blobs layered into the friendly hero for
   a slow, ambient "aurora" feel alongside .breath.
   ─────────────────────────────────────────────── */
.dream-orb{ display:none; }
html[data-voice="friendly"] .dream-orb{
  display:block; position:absolute; border-radius:50%; filter:blur(70px);
  pointer-events:none; z-index:-1; will-change:transform;
}
html[data-voice="friendly"] .dream-orb-1{
  width:380px; height:380px; left:-9%; top:2%;
  background:radial-gradient(circle, var(--accent-light), transparent 70%);
  opacity:0.35; animation:dreamDrift1 24s ease-in-out infinite;
}
html[data-voice="friendly"] .dream-orb-2{
  width:320px; height:320px; left:28%; bottom:-14%;
  background:radial-gradient(circle, var(--emerald-light), transparent 70%);
  opacity:0.28; animation:dreamDrift2 29s ease-in-out infinite;
}
html[data-voice="friendly"][data-scheme="dark"] .dream-orb{ mix-blend-mode:screen; }
html[data-voice="friendly"][data-scheme="dark"] .dream-orb-1{ opacity:0.02; }
html[data-voice="friendly"][data-scheme="dark"] .dream-orb-2{ opacity:0.015; }
@keyframes dreamDrift1{
  0%, 100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(50px, 35px) scale(1.1); }
  66%      { transform:translate(-30px, 55px) scale(0.93); }
}
@keyframes dreamDrift2{
  0%, 100% { transform:translate(0,0) scale(1); }
  40%      { transform:translate(-40px, -35px) scale(1.12); }
  70%      { transform:translate(35px, -15px) scale(0.9); }
}
@media (max-width:768px){ html[data-voice="friendly"] .dream-orb{ display:none; } }
@media (prefers-reduced-motion: reduce){ html[data-voice="friendly"] .dream-orb{ animation:none; } }

/* ───────────────────────────────────────────────
   HERO TEXTURE (per-voice background pattern)
   ─────────────────────────────────────────────── */
.hero-texture{ position:absolute; inset:0; z-index:-2; pointer-events:none; }
html[data-voice="friendly"] .hero-texture{
  background-image: url('../images/paper-texture.jpg');
  background-size: 160% auto;
  background-position: 30% 30%;
  mix-blend-mode: multiply;
  opacity: 0.4;
  animation: heroPaperDrift 48s ease-in-out infinite;
}
html[data-voice="friendly"][data-scheme="dark"] .hero-texture{
  mix-blend-mode: screen;
  opacity: 0.05;
}
@keyframes heroPaperDrift{
  0%, 100% { background-position: 30% 30%; }
  50%      { background-position: 42% 45%; }
}
@media (prefers-reduced-motion: reduce){ html[data-voice="friendly"] .hero-texture{ animation:none; } }
html[data-voice="professional"] .hero-texture{
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 45%, var(--text-secondary) 55%) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, black 35%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, black 35%, transparent 88%);
}
html[data-voice="professional"] .hero-bg::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%),
    radial-gradient(ellipse 50% 40% at 88% 6%, color-mix(in srgb, var(--emerald-light) 16%, transparent), transparent 72%),
    radial-gradient(ellipse 65% 55% at 50% 105%, color-mix(in srgb, var(--accent-light) 12%, transparent), transparent 75%);
  filter: blur(50px);
  opacity: 0.85;
}
html[data-voice="mysterious"] .hero-texture{
  background-image: repeating-linear-gradient(135deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 14px);
  opacity:0.6;
}

/* ───────────────────────────────────────────────
   HERO SQUIGGLE (draws in under headline on load)
   ─────────────────────────────────────────────── */
.hero-squiggle path{
  stroke-dasharray:170; stroke-dashoffset:170;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2,0.8,0.2,1);
}
.hero-squiggle.drawn path{ stroke-dashoffset:0; }

/* ───────────────────────────────────────────────
   CUSTOM CURSOR (crosshair, desktop pointer only)
   ─────────────────────────────────────────────── */
.cursor-crosshair{
  position:fixed; top:0; left:0; pointer-events:none; z-index:299;
  transform:translate(-50%,-50%); opacity:0;
  transition:opacity 0.2s ease, top 0.06s ease-out, left 0.06s ease-out;
}
.cursor-crosshair.active{ opacity:0.9; }
@media (min-width: 769px) { body.custom-cursor-on{ cursor:none; } }
@media (max-width: 768px) { .cursor-crosshair { display: none; } }

/* ───────────────────────────────────────────────
   PROCESS NOTES (handwritten sticky annotations)
   ─────────────────────────────────────────────── */
.process-note{
  display:inline-block; font-family:'Caveat',cursive; font-size:1.2rem; color:var(--accent-light);
  margin-top:var(--space-3); border:1px dashed var(--accent-light); border-radius:10px;
  padding:6px 14px; background:var(--bg-surface);
}
.process-note.rotate-neg{ transform:rotate(-2deg); }
.process-note.rotate-pos{ transform:rotate(1.5deg); }

/* ───────────────────────────────────────────────
   SECRET PIN (footer button + bottom-left panel)
   ─────────────────────────────────────────────── */
.secret-pin-btn{
  font-family:'Geist',sans-serif; font-size:0.85rem; padding:8px 16px; min-height:36px;
  border-radius:999px; border:1px solid var(--accent-light); background:none; color:var(--accent-light);
  cursor:pointer; display:inline-flex; align-items:center;
}
.secret-panel{
  position:fixed; bottom:20px; left:20px; right:20px; max-width:300px; margin:0 auto 0 0;
  background:var(--bg-surface); border:1px solid var(--border); border-radius:14px; padding:24px; z-index:90;
  box-shadow:0 12px 30px rgba(0,0,0,0.18); opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity 0.4s ease, transform 0.4s ease;
}
.secret-panel.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
@media (max-width:560px){ .secret-panel{ right:12px; left:12px; max-width:none; bottom:70px; } }

/* ───────────────────────────────────────────────
   HOBBIES MODAL (double-click avatar)
   ─────────────────────────────────────────────── */
.hobbies-overlay{
  position:fixed; inset:0; z-index:150; background:rgba(0,0,0,0); backdrop-filter:blur(0px);
  opacity:0; pointer-events:none; display:flex; align-items:center; justify-content:center; padding:20px;
  transition:opacity 0.3s ease, background 0.3s ease;
}
.hobbies-overlay.show{ background:rgba(0,0,0,0.4); backdrop-filter:blur(3px); opacity:1; pointer-events:auto; }
.hobbies-modal{
  position:relative; width:100%; max-width:820px; max-height:88vh; overflow:auto;
  background:var(--bg-base); border:1px solid var(--border); border-radius:20px; padding:40px;
  box-shadow:0 24px 60px rgba(0,0,0,0.3); transform:scale(0.94); transition:transform 0.3s ease;
}
.hobbies-overlay.show .hobbies-modal{ transform:scale(1); }
.hobbies-close{
  position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background:var(--bg-base); color:var(--text-primary); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem;
}
.hobbies-body{ display:flex; gap:28px; }
.hobbies-tabs{ display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.hobby-tab-btn{
  font-family:'Geist',sans-serif; font-size:0.85rem; text-align:left; padding:10px 16px; min-height:40px;
  border-radius:10px; border:1px solid var(--border); background:transparent; color:var(--text-secondary);
  cursor:pointer; white-space:nowrap;
}
.hobby-tab-btn[data-active="true"]{ border-color:var(--accent-light); background:var(--accent-soft); color:var(--text-primary); }
.hobby-panel{ flex:1; min-width:0; }
.hobby-carousel{ display:flex; align-items:center; gap:14px; }
.hobby-carousel-arrow{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:var(--bg-surface);
  color:var(--text-primary); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0;
}
.hobby-slide-frame{ flex:1; min-width:0; }
.hobby-slide-img{ position:relative; width:100%; aspect-ratio:4/3; border-radius:14px; overflow:hidden; border:1px solid var(--border); }
.hobby-slide-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hobby-slide-dots{ display:flex; justify-content:center; gap:6px; margin-top:10px; }
.hobby-slide-dot{ width:7px; height:7px; border-radius:4px; background:var(--border); border:none; cursor:pointer; padding:0; transition:width 0.25s ease; }
.hobby-slide-dot[data-active="true"]{ width:20px; background:var(--accent-light); }
@media (max-width:640px){
  .hobbies-body{ flex-direction:column; }
  .hobbies-tabs{ flex-direction:row; }
}

/* ───────────────────────────────────────────────
   WORK GROUPS (Complete Case Studies / Gallery / Quick Works)
   ─────────────────────────────────────────────── */
.work-group{ margin-top: var(--space-12); }
.work-group:first-child{ margin-top: 0; }
.work-group-title{
  font-family:'Geist',sans-serif; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--text-secondary); margin:0 0 var(--space-2);
}
button.g-card{ font:inherit; text-align:left; cursor:pointer; width:100%; }

/* ───────────────────────────────────────────────
   LIGHTBOX (full-screen image view, used by the Work
   page's Gallery group)
   ─────────────────────────────────────────────── */
.lightbox-overlay{
  position:fixed; inset:0; z-index:150; background:rgba(0,0,0,0);
  opacity:0; pointer-events:none; display:flex; align-items:center; justify-content:center; padding:40px;
  transition:opacity 0.3s ease, background 0.3s ease;
}
.lightbox-overlay.show{ background:rgba(0,0,0,0.85); opacity:1; pointer-events:auto; }
.lightbox-content{ position:relative; max-width:900px; max-height:88vh; transform:scale(0.94); transition:transform 0.3s ease; }
.lightbox-overlay.show .lightbox-content{ transform:scale(1); }
.lightbox-content img{ max-width:100%; max-height:80vh; display:block; border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,0.4); margin:0 auto; }
.lightbox-caption{ color:#fff; text-align:center; margin-top:16px; font-family:var(--font-sans); font-size:0.9rem; opacity:0.85; }
.lightbox-close{
  position:absolute; top:12px; right:12px; width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,0.3);
  background:rgba(0,0,0,0.4); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.9rem;
}
.lightbox-close:hover{ background:rgba(0,0,0,0.6); }
@media (max-width:560px){ .lightbox-overlay{ padding:16px; } }

/* ───────────────────────────────────────────────
   JOURNEY (Experience / Education / Tools)
   ─────────────────────────────────────────────── */
.journey-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:var(--space-12); margin-top:var(--space-8); }
.journey-grid > *{ min-width:0; }
.journey-col-label{ font-family:'Geist',sans-serif; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-secondary); margin:0 0 var(--space-5); }
.journey-item{ display:grid; grid-template-columns:16px 1fr; gap:var(--space-4); padding-bottom:var(--space-7); }
.journey-item:last-child{ padding-bottom:0; }
.journey-dot-rail{ display:flex; flex-direction:column; align-items:center; }
.journey-dot{ width:10px; height:10px; border-radius:50%; background:var(--accent-light); flex-shrink:0; }
.journey-dot-line{ width:1px; flex:1; background:var(--border); margin-top:6px; }
.journey-item:last-child .journey-dot-line{ display:none; }
.journey-dates{ font-family:'Geist',sans-serif; font-size:0.72rem; color:var(--accent-light); margin:0 0 4px; letter-spacing:0.04em; }
.journey-role{ font-family:var(--font-display); font-weight:500; font-size:1.05rem; margin:0 0 6px; }
.journey-blurb{ margin:0; color:var(--text-secondary); font-size:0.9rem; line-height:1.5; }
.tools-row{ display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-3); }
.tool-chip{ font-family:'Geist',sans-serif; font-size:0.82rem; padding:6px 14px; border-radius:999px; border:1px solid var(--border); color:var(--text-secondary); }
@media (max-width:860px){ .journey-grid{ grid-template-columns:1fr; gap:var(--space-8); } }

/* Experience: list / timeline toggle */
.exp-header-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:var(--space-5); }
.view-toggle{ display:inline-flex; padding:3px; border-radius:999px; background:var(--bg-elevated); border:1px solid var(--border); gap:2px; flex-shrink:0; }
.view-toggle-btn{ border:none; background:none; padding:6px 14px; border-radius:999px; font-family:'Geist',sans-serif; font-size:0.76rem; font-weight:500; color:var(--text-secondary); cursor:pointer; transition:all 0.2s ease; min-height:32px; }
.view-toggle-btn:hover{ color:var(--text-primary); }
.view-toggle-btn[aria-selected="true"]{ background:var(--text-primary); color:var(--bg-base); }
.exp-view[hidden]{ display:none; }
.exp-timeline-scroll{ overflow-x:auto; overflow-y:hidden; padding-bottom:10px; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.exp-timeline-inner{ position:relative; }
.exp-timeline-grid{ position:absolute; inset:0; }
.exp-year-line{ position:absolute; top:0; bottom:22px; width:1px; background:var(--border); }
.exp-year-label{ position:absolute; bottom:0; transform:translateX(-50%); font-family:var(--font-mono); font-size:0.7rem; color:var(--text-muted); }
.exp-now-line{ position:absolute; top:0; bottom:22px; border-left:1px dashed var(--accent-light); }
.exp-now-line span{ position:absolute; top:-16px; left:5px; font-family:var(--font-sans); font-size:0.68rem; font-style:italic; color:var(--accent-light); white-space:nowrap; }
.exp-span-bar{ position:absolute; top:16px; height:8px; border-radius:999px; background:var(--accent-soft); }
.exp-chip{
  position:absolute; height:46px; border-radius:12px; background:var(--bg-elevated); border:1px solid var(--border); border-left:3px solid var(--chip-color, var(--accent));
  padding:6px 12px; display:flex; flex-direction:column; justify-content:center; gap:1px; overflow:hidden; white-space:nowrap;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.exp-chip:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); z-index:2; }
.exp-chip-role{ font-family:var(--font-display); font-weight:600; font-size:0.8rem; color:var(--text-primary); overflow:hidden; text-overflow:ellipsis; }
.exp-chip-company{ font-family:'Geist',sans-serif; font-size:0.7rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; }
.exp-timeline-hint{ font-family:var(--font-display); font-style:italic; font-size:0.78rem; color:var(--text-muted); text-align:center; margin:8px 0 0; }
@media (max-width:640px){ .exp-chip{ height:42px; padding:5px 10px; } }

/* Lift page chrome above decorative elements */
nav  { position: relative; z-index: 100; }
main { position: relative; z-index: 1;   }
footer { position: relative; z-index: 1; }
#mobileMenu { z-index: 99; }

/* Hero layers */
.hero-bg      { z-index: 0 !important; }
.hero-content { position: relative; z-index: 2 !important; }

/* ───────────────────────────────────────────────
   NAV TOY BUTTONS (visitor stats + ambient player)
   ─────────────────────────────────────────────── */
.toy-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:none;
  color:var(--text-secondary); cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:0.95rem; transition:all 0.2s ease; position:relative;
}
.toy-btn:hover{ border-color:var(--accent-light); color:var(--text-primary); }
/* Quiet footer treatment — same low-key language as the hidden door / moon badge */
.footer-toy-btn{
  width:auto; height:auto; border:none; border-radius:0; padding:2px; font-size:0.85rem; line-height:1;
  opacity:0.35; filter:grayscale(1); transition:opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.footer-toy-btn:hover, .footer-toy-btn:focus-visible{ opacity:0.9; filter:grayscale(0); transform:scale(1.15); border-color:transparent; }
.toy-panel{
  position:fixed; bottom:70px; right:20px; width:260px; background:var(--bg-surface); border:1px solid var(--border);
  border-radius:14px; padding:20px; z-index:190; box-shadow:0 12px 30px rgba(0,0,0,0.18);
  opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity 0.25s ease, transform 0.25s ease;
}
.toy-panel.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
@media (max-width:560px){ .toy-panel{ right:12px; left:12px; width:auto; } }
.toy-panel-title{ font-family:'Geist',sans-serif; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin:0 0 12px; }
.stat-row{ display:flex; align-items:center; justify-content:space-between; padding:6px 0; font-family:var(--font-sans); font-size:0.88rem; color:var(--text-secondary); }
.stat-row strong{ color:var(--text-primary); font-family:var(--font-display); font-weight:600; font-size:1rem; }
.stat-note{ margin:12px 0 0; font-size:0.72rem; color:var(--text-muted); line-height:1.5; font-style:italic; }
@media (max-width:560px){ .toy-panel{ right:12px; left:12px; width:auto; } }

/* Cassette player */
.cassette-track-name{ font-family:var(--font-display); font-weight:500; font-size:1rem; color:var(--text-primary); margin:0 0 2px; }
.cassette-sub{ font-size:0.76rem; color:var(--text-muted); margin:0 0 14px; }
.cassette-tracks{ display:flex; flex-direction:column; gap:6px; }
.cassette-option{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; border:1px solid transparent;
  background:none; color:var(--text-secondary); font-family:var(--font-sans); font-size:0.85rem; cursor:pointer; text-align:left;
  transition:all 0.2s ease;
}
.cassette-option:hover{ background:var(--bg-elevated); }
.cassette-option[data-active="true"]{ border-color:var(--accent-light); background:var(--accent-soft); color:var(--text-primary); }
.cassette-option .reel{ width:16px; height:16px; border-radius:50%; border:2px solid currentColor; flex-shrink:0; }
.cassette-option[data-active="true"] .reel{ animation:reelSpin 2.4s linear infinite; }
@keyframes reelSpin{ to{ transform:rotate(360deg); } }

.ambient-toggle{
  display:flex; align-items:center; gap:8px; width:100%; margin:0 0 14px; padding:9px 12px;
  border-radius:10px; border:1px solid var(--border); background:var(--bg-elevated); color:var(--text-primary);
  font-family:var(--font-sans); font-size:0.82rem; cursor:pointer; transition:all 0.2s ease; text-align:left;
}
.ambient-toggle:hover{ border-color:var(--accent-light); }
.ambient-toggle[data-playing="true"]{ border-color:var(--accent-light); background:var(--accent-soft); color:var(--accent-light); }
.spotify-embed{ border-radius:12px; overflow:hidden; min-height:0; margin-top:0; transition:margin-top 0.2s ease; }
.spotify-embed.active{ margin-top:12px; min-height:80px; }

/* Sticky music indicator — a plain, quiet icon by design (no player
   chrome until you've actually picked something). A soft ring pulses
   around it only while a song is actually playing. */
.music-fab{
  position:fixed; bottom:22px; right:20px; z-index:150; width:40px; height:40px;
  border:1px solid var(--border); border-radius:50%; background:var(--bg-surface); color:var(--text-secondary);
  display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0.72;
  box-shadow:0 2px 8px rgba(0,0,0,0.14);
  transition:opacity 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.music-fab:hover, .music-fab:focus-visible{ opacity:1; transform:scale(1.08); }
.music-fab.fab-hidden{ opacity:0 !important; transform:translateY(14px) scale(0.9) !important; pointer-events:none; }
.music-fab[data-playing="true"]{ opacity:1; color:var(--accent-light); border-color:var(--accent-light); animation:musicPulse 2.4s ease-in-out infinite; }
@keyframes musicPulse{ 0%,100%{ box-shadow:0 2px 8px rgba(0,0,0,0.14), 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50%{ box-shadow:0 2px 8px rgba(0,0,0,0.14), 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (max-width:768px){ .music-fab{ width:36px; height:36px; bottom:16px; right:16px; } }
@media (prefers-reduced-motion: reduce){ .music-fab[data-playing="true"]{ animation:none; } }

/* Vibe picker → player panel */
.vibe-back{
  background:none; border:none; padding:0; margin:0 0 10px; color:var(--text-muted); font-family:var(--font-sans);
  font-size:0.76rem; cursor:pointer; transition:color 0.15s ease;
}
.vibe-back:hover{ color:var(--accent-light); }
.vibe-controls{ display:flex; align-items:center; gap:12px; margin-top:12px; }
.vibe-stop-btn{
  flex-shrink:0; display:flex; align-items:center; gap:6px; padding:7px 12px; border-radius:10px;
  border:1px solid var(--border); background:var(--bg-elevated); color:var(--text-primary);
  font-family:var(--font-sans); font-size:0.8rem; cursor:pointer; transition:all 0.2s ease;
}
.vibe-stop-btn:hover{ border-color:var(--accent-light); }

/* ───────────────────────────────────────────────
   "ASK ABOUT ASNA" CHATBOT — a small avatar chip fixed at the bottom
   left (mirrors the music player's bottom-right chip). Tapping it
   opens a lightweight FAQ-style chat: quick-reply questions plus a
   free-text input matched against a keyword bank (assets/data/chatbot.json,
   editable from the CMS) — no external API involved.
   ─────────────────────────────────────────────── */
.chatbot-fab{
  position:fixed; bottom:14px; left:20px; z-index:150; width:56px; height:70px;
  border:none; background:none; cursor:pointer; padding:0;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,0.3));
  opacity:0.92;
  transition:opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.chatbot-fab img{ width:100%; height:100%; object-fit:contain; display:block; }
.chatbot-fab:hover, .chatbot-fab:focus-visible{ opacity:1; transform:scale(1.06); }
.chatbot-fab.fab-hidden{ opacity:0 !important; transform:translateY(14px) scale(0.9) !important; pointer-events:none; }
.chatbot-fab[aria-expanded="true"]{ filter:drop-shadow(0 0 7px var(--accent-light)) drop-shadow(0 3px 10px rgba(0,0,0,0.3)); }
.chatbot-fab::after{
  content:'Have queries? Ask more about me!';
  position:absolute; bottom:calc(100% + 16px); left:0;
  background:var(--text-primary); color:var(--bg-base); font-family:var(--font-sans); font-size:0.78rem; font-weight:500;
  padding:10px 14px; border-radius:14px; border-bottom-left-radius:4px; white-space:nowrap;
  box-shadow:0 8px 24px rgba(0,0,0,0.22);
  opacity:0; transform:translateY(8px) scale(0.9); pointer-events:none; transform-origin:bottom left;
  transition:opacity 0.25s ease, transform 0.25s ease;
  z-index:160;
}
.chatbot-fab::before{
  content:''; position:absolute; bottom:calc(100% + 9px); left:16px;
  border:7px solid transparent; border-top-color:var(--text-primary);
  opacity:0; pointer-events:none; transition:opacity 0.25s ease; z-index:161;
}
.chatbot-fab:hover::after, .chatbot-fab:focus-visible::after{ opacity:1; transform:translateY(0) scale(1); animation:chatbotBubblePop 0.45s var(--ease-out); }
.chatbot-fab:hover::before, .chatbot-fab:focus-visible::before{ opacity:1; }
.chatbot-fab[aria-expanded="true"]::after, .chatbot-fab[aria-expanded="true"]::before{ opacity:0 !important; }
@keyframes chatbotBubblePop{
  0%{ transform:translateY(10px) scale(0.85); }
  55%{ transform:translateY(-4px) scale(1.05); }
  100%{ transform:translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){ .chatbot-fab::after{ animation:none !important; } }
@media (max-width:768px){ .chatbot-fab::after{ font-size:0.72rem; padding:8px 12px; white-space:normal; max-width:180px; } }
@media (max-width:768px){ .chatbot-fab{ width:46px; height:58px; bottom:10px; left:16px; } }

.chatbot-panel{
  position:fixed; bottom:88px; left:20px; z-index:200; width:340px; max-width:calc(100vw - 32px);
  height:auto; min-height:460px; max-height:min(600px, calc(100vh - 100px)); display:flex; flex-direction:column;
  border-radius:var(--radius-lg); border:1px solid var(--border); background:var(--bg-base);
  box-shadow:0 16px 40px rgba(0,0,0,0.22); overflow:hidden;
  opacity:0; transform:translateY(12px) scale(0.98); pointer-events:none; transform-origin:bottom left;
  transition:opacity 0.25s ease, transform 0.25s ease, height 0.3s ease;
}
.chatbot-panel.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
@media (max-width:480px){ .chatbot-panel{ left:12px; bottom:74px; width:calc(100vw - 24px); } }

.chatbot-header{
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border);
  background:var(--bg-surface); flex-shrink:0;
}
.chatbot-header-avatar{ width:30px; height:auto; object-fit:contain; flex-shrink:0; }
.chatbot-header-name{ font-family:var(--font-display); font-weight:600; font-size:0.9rem; color:var(--text-primary); margin:0; }
.chatbot-header-status{ display:flex; align-items:center; gap:5px; font-size:0.72rem; color:var(--text-muted); margin:2px 0 0; }
.chatbot-dot{ width:6px; height:6px; border-radius:50%; background:var(--emerald); flex-shrink:0; }
.chatbot-close{
  margin-left:auto; width:28px; height:28px; border-radius:50%; border:none; background:none; color:var(--text-muted);
  cursor:pointer; font-size:0.9rem; display:flex; align-items:center; justify-content:center; transition:all 0.15s ease; flex-shrink:0;
}
.chatbot-close:hover{ background:var(--bg-elevated); color:var(--text-primary); }

.chatbot-messages{
  flex:1; min-height:0; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth;
}
.chatbot-msg{
  max-width:82%; padding:9px 13px; border-radius:14px; font-size:0.84rem; line-height:1.5; word-wrap:break-word;
}
.chatbot-msg a{ color:inherit; text-decoration:underline; }
.chatbot-msg.bot{ align-self:flex-start; background:var(--bg-elevated); color:var(--text-primary); border-bottom-left-radius:4px; }
.chatbot-msg.user{ align-self:flex-end; background:var(--accent-grad); color:var(--text-inverse); border-bottom-right-radius:4px; }
.chatbot-typing{ align-self:flex-start; display:flex; gap:4px; padding:11px 14px; border-radius:14px; border-bottom-left-radius:4px; background:var(--bg-elevated); }
.chatbot-typing span{ width:6px; height:6px; border-radius:50%; background:var(--text-muted); animation:chatbotTypingBounce 1.2s ease-in-out infinite; }
.chatbot-typing span:nth-child(2){ animation-delay:0.15s; }
.chatbot-typing span:nth-child(3){ animation-delay:0.3s; }
@keyframes chatbotTypingBounce{ 0%,60%,100%{ transform:translateY(0); opacity:0.5; } 30%{ transform:translateY(-4px); opacity:1; } }

.chatbot-quick{
  display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 10px; flex-shrink:0; max-height:100px; overflow-y:auto;
}
.chatbot-chip{
  font-family:'Geist',sans-serif; font-size:0.72rem; font-weight:500; padding:6px 12px; border-radius:999px;
  border:1px solid var(--border); background:var(--bg-surface); color:var(--text-secondary); cursor:pointer; transition:all 0.2s ease;
}
.chatbot-chip:hover{ border-color:var(--accent-light); color:var(--accent-light); }

.chatbot-input-row{ display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--border); background:var(--bg-surface); flex-shrink:0; }
.chatbot-input-row input{
  flex:1; min-width:0; padding:9px 12px; border-radius:999px; border:1px solid var(--border); background:var(--bg-base);
  color:var(--text-primary); font-family:var(--font-sans); font-size:0.84rem;
}
.chatbot-input-row input:focus{ outline:none; border-color:var(--accent-light); }
.chatbot-send{
  width:36px; height:36px; border-radius:50%; border:none; background:var(--accent-grad); color:var(--text-inverse);
  cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; transition:transform 0.15s ease;
}
.chatbot-send:hover{ transform:scale(1.08); }
.chatbot-send:disabled{ opacity:0.5; cursor:default; transform:none; }

/* Ambient background layer, mood driven by cassette track */
.ambient-layer{ position:fixed; inset:0; z-index:-6; pointer-events:none; overflow:hidden; opacity:0; transition:opacity 0.6s ease; }
.ambient-layer.on{ opacity:1; }
.ambient-layer[data-track="1"]{
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 60%),
              radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
  animation: lofiPulse 7s ease-in-out infinite;
}
@keyframes lofiPulse{ 0%,100%{ opacity:0.7; transform:scale(1); } 50%{ opacity:1; transform:scale(1.06); } }
.ambient-layer[data-track="2"]{
  background-image: radial-gradient(color-mix(in srgb, var(--accent-light) 55%, transparent) 1.5px, transparent 1.5px);
  background-size: 90px 90px;
  animation: pianoTwinkle 3.2s ease-in-out infinite;
}
@keyframes pianoTwinkle{ 0%,100%{ opacity:0.25; } 50%{ opacity:0.6; } }
.ambient-layer[data-track="3"]{
  background-image:
    repeating-linear-gradient(100deg, color-mix(in srgb, var(--text-secondary) 34%, transparent) 0, color-mix(in srgb, var(--text-secondary) 34%, transparent) 1px, transparent 1px, transparent 15px),
    repeating-linear-gradient(100deg, color-mix(in srgb, var(--text-secondary) 18%, transparent) 0, color-mix(in srgb, var(--text-secondary) 18%, transparent) 1px, transparent 1px, transparent 26px);
  background-size: 100% 260px, 100% 190px;
  background-position: 0 0, 0 0;
  animation: rainFall 0.7s linear infinite;
  opacity:0.5;
}
@keyframes rainFall{ from{ background-position:0 0, 0 0; } to{ background-position:-26px 260px, -18px 190px; } }
@media (prefers-reduced-motion: reduce){ .ambient-layer[data-track="3"]{ animation:none; } }
@media (prefers-reduced-motion: reduce){ .ambient-layer{ display:none; } }

/* ───────────────────────────────────────────────
   THANK-YOU NOTE (reached the end of a read)
   ─────────────────────────────────────────────── */
.thankyou-toast{
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(12px);
  background:var(--text-primary); color:var(--bg-base); padding:14px 22px; border-radius:999px;
  font-family:var(--font-sans); font-size:0.85rem; z-index:190; box-shadow:0 12px 30px rgba(0,0,0,0.22);
  opacity:0; pointer-events:none; transition:opacity 0.4s ease, transform 0.4s ease; white-space:nowrap;
}
.thankyou-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
@media (max-width:560px){ .thankyou-toast{ white-space:normal; text-align:center; max-width:calc(100vw - 32px); } }

/* ───────────────────────────────────────────────
   MYSTERIOUS-VOICE-ONLY EASTER EGGS
   ─────────────────────────────────────────────── */
.morse-cursor{
  position:fixed; bottom:18px; left:18px; width:8px; height:16px; background:var(--text-primary);
  z-index:60; opacity:0; pointer-events:none; transition:opacity 0.05s linear;
}
html[data-voice="mysterious"] .morse-cursor{ pointer-events:auto; cursor:help; }

.the-watcher{
  position:fixed; width:60px; height:110px; z-index:50; pointer-events:none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 55%, transparent) 0%, transparent 100%);
  border-radius:50% 50% 40% 40% / 60% 60% 30% 30%;
  filter: blur(3px); opacity:0; transition:opacity 0.5s ease;
}
.the-watcher.show{ opacity:0.5; }

.moon-phase-badge{
  display:none; align-items:center; gap:6px; font-size:0.8rem; color:var(--text-muted); cursor:default;
  font-family:var(--font-sans);
}
html[data-voice="mysterious"] .moon-phase-badge{ display:inline-flex; }
.moon-phase-badge.full-moon{ color:var(--accent-light); }

.idle-doodle{
  position:absolute; top:100%; left:50%; margin-top:10px; transform:translateX(-50%) translateY(4px);
  background:var(--bg-surface); border:1px solid var(--border); border-radius:999px; padding:6px 14px;
  font-size:0.78rem; color:var(--text-secondary); white-space:nowrap; opacity:0; pointer-events:none;
  transition:opacity 0.4s ease, transform 0.4s ease; box-shadow:0 8px 20px rgba(0,0,0,0.12); z-index:10;
}
.idle-doodle.show{ opacity:1; transform:translateX(-50%) translateY(0); animation:doodleFloat 2.6s ease-in-out infinite; }
@keyframes doodleFloat{ 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(-4px); } }

/* ───────────────────────────────────────────────
   HIDDEN DOOR (footer easter egg → secret.html)
   ─────────────────────────────────────────────── */
.hidden-door{
  background:none; border:none; cursor:pointer; font-size:0.85rem; line-height:1; padding:2px;
  opacity:0.18; filter:grayscale(1); transition:opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.hidden-door:hover, .hidden-door:focus-visible{ opacity:0.9; filter:grayscale(0); transform:scale(1.15) rotate(-4deg); }
.hidden-door[data-armed="true"]{ opacity:1; filter:grayscale(0); animation:doorShake 0.4s ease; }
@keyframes doorShake{ 0%,100%{ transform:rotate(0deg); } 25%{ transform:rotate(-6deg); } 75%{ transform:rotate(6deg); } }
.door-warning{
  font-family:var(--font-sans); font-size:0.72rem; color:var(--text-muted); font-style:italic;
  max-width:0; overflow:hidden; white-space:nowrap; opacity:0; transition:max-width 0.4s ease, opacity 0.3s ease;
}
.door-warning.show{ max-width:260px; opacity:1; }

/* ───────────────────────────────────────────────
   PERSONAL PATTERN ACCENTS — fragments of hand-drawn line
   art, used as very quiet texture, never as focal content.
   ─────────────────────────────────────────────── */
.pattern-accent{
  position:absolute; pointer-events:none; z-index:0; opacity:0.045;
  background-repeat:no-repeat; background-size:contain; transition:opacity 0.3s ease;
}
[data-scheme="dark"] .pattern-accent{ opacity:0.07; }
.pattern-accent--ink{ filter:none; }
[data-scheme="dark"] .pattern-accent--ink{ filter:invert(1); }
.pattern-accent--paper{ filter:invert(1); }
[data-scheme="dark"] .pattern-accent--paper{ filter:none; }
.pattern-accent--01{ right:-6%; bottom:-12%; width:34%; aspect-ratio:552.82/841.89; background-image:url('../patterns/pattern-02.svg'); }
.pattern-accent--02{ left:-8%; bottom:-18%; width:30%; aspect-ratio:553/842; background-image:url('../patterns/pattern-02.svg'); }
@media (max-width:768px){ .pattern-accent{ display:none; } }

/* ───────────────────────────────────────────────
   PAGE LOADER — background and mark follow whichever
   voice/scheme is already active (set pre-paint, see head script)
   ─────────────────────────────────────────────── */
.page-loader{
  position:fixed; inset:0; z-index:500; display:flex; align-items:center; justify-content:center;
  background:var(--bg-base); transition:opacity 0.5s ease, visibility 0.5s ease, background 0.3s ease;
}
.page-loader-mark{
  width:min(200px, 50vw); aspect-ratio:84/40; opacity:0; transform:scale(0.9) translateY(6px);
  animation:loaderFadeIn 1.2s cubic-bezier(0.2,0.8,0.2,1) forwards;
  background-color:var(--text-primary);
  -webkit-mask:url('../images/logo.svg') center/contain no-repeat;
  mask:url('../images/logo.svg') center/contain no-repeat;
  transition:background-color 0.3s ease;
}
[data-scheme="dark"] .page-loader-mark{ background-color:var(--amber); }
@keyframes loaderFadeIn{ 0%{ opacity:0; transform:scale(0.9) translateY(6px); } 100%{ opacity:1; transform:scale(1) translateY(0); } }
.page-loader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
@media (prefers-reduced-motion: reduce){
  .page-loader-mark{ animation:none; opacity:1; transform:none; }
}

/* ───────────────────────────────────────────────
   STATUS PILL (Online/Offline by Nepal time — logic in voice.js)
   ─────────────────────────────────────────────── */
.status-pill{
  display:inline-flex; align-items:center; gap:6px; font-family:'Geist',sans-serif; font-size:0.8rem; font-weight:500;
  padding:0 12px; min-height:36px; border-radius:999px; border:1px solid var(--border); color:var(--text-secondary);
  white-space:nowrap; position:relative; cursor:default; z-index:20;
}
.status-pill[data-status="online"]{ border-color: color-mix(in srgb, var(--emerald) 45%, var(--border)); color:var(--emerald); }
.status-pill[data-status="offline"]{ color:var(--text-muted); }
.status-pill::after{
  content:attr(data-tooltip);
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(-4px);
  background:var(--text-primary); color:var(--bg-base); font-family:var(--font-sans); font-size:0.74rem; font-weight:400;
  padding:8px 12px; border-radius:10px; white-space:normal; width:max-content; max-width:210px; text-align:center;
  line-height:1.4; box-shadow:var(--shadow-md); opacity:0; pointer-events:none;
  transition:opacity 0.2s ease, transform 0.2s ease; z-index:210;
}
.status-pill::before{
  content:''; position:absolute; top:calc(100% + 4px); left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-bottom-color:var(--text-primary); opacity:0; pointer-events:none;
  transition:opacity 0.2s ease; z-index:210;
}
.status-pill:hover::after, .status-pill:focus-visible::after{ opacity:1; transform:translateX(-50%) translateY(0); }
.status-pill:hover::before, .status-pill:focus-visible::before{ opacity:1; }
@media (max-width:480px){ .status-pill::after{ max-width:150px; font-size:0.68rem; } }
.status-emoji{ display:inline-block; font-size:0.95rem; line-height:1; }
.status-emoji.waving{ transform-origin:70% 70%; animation:statusWave 2.4s ease-in-out infinite; }
@keyframes statusWave{
  0%, 60%, 100% { transform:rotate(0deg); }
  10%, 30% { transform:rotate(14deg); }
  20% { transform:rotate(-8deg); }
  40% { transform:rotate(14deg); }
  50% { transform:rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce){ .status-emoji.waving{ animation:none; } }
@media (max-width: 480px){ .status-pill{ padding:0 9px; font-size:0.74rem; } }

/* ───────────────────────────────────────────────
   THEME TRANSITION — a moon/sun rises from the
   right side of the screen when the light/dark
   scheme is toggled, timed so the page's colors
   (already globally transitioned, see RESET & BASE)
   crossfade partway through the rise. Animates via
   `transform` only (not `bottom`) so it stays on the
   compositor thread — smooth regardless of page
   layout complexity.
   ─────────────────────────────────────────────── */
.theme-transition-icon{
  position:fixed; right:9%; bottom:34vh;
  transform:translateY(46vh) scale(0.85);
  z-index:9999; pointer-events:none; opacity:0; font-size:3rem; line-height:1;
  transition:transform 1.3s cubic-bezier(0.22,1,0.36,1), opacity 0.9s cubic-bezier(0.22,1,0.36,1);
  will-change:transform, opacity;
}
.theme-transition-icon.is-rising{ opacity:1; }
.theme-transition-icon.is-risen{ transform:translateY(0) scale(1); }
.theme-transition-icon--moon{ filter:drop-shadow(0 0 26px rgba(180,195,255,0.75)); }
.theme-transition-icon--sun{ filter:drop-shadow(0 0 32px rgba(255,175,70,0.8)); }
@media (max-width:640px){
  .theme-transition-icon{ font-size:2.1rem; right:7%; bottom:26vh; }
}
@media (prefers-reduced-motion: reduce){ .theme-transition-icon{ display:none !important; } }


/* Project previews: a colored stage, a device, then an editorial caption. */
.project-grid .work-row { border-radius: 20px; }
.project-grid .project-card-img-wrap {
  --stage: #263c4b;
  --stage-glow: #70828a;
  --stage-ink: #f4eee2;
  position: relative;
  order: -1;
  flex: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 1.55;
  isolation: isolate;
  background: radial-gradient(ellipse at 80% 8%, color-mix(in srgb, var(--stage-glow) 65%, transparent), transparent 65%), var(--stage);
}
.project-card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: repeating-linear-gradient(115deg, transparent 0 3px, #fff2 3px 4px);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
[data-preview="traksale"] .project-card-img-wrap { --stage: #574853; --stage-glow: #a18b96; }
[data-preview="air"] .project-card-img-wrap { --stage: #314c4b; --stage-glow: #8ba4a0; }
[data-preview="smart-saving"] .project-card-img-wrap { --stage: #564344; --stage-glow: #b08b76; }
[data-preview="goto"] .project-card-img-wrap { --stage: #46503d; --stage-glow: #a0aa82; }
[data-preview="icepop"] .project-card-img-wrap { --stage: #9a654d; --stage-glow: #e5b188; }
[data-preview="villa-karma"] .project-card-img-wrap { --stage: #6a6153; --stage-glow: #c4b397; }
[data-preview="nxt-ai"] .project-card-img-wrap { --stage: #443d5a; --stage-glow: #9184aa; }
.preview-project-name {
  position: absolute;
  top: 9%;
  left: 8%;
  right: 8%;
  text-align: center;
  color: var(--stage-ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.device-mockup {
  position: absolute;
  box-shadow: 0 22px 38px #0006, 0 4px 10px #0004;
  transition: transform .5s var(--ease-out);
  background: #151718;
  border: 2px solid #92958e;
}
.device-laptop {
  width: 94%;
  left: 13%;
  top: 33%;
  aspect-ratio: 1.6;
  border-radius: 18px 18px 8px 8px;
  padding: 10px 9px 12px;
}
.device-laptop::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 1px;
  left: 43%;
  width: 14%;
  height: 12px;
  border-radius: 0 0 6px 6px;
  background: #151718;
}
.device-laptop::after {
  content: '';
  position: absolute;
  left: -7%;
  right: -7%;
  bottom: -9px;
  height: 10px;
  border-radius: 2px 2px 60% 60%;
  background: linear-gradient(#b8b9b2, #737670 55%, #343833);
  box-shadow: 0 7px 10px #0003;
}
.mockup-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 8px; background: #fff; }
.project-grid .project-card-img-wrap .work-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  transform: none;
}
.project-grid .work-row:hover .project-card-img-wrap .work-thumb { transform: none; }
.project-grid .work-row:hover .device-mockup { transform: translateY(-5px) rotate(-1deg); }
.device-phone {
  width: 32%;
  left: 34%;
  top: 29%;
  aspect-ratio: 9 / 19.5;
  padding: 6px;
  border-radius: 25px;
  border-color: #9c9e96;
  transform: rotate(-8deg);
  box-shadow: 18px 22px 32px #0005;
}
.device-phone .mockup-screen { border-radius: 18px; background: #101622; }
.device-phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 33%;
  height: 9px;
  top: 9px;
  left: 33.5%;
  border-radius: 12px;
  background: #090b0e;
}
.device-preframed { padding: 0; border: 0; background: transparent; }
.device-preframed::before { display: none; }
.device-preframed .mockup-screen { background: transparent; border-radius: 24px; }
.device-preframed .work-thumb { object-fit: cover; }
.project-grid .work-row:hover .device-phone { transform: translateY(-5px) rotate(-5deg); }
.preview-caption { position: absolute; left: 7%; bottom: 8%; color: var(--stage-ink); opacity: .7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-grid .project-card-body { position: relative; padding: 24px 26px 28px; flex: 1; }
.project-grid .project-card-body h3 { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.035em; padding-right: 36%; margin-bottom: 14px; }
.project-grid .project-card-body .project-card-tags { position: absolute; right: 24px; top: 28px; max-width: 36%; justify-content: flex-end; margin: 0; }
.project-grid .project-card-tag { border: 1px solid var(--border); border-radius: 5px; padding: 4px 7px; line-height: 1.4; font-size: 10px; text-align: right; }
.project-grid .project-card-body p { margin: 0; padding-right: 18px; font-size: 14px; line-height: 1.65; }
.project-open { position: absolute; right: 16px; bottom: 15px; color: var(--text-muted); font-size: 19px; }
.project-grid .work-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (max-width: 720px) {
  .preview-project-name { font-size: clamp(28px, 7vw, 44px); }
  .project-grid .project-card-body { padding: 22px; }
  .project-grid .project-card-body h3 { font-size: 26px; }
  .project-grid .project-card-body .project-card-tags { right: 20px; top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .device-mockup { transition: none; }
  .project-grid .work-row:hover .device-mockup { transform: none; }
}
.project-grid .project-card-body { justify-content: flex-start; }
.preview-caption { display: none; }

/* Navigation should never wait behind a timed splash. */
.page-loader { display:none; }

/* Detail screens retain their full proportions inside a generous, quiet margin. */
.project-wide .project-screen-stack {
  width: min(88vw, 1280px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) 0;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}
.project-wide .project-screen-stack .project-source-image {
  width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 12px 40px #0000000d;
}
.project-wide .project-screen-stack .project-source-image--phone {
  max-width: 420px;
  margin-inline: auto;
}
.project-wide .project-screen-stack .project-extra-screen { margin: 0; }
.project-wide .project-screen-stack figcaption { padding: 14px 0 0; }
.project-wide .case-hero,
.project-wide .project-overview-note { position: relative; isolation: isolate; }
.project-wide .case-hero { background: color-mix(in srgb, var(--accent) 4%, var(--bg-base)); }
.project-wide .case-hero::before,
.project-wide .project-overview-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../images/paper-texture.jpg') center / 560px repeat;
  opacity: .13;
  mix-blend-mode: multiply;
}
.project-wide .project-overview-note {
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-surface));
}
.project-wide .project-overview-note > p:last-child { margin-bottom: 0; }
html[data-scheme="dark"] .project-wide .case-hero::before,
html[data-scheme="dark"] .project-wide .project-overview-note::before { opacity: .07; mix-blend-mode: screen; }
@media (max-width: 640px) {
  .project-wide .project-screen-stack { width: calc(100% - 28px); gap: 32px; }
  .project-wide .project-screen-stack .project-source-image { border-radius: 10px; }
}

/* Writing: two featured essays */
.blog-grid.blog-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-grid-two .blog-thumb{aspect-ratio:5/3;object-fit:cover;height:auto}@media(max-width:640px){.blog-grid.blog-grid-two{grid-template-columns:1fr}}
