/* SwapnaLoka — palette drawn from the logo: night navy, gold, saffron, cream */
:root {
  --bg: #fbf8f2;
  --bg-tint: #f3ede1;
  --surface: #ffffff;
  --ink: #16213a;
  --ink-soft: #4a5571;
  --muted: #7a8296;
  --line: #e4dccb;
  --navy: #10204a;
  --navy-2: #1b3270;
  --gold: #b8862f;
  --gold-soft: #e9cf98;
  --saffron: #d9732b;
  --on-dark: #f4efe4;
  --shadow: 0 1px 2px rgba(16,32,74,.06), 0 8px 24px rgba(16,32,74,.07);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1326; --bg-tint: #111a33; --surface: #15203d;
    --ink: #ece6d8; --ink-soft: #c2c6d3; --muted: #8d94a8; --line: #26325a;
    --navy: #060b1a; --navy-2: #1b3270; --gold: #d9ab55; --gold-soft: #7a5d26;
    --saffron: #ee8a43;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0c1326; --bg-tint: #111a33; --surface: #15203d;
  --ink: #ece6d8; --ink-soft: #c2c6d3; --muted: #8d94a8; --line: #26325a;
  --navy: #060b1a; --navy-2: #1b3270; --gold: #d9ab55; --gold-soft: #7a5d26;
  --saffron: #ee8a43;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.hero__in > *, .grid-2 > *, .cards > *, .books > * { min-width: 0; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 1.5rem; }
.eyebrow {
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--saffron); margin-bottom: 1rem;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--navy-2);
  background: var(--navy-2); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { color: #fff; background: var(--saffron); border-color: var(--saffron); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); }
.btn--light { background: var(--gold); border-color: var(--gold); color: #10204a; }
.btn--sm { padding: .45rem 1rem; font-size: .9rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.35rem var(--serif); }
.brand img { border-radius: 50%; }
.brand em { font-style: normal; color: var(--saffron); }
.nav__menu { display: flex; align-items: center; gap: 1.4rem; }
.nav__menu a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__menu a:not(.btn):hover { color: var(--saffron); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* hero */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
  background:
    radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--gold-soft) 45%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--navy-2) 10%, transparent), transparent 70%);
}
.hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__lead { font: 600 1.25rem var(--serif); color: var(--gold); margin-bottom: .6rem; }
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero__photo { margin: 0; position: relative; justify-self: center; width: min(400px, 100%); }
.hero__photo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold), var(--saffron), var(--navy-2), var(--gold));
  opacity: .9;
}
.hero__photo img { position: relative; border-radius: 50%; border: 6px solid var(--bg); aspect-ratio: 1; object-fit: cover; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-size: .82rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
}
.chips--dark li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--on-dark); }

.stats {
  margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats div { padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 700 1.9rem var(--serif); color: var(--navy-2); }
:root[data-theme="dark"] .stats b { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats b { color: var(--gold); } }
.stats span { font-size: .88rem; color: var(--muted); }

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .prose { color: #d6d9e4; }
.section--dark a:not(.btn) { color: var(--gold-soft); }
.section__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46em; margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); }
.prose p { color: var(--ink-soft); }
.section--dark .prose p { color: #d6d9e4; }
blockquote {
  margin: 1.6rem 0 0; padding: 1rem 1.4rem; border-left: 3px solid var(--gold);
  font: italic 500 1.15rem/1.5 var(--serif); color: var(--ink); background: var(--bg-tint); border-radius: 0 10px 10px 0;
}
.sub { margin-top: 2.6rem; }

/* cards */
.cards { display: grid; gap: 1.2rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--quiet { margin-top: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); font-size: .96rem; }
.cards--quiet .card { box-shadow: none; background: transparent; }
.card__tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); margin-bottom: .5rem; }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card--line { border-top: 3px solid var(--gold); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin: .45rem 0; color: var(--ink-soft); font-size: .96rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }

.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1.2rem; }
.skills li { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .93rem; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 2.4rem; padding: .9rem 0; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 127px; top: 1.3rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-tint); border: 2px solid var(--gold);
}
.timeline li:first-child::after, .timeline li:nth-child(2)::after { background: var(--saffron); border-color: var(--saffron); }
.tl__when { font: 600 .9rem var(--sans); color: var(--muted); padding-top: .15rem; text-align: right; }
.timeline h4 { margin-bottom: .25rem; }
.timeline h4 small { font: 500 .9rem var(--sans); color: var(--gold); }
.timeline p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.edu { grid-template-columns: 1fr 1fr; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: .95rem; }
.plain b { color: var(--ink); font-weight: 600; }

/* books */
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.book {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px 14px 14px 6px;
  padding: 1.3rem 1.1rem 1.2rem 1.6rem; min-height: 230px; box-shadow: var(--shadow); transition: transform .2s;
}
.book:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--ink); }
.book__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: 6px 0 0 6px; }
.b1 { background: var(--navy-2); } .b2 { background: #2e7d6b; } .b3 { background: var(--gold); }
.b4 { background: var(--saffron); } .b5 { background: #8a3b5c; }
.book__kind { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.book h4 { font-size: 1.05rem; }
.book p { font-size: .88rem; color: var(--ink-soft); margin-top: auto; margin-bottom: 0; }
.newsletter {
  margin-top: 3rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between;
  padding: 1.8rem 2rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: var(--on-dark);
}
.newsletter h3 { color: #fff; }
.newsletter p { margin: 0; color: #d6d9e4; }
.newsletter .btn { background: var(--gold); border-color: var(--gold); color: #10204a; flex-shrink: 0; }

/* music */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cap { margin-top: 1rem; font-size: .92rem; color: #c9cddb; }
.section--dark .chips { margin: 1.2rem 0 1.6rem; }
#music .grid-2 { grid-template-columns: 1fr 1.1fr; align-items: center; }

/* contact */
.contact { text-align: center; }
.contact .section__lead { margin-inline: auto; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1rem 0 2rem; }
.links a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500;
}
.links a:hover { border-color: var(--gold); color: var(--saffron); }
.links svg { width: 18px; height: 18px; fill: currentColor; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-bottom: 1.2rem; }
.downloads a { font-weight: 600; font-size: .95rem; }

.foot { border-top: 1px solid var(--line); padding: 2.4rem 0; background: var(--bg-tint); }
.foot__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.foot img { border-radius: 12px; margin-bottom: .6rem; background: #fff; }
.foot p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 1000px) {
  .books { grid-template-columns: repeat(3, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__in, .grid-2, #music .grid-2, .edu { grid-template-columns: 1fr; }
  .hero__photo { order: -1; width: min(260px, 70%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .books, .skills { grid-template-columns: 1fr; }
  .book { min-height: 0; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.6rem; }
  .timeline li::after { left: 0; top: 1.1rem; }
  .tl__when { text-align: left; }
}

/* builder: 4 venture cards + ventures in focus */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.focus__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); border-top: 4px solid var(--saffron);
  scroll-margin-top: 84px;
}
.focus__item + .focus__item { border-top-color: #c9a21a; }
.focus__item > p { color: var(--ink-soft); }
.focus__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.focus__head h3 { margin: 0; }
.focus__sub { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.focus__mark { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.focus__mark--drum { display: grid; place-items: center; background: var(--navy-2); color: var(--gold-soft); }
.focus__mark--drum svg { width: 36px; height: 36px; }
.focus .ticks li b { color: var(--ink); font-weight: 600; }
.focus__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.focus__links a:not(.btn) { font-weight: 600; text-decoration: none; }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .focus { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } .focus__item { padding: 1.3rem; } }

/* honour badge */
.honour {
  display: inline-flex; align-items: center; gap: .45rem; margin: -.4rem 0 1.1rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: color-mix(in srgb, var(--gold-soft) 45%, transparent); color: var(--ink);
  border: 1px solid var(--gold);
}
.honour span { color: var(--gold); }
.gold { color: var(--gold); font-weight: 600; }

/* book shelf with real covers */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; align-items: start; max-width: 940px; margin: 0 auto; }
.cover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.cover img, .cover__art {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px 8px 8px 3px;
  box-shadow: -4px 0 0 rgba(0,0,0,.08) inset, 0 10px 24px rgba(16,32,74,.18);
  transition: transform .25s, box-shadow .25s; margin-bottom: .8rem;
}
.cover:hover img, .cover:hover .cover__art { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 34px rgba(16,32,74,.28); }
.cover__art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  font: 700 2rem/1.1 var(--serif); color: #fff8e8; text-align: center; padding: 1rem;
}
.cover__art small { font: 500 .95rem var(--sans); opacity: .85; letter-spacing: .1em; }
.cover__art--noor { background: radial-gradient(circle at 50% 30%, #f3c86a 0 18%, transparent 19%), linear-gradient(160deg, #1b3270, #0c1530); }
.cover__kind { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cover h4 { font-size: 1rem; margin: .25rem 0 .35rem; }
.cover__buy { font-size: .88rem; font-weight: 600; color: var(--gold); }
.cover:hover .cover__buy { color: var(--saffron); }

/* linkedin articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.article {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s;
}
.article:hover { transform: translateY(-3px); color: var(--ink); }
.article__art { aspect-ratio: 16/7; display: grid; place-items: center; font: 700 1.5rem var(--serif); color: #fff; text-align: center; padding: 0 1rem; }
.article__art--dharma { background: linear-gradient(135deg, #d9732b, #b8862f 60%, #10204a); }
.article__art--ai { background: linear-gradient(135deg, #10204a, #1b3270 55%, #2e7d6b); letter-spacing: .04em; }
.article__art--sdk { background: linear-gradient(135deg, #2b2f3a, #1b3270); font-family: ui-monospace, Consolas, monospace; }
.article__body { padding: 1.2rem 1.3rem 1.4rem; }
.article__body h4 { font-size: 1.05rem; }
.article__body p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.posts { margin-top: 1.4rem; padding: 1.3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.posts h4 { margin-bottom: .6rem; }
.posts ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.posts li { margin: .3rem 0; break-inside: avoid; font-size: .94rem; }

/* poetry */
.poetry h2 .deva { font-size: 1.3em; color: var(--saffron); }
.poetry h2 small { display: block; font: 500 1rem var(--sans); color: var(--muted); margin-top: .4rem; letter-spacing: .04em; }
.poetry__tag { font: 600 1.4rem/1.5 var(--serif); color: var(--navy-2); margin: 1.2rem 0 .2rem; }
:root[data-theme="dark"] .poetry__tag { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .poetry__tag { color: var(--gold); } }
.poetry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.4rem; }
.poetry__grid div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--saffron); border-radius: 10px; padding: .9rem 1rem; }
.poetry__grid b { display: block; font: 700 1.25rem var(--serif); color: var(--ink); }
.poetry__grid span { font-size: .88rem; color: var(--ink-soft); }

/* music: repertoire + video grid */
.music__top { align-items: start; }
.repertoire { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.repertoire div { padding: 1rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.repertoire b { display: block; font: 600 1.05rem var(--serif); color: #fff; margin-bottom: .2rem; }
.repertoire span { font-size: .88rem; color: #c9cddb; }
.muted-dark { color: #aeb4c6; margin-top: -.4rem; }
.vfilter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.vfilter button {
  font: 500 .88rem var(--sans); padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,.25);
}
.vfilter button.on, .vfilter button:hover { background: var(--gold); border-color: var(--gold); color: #10204a; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.vid { position: relative; display: block; text-decoration: none; color: #fff; border-radius: 10px; overflow: hidden; background: #000; }
.vid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .9; transition: transform .3s, opacity .3s; }
.vid::before {
  content: "\25B6"; position: absolute; top: calc(28% - 22px); left: calc(50% - 22px); width: 44px; height: 44px; z-index: 1;
  display: grid; place-items: center; padding-left: 3px; font-size: 18px; color: #fff;
  border-radius: 50%; background: rgba(217,115,43,.92); box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .2s;
}
.vid:hover img { transform: scale(1.05); opacity: 1; }
.vid:hover::before { transform: scale(1.12); }
.vid span { display: block; padding: .55rem .7rem .7rem; font-size: .82rem; line-height: 1.35; background: #17234a; color: #e6e8ef; min-height: 3.2em; }
.vid.hide { display: none; }

/* beyond: hobbies */
.hobbies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hobby { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.hobby__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.5rem; background: var(--bg-tint); margin-bottom: .8rem; }
.hobby p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

@media (max-width: 1000px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .articles, .hobbies, .repertoire { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) { .posts ul { columns: 1; } }
@media (max-width: 560px) {
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .articles, .hobbies, .repertoire, .poetry__grid { grid-template-columns: 1fr; }
}

/* silicon / Ambient Scientific spotlight */
.silicon { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%); }
.silicon__band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; background: #10204a; color: #fff; }
.silicon__band div { padding: 1.2rem 1.3rem; border-right: 1px solid rgba(255,255,255,.14); }
.silicon__band div:last-child { border-right: 0; }
.silicon__band b { display: block; font: 700 1.3rem var(--serif); color: #f3c86a; }
.silicon__band span { font-size: .86rem; color: #c9cddb; }
.music__photo { margin: 1.4rem 0 1.4rem; }
.music__photo img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0,0,0,.45); border: 1px solid rgba(243,200,106,.35); }
@media (max-width: 860px) { .silicon__band { grid-template-columns: repeat(2, 1fr); } .silicon__band div:nth-child(2) { border-right: 0; } .silicon__band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); } }

.poetry__book { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; text-decoration: none; color: var(--ink); }
.poetry__book img { width: 120px; border-radius: 3px 8px 8px 3px; box-shadow: 0 10px 24px rgba(16,32,74,.22); transition: transform .25s; }
.poetry__book:hover img { transform: translateY(-4px) rotate(-1deg); }
.poetry__book b { font: 700 1.3rem var(--serif); color: var(--saffron); }
.poetry__book small { color: var(--gold); font-weight: 600; }

.shelf__next { text-align: center; margin: 1.6rem 0 .4rem; color: var(--ink-soft); }
.shelf__next span { display: inline-block; margin-right: .4rem; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); border: 1px solid var(--saffron); }
.shelf__next b, .poetry__next b { font-family: var(--serif); color: var(--saffron); }
.poetry__next { margin-top: .9rem; color: var(--ink-soft); font-size: .95rem; }

/* multi-page: active nav, page header, explore tiles, associations, areas, footer links */
.nav__menu a[aria-current="page"]:not(.btn) { color: var(--saffron); font-weight: 600; box-shadow: inset 0 -2px 0 var(--saffron); }
.pagehead { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--gold-soft) 60%, transparent), transparent 45%), linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.pagehead__crumb { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); margin: 0 0 .6rem; }
.pagehead__crumb a { color: var(--muted); text-decoration: none; }
.pagehead__crumb span { color: var(--muted); margin: 0 .3rem; }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0 0 .7rem; }
.pagehead__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; margin: 0; }
.explore { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.explore a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow); transition: transform .2s; }
.explore a:hover { transform: translateY(-4px); color: var(--ink); }
.explore h3 { font-size: 1.08rem; margin: .1rem 0 .4rem; }
.explore p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.assoc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.assoc__card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.assoc__card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 16px 34px rgba(16,32,74,.16); }
.assoc__card h3 { margin: .1rem 0 .1rem; }
.assoc__card p { font-size: .93rem; color: var(--ink-soft); }
.assoc__role { font-weight: 600; color: var(--gold) !important; margin: 0 0 .5rem; }
.assoc__mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: .9rem;
  font: 700 1.15rem var(--serif); color: #fff; }
.assoc__mono--yadot { background: linear-gradient(135deg, #d9732b, #8a3b5c); }
.assoc__mono--mf { background: linear-gradient(135deg, #10204a, #2e7d6b); }
.assoc__mono--inv { background: linear-gradient(135deg, #2b2f3a, #1b3270); }
.assoc__mono--q { background: linear-gradient(135deg, #b8862f, #10204a); }
.area__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; color: var(--saffron); background: var(--bg-tint); margin-bottom: .8rem; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: .4rem 0; }
.foot__links a, .foot__social a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.foot__links a:hover, .foot__social a:hover { color: var(--saffron); }
.foot__social { margin: .2rem 0; }
@media (max-width: 1100px) { .explore { grid-template-columns: repeat(3, 1fr); } .assoc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .explore, .assoc { grid-template-columns: 1fr; } }
.assoc__mono--ket { background: linear-gradient(135deg, #2e7d6b, #10204a); }
.card__link--muted { color: var(--muted); font-weight: 500; }

/* menu: one line on wide screens, hamburger below 1040px */
.nav__menu a { white-space: nowrap; }
@media (max-width: 1040px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: .7rem 0; }
  .nav__menu .btn { justify-content: center; margin-top: .5rem; }
  .nav__menu a[aria-current="page"]:not(.btn) { box-shadow: none; }
}

/* footer logo: transparent artwork; give it a light tile in dark mode so the navy lettering stays readable */
.foot__in > img { width: 150px; height: auto; border-radius: 14px; }
:root[data-theme="dark"] .foot__in > img { background: #fbf8f2; padding: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot__in > img { background: #fbf8f2; padding: 6px; } }
