/* ============================================
   MINDY'S AI GUIDE — Main Stylesheet
   ============================================ */

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

:root {
  /* Evening water — silver-blue palette */
  --cream: #F6F9FB;
  --warm-white: #F8FBFD;
  --clay: #2F6690;
  --clay-light: #E3EEF5;
  --clay-dark: #1F4A66;
  --sage: #5B8FA8;
  --sage-light: #E8F2F5;
  --butter: #B9CDD9;
  --butter-light: #EFF5F8;
  --ink: #16232E;
  --ink-soft: #3E5A6E;
  --ink-muted: #7B96A3;
  --border: rgba(22, 35, 46, 0.1);
  --silver: #B7C4CC;
  --silver-light: #EDF2F4;
  --silver-dark: #7C8E99;
  --silver-shine: linear-gradient(135deg, #CBD8DE 0%, #F2F6F8 45%, #AFC0C9 100%);
}

/* === DARK MODE — "evening water" at night.
   Pages opt in by setting html[data-mw-theme] (index + about do); pages that
   don't set it (e.g. mood.html) are unaffected. === */
html[data-mw-theme="dark"] {
  color-scheme: dark;
  --cream: #0E161D;
  --warm-white: #121C25;
  --clay: #8CBCE0;
  --clay-light: #1B2B38;
  --clay-dark: #B7D5EC;
  --sage: #74A7C0;
  --sage-light: #16242E;
  --butter: #3B5466;
  --butter-light: #15212B;
  --ink: #E6EEF3;
  --ink-soft: #AEC1CE;
  --ink-muted: #7E96A6;
  --border: rgba(230, 238, 243, 0.10);
  --silver: #4A5C68;
  --silver-light: #1A252E;
  --silver-dark: #9FB2BF;
  --silver-shine: linear-gradient(135deg, #2A3A46 0%, #3D5060 45%, #22313C 100%);
}

html[data-mw-theme="dark"] body {
  background: linear-gradient(
    120deg,
    #0B131A 0%,
    #111D27 18%,
    #0D1820 36%,
    #13202B 54%,
    #0C161E 72%,
    #112029 90%,
    #0B131A 100%
  );
  background-size: 320% 320%;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(
    120deg,
    #D9E5EC 0%,
    #F3F8FA 18%,
    #C9DCE6 36%,
    #EEF5F8 54%,
    #D2E2EA 72%,
    #F6FAFB 90%,
    #D9E5EC 100%
  );
  background-size: 320% 320%;
  animation: waterFlow 26s ease-in-out infinite;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes waterFlow {
  0%   { background-position: 0% 45%; }
  50%  { background-position: 100% 56%; }
  100% { background-position: 0% 45%; }
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
}

.nav-logo span { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--silver-dark); }

.nav-links a.nav-active { color: var(--clay); }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--butter-light);
  color: #3D6478;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid #B9CDD966;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--clay);
  color: white;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--silver-shine);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--silver-dark); }

/* === CHAT MOCKUP === */
.hero-visual { position: relative; }

.chat-mockup {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 40px rgba(47, 102, 144, 0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--clay);
  font-weight: 600;
  flex-shrink: 0;
}

.chat-name { font-size: 14px; font-weight: 500; }
.chat-sub  { font-size: 12px; color: var(--ink-muted); }

.msg {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.msg-user { flex-direction: row-reverse; }

.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-user .msg-bubble {
  background: var(--clay);
  color: white;
  border-bottom-right-radius: 4px;
}

.msg-ai .msg-bubble {
  background: var(--cream);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.msg-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.msg-user .msg-dot { background: var(--clay-light); color: var(--clay); }
.msg-ai  .msg-dot  { background: var(--sage-light);  color: var(--sage); }

.chat-input {
  margin-top: 1rem;
  display: flex;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  align-items: center;
}

.chat-input-text { flex: 1; font-size: 13px; color: var(--ink-muted); }

.chat-send {
  width: 28px;
  height: 28px;
  background: var(--clay);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send svg { width: 14px; height: 14px; fill: white; }

/* === TRUST BAR === */
.trust-bar {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
}

.trust-bar p {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto;
}

.trust-bar strong { color: var(--ink-soft); font-weight: 500; }

/* === SHARED SECTION STYLES === */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 600px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* === TRY IT SECTION === */
.try-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.try-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.prompt-cards { display: flex; flex-direction: column; gap: 1rem; }

.prompt-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s, background 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  text-align: left;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.prompt-card:hover { border-color: var(--silver-dark); transform: translateX(4px); }

.prompt-icon  { font-size: 22px; flex-shrink: 0; margin-top: 2px; width: 32px; text-align: center; }
.prompt-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.prompt-text  { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }

.prompt-arrow {
  margin-left: auto;
  align-self: center;
  color: var(--clay);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--warm-white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.prompt-card:hover .prompt-arrow { background: var(--silver-shine); color: var(--ink); border-color: var(--silver-dark); }

.prompt-card.is-copied { border-color: var(--sage); background: var(--sage-light); }
.prompt-card.is-copied .prompt-arrow {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

/* === ABOUT === */
.about-section { background: var(--clay); color: white; }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  border-radius: 20px;
  background: var(--clay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 80px;
  color: rgba(255,255,255,0.3);
  overflow: hidden;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.about-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-title em { font-style: italic; opacity: 0.8; }

.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.about-portfolio-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
}

.about-portfolio-link:hover { opacity: 1; color: var(--silver-light); }

.about-creds { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }

.cred { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.8); }

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

/* === SPECIAL TOOLS SECTION === */
.tools-section {
  padding: 80px 2rem;
}

.tools-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tools-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.5;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.tools-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tools-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
}

.tools-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}

.tools-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.tools-card__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tools-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.tools-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.tools-card__links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.tools-card__cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.tools-card__cta:hover {
  opacity: 0.7;
}

.tools-card__cta--secondary {
  color: #888 !important;
  font-weight: 400;
}

/* Explorer — cobalt violet */
.tools-card--explorer {
  border-top: 3px solid #6B3FA8;
}
.tools-card--explorer .tools-card__tag  { color: #6B3FA8; }
.tools-card--explorer .tools-card__cta  { color: #6B3FA8; }
.tools-card--explorer:hover {
  background: #F5F0FF;
  box-shadow: 0 8px 32px rgba(107, 63, 168, 0.15);
}

/* Creator — electric cobalt */
.tools-card--creator {
  border-top: 3px solid #1A4FCC;
}
.tools-card--creator .tools-card__tag  { color: #1A4FCC; }
.tools-card--creator .tools-card__cta  { color: #1A4FCC; }
.tools-card--creator:hover {
  background: #EEF3FF;
  box-shadow: 0 8px 32px rgba(26, 79, 204, 0.15);
}

/* Reader — deep forest emerald */
.tools-card--reader {
  border-top: 3px solid #1A7A4A;
}
.tools-card--reader .tools-card__tag  { color: #1A7A4A; }
.tools-card--reader .tools-card__cta  { color: #1A7A4A; }
.tools-card--reader:hover {
  background: #EEF9F3;
  box-shadow: 0 8px 32px rgba(26, 122, 74, 0.15);
}

/* Signal — burnt amber */
.tools-card--signal {
  border-top: 3px solid #946200;
}
.tools-card--signal .tools-card__tag  { color: #946200; }
.tools-card--signal .tools-card__cta  { color: #946200; }
.tools-card--signal:hover {
  background: #FFF7E6;
  box-shadow: 0 8px 32px rgba(148, 98, 0, 0.15);
}

/* Film — cinema crimson */
.tools-card--film {
  border-top: 3px solid #B8283F;
}
.tools-card--film .tools-card__tag  { color: #B8283F; }
.tools-card--film .tools-card__cta  { color: #B8283F; }
.tools-card--film:hover {
  background: #FCEEF0;
  box-shadow: 0 8px 32px rgba(184, 40, 63, 0.15);
}

/* Score — deep teal */
.tools-card--score {
  border-top: 3px solid #0F6E6E;
}
.tools-card--score .tools-card__tag  { color: #0F6E6E; }
.tools-card--score .tools-card__cta  { color: #0F6E6E; }
.tools-card--score:hover {
  background: #E7F6F5;
  box-shadow: 0 8px 32px rgba(15, 110, 110, 0.15);
}

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

/* === FEEDBACK === */
.feedback-section { max-width: 1100px; margin: 0 auto; padding: 80px 2rem; text-align: center; }

.feedback-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}

.feedback-icon { font-size: 40px; margin-bottom: 1rem; }

.feedback-box h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feedback-box p { font-size: 15px; color: var(--ink-soft); margin-bottom: 1.5rem; line-height: 1.6; }

.feedback-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }

.feedback-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.55;
}

.feedback-input:focus        { border-color: var(--clay); }
.feedback-input::placeholder { color: var(--ink-muted); }

.feedback-submit {
  align-self: flex-end;
  padding: 12px 24px;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.feedback-submit:hover    { background: var(--silver-shine); color: var(--ink); }
.feedback-submit:disabled { background: var(--sage); cursor: default; }

.feedback-thanks { font-size: 14px; color: var(--sage); margin-top: 0.5rem; min-height: 1.4em; }

/* === CLAUDE FLOAT BUTTON === */
.claude-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 20px 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(22, 35, 46, 0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.claude-float:hover {
  background: var(--silver-shine);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(22, 35, 46, 0.3);
}

.claude-float:hover .claude-float-icon svg { stroke: var(--ink); }

.claude-float-icon { display: flex; align-items: center; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

footer p    { font-size: 13px; color: var(--ink-muted); }
footer a    { color: var(--clay); text-decoration: none; }
footer a:hover { color: var(--silver-dark); text-decoration: underline; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left   { animation: fadeUp 0.6s ease forwards; }
.hero-visual { animation: fadeUp 0.6s 0.2s ease both; }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === FOCUS STATES (keyboard accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* === ASK SECTION === */
.ask-section {
  padding: 80px 2rem;
}

.ask-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* === GUIDE CHAT (shared by inline + float) === */
.guide-chat {
  margin-top: 2rem;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.guide-chat__messages {
  padding: 1.25rem 1.25rem 0.5rem;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.guide-msg {
  display: flex;
  gap: 0;
  max-width: 82%;
}

.guide-msg--user {
  align-self: flex-end;
}

.guide-msg--ai {
  align-self: flex-start;
}

.guide-msg__bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

.guide-msg--ai .guide-msg__bubble {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
}

.guide-msg--user .guide-msg__bubble {
  background: var(--clay);
  color: white;
  border-radius: 16px 4px 16px 16px;
}

.guide-msg--loading .guide-msg__bubble {
  color: var(--ink-muted);
  font-style: italic;
}

.guide-chat__input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
}

.guide-chat__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}

.guide-chat__input::placeholder {
  color: var(--ink-muted);
}

.guide-chat__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.guide-chat__send:hover {
  background: var(--silver-shine);
  color: var(--ink);
}

.guide-chat__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === FLOATING PANEL === */
.float-panel {
  position: fixed;
  bottom: 90px;
  right: 1.5rem;
  width: 340px;
  max-height: 500px;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(22, 35, 46, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.float-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.float-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding: 0.2rem;
  line-height: 1;
}

.float-panel__close:hover {
  color: var(--ink);
}

.float-panel .guide-chat__messages {
  flex: 1;
  max-height: 320px;
  background: var(--warm-white);
}

.float-panel .guide-chat__input-row {
  background: var(--cream);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero,
  .try-inner,
  .about-inner        { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero               { padding: 50px 1.25rem 40px; }
  .section            { padding: 60px 1.25rem; }
  .try-inner          { padding: 60px 1.25rem; }
  .about-inner        { padding: 60px 1.25rem; }
  .ask-section        { padding: 60px 1.25rem; }
  .about-avatar,
  .about-photo        { max-width: 160px; }
  .claude-float-label { display: none; }
  .float-panel        { width: calc(100vw - 2rem); right: 1rem; }

  nav { padding: 0 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(22, 35, 46, 0.08);
    padding: 0.5rem 1.25rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { padding: 0.35rem 0; }
  .nav-links li a { display: inline-block; font-size: 16px; }
}

/* ============================================
   LIQUID SURFACE — Home + About only (body.liquid)
   The water itself is drawn by js/liquid.js on #liquid.
   ============================================ */
#liquid { position: fixed; z-index: -1; pointer-events: none; display: block; filter: blur(1.5px); }

/* Name and page titles: a slow liquid-silver sheen across the letters */
body.liquid .intro h1,
body.liquid .about-wrap h1 {
  background: linear-gradient(105deg, #16232E 0%, #2F6690 30%, #6F93AE 44%, #A9C0CF 50%, #6F93AE 56%, #2F6690 70%, #16232E 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: silverSheen 9s ease-in-out infinite;
}
html[data-mw-theme="dark"] body.liquid .intro h1,
html[data-mw-theme="dark"] body.liquid .about-wrap h1 {
  background-image: linear-gradient(105deg, #AEC1CE 0%, #E6EEF3 30%, #8CBCE0 44%, #FFFFFF 50%, #8CBCE0 56%, #E6EEF3 70%, #AEC1CE 100%);
}
body.liquid .intro h1 { font-size: clamp(46px, 8.5vw, 92px); letter-spacing: -0.02em; line-height: 1.02; }
/* background-clip:text only paints inside the box, so give descenders (the "y") room below
   and pull the following text back up by the same amount so the layout doesn't shift. */
body.liquid .intro h1 { padding-bottom: 0.16em; margin-bottom: calc(1rem - 0.16em); }
body.liquid .about-wrap h1 { padding-bottom: 0.16em; margin-bottom: calc(1.5rem - 0.16em); }
@keyframes silverSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }

/* Section headings trail off into a silver hairline */
body.liquid .sec-h { display: flex; align-items: center; gap: 16px; }
body.liquid .sec-h::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(47,102,144,.45), rgba(183,196,204,0));
}
html[data-mw-theme="dark"] body.liquid .sec-h::after { background: linear-gradient(90deg, rgba(140,188,224,.45), rgba(140,188,224,0)); }

/* Portfolio rows: numbered, lift on hover, and catch a silver glow under the cursor */
body.liquid .plist { border-top: none; counter-reset: proj; }
body.liquid .prow {
  position: relative; isolation: isolate; cursor: pointer;
  counter-increment: proj;
  margin: 0 -18px; padding: 20px 18px;
  border-bottom: none; border-radius: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
body.liquid .prow::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: var(--border);
}
body.liquid .prow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.85), rgba(255,255,255,0) 62%),
    linear-gradient(120deg, rgba(214,228,236,.62), rgba(242,247,250,.42));
  box-shadow: inset 0 0 0 1px rgba(47,102,144,.12), 0 12px 32px rgba(31,74,102,.10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .35s ease;
}
html[data-mw-theme="dark"] body.liquid .prow::before {
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(140,188,224,.20), rgba(140,188,224,0) 62%),
    linear-gradient(120deg, rgba(38,58,74,.60), rgba(22,34,44,.40));
  box-shadow: inset 0 0 0 1px rgba(230,238,243,.09), 0 12px 32px rgba(0,0,0,.30);
}
body.liquid .prow:hover { transform: translateY(-2px); }
body.liquid .prow:hover::before { opacity: 1; }
body.liquid .prow a.pname::before {
  content: counter(proj, decimal-leading-zero);
  display: inline-block; width: 2.2em;
  font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em; color: var(--ink-muted); vertical-align: 2px;
}
body.liquid .prow a.pname:not([target])::after {
  content: '→'; display: inline-block; margin-left: 8px; opacity: 0;
  transform: translateX(-6px); color: var(--clay);
  transition: opacity .3s ease, transform .3s ease;
}
body.liquid .prow:hover a.pname:not([target])::after { opacity: 1; transform: none; }
body.liquid .prow:hover a.pname { color: var(--clay); }

/* History: a journey timeline (2019 to now) above silver-edged glass cards */
body.liquid .tl {
  position: relative; margin: 2px 0 26px; padding: 18px 20px 12px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(232,240,245,.35));
  border: 1px solid rgba(47,102,144,.12); box-shadow: 0 10px 28px rgba(31,74,102,.07);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.liquid .tl-lane { display: grid; grid-template-columns: 56px 1fr; align-items: start; }
body.liquid .tl-lane-name { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); padding-top: 1px; }
body.liquid .tl-track {
  position: relative; height: 42px;
  background: repeating-linear-gradient(90deg, rgba(47,102,144,.10) 0 1px, transparent 1px 12.5%);
}
body.liquid .tl-bar { position: absolute; top: 0; left: var(--s); width: max(12px, calc(var(--e) - var(--s))); height: 38px; text-decoration: none; outline-offset: 3px; }
body.liquid .tl-bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 1px; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #8FA9BC, #D7E3EA 45%, #A9BECB);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 8px rgba(31,74,102,.15);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 140ms + 150ms), box-shadow .3s ease, filter .3s ease;
}
body.liquid .tl-now::before { background: linear-gradient(90deg, #6F93AE, #2F6690 70%, #1F4A66); }
body.liquid .tl-edu::before { background: linear-gradient(90deg, #B7C4CC, #E6EEF3 40%, #8FA9BC); }
body.liquid .tl-dot::before { background: radial-gradient(circle at 35% 30%, #FFFFFF, #8FA9BC 60%, #5B7D93); }
body.liquid .tl-now::after {
  content: ''; position: absolute; right: -4px; top: -1px; width: 14px; height: 14px; border-radius: 50%;
  background: #2F6690; box-shadow: 0 0 0 3px rgba(246,250,251,.95);
  animation: tlPulse 2.4s ease-in-out infinite;
}
@keyframes tlPulse { 50% { box-shadow: 0 0 0 3px rgba(246,250,251,.95), 0 0 0 9px rgba(47,102,144,.18); } }
body.liquid .tl-bar span { position: absolute; top: 16px; left: 0; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
body.liquid .tl-bar span b { font-weight: 500; }
body.liquid .tl-bar span .sm { display: none; }
body.liquid .tl-bar:hover::before, body.liquid .tl-bar.is-hot::before { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 3px rgba(47,102,144,.16), 0 4px 14px rgba(31,74,102,.25); }
body.liquid .tl-bar:hover span, body.liquid .tl-bar.is-hot span { color: var(--clay); }
body.liquid .tl-axis { position: relative; height: 16px; margin-left: 56px; border-top: 1px solid var(--border); }
body.liquid .tl-axis span { position: absolute; left: var(--p); top: 4px; font-size: 10.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* bars draw in once the timeline scrolls into view (only when motion is welcome) */
html.reveal-ready body.liquid .tl:not(.in) .tl-bar::before { transform: scaleX(0); }

body.liquid .hlist { border-top: none; position: relative; padding-left: 52px; display: flex; flex-direction: column; gap: 14px; }
body.liquid .hlist::before {
  content: ''; position: absolute; left: 17px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(47,102,144,.55), rgba(183,196,204,.45) 70%, rgba(183,196,204,.1));
}
body.liquid .hrow {
  position: relative; isolation: isolate; grid-template-columns: 118px 1fr; gap: 1.25rem;
  padding: 18px 20px; border: 1px solid rgba(47,102,144,.12); border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(236,243,247,.38));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(31,74,102,.07); scroll-margin-top: 84px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
body.liquid .hrow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.9), rgba(255,255,255,0) 62%);
  transition: opacity .35s ease;
}
body.liquid .hrow:hover, body.liquid .hrow.is-hot, body.liquid .hrow:target {
  transform: translateY(-2px); border-color: rgba(47,102,144,.28); box-shadow: 0 14px 34px rgba(31,74,102,.13);
}
body.liquid .hrow:hover::before, body.liquid .hrow.is-hot::before, body.liquid .hrow:target::before { opacity: 1; }
body.liquid .hbadge {
  position: absolute; left: -52px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 13px; color: #16232E;
  background: radial-gradient(circle at 32% 28%, #FFFFFF, #D7E3EA 45%, #9DB3C2 100%);
  box-shadow: 0 0 0 4px rgba(246,250,251,.95), 0 4px 12px rgba(31,74,102,.22), inset 0 -2px 4px rgba(31,74,102,.15);
}
body.liquid .hbadge--sm { font-size: 10px; letter-spacing: .02em; }
body.liquid .hbadge--now { animation: badgeGlow 2.8s ease-in-out infinite; }
@keyframes badgeGlow { 50% { box-shadow: 0 0 0 4px rgba(246,250,251,.95), 0 0 20px rgba(47,102,144,.55), inset 0 -2px 4px rgba(31,74,102,.15); } }
body.liquid .hmeta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
body.liquid .htype { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
body.liquid .htype--work   { color: #1F4A66; border-color: rgba(47,102,144,.35); background: rgba(47,102,144,.08); }
body.liquid .htype--intern { color: #3E6B80; border-color: rgba(91,143,168,.35); background: rgba(91,143,168,.08); }
body.liquid .htype--edu    { color: #5C6E79; border-color: rgba(124,142,153,.4); background: rgba(183,196,204,.18); }
body.liquid .hloc { font-size: 12.5px; color: var(--ink-muted); }
body.liquid .hchips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; }
body.liquid .hchips li {
  font-size: 12.5px; font-weight: 500; color: var(--clay-dark); padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(227,238,245,.9), rgba(255,255,255,.7)); border: 1px solid rgba(47,102,144,.14);
}

html[data-mw-theme="dark"] body.liquid .tl,
html[data-mw-theme="dark"] body.liquid .hrow {
  background: linear-gradient(120deg, rgba(38,58,74,.55), rgba(22,34,44,.42)); border-color: rgba(230,238,243,.09);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
html[data-mw-theme="dark"] body.liquid .tl-track { background: repeating-linear-gradient(90deg, rgba(140,188,224,.10) 0 1px, transparent 1px 12.5%); }
html[data-mw-theme="dark"] body.liquid .tl-bar::before { background: linear-gradient(90deg, #4A6478, #9FB8C9 45%, #5F7C90); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 8px rgba(0,0,0,.3); }
html[data-mw-theme="dark"] body.liquid .tl-now::before { background: linear-gradient(90deg, #5B8FA8, #8CBCE0 70%, #B7D5EC); }
html[data-mw-theme="dark"] body.liquid .tl-now::after { background: #8CBCE0; box-shadow: 0 0 0 3px rgba(14,22,29,.95); }
html[data-mw-theme="dark"] body.liquid .hrow::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(140,188,224,.18), rgba(140,188,224,0) 62%); }
html[data-mw-theme="dark"] body.liquid .hrow:hover, html[data-mw-theme="dark"] body.liquid .hrow.is-hot, html[data-mw-theme="dark"] body.liquid .hrow:target { border-color: rgba(140,188,224,.3); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
html[data-mw-theme="dark"] body.liquid .hlist::before { background: linear-gradient(180deg, rgba(140,188,224,.6), rgba(140,188,224,.2) 70%, rgba(140,188,224,.05)); }
html[data-mw-theme="dark"] body.liquid .hbadge { color: #0E161D; background: radial-gradient(circle at 32% 28%, #FFFFFF, #B7D5EC 45%, #5B8FA8 100%); box-shadow: 0 0 0 4px rgba(14,22,29,.95), 0 4px 12px rgba(0,0,0,.4); }
html[data-mw-theme="dark"] body.liquid .htype--work   { color: #B7D5EC; border-color: rgba(140,188,224,.35); background: rgba(140,188,224,.10); }
html[data-mw-theme="dark"] body.liquid .htype--intern { color: #9FC3D6; border-color: rgba(116,167,192,.35); background: rgba(116,167,192,.10); }
html[data-mw-theme="dark"] body.liquid .htype--edu    { color: #AEC1CE; border-color: rgba(174,193,206,.3); background: rgba(174,193,206,.08); }
html[data-mw-theme="dark"] body.liquid .hchips li { color: #B7D5EC; background: rgba(140,188,224,.10); border-color: rgba(140,188,224,.2); }

/* About photo: a silver rim */
body.liquid .about-wrap img.me {
  box-shadow: 0 0 0 1px rgba(255,255,255,.75), 0 0 0 5px rgba(183,196,204,.35), 0 18px 40px rgba(31,74,102,.18);
}

/* Scroll reveal. html.js-reveal is set in <head> only when motion is welcome;
   the fail-safe animation shows everything after 3s even if the script never runs. */
html.js-reveal body.liquid :is(.sec-h, .tl, .prow, .hrow, .about-wrap > *) {
  opacity: 0; translate: 0 18px;
  transition: opacity .8s ease var(--d, 0ms), translate .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .35s cubic-bezier(.2,.7,.2,1);
}
html.js-reveal body.liquid :is(.sec-h, .tl, .prow, .hrow, .about-wrap > *).in { opacity: 1; translate: none; }
/* Only if liquid.js never ran (it adds .reveal-ready at once). */
html.js-reveal:not(.reveal-ready) body.liquid :is(.sec-h, .tl, .prow, .hrow, .about-wrap > *) { animation: revealFailsafe 0s linear 3s forwards; }
@keyframes revealFailsafe { to { opacity: 1; translate: none; } }

@media (max-width: 600px) {
  body.liquid .prow { margin: 0 -10px; padding: 16px 10px; }
  body.liquid .prow::after { left: 10px; right: 10px; }
  body.liquid .tl { padding: 14px 12px 10px; }
  body.liquid .tl-lane { grid-template-columns: 44px 1fr; }
  body.liquid .tl-axis { margin-left: 44px; }
  body.liquid .tl-axis span { font-size: 9.5px; }
  body.liquid .tl-bar span { font-size: 10.5px; }
  body.liquid .tl-bar span .lg { display: none; }
  body.liquid .tl-bar span .sm { display: inline; }
  body.liquid .hlist { padding-left: 40px; gap: 12px; }
  body.liquid .hlist::before { left: 13px; }
  body.liquid .hrow { grid-template-columns: 1fr; gap: .3rem; padding: 16px; }
  body.liquid .hbadge { left: -40px; width: 28px; height: 28px; font-size: 11px; }
  body.liquid .hbadge--sm { font-size: 8px; }
}

/* ============================================
   HOME INTERACTIONS (js/home.js)
   ============================================ */

/* "What are you into?" chips */
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 16px; }
.pick-q { flex-basis: 100%; font-size: 13px; color: var(--ink-muted); margin-bottom: 1px; }
.pick-chip {
  font: 500 13px/1 'DM Sans', sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  color: var(--ink-soft); background: rgba(255,255,255,.5); border: 1px solid rgba(47,102,144,.2);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.pick-chip:hover { border-color: var(--clay); color: var(--clay); }
.pick-chip:active { transform: scale(.96); }
.pick-chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 4px 14px rgba(47,102,144,.28); }
.pick-note { font-size: 12.5px; color: var(--ink-muted); margin-left: 2px; }
.pick-clear { font: 500 12.5px 'DM Sans', sans-serif; background: none; border: 0; padding: 4px 2px; color: var(--clay); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html[data-mw-theme="dark"] .pick-chip { background: rgba(38,58,74,.5); border-color: rgba(140,188,224,.22); }
html[data-mw-theme="dark"] .pick-chip[aria-pressed="true"] { background: #8CBCE0; border-color: #8CBCE0; color: #0E161D; }

/* rows re-ranked by the picker (beats the scroll-reveal opacity rule) */
html body.liquid .plist .prow.prow.is-dim { opacity: .32; filter: saturate(.5); }
body.liquid .prow { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .4s ease, filter .4s ease; }
body.liquid .prow.is-match::before { opacity: .6; }

/* floating project preview (mouse/trackpad only) */
.pv {
  position: fixed; left: 0; top: 0; z-index: 9000; width: 260px; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: #E8EEF2; transition: opacity .22s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75), 0 0 0 5px rgba(183,196,204,.35), 0 24px 50px rgba(22,35,46,.25);
}
.pv.on { opacity: 1; }
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
html[data-mw-theme="dark"] .pv { background: #121C25; box-shadow: 0 0 0 1px rgba(140,188,224,.3), 0 0 0 5px rgba(140,188,224,.12), 0 24px 50px rgba(0,0,0,.5); }

/* touch screens: a small thumbnail in each row instead */
.pthumb { display: none; }
@media (hover: none) {
  .prow.has-thumb { grid-template-columns: 220px 1fr 96px; }
  .prow.has-thumb .pthumb {
    display: block; grid-column: 3; grid-row: 1; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
    border-radius: 10px; align-self: center; box-shadow: 0 0 0 1px rgba(47,102,144,.15), 0 6px 14px rgba(31,74,102,.12);
  }
}
@media (hover: none) and (max-width: 600px) {
  .prow.has-thumb { grid-template-columns: 1fr 84px; column-gap: 14px; }
  .prow.has-thumb a.pname, .prow.has-thumb .pfocus { grid-column: 1; }
  .prow.has-thumb .pthumb { grid-column: 2; grid-row: 1 / span 2; width: 84px; }
}

/* "How I build" constellation */
.sk-sub { font-size: 15px; color: var(--ink-soft); margin: -4px 0 18px; }
.sk { --sk-lines: 1; position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(70px,150px) minmax(0,1fr); align-items: center; }
.sk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sk-col { display: flex; flex-direction: column; gap: 8px; position: relative; }
.sk-skills { grid-column: 1; align-items: flex-end; }
.sk-projs { grid-column: 3; align-items: flex-start; }
.sk-skill, .sk-proj {
  position: relative; border-radius: 999px; padding: 7px 14px; white-space: nowrap; cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,.55); border: 1px solid rgba(47,102,144,.18); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .25s, color .25s, border-color .25s, opacity .3s, box-shadow .25s, transform .25s;
}
.sk-skill { font: 500 13.5px 'DM Sans', sans-serif; }
.sk-proj { font: 600 14.5px 'Fraunces', serif; }
.sk-skill:hover, .sk-proj:hover { transform: translateY(-1px); }
.sk.is-active .sk-skill:not(.on), .sk.is-active .sk-proj:not(.on) { opacity: .32; }
.sk-skill.on { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 6px 18px rgba(47,102,144,.3); }
.sk-proj.on { border-color: var(--clay); color: var(--clay); background: rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(47,102,144,.1), 0 6px 18px rgba(47,102,144,.18); }
.sk-lines path { fill: none; stroke: rgba(47,102,144,.16); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.sk.is-active .sk-lines path { stroke: rgba(47,102,144,.05); }
.sk.is-active .sk-lines path.on { stroke: #2F6690; stroke-width: 1.8; stroke-dasharray: 5 7; animation: skFlow 1.1s linear infinite; }
@keyframes skFlow { to { stroke-dashoffset: -24; } }
html[data-mw-theme="dark"] .sk-skill, html[data-mw-theme="dark"] .sk-proj { background: rgba(38,58,74,.55); border-color: rgba(140,188,224,.2); }
html[data-mw-theme="dark"] .sk-skill.on { background: #8CBCE0; border-color: #8CBCE0; color: #0E161D; }
html[data-mw-theme="dark"] .sk-proj.on { background: rgba(38,58,74,.9); border-color: #8CBCE0; color: #B7D5EC; box-shadow: 0 0 0 4px rgba(140,188,224,.12); }
html[data-mw-theme="dark"] .sk-lines path { stroke: rgba(140,188,224,.16); }
html[data-mw-theme="dark"] .sk.is-active .sk-lines path { stroke: rgba(140,188,224,.05); }
html[data-mw-theme="dark"] .sk.is-active .sk-lines path.on { stroke: #8CBCE0; }
@media (max-width: 640px) {
  .sk { --sk-lines: 0; grid-template-columns: 1fr; gap: 16px; }
  .sk-skills, .sk-projs { grid-column: 1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .sk-skill, .sk-proj { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .sk.is-active .sk-lines path.on { animation: none; stroke-dasharray: none; }
}

/* ── On repeat (index intro): vinyl + five songs, same glass as the History cards ── */
.np {
  display: flex; align-items: center; gap: 16px; margin-top: 1.75rem; padding: 12px 18px 12px 12px; max-width: 560px;
  border: 1px solid rgba(47,102,144,.12); border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(236,243,247,.38));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(31,74,102,.07);
}
.np[hidden] { display: none; }
.np-disc { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.np-vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 29%, rgba(255,255,255,.06) 30%, transparent 31%),
    repeating-radial-gradient(circle at 50% 50%, #16232E 0 1.2px, #22313C 1.2px 2.6px);
  box-shadow: 0 6px 16px rgba(31,74,102,.25), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: npSpin 3.2s linear infinite; animation-play-state: paused;
}
.np-vinyl::after {   /* static silver sheen across the grooves */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(242,246,248,.22) 14%, transparent 22% 60%, rgba(242,246,248,.14) 64%, transparent 72%);
}
.np-label { position: absolute; inset: 30%; border-radius: 50%; overflow: hidden; background: var(--silver); box-shadow: 0 0 0 2px rgba(22,35,46,.6); }
.np-label::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #EDF2F4; }
.np-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-icon {
  position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--clay); box-shadow: 0 0 0 3px rgba(246,250,251,.95), 0 3px 8px rgba(31,74,102,.3);
  transition: transform .2s;
}
.np-icon::before {   /* play triangle */
  content: ''; position: absolute; left: 9px; top: 7px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff;
}
.np.is-playing .np-icon::before { left: 8px; top: 7.5px; width: 2.5px; height: 9px; border: 0; background: #fff; box-shadow: 5px 0 0 #fff; }
.np-disc:hover .np-icon { transform: scale(1.1); }
.np-disc:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.np.is-playing .np-vinyl { animation-play-state: running; }
@keyframes npSpin { to { transform: rotate(360deg); } }

.np-meta { flex: 1; min-width: 0; }
.np-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.np-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.np-eq i { width: 2px; height: 3px; border-radius: 1px; background: var(--clay); }
.np.is-playing .np-eq i { animation: npEq .9s ease-in-out infinite; }
.np.is-playing .np-eq i:nth-child(2) { animation-delay: -.3s; }
.np.is-playing .np-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes npEq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.np-title { display: block; margin-top: 3px; font: 600 17px/1.25 'Fraunces', serif; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title:hover { color: var(--clay); }
.np-artist { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-bar { height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(47,102,144,.12); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--clay), var(--silver-dark)); transition: width .25s linear; }

.np-list { display: flex; gap: 6px; flex: none; }
.np-pick {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--silver-light);
  opacity: .6; box-shadow: 0 0 0 1px rgba(47,102,144,.14); transition: opacity .2s, transform .2s, box-shadow .2s;
}
.np-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-pick:hover { opacity: 1; transform: translateY(-2px); }
.np-pick.on { opacity: 1; box-shadow: 0 0 0 2px var(--clay); }
.np-pick:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

html[data-mw-theme="dark"] .np {
  background: linear-gradient(120deg, rgba(38,58,74,.55), rgba(22,34,44,.42)); border-color: rgba(230,238,243,.09);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
html[data-mw-theme="dark"] .np-vinyl { background: radial-gradient(circle at 50% 50%, transparent 29%, rgba(255,255,255,.06) 30%, transparent 31%), repeating-radial-gradient(circle at 50% 50%, #0E161D 0 1.2px, #1A252E 1.2px 2.6px); box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 0 0 1px rgba(140,188,224,.15); }
html[data-mw-theme="dark"] .np-icon { box-shadow: 0 0 0 3px rgba(14,22,29,.95), 0 3px 8px rgba(0,0,0,.4); }
html[data-mw-theme="dark"] .np-icon::before { border-left-color: #0E161D; }
html[data-mw-theme="dark"] .np.is-playing .np-icon::before { background: #0E161D; box-shadow: 5px 0 0 #0E161D; }
html[data-mw-theme="dark"] .np-bar { background: rgba(140,188,224,.14); }
html[data-mw-theme="dark"] .np-pick { box-shadow: 0 0 0 1px rgba(140,188,224,.2); }

@media (max-width: 600px) {
  .np { flex-wrap: wrap; max-width: none; }
  .np-list { flex-basis: 100%; justify-content: flex-start; padding-left: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-vinyl { animation: none; }
  .np.is-playing .np-eq i { animation: none; height: 7px; }
}
