@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --inset: 18px;
  --radius: 30px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Day mode — bright sun-drenched meadow */
  --ink: #0f1f22;
  --ink-2: rgba(15, 31, 34, 0.72);
  --ink-3: rgba(15, 31, 34, 0.5);
  --paper: rgba(255, 255, 255, 0.62);
  --paper-strong: rgba(255, 255, 255, 0.78);
  --chip-glass: rgba(255, 255, 255, 0.5);
  --chip-border: rgba(255, 255, 255, 0.78);
  --accent: #2c6e49;
  --accent-soft: #fef9c3;

  --sky-top: #6fb1d6;
  --sky-mid: #b9dff0;
  --sky-bot: #f5edc6;
  --sun-x: 74%;
  --sun-y: 34%;
  --sun-col: #fff6cf;
  --sun-glow: rgba(255, 232, 163, 0.85);
  --hill-far: #7fb285;
  --hill-mid: #4f8c5a;
  --hill-near: #2e6640;
  --hill-fore: #1b432c;
  --mist: rgba(255, 248, 220, 0.55);

  --wash-top: rgba(235, 246, 248, 0.18);
  --wash-mid: rgba(240, 246, 235, 0.42);
  --wash-bot: rgba(28, 60, 42, 0.35);

  /* About smoke panel — dark glass overlay in day, deeper obsidian in night */
  --smoke-bg-1: rgba(16, 26, 28, 0.78);
  --smoke-bg-2: rgba(10, 18, 20, 0.86);
  --smoke-border: rgba(255, 255, 255, 0.16);
  --smoke-ink: #f3f5f1;
  --smoke-ink-2: rgba(243, 245, 241, 0.76);
  --smoke-ink-3: rgba(243, 245, 241, 0.52);
  --smoke-chip: rgba(255, 255, 255, 0.08);
  --smoke-chip-b: rgba(255, 255, 255, 0.16);
  --smoke-card: rgba(255, 255, 255, 0.05);
  --smoke-card-b: rgba(255, 255, 255, 0.1);
  --smoke-stat: rgba(255, 255, 255, 0.035);
  --smoke-stat-b: rgba(255, 255, 255, 0.09);
  --smoke-shadow: 0 30px 80px -20px rgba(8, 22, 18, 0.5), 0 2px 0 rgba(255, 255, 255, 0.14) inset, 0 -1px 0 rgba(0, 0, 0, 0.35) inset;
  --smoke-glow-1: rgba(168, 230, 163, 0.14);
  --smoke-glow-2: rgba(140, 200, 232, 0.12);
}

:root[data-mode="night"] {
  --ink: #eef2f3;
  --ink-2: rgba(238, 242, 243, 0.76);
  --ink-3: rgba(238, 242, 243, 0.5);
  --paper: rgba(15, 24, 34, 0.62);
  --paper-strong: rgba(15, 24, 34, 0.82);
  --chip-glass: rgba(20, 32, 46, 0.58);
  --chip-border: rgba(255, 255, 255, 0.16);
  --accent: #a8e6a3;
  --accent-soft: rgba(168, 230, 163, 0.16);

  --sky-top: #0b1320;
  --sky-mid: #1a2840;
  --sky-bot: #3c4663;
  --sun-x: 24%;
  --sun-y: 26%;
  --sun-col: #f6f3dc;
  --sun-glow: rgba(214, 224, 255, 0.45);
  --hill-far: #233347;
  --hill-mid: #182636;
  --hill-near: #101b28;
  --hill-fore: #09111b;
  --mist: rgba(150, 180, 215, 0.2);

  --wash-top: rgba(10, 18, 30, 0.25);
  --wash-mid: rgba(12, 22, 34, 0.5);
  --wash-bot: rgba(6, 12, 20, 0.55);

  --smoke-bg-1: rgba(8, 14, 22, 0.82);
  --smoke-bg-2: rgba(5, 10, 18, 0.9);
  --smoke-border: rgba(168, 230, 163, 0.18);
  --smoke-ink: #eef4f1;
  --smoke-ink-2: rgba(238, 244, 241, 0.76);
  --smoke-ink-3: rgba(238, 244, 241, 0.5);
  --smoke-chip: rgba(168, 230, 163, 0.08);
  --smoke-chip-b: rgba(168, 230, 163, 0.2);
  --smoke-card: rgba(255, 255, 255, 0.04);
  --smoke-card-b: rgba(255, 255, 255, 0.1);
  --smoke-stat: rgba(168, 230, 163, 0.04);
  --smoke-stat-b: rgba(168, 230, 163, 0.12);
  --smoke-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(168, 230, 163, 0.12) inset, 0 -1px 0 rgba(0, 0, 0, 0.5) inset;
  --smoke-glow-1: rgba(168, 230, 163, 0.18);
  --smoke-glow-2: rgba(130, 175, 240, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: color 0.6s ease;
}

body.wb-home-locked {
  height: 100%;
  overflow: hidden;
  background: #0d1619;
}

body.wb-subpage,
body.wb-admin {
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
}

/* Outer ambient blurred background canvas */
#bg {
  position: fixed;
  inset: -40px;
  width: calc(100vw + 80px);
  height: calc(100vh + 80px);
  filter: blur(36px) saturate(1.18) brightness(0.92);
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
}

/* Inset rounded frame (homepage full scroller) */
.frame {
  position: fixed;
  inset: var(--inset);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  isolation: isolate;
}

:root[data-mode="night"] .frame,
:root[data-mode="night"] .wb-frame-stage {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

/* Fixed backdrop frame for subpages and admin pages */
.wb-frame-stage {
  position: fixed;
  inset: var(--inset);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  isolation: isolate;
}

/* Outer frame mask for subpages & admin so the 18px rounded frame border stays visible while scrolling */
.wb-frame-border-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  border-radius: 0;
}

.wb-frame-border-mask::before {
  content: "";
  position: absolute;
  inset: var(--inset);
  border-radius: var(--radius);
  box-shadow: 0 0 0 24px rgba(13, 22, 25, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

:root[data-mode="night"] .wb-frame-border-mask::before {
  box-shadow: 0 0 0 24px rgba(7, 13, 20, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

/* Scene canvases */
#scene,
#soft,
#life,
#visit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#scene {
  z-index: 0;
}

#soft {
  display: none !important;
}

.wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--wash-top) 0%, var(--wash-mid) 55%, var(--wash-bot) 100%);
  opacity: 0;
  will-change: opacity;
}

#life {
  z-index: 3;
}

#visit {
  z-index: 15;
}

body.wb-subpage #visit {
  position: fixed;
  inset: var(--inset);
  width: calc(100vw - var(--inset) * 2);
  height: calc(100dvh - var(--inset) * 2);
  border-radius: var(--radius);
  z-index: 25;
  pointer-events: none;
}

/* Scroll container inside frame */
.scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  z-index: 4;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

.scroller::-webkit-scrollbar {
  width: 8px;
}

.scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 99px;
}

.page {
  position: relative;
  min-height: 100%;
}

/* Floating glass pill top navigation */
.nav {
  position: sticky;
  top: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  pointer-events: none;
}

body.wb-subpage .nav,
body.wb-admin .nav {
  position: fixed;
  top: calc(var(--inset) + 18px);
  left: var(--inset);
  right: var(--inset);
}

.nav > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--chip-border);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(15, 31, 34, 0.08);
  transition: transform 0.2s ease, background 0.3s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef9c3, #4f8c5a 65%, #1b432c);
  box-shadow: 0 0 12px rgba(79, 140, 90, 0.6);
  position: relative;
  flex-shrink: 0;
}

.brand-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--chip-border);
  box-shadow: 0 6px 24px rgba(15, 31, 34, 0.08);
}

.menu a,
.menu button.menu-trigger {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.menu a:hover,
.menu button.menu-trigger:hover {
  color: var(--ink);
}

.menu a.active,
.menu button.menu-trigger.active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Submenu dropdown inside floating pill nav */
.menu-dropdown-wrap {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px;
  border-radius: 20px;
  background: var(--paper-strong);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--chip-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

.menu-dropdown-wrap:hover .menu-dropdown,
.menu-dropdown-wrap:focus-within .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-dropdown a {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.menu-dropdown a:hover {
  background: var(--chip-glass);
  color: var(--ink);
}

.nav-r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--chip-border);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(15, 31, 34, 0.08);
  transition: transform 0.2s ease, background 0.3s ease;
}

.mode:hover {
  transform: translateY(-1px);
}

.mode svg {
  width: 15px;
  height: 15px;
}

/* HERO */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 48px 28px 34px;
  position: relative;
}

.hero-top-spacer {
  height: 12px;
}

.hero-center {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--chip-border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 26px;
  box-shadow: 0 8px 28px rgba(15, 31, 34, 0.08);
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.25);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

h1.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.35);
}

:root[data-mode="night"] h1.display {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

h1.display em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero typing reveal */
.typing .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.32em) rotate(4deg);
  filter: blur(6px);
  transition: opacity 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
              transform 0.46s cubic-bezier(0.2, 0.9, 0.2, 1),
              filter 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform, filter;
}

.typing .ch.on {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}

.typing em .ch {
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em;
  margin: 0 -0.04em;
}

.typing .caret {
  display: inline-block;
  width: 0.055em;
  height: 0.86em;
  vertical-align: -0.08em;
  margin-left: 0.06em;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 14px var(--accent);
  animation: caretBlink 0.9s steps(2) infinite;
}

.typing.done .caret {
  animation: caretBlink 1.05s steps(2) 3, caretFade 0.5s ease 3.15s forwards;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes caretFade {
  to { opacity: 0; transform: scaleY(0.2); }
}

.lede {
  font-size: clamp(15.5px, 1.35vw, 18.5px);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 30px;
  color: var(--ink-2);
  font-weight: 400;
}

.cta-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--ink);
  color: #f7faf7;
  box-shadow: 0 12px 30px rgba(15, 31, 34, 0.24);
}

:root[data-mode="night"] .btn-primary {
  background: #f4f6f0;
  color: #0e1a22;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 31, 34, 0.32);
}

.btn-ghost {
  background: var(--chip-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--chip-border);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--paper-strong);
}

.hero-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-2);
  font-family: var(--mono);
  padding: 0 6px;
}

.hero-foot .chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--chip-border);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 15px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--chip-border);
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.scroll-cue:hover {
  transform: translateY(-2px);
  background: var(--paper-strong);
  color: var(--ink);
}

.scroll-cue .wheel {
  width: 14px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  position: relative;
}

.scroll-cue .wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: wheel 1.8s infinite;
}

@keyframes wheel {
  0% { top: 4px; opacity: 1; }
  80% { top: 12px; opacity: 0; }
  100% { top: 4px; opacity: 0; }
}

/* CONTENT SECTIONS */
section.panel {
  position: relative;
  max-width: 1180px;
  margin: 40px auto;
  padding: 56px 28px;
}

.glass {
  background: var(--paper);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--chip-border);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(15, 31, 34, 0.12);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sec-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  margin-bottom: 10px;
}

h2.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

h2.sec-title em {
  font-style: italic;
  color: var(--accent);
}

.sec-sub {
  max-width: 380px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ABOUT — dark smoke glass card */
.panel-smoke {
  position: relative;
  max-width: 1180px;
  margin: 40px auto;
  padding: 46px 44px 44px;
  border-radius: 32px;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--smoke-glow-1), transparent 55%),
    radial-gradient(90% 80% at 95% 100%, var(--smoke-glow-2), transparent 55%),
    linear-gradient(180deg, var(--smoke-bg-1), var(--smoke-bg-2));
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--smoke-border);
  box-shadow: var(--smoke-shadow);
  color: var(--smoke-ink);
  overflow: hidden;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.panel-smoke::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 160px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.about-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.about-crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--smoke-chip);
  border: 1px solid var(--smoke-chip-b);
}

.about-crumb .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8e6a3;
  box-shadow: 0 0 10px #a8e6a3;
}

.about-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--smoke-ink-3);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 44px;
  align-items: center;
}

/* 3D Photo Carousel Stage */
.stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage {
  position: relative;
  width: 100%;
  height: 430px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.orbit-layer {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
}

#orbitBack { z-index: 3; }
#orbitFront { z-index: 30; }

.stage-aura {
  position: absolute;
  width: 78%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 230, 163, 0.22), rgba(140, 200, 232, 0.1) 50%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

.pc {
  position: absolute;
  width: 268px;
  height: 356px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s ease,
              filter 0.55s ease,
              box-shadow 0.55s ease;
  will-change: transform, opacity, filter;
  background: #142229;
}

.pc .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pc .art svg,
.pc .art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 22, 0) 48%, rgba(8, 14, 18, 0.86) 100%);
  pointer-events: none;
}

.pc-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #f4f7f3;
}

.pc-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.pc-title em {
  font-style: italic;
  color: #c8f2be;
}

.pc-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(244, 247, 243, 0.65);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pc-num {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pc-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 220px at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.stage-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--smoke-chip);
  border: 1px solid var(--smoke-chip-b);
}

.stage-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--smoke-chip-b);
  background: var(--smoke-card);
  color: var(--smoke-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stage-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

.stage-btn svg {
  width: 13px;
  height: 13px;
}

.stage-dots {
  display: inline-flex;
  gap: 6px;
  padding: 0 4px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.stage-dot.active {
  width: 22px;
  background: #a8e6a3;
}

/* Right bio column */
.about-bio {
  position: relative;
  z-index: 2;
}

.bio-Greet {
  font-family: var(--mono);
  font-size: 12px;
  color: #a8e6a3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bio-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--smoke-ink);
}

.bio-name em {
  font-style: italic;
  color: #c8f2be;
}

.bio-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.bio-role .pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--smoke-chip);
  border: 1px solid var(--smoke-chip-b);
  color: var(--smoke-ink);
}

.bio-role .pill.accent {
  background: rgba(168, 230, 163, 0.15);
  border-color: rgba(168, 230, 163, 0.4);
  color: #d4f7cb;
}

.bio-copy {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--smoke-ink-2);
  margin: 0 0 14px;
}

.bio-copy strong {
  color: var(--smoke-ink);
  font-weight: 600;
}

/* Social icon row */
.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}

.soc {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--smoke-card);
  border: 1px solid var(--smoke-card-b);
  color: var(--smoke-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.soc:hover {
  transform: translateY(-3px);
  background: rgba(168, 230, 163, 0.16);
  border-color: rgba(168, 230, 163, 0.45);
  color: #fff;
}

.soc svg {
  width: 17px;
  height: 17px;
}

.soc::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10, 18, 20, 0.94);
  color: #eef4f1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.soc:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Activity / Agronomy Field Matrix Card */
.gh-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--smoke-card);
  border: 1px solid var(--smoke-card-b);
  margin-bottom: 16px;
}

.gh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--smoke-ink-2);
  margin-bottom: 10px;
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 8px;
}

.gh-head strong {
  color: var(--smoke-ink);
  font-weight: 600;
}

.gh-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--smoke-ink-3);
}

.gh-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.gh-grid {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  grid-auto-rows: 10px;
  gap: 3px;
}

.gh-cell {
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease;
}

.gh-cell:hover {
  transform: scale(1.35);
}

.gh-cell[data-l="1"] { background: rgba(168, 230, 163, 0.25); }
.gh-cell[data-l="2"] { background: rgba(168, 230, 163, 0.5); }
.gh-cell[data-l="3"] { background: rgba(168, 230, 163, 0.78); }
.gh-cell[data-l="4"] { background: #a8e6a3; box-shadow: 0 0 6px rgba(168, 230, 163, 0.6); }

/* Stats strip */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--smoke-stat);
  border: 1px solid var(--smoke-stat-b);
}

.stat .n {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--smoke-ink);
}

.stat .n em {
  font-style: italic;
  color: #a8e6a3;
}

.stat .l {
  font-size: 11.5px;
  color: var(--smoke-ink-3);
  margin-top: 5px;
  font-family: var(--mono);
}

/* SKILLS & FOCUS — Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 16px;
  perspective: 1200px;
}

.sk {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 26px;
  background: var(--paper);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--chip-border);
  box-shadow: 0 18px 46px -18px rgba(15, 31, 34, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.sk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 220px at var(--mx, 80%) var(--my, 20%), rgba(168, 230, 163, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sk:hover::before {
  opacity: 1;
}

.sk:hover {
  box-shadow: 0 28px 60px -18px rgba(15, 31, 34, 0.24);
}

.sk-wide { grid-column: span 4; }
.sk-tall { grid-column: span 2; grid-row: span 2; }
.sk-mid  { grid-column: span 2; }
.sk-half { grid-column: span 3; }

.sk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.sk-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.sk-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  color: var(--ink-2);
}

.sk-ill {
  position: relative;
  height: 118px;
  my: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.sk-tall .sk-ill {
  height: 220px;
}

.sk-ill svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sk-body {
  position: relative;
  z-index: 2;
}

.sk-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}

.sk-title em {
  font-style: italic;
  color: var(--accent);
}

.sk-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.sk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sk-tags span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sk:hover .sk-tags span {
  background: var(--paper-strong);
}

/* Animated SVG strokes inside bento illustrations */
.ill-pulse {
  animation: illPulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

.ill-float {
  animation: illFloat 4.5s ease-in-out infinite;
}

.ill-float2 {
  animation: illFloat 5.4s ease-in-out -1.8s infinite;
}

.ill-dash {
  stroke-dasharray: 6 6;
  animation: illDash 12s linear infinite;
}

.ill-spin {
  animation: illSpin 22s linear infinite;
  transform-origin: center;
}

@keyframes illPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

@keyframes illDash {
  to { stroke-dashoffset: -120; }
}

@keyframes illSpin {
  to { transform: rotate(360deg); }
}

/* PROJECTS / PORTFOLIO SHOWCASE */
.pj-filter {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--chip-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--chip-border);
  flex-wrap: wrap;
}

.pj-tab {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.22s ease;
}

.pj-tab:hover {
  color: var(--ink);
}

.pj-tab.active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.pj {
  grid-column: span 3;
  border-radius: 26px;
  background: var(--paper);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--chip-border);
  box-shadow: 0 20px 55px -20px rgba(15, 31, 34, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              opacity 0.35s ease;
  position: relative;
}

.pj.pj-feat {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.pj.hide {
  display: none;
}

.pj:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -18px rgba(15, 31, 34, 0.28);
}

.pj-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #102026;
  border-bottom: 1px solid var(--chip-border);
}

.pj.pj-feat .pj-shot {
  aspect-ratio: auto;
  min-height: 320px;
  border-bottom: 0;
  border-right: 1px solid var(--chip-border);
}

.pj-shot svg,
.pj-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pj:hover .pj-shot svg,
.pj:hover .pj-shot img {
  transform: scale(1.04);
}

.pj-chrome {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.pj-dots {
  display: inline-flex;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 20, 24, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pj-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.pj-year {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 20, 24, 0.6);
  backdrop-filter: blur(10px);
  color: #eef4f1;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pj-body {
  padding: 24px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.pj-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.pj-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.pj-title em {
  font-style: italic;
  color: var(--accent);
}

.pj-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.pj-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  width: fit-content;
}

.pj-metric b {
  color: var(--accent);
}

.pj-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--chip-border);
  flex-wrap: wrap;
}

.pj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pj-stack span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  color: var(--ink-2);
}

.pj-links {
  display: inline-flex;
  gap: 8px;
}

.pj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--ink);
  color: #f7faf7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

:root[data-mode="night"] .pj-link {
  background: #f4f6f0;
  color: #0e1a22;
}

.pj-link.ghost {
  background: var(--chip-glass);
  color: var(--ink);
  border: 1px solid var(--chip-border);
}

.pj-link:hover {
  transform: translateY(-2px);
}

.pj-link svg {
  width: 13px;
  height: 13px;
}

/* OFF THE CLOCK / AGRONOMY LAB & FIELD NOTES */
.oc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.oc-card {
  position: relative;
  border-radius: 26px;
  background: var(--paper);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--chip-border);
  box-shadow: 0 20px 55px -20px rgba(15, 31, 34, 0.16);
  padding: 24px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.oc-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.oc-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.oc-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  color: var(--ink-2);
}

.oc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}

.oc-title em {
  font-style: italic;
  color: var(--accent);
}

.oc-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Interactive 3D Seed / Botanical Stage */
.oc-stage {
  grid-column: span 7;
  min-height: 360px;
  padding: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(168, 230, 163, 0.2), transparent 55%),
    radial-gradient(100% 90% at 90% 95%, rgba(140, 200, 232, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(16, 28, 32, 0.86), rgba(10, 18, 22, 0.92));
  color: #eef4f1;
  border-color: rgba(255, 255, 255, 0.18);
}

.oc-stage-ui {
  position: relative;
  z-index: 3;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 360px;
  pointer-events: none;
}

.oc-stage-ui > * {
  pointer-events: auto;
}

.oc-stage .oc-kicker {
  color: rgba(238, 244, 241, 0.65);
}

.oc-stage .oc-title {
  color: #f3f7f4;
}

.oc-stage .oc-title em {
  color: #c8f2be;
}

.oc-stage .oc-sub {
  color: rgba(238, 244, 241, 0.72);
  max-width: 360px;
}

#ocCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  z-index: 1;
}

#ocCanvas:active {
  cursor: grabbing;
}

.oc-swatches {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.oc-sw {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oc-sw:hover {
  transform: scale(1.15);
}

.oc-sw.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.oc-stage-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.oc-hint {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(238, 244, 241, 0.78);
}

/* Currently / Field Focus Card */
.oc-now {
  grid-column: span 5;
}

.now-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.now-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  transition: transform 0.2s ease;
}

.now-row:hover {
  transform: translateX(3px);
}

.now-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--paper-strong);
  border: 1px solid var(--chip-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.now-ico svg {
  width: 17px;
  height: 17px;
}

.now-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.now-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1px;
}

.now-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper-strong);
  border: 1px solid var(--chip-border);
  color: var(--ink-2);
}

/* Tea / Seed Commodity Card */
.oc-tea {
  grid-column: span 5;
}

.tea-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 8px;
}

.tea-svg {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.steam {
  animation: steamRise 3.4s ease-in-out infinite;
  transform-origin: center;
}

.steam.s2 { animation-delay: -1.1s; }
.steam.s3 { animation-delay: -2.2s; }

@keyframes steamRise {
  0% { transform: translateY(4px) scaleX(0.95); opacity: 0; }
  40% { opacity: 0.75; }
  100% { transform: translateY(-14px) scaleX(1.08); opacity: 0; }
}

.tea-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  width: 100%;
}

.tea-stat {
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.tea-stat b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}

.tea-stat span {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-2);
  display: block;
}

/* Soundscape / Field Audio Card */
.oc-music {
  grid-column: span 7;
}

.player {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  margin-top: 12px;
}

.vinyl {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4ebd0 0 11px, #2c6e49 12px 22px, #111a1d 23px 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  position: relative;
  overflow: hidden;
  animation: vinylSpin 7s linear infinite !important;
  animation-play-state: paused !important;
}

.vinyl.playing {
  animation-play-state: running !important;
}

.vinyl-cover {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
  box-shadow: 0 0 0 2px rgba(17, 26, 29, 0.9), 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  z-index: 2;
  pointer-events: none;
}

.vinyl::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111a1d;
  border: 2px solid #f4ebd0;
  box-shadow: 0 0 0 2px rgba(17, 26, 29, 0.65);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

.track-meta {
  min-width: 0;
}

.track-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.track-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  margin: 2px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 12.5px;
  color: var(--ink-2);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 8px;
}

.eq i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.2s ease;
}

.vinyl.playing ~ .track-meta .eq i {
  animation: eqBounce 0.9s ease-in-out infinite;
}

.vinyl.playing ~ .track-meta .eq i:nth-child(2) { animation-delay: -0.2s; }
.vinyl.playing ~ .track-meta .eq i:nth-child(3) { animation-delay: -0.45s; }
.vinyl.playing ~ .track-meta .eq i:nth-child(4) { animation-delay: -0.15s; }
.vinyl.playing ~ .track-meta .eq i:nth-child(5) { animation-delay: -0.6s; }
.vinyl.playing ~ .track-meta .eq i:nth-child(6) { animation-delay: -0.35s; }

@keyframes eqBounce {
  0%, 100% { height: 5px; }
  50% { height: 21px; }
}

.play-ctl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #f7faf7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

:root[data-mode="night"] .play-btn {
  background: #f4f6f0;
  color: #0e1a22;
}

.play-btn:hover {
  transform: scale(1.06);
}

.play-btn svg {
  width: 15px;
  height: 15px;
}

.skip-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--chip-border);
  background: var(--paper-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.skip-btn svg {
  width: 13px;
  height: 13px;
}

/* CONTACT */
.contact-card {
  padding: 52px 44px;
  text-align: center;
}

.contact-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}

.contact-card h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact-card p {
  max-width: 500px;
  margin: 0 auto 26px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* FOOTER */
footer {
  max-width: 1180px;
  margin: 10px auto 34px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 12px;
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--chip-glass);
  border: 1px solid var(--chip-border);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.replay-btn:hover {
  transform: translateY(-1px);
  background: var(--paper-strong);
}

.replay-btn .spark {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.5s ease;
}

.replay-btn:hover .spark {
  transform: rotate(90deg) scale(1.18);
}

/* ============================================================
   FIRST-VISIT INTRO OVERLAY
   ============================================================ */
.intro-ov {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 22, 0.76);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  opacity: 1;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.15s;
  overflow: hidden;
  user-select: none;
}

.intro-ov.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.no-intro #introOv,
html.no-intro .intro-ov,
.intro-ov.gone {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.no-intro body.wb-home-locked {
  overflow: auto !important;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px;
  width: 100%;
  max-width: 820px;
  pointer-events: none;
}

.intro-kicker {
  position: relative;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 244, 236, 0.68);
  margin-bottom: clamp(18px, 3vh, 28px);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.intro-kicker.on {
  opacity: 1;
  transform: translateY(0);
}

.intro-stage-line {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
}

.intro-line {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: #f4f7f2;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(8px);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  pointer-events: none;
}

.intro-line em {
  font-style: italic;
  color: #cfecc2;
}

.intro-line.on {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.intro-line.past {
  opacity: 0;
  transform: translateY(-12px) scale(1.015);
  filter: blur(6px);
}

.intro-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(236, 244, 236, 0.62);
  margin-top: 14px;
}

.intro-skip {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 244, 236, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.intro-hint {
  position: absolute;
  left: 28px;
  bottom: 30px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 244, 236, 0.46);
}

.intro-hint i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfecc2;
  box-shadow: 0 0 12px #cfecc2;
  animation: pulse 2s infinite;
}

/* ============================================================
   SUBPAGES & ADMIN GLASSMORPHISM ADAPTATION
   ============================================================ */
body.wb-subpage main,
body.wb-admin main {
  position: relative;
  z-index: 10;
}

body.wb-subpage {
  padding: calc(var(--inset) + 8px) calc(var(--inset) + 8px) calc(var(--inset) + 12px);
}

@media (min-width: 1024px) {
  body.wb-admin main.lg\:pl-72 {
    padding-left: 20.5rem !important;
    padding-right: 2.25rem !important;
  }
}

body.wb-subpage footer {
  position: relative;
  z-index: 10;
}

/* Subpage & Admin Typography adaptation */
body.wb-subpage .font-serif,
body.wb-admin .font-serif {
  font-family: var(--serif) !important;
  letter-spacing: -0.02em;
}

/* Subpage Hero Banners -> Dark Smoke Glass over Live Meadow */
body.wb-subpage main > section:first-child,
body.wb-subpage .wb-hero-section {
  background:
    radial-gradient(120% 90% at 15% 0%, var(--smoke-glow-1), transparent 55%),
    radial-gradient(90% 80% at 95% 100%, var(--smoke-glow-2), transparent 55%),
    linear-gradient(180deg, var(--smoke-bg-1), var(--smoke-bg-2)) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid var(--smoke-border) !important;
  border-radius: 32px !important;
  max-width: 1180px;
  margin: 88px auto 28px !important;
  box-shadow: var(--smoke-shadow) !important;
}

/* Make the second content section on subpages transparent so the live WebGL meadow shines through behind glass cards */
body.wb-subpage main > section:nth-child(n+2) {
  background: transparent !important;
}

/* Convert standard white/stone cards on subpages into meadow glass cards */
body.wb-subpage article.bg-white,
body.wb-subpage div.bg-white,
body.wb-subpage section > div > div.bg-stone-50 {
  background: var(--paper) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-color: var(--chip-border) !important;
  color: var(--ink) !important;
  box-shadow: 0 20px 55px -20px rgba(15, 31, 34, 0.16) !important;
}

:root[data-mode="night"] body.wb-subpage .text-stone-900,
:root[data-mode="night"] body.wb-subpage .text-stone-800 {
  color: var(--ink) !important;
}

:root[data-mode="night"] body.wb-subpage .text-stone-700,
:root[data-mode="night"] body.wb-subpage .text-stone-600 {
  color: var(--ink-2) !important;
}

:root[data-mode="night"] body.wb-subpage .text-stone-500,
:root[data-mode="night"] body.wb-subpage .text-stone-400 {
  color: var(--ink-3) !important;
}

:root[data-mode="night"] body.wb-subpage .bg-stone-50,
:root[data-mode="night"] body.wb-subpage .bg-stone-100 {
  background-color: var(--chip-glass) !important;
  border-color: var(--chip-border) !important;
  color: var(--ink) !important;
}

:root[data-mode="night"] body.wb-subpage input,
:root[data-mode="night"] body.wb-subpage textarea,
:root[data-mode="night"] body.wb-subpage select {
  background-color: rgba(15, 24, 34, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #eef2f3 !important;
}

/* SITE FOOTER & NEWSLETTER CARD (Consistent width & centered alignment) */
.site-footer {
  max-width: 1180px;
  margin: 32px auto 44px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
}

.newsletter-card {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.newsletter-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newsletter-title {
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 32px);
  color: var(--ink);
  line-height: 1.15;
  margin-top: 6px;
  text-align: center;
}

.newsletter-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 10px auto 0;
  line-height: 1.58;
  max-width: 580px;
  text-align: center;
}

.newsletter-form-wrap {
  width: 100%;
  max-width: 500px;
  margin: 6px auto 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* Mobile drawer inside floating pill nav */
.wb-mobile-drawer {
  position: fixed;
  top: calc(var(--inset) + 74px);
  left: calc(var(--inset) + 14px);
  right: calc(var(--inset) + 14px);
  z-index: 90;
  border-radius: 24px;
  background: var(--paper-strong);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--chip-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 16px;
  display: none;
}

.wb-mobile-drawer.open {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1020px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .sk-wide, .sk-tall, .sk-mid, .sk-half {
    grid-column: span 2;
    grid-row: span 1;
  }
  .sk-tall .sk-ill {
    height: 130px;
  }
  .pj, .pj.pj-feat {
    grid-column: span 6;
    grid-template-columns: 1fr;
  }
  .pj.pj-feat .pj-shot {
    border-right: 0;
    border-bottom: 1px solid var(--chip-border);
    min-height: 220px;
  }
  .oc-stage, .oc-now, .oc-tea, .oc-music {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .panel-smoke {
    padding: 32px 22px;
  }
  .stage {
    height: 390px;
  }
  .pc {
    width: 238px;
    height: 318px;
  }
  .gh-grid {
    grid-template-columns: repeat(20, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --inset: 10px;
    --radius: 22px;
  }
  .nav {
    top: 14px;
    padding: 0 14px;
  }
  .menu {
    display: none;
  }
  .hero {
    min-height: calc(100dvh - 74px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 16px 18px 24px;
    position: relative;
  }
  .hero-top-spacer {
    display: none;
  }
  .hero-center {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
  .eyebrow {
    margin-bottom: 16px;
    padding: 6px 13px;
    font-size: 11.5px;
    max-width: 100%;
  }
  h1.display {
    font-size: clamp(34px, 9.2vw, 48px);
    line-height: 1.04;
    margin-bottom: 16px;
  }
  .lede {
    font-size: 14.5px;
    line-height: 1.56;
    margin-bottom: 22px;
  }
  .hero-foot {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    padding-bottom: 6px;
  }
  section.panel {
    margin: 24px auto;
    padding: 32px 16px;
  }
  .oc-card {
    padding: 20px 18px;
    border-radius: 22px;
  }
  .oc-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .oc-stage-ui {
    padding: 18px;
    min-height: 320px;
  }
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 12px 10px;
    text-align: center;
  }
  .stat .n {
    font-size: 24px;
  }
  .stat .l {
    font-size: 10px;
    line-height: 1.25;
  }
  .contact-card {
    padding: 36px 22px;
  }
  .tea-wrap {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 14px 0 4px;
  }
  .tea-svg {
    width: 96px;
    height: 96px;
    margin: 0 auto;
  }
  .tea-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tea-stat {
    padding: 12px 10px;
    align-items: center;
    text-align: center;
    min-height: 68px;
  }
  .tea-stat b {
    font-size: 20px;
  }
  .tea-stat span {
    font-size: 10.5px;
  }
  .player {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    align-items: center;
  }
  .vinyl {
    width: 52px;
    height: 52px;
    background:
      radial-gradient(circle at center, #f4ebd0 0 6px, #2c6e49 7px 14px, #111a1d 15px 100%);
  }
  .vinyl-cover {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }
  .vinyl::before {
    inset: 3px;
  }
  .vinyl::after {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  .track-kicker {
    font-size: 9px;
    letter-spacing: 0.07em;
    line-height: 1.25;
  }
  .track-title {
    font-size: 15.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0;
  }
  .track-artist {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .eq {
    height: 14px;
    margin-top: 4px;
  }
  .play-ctl {
    grid-column: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    flex-shrink: 0;
  }
  .play-btn {
    width: 36px;
    height: 36px;
  }
  .skip-btn {
    width: 28px;
    height: 28px;
  }
  .site-footer {
    margin: 20px auto 32px;
    padding: 0 16px;
    gap: 16px;
  }
  .newsletter-card {
    padding: 26px 18px;
    gap: 14px;
  }
  .newsletter-desc {
    font-size: 13px;
    line-height: 1.5;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-form input {
    width: 100% !important;
    min-width: 100% !important;
  }
  .newsletter-form button {
    width: 100% !important;
    justify-content: center;
  }
}
