/* ══════════════════════════════════════════════════════════
   Racco Ho — Personal Website V2
   Style Guide: Editorial × Digital Garden × Soft AI × Macaron Minimalism
   ══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties: Macaron Design System ─── */
:root {
  /* ── Palette: 90% Cream + 10% Macaron Accents ── */
  --cream:        #FCFAF6;
  --warm-paper:   #F7F3ED;
  --cream-deep:   #F5F2EB;
  --cream-edge:   #EDE9E0;

  /* Macaron Accents — use sparingly for hover/tags/icons/blobs/borders/buttons */
  --lavender:     #B7A9E8;
  --sky:          #8DC5EE;
  --butter:       #FFE89B;
  --sage:         #BDD5AA;
  --peach:        #FFC9B8;
  --mint:         #BFE8D8;

  /* Ink / Text */
  --ink:          #2D2A26;
  --ink-soft:     #6B6560;
  --ink-faint:    #9E9892;

  /* Surfaces — PRD: Glass rgba(255,255,255,0.72) + backdrop-blur 16px */
  --surface:      rgba(255,255,255,.72);
  --surface-hover:rgba(255,255,255,.88);
  --glass-border: rgba(180,170,155,.15);

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(45,42,38,.04);
  --shadow-md:    0 8px 28px rgba(45,42,38,.07);
  --shadow-lg:    0 18px 48px rgba(45,42,38,.10);
  --glow-lavender: 0 0 40px rgba(183,169,232,.25);
  --glow-sky:      0 0 40px rgba(141,197,238,.22);
  --glow-peach:    0 0 40px rgba(255,201,184,.25);

  /* Spacing Scale */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;
  --space-3xl:    96px;
  --space-4xl:    128px;

  /* Layout — PRD: max content width 1400px, generous whitespace */
  --page-max:     1400px;
  --page-gutter-x: clamp(20px, 5vw, 56px);
  --page-gutter-y: clamp(32px, 6vw, 72px);

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Typography: Editorial Serif (Cormorant) + Modern Sans (Inter) per PRD */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'SF Pro Text', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Font sizes — fluid clamp */
  --text-xs:      .75rem;     /* 12px */
  --text-sm:      .8125rem;   /* 13px */
  --text-base:    .9375rem;   /* 15px */
  --text-lg:      1.0625rem;  /* 17px */
  --text-xl:      1.25rem;    /* 20px */
  --text-2xl:     1.5rem;     /* 24px */
  --text-3xl:     2rem;       /* 32px */
  --text-4xl:     2.75rem;    /* 44px */
  --text-hero:    clamp(2.6rem, 5.5vw + 1rem, 4.2rem);

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.65;
  --leading-relaxed: 1.85;

  /* Transitions */
  --ease-out:     cubic-bezier(.16,1,.3,1);
  --ease-in-out:  cubic-bezier(.83,0,.17,1);
  --ease-spring:  cubic-bezier(.34,1.56,.64,1);
  --duration-fast: .2s;
  --duration-normal:.35s;
  --duration-slow: .6s;

  /* Z-index layers */
  --z-base:       0;
  --z-content:    10;
  --z-nav:        100;
  --z-overlay:    200;
  --z-modal:      300;
  --z-blob:       -1;
}

/* ─── Dark Mode Override ─── */
[data-theme="dark"] {
  --cream:        #1C1B19;
  --cream-deep:   #151412;
  --cream-edge:   #252320;

  --ink:          #EDEAE4;
  --ink-soft:     #B8B4AC;
  --ink-faint:    #7A7670;

  --surface:      rgba(30,29,26,.75);
  --surface-hover:rgba(38,36,32,.85);
  --glass-border: rgba(255,255,255,.07);

  --shadow-sm:    0 2px 12px rgba(0,0,0,.20);
  --shadow-md:    0 8px 28px rgba(0,0,0,.30);
  --shadow-lg:    0 18px 48px rgba(0,0,0,.40);

  --glow-lavender: 0 0 50px rgba(183,169,232,.15);
  --glow-sky:      0 0 50px rgba(141,197,238,.13);
  --glow-peach:    0 0 50px rgba(255,201,184,.15);
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════ */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-out),
              color var(--duration-slow) var(--ease-out);
}

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

::selection {
  background: var(--lavender);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Paragraph spacing — no more cramped text! */
p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

/* Skip to content link for a11y */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -.02em;
  color: var(--ink);
}

.text-gradient {
  background: linear-gradient(135deg, var(--lavender), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(183,169,232,.10);
  border: 1px solid rgba(183,169,232,.15);
}
[data-theme="dark"] .eyebrow {
  background: rgba(183,169,232,.08);
  border-color: rgba(183,169,232,.12);
}

/* ══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter-x);
}

.section {
  padding-block: var(--page-gutter-y);
  position: relative;
}

/* Macaron-tinted section backgrounds — alternating warmth */
#works {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(183,169,232,.06) 30%,
    rgba(183,169,232,.08) 70%,
    transparent 100%
  );
}
#stickers {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(191,232,216,.06) 30%,
    rgba(191,232,216,.08) 70%,
    transparent 100%
  );
}
#about {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,201,184,.05) 30%,
    rgba(255,201,184,.07) 50%,
    transparent 100%
  );
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-2xl);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--duration-fast) var(--ease-out);
}
.section-link:hover { color: var(--lavender); }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding: var(--space-md) 0;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative; /* For centered nav-links absolute positioning */
  /* Center nav links: brand and actions have equal weight */
}

/* Nav links centered between brand and actions */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -.01em;
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--lavender);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: calc(100% - var(--space-lg)); }

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

.theme-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--ink-soft);
  transition: all var(--duration-fast) var(--ease-out);
}
.theme-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
  transform: rotate(15deg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--lavender), var(--peach));
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm), var(--glow-lavender);
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 60px rgba(183,169,232,.35);
}
.btn-primary:active { transform: translateY(0) scale(.97); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile nav panel */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.mobile-nav-overlay.active { opacity: 1; }

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: var(--z-nav);
  background: var(--cream);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out),
              background-color var(--duration-slow) var(--ease-out);
}
.mobile-nav-panel.active { transform: translateX(0); }
.mobile-nav-panel a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  padding: var(--space-sm) 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.mobile-nav-panel a:hover { color: var(--lavender); }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: var(--space-3xl);
  /* Macaron-infused gradient: lavender sky at top → cream middle → peach warmth bottom */
  background: linear-gradient(
    175deg,
    rgba(183,169,232,.18) 0%,
    rgba(141,197,238,.10) 20%,
    var(--cream) 50%,
    var(--cream) 75%,
    rgba(255,201,184,.12) 100%
  );
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: var(--z-blob);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .65;
  will-change: transform;
}
[data-theme="dark"] .blob { opacity: .25; }

/* Dark mode: hero illustration gets subtle dimming so bright art doesn't clash */
[data-theme="dark"] .hero {
  background: linear-gradient(
    175deg,
    rgba(183,169,232,.10) 0%,
    rgba(141,197,238,.06) 20%,
    var(--cream) 50%,
    var(--cream) 75%,
    rgba(255,201,184,.07) 100%
  );
}
[data-theme="dark"] .hero-visual {
  box-shadow: none;
}
/* Mask handles edge fade in both light/dark — no ::after overlay needed */
[data-theme="dark"] .hero-visual::after {
  content: none;
}
[data-theme="dark"] .hero-visual::before {
  background: linear-gradient(
    135deg,
    rgba(28,27,25,.15) 0%,
    transparent 60%
  );
}
[data-theme="dark"] .hero-visual-img {
  filter: brightness(.88) contrast(1.05);
}

.blob--lavender {
  width: 520px;
  height: 520px;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, var(--lavender), transparent 70%);
  animation: blobFloat 18s ease-in-out infinite;
}

.blob--sky {
  width: 460px;
  height: 460px;
  top: -2%;
  left: -12%;
  background: radial-gradient(circle, var(--sky), transparent 70%);
  animation: blobFloat 20s ease-in-out infinite 2s;
}

.blob--mint {
  width: 380px;
  height: 380px;
  bottom: 5%;
  left: 5%;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  animation: blobFloat 22s ease-in-out infinite reverse;
}

.blob--peach {
  width: 340px;
  height: 340px;
  top: 40%;
  right: 18%;
  background: radial-gradient(circle, var(--peach), transparent 70%);
  animation: blobFloat 26s ease-in-out infinite 4s;
}

.blob--butter {
  width: 280px;
  height: 280px;
  bottom: 20%;
  right: 30%;
  background: radial-gradient(circle, var(--butter), transparent 70%);
  animation: blobFloat 20s ease-in-out infinite 8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -25px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(.95); }
  75%      { transform: translate(25px, 15px) scale(1.03); }
}

/* Hero grid: left illustration, right copy */
.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: var(--z-base);
  /* Shift both illustration and text rightward */
  padding-left: clamp(24px, 5vw, 80px);
}

/* Left: Illustration area — edges fade naturally via CSS mask */
.hero-visual {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 600px;
  border-radius: 0;
  overflow: hidden;
  /* No shadow — mask handles edge transition */
  box-shadow: none;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  /* ── CORE: CSS Mask — makes actual image pixels transparent at edges ── */
  /* White = fully visible, transparent = completely faded */
  -webkit-mask-image:
    /* Right-edge strong fade (into text copy area) */
    linear-gradient(
      to left,
      transparent 0%,
      rgba(0,0,0,.15) 6%,
      rgba(0,0,0,.45) 14%,
      rgba(0,0,0,.78) 26%,
      black 48%
    ),
    /* All edges gentle watercolor dissolve */
    radial-gradient(
      ellipse 75% 70% at 38% 50%,
      black 35%,
      rgba(0,0,0,.82) 55%,
      rgba(0,0,0,.50) 72%,
      rgba(0,0,0,.20) 85%,
      transparent 100%
    );
  -webkit-mask-composite: source-in, source-over;
  mask-image:
    linear-gradient(
      to left,
      transparent 0%,
      rgba(0,0,0,.15) 6%,
      rgba(0,0,0,.45) 14%,
      rgba(0,0,0,.78) 26%,
      black 48%
    ),
    radial-gradient(
      ellipse 75% 70% at 38% 50%,
      black 35%,
      rgba(0,0,0,.82) 55%,
      rgba(0,0,0,.50) 72%,
      rgba(0,0,0,.20) 85%,
      transparent 100%
    );
  mask-composite: intersect;
  transition: transform .1s linear, opacity var(--duration-slow);
}

/* Remove old ::after overlay — mask replaces it entirely */
.hero-visual::after {
  content: none;
}

/* Glass overlay on hero image */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255,255,255,.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Floating decorative elements around hero visual */
.hero-floaters {
  position: absolute;
  inset: -5%;
  pointer-events: none;
  z-index: 2;
}
.hero-floater {
  position: absolute;
  animation: floaterGentle 6s ease-in-out infinite;
  filter: drop-shadow(var(--shadow-sm));
}
.hero-floater--1 { top: 5%; left: -8%; width: 56px; animation-delay: 0s; }
.hero-floater--2 { top: 30%; right: -6%; width: 44px; animation-delay: 1.5s; }
.hero-floater--3 { bottom: 15%; left: -5%; width: 38px; animation-delay: 3s; }
.hero-floater--4 { bottom: 5%; right: -4%; width: 48px; animation-delay: 2s; }

@keyframes floaterGentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(5deg); }
}

/* Right: Copy area */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  width: fit-content;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulseDot 2.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lavender), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--duration-fast) var(--ease-out);
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost svg { transition: transform var(--duration-fast) var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(3px); }

.hero-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.hero-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--ink-soft);
  transition: all var(--duration-fast) var(--ease-out);
}
.hero-social a:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--lavender);
  transform: translateY(-2px);
}

/* Garden thread connector — subtle SVG line below hero */
.garden-thread {
  position: relative;
  height: 80px;
  margin-top: var(--space-3xl);
  overflow: visible;
}
.garden-thread svg {
  width: 100%;
  height: 100%;
}
.garden-thread path {
  stroke: var(--lavender);
  stroke-width: 1;
  fill: none;
  opacity: .18;
  [data-theme="dark"] & { opacity: .08; }
}

/* ══════════════════════════════════════════════════════════
   FEATURED WORKS
   ══════════════════════════════════════════════════════════ */

.works-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.work-card {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--lavender), var(--peach));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.work-card:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow-md), var(--glow-lavender);
  transform: translateY(-4px);
}
.work-card:hover::before { opacity: 1; }

.work-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--space-sm);
}
.work-tag--sticker { background: rgba(189,213,170,.20); color: #6B8A5E; }
.work-tag--design  { background: rgba(183,169,232,.18); color: #7B6DB8; }
.work-tag--photo   { background: rgba(141,197,238,.16); color: #4A8BB8; }

.work-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-deep);
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 4px;
  padding: 8px;
}
.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform var(--duration-normal) var(--ease-out);
}
.work-card:hover .work-preview img { transform: scale(1.04); }

.work-info { min-width: 0; }

.work-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}
.work-card:hover .work-title { color: var(--lavender); }

.work-desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.work-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--surface);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-view:hover {
  border-color: var(--lavender);
  box-shadow: var(--glow-lavender);
  transform: translateY(-1px);
}
.btn-view svg { transition: transform var(--duration-fast) var(--ease-out); }
.btn-view:hover svg { transform: translateX(3px); }

/* Pagination dots under works */
.works-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
}
.works-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-edge);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}
.works-dots span.active { width: 24px; border-radius: 4px; background: var(--lavender); }

/* ══════════════════════════════════════════════════════════
   STICKER PACKS
   ══════════════════════════════════════════════════════════ */

.sticker-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sticker-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}
.sticker-row:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.sticker-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-deep);
}
.sticker-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sticker-info { flex: 1; min-width: 0; }

.sticker-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 2px;
}

.sticker-count {
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.sticker-tags {
  display: flex;
  gap: 6px;
  margin-top: var(--space-sm);
}
.sticker-chip {
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(183,169,232,.08);
  color: var(--lavender);
  border: 1px solid rgba(183,169,232,.12);
}
.sticker-chip--warm {
  background: rgba(255,201,184,.10);
  color: #C8886E;
  border-color: rgba(255,201,184,.15);
}

.sticker-action {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════ */

.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--space-2xl);
  align-items: start;
}

.about-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.about-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid var(--glass-border);
  background: var(--cream-deep);
  transition: border-color var(--duration-normal) var(--ease-out);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar:hover { border-color: var(--lavender); }

.about-signature {
  margin-top: var(--space-sm);
  font-family: 'Brush Script MT', cursive;
  font-size: var(--text-xl);
  color: var(--lavender);
  opacity: .6;
  text-align: center;
}

.about-content { min-width: 0; }

.about-greeting {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.about-greeting em { font-style: normal; color: var(--lavender); }

.about-bio {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
  max-width: 52ch;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.about-tag {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  transition: all var(--duration-fast) var(--ease-out);
}
.about-tag:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  background: rgba(183,169,232,.06);
}

.about-tag--lavender { border-color: rgba(183,169,232,.25); color: #8B7DC8; }
.about-tag--sky     { border-color: rgba(141,197,238,.22); color: #5A9BC8; }
.about-tag--sage    { border-color: rgba(189,213,170,.28); color: #7BA86E; }
.about-tag--peach   { border-color: rgba(255,201,184,.25); color: #C8886E; }
.about-tag--mint    { border-color: rgba(191,232,216,.28); color: #6BB89E; }
.about-tag--butter  { border-color: rgba(255,232,155,.35); color: #B8A434; }

.about-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.about-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.about-detail-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-faint);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

.footer {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-4xl);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(183,169,232,.05) 50%,
    rgba(141,197,238,.04) 100%
  );
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}
.footer-brand-tagline {
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.footer-quote {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-style: italic;
  max-width: 260px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  transition: all var(--duration-fast) var(--ease-out);
}
.footer-social a:hover { color: var(--ink); transform: translateY(-2px); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.back-to-top {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--sky));
  color: #fff;
  box-shadow: var(--shadow-sm), var(--glow-lavender);
  transition: all var(--duration-fast) var(--ease-out);
  margin-top: var(--space-sm);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 50px rgba(183,169,232,.35); }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .35s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
  .hero-floater { animation: none; }
  .hero-badge-dot { animation: none; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* Tablet portrait & smaller desktops */
@media (max-width: 1024px) {
  :root { --page-gutter-x: clamp(18px, 4vw, 40px); }

  .hero-grid {
    grid-template-columns: 42% 58%;
    gap: var(--space-xl);
  }
  .hero-visual { max-height: 420px; }

  .work-card {
    grid-template-columns: 180px 1fr;
    gap: var(--space-lg);
  }
  .work-card .btn-view { display: none; } /* Hide button on tablet, tap card instead */

  .about-layout {
    grid-template-columns: 140px 1fr;
    gap: var(--space-xl);
  }
  .about-details { display: none; }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-nav-overlay,
  .mobile-nav-panel { display: flex; }

  .hero {
    min-height: auto;
    padding-block: var(--space-3xl) var(--space-2xl);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .hero-visual {
    order: -1;
    max-height: 340px;
    width: 75%;
    margin-inline: auto;
  }
  /* Mask handles edge fade on all screens — no overlay needed */
  .hero-visual::after {
    content: none;
  }
  }

  .hero-floaters { display: none; }

  .work-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .work-preview {
    max-width: 200px;
    aspect-ratio: 1;
  }
  .work-card .btn-view { display: inline-flex; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .about-avatar-wrap { margin-inline: auto; }
  .about-avatar { width: 120px; height: 120px; }
  .about-bio { margin-inline: auto; }
  .about-tags { justify-content: center; }
  .about-details { display: none; }

  .footer-inner { flex-direction: column; text-align: center; gap: var(--space-xl); }
  .footer-right { align-items: center; }
}

/* Small phones */
@media (max-width: 430px) {
  :root { --page-gutter-x: 16px; }

  .hero-visual { width: 85%; max-height: 280px; }
  .hero-title { font-size: clamp(2rem, 11vw, 2.8rem); }

  .sticker-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .sticker-thumb { width: 56px; height: 56px; }
  .sticker-action { align-self: stretch; }
  .sticker-action .btn-view { justify-content: center; }

  .work-preview { max-width: 140px; }
}


/* ══════════════════════════════════════════════════════════
   WhimsicalHe V2 Visual Upgrade Layer
   Reference: Editorial × Digital Garden × Soft Glass
   ══════════════════════════════════════════════════════════ */

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(177,169,218,.20), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(255,237,168,.18), transparent 25rem),
    linear-gradient(180deg, #FCFAF6 0%, #F8F5EF 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(80,60,90,.18) .5px, transparent .5px);
  background-size: 12px 12px;
  z-index: -1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

.hero::before {
  width: 260px;
  height: 260px;
  left: 8%;
  top: 12%;
  background: rgba(177,169,218,.25);
}

.hero::after {
  width: 220px;
  height: 220px;
  right: 10%;
  bottom: 5%;
  background: rgba(127,185,230,.18);
}

.card,
.project-card,
.work-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(120,100,150,.12);
  box-shadow: 0 18px 50px rgba(80,60,100,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover,
.project-card:hover,
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(80,60,100,.14);
}

button,
.btn,
a.button {
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
}

button:hover,
.btn:hover,
a.button:hover {
  transform: translateY(-2px);
}

section {
  position: relative;
}

h1, .hero-title {
  letter-spacing: -.045em;
  line-height: .98;
}



/* ===== WhimsicalHe V2 Phase 2 : Hero Editorial Upgrade ===== */

.hero {
  min-height: min(900px, 100vh);
  display: flex;
  align-items: center;
}

.hero-grid {
  gap: clamp(2rem, 5vw, 5rem);
  /* Shift both illustration and text rightward */
  padding-left: clamp(24px, 5vw, 80px);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content:"";
  position:absolute;
  inset:8% -8%;
  background: radial-gradient(circle, rgba(177,169,218,.35), transparent 65%);
  filter: blur(25px);
  z-index:-1;
}

.hero-visual-img {
  border-radius: 42px;
  box-shadow:
    0 35px 80px rgba(70,50,100,.16),
    0 5px 20px rgba(255,255,255,.8) inset;
  transform: translateY(0);
  animation: gardenFloat 7s ease-in-out infinite;
}

@keyframes gardenFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.65rem 1.1rem;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(120,100,150,.12);
  backdrop-filter:blur(14px);
  font-size:.9rem;
}

.hero-badge-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#B7A9E8;
  box-shadow:0 0 15px rgba(183,169,232,.9);
}

.hero-title em {
  font-style:italic;
  background:linear-gradient(120deg,#8a78c7,#7fb9e6);
  -webkit-background-clip:text;
  color:transparent;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  border-radius:999px;
  padding:.9rem 1.6rem;
}

@media(max-width:768px){
  .hero {
    min-height:auto;
    padding-top:5rem;
  }

  .hero-title {
    font-size:clamp(2.6rem,12vw,4rem);
  }

  .hero-visual-img {
    border-radius:28px;
  }
}

/* soft section transition */
section:not(.hero)::before {
  content:"";
  position:absolute;
  top:-80px;
  left:50%;
  transform:translateX(-50%);
  width:60%;
  height:160px;
  background:radial-gradient(ellipse,rgba(177,169,218,.12),transparent 70%);
  pointer-events:none;
}

/* ══════════════════════════════════════════════════════════
   DARK MODE COMPLETE OVERRIDES
   Fixes the broken dark mode where only hero was styled
   ══════════════════════════════════════════════════════════ */

/* ── Body & Global Background ── */
[data-theme="dark"] body {
  background-color: #1a1816;
}
[data-theme="dark"] body::before {
  opacity: .08;
}
[data-theme="dark"] ::selection {
  background: rgba(183,169,232,.35);
}

/* ── Section Backgrounds (fixes white-sections-below-hero bug) ── */
[data-theme="dark"] #works,
[data-theme="dark"] #stickers,
[data-theme="dark"] #about {
  background: transparent;
}
[data-theme="dark"] .section {
  background-color: transparent;
}

/* ── Hero Area ── */
[data-theme="dark"] .hero {
  /* Clean dark background — no ugly gradients */
  background: linear-gradient(
    175deg,
    rgba(30,28,25,1) 0%,
    rgba(26,24,22,1) 50%,
    rgba(28,26,24,1) 100%
  ) !important;
}
/* Phase2 hero blob decorations — dim in dark */
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after {
  opacity: .12;
}
/* Soft section transition ellipses — dim in dark */
[data-theme="dark"] section:not(.hero)::before {
  background: radial-gradient(ellipse, rgba(120,100,140,.08), transparent 70%);
}

/* ── Hero Illustration ── */
[data-theme="dark"] .hero-visual::before {
  background: radial-gradient(circle, rgba(120,100,140,.18), transparent 65%);
}
[data-theme="dark"] .hero-visual-img {
  filter: brightness(.82) contrast(1.06);
  box-shadow:
    0 35px 80px rgba(0,0,0,.35),
    0 5px 20px rgba(0,0,0,.15) inset !important;
}

/* ── Hero Badge ── */
[data-theme="dark"] .hero-badge {
  background: rgba(40,38,34,.72);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .hero-badge-dot {
  background: #a39bd4;
  box-shadow: 0 0 14px rgba(163,155,212,.7);
}

/* ── Typography ── */
[data-theme="dark"] .hero-title {
  color: var(--ink);
}
[data-theme="dark"] .hero-subtitle {
  color: var(--ink-soft);
}
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-desc {
  color: var(--ink);
}
[data-theme="dark"] .section-header .link-arrow {
  color: var(--ink-faint);
}
[data-theme="dark"] .section-header .link-arrow:hover {
  color: var(--lavender);
}

/* ── Work Cards ── */
[data-theme="dark"] .work-card {
  background: rgba(35,33,30,.72);
  border-color: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
[data-theme="dark"] .work-card:hover {
  background: rgba(42,40,36,.8);
  box-shadow: 0 18px 50px rgba(0,0,0,.3), var(--glow-lavender);
}
[data-theme="dark"] .work-card h3 {
  color: var(--ink);
}
[data-theme="dark"] .work-card p {
  color: var(--ink-soft);
}
[data-theme="dark"] .work-tag {
  background: rgba(183,169,232,.12);
  color: #c4bde8;
  border-color: rgba(183,169,232,.15);
}

/* ── Sticker Packs ── */
[data-theme="dark"] .sticker-grid-item {
  background: rgba(35,33,30,.6);
  border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .sticker-grid-item:hover {
  background: rgba(42,40,36,.75);
  box-shadow: 0 16px 44px rgba(0,0,0,.25);
}

/* ── About Section ── */
[data-theme="dark"] .about-content {
  background: rgba(35,33,30,.5);
  border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .about-content p {
  color: var(--ink-soft);
}
[data-theme="dark"] .avatar-frame {
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* ── Buttons ── */
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #9b8ed4, #7fb9e6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(155,142,212,.3);
}
[data-theme="dark"] .btn-secondary {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: var(--ink);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
}
[data-theme="dark"] .btn-view {
  background: rgba(183,169,232,.14);
  color: #d4cee8;
  border-color: rgba(183,169,232,.2);
}
[data-theme="dark"] .btn-view:hover {
  background: rgba(183,169,232,.22);
}

/* ── Navigation ── */
[data-theme="dark"] .nav-wrapper {
  background: rgba(26,24,22,.82);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .nav-links a {
  color: var(--ink-soft);
}
[data-theme="dark"] .nav-links a:hover {
  color: var(--ink);
}
[data-theme="dark"] .brand {
  color: var(--ink);
}
[data-theme="dark"] .theme-toggle {
  color: var(--ink-soft);
}
[data-theme="dark"] .theme-toggle:hover {
  color: var(--ink);
}

/* ── Footer ── */
[data-theme="dark"] .footer {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30,28,25,.5) 30%,
    rgba(26,24,22,.85) 100%
  );
  border-top-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
  color: var(--ink-faint);
}
[data-theme="dark"] .footer a:hover {
  color: var(--lavender);
}
[data-theme="dark"] .social-links a {
  color: var(--ink-faint);
}
[data-theme="dark"] .social-links a:hover {
  color: var(--lavender);
  transform: translateY(-3px);
}

/* ── Eyebrow / Labels ── */
[data-theme="dark"] .eyebrow {
  background: rgba(183,169,232,.08);
  border-color: rgba(183,169,232,.12);
  color: #c4bde8;
}

/* ── Scroll / Misc Elements ── */
[data-theme="dark"] .garden-thread {
  opacity: .1;
}
[data-theme="dark"] .floater {
  opacity: .2;
}
[data-theme="dark"] .back-to-top {
  background: rgba(35,33,30,.8);
  border-color: rgba(255,255,255,.08);
  color: var(--ink-soft);
}
[data-theme="dark"] .back-to-top:hover {
  background: rgba(45,43,38,.9);
  color: var(--ink);
}

/* ── Phase2 Override Layer: Cards & Buttons ── */
[data-theme="dark"] .card,
[data-theme="dark"] .project-card {
  background: rgba(35,33,30,.65);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
[data-theme="dark"] .card:hover,
[data-theme="dark"] .project-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,.3), var(--glow-lavender);
}
