/* banumunnangi.com shared styles */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #14171c;
  --ink-2: #353b46;
  --muted: #5d6471;
  --line: #e2dfd6;
  --accent: #1d4e89;
  --accent-soft: #e6edf6;
  --on-accent: #ffffff;
  --live: #1f7a4d;
  --shadow: 0 1px 2px rgb(20 23 28 / 4%), 0 8px 24px rgb(20 23 28 / 6%);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1c2028;
    --ink: #eceef1;
    --ink-2: #c9cdd4;
    --muted: #9aa1ad;
    --line: #272b34;
    --accent: #8db3e8;
    --accent-soft: #1b2636;
    --on-accent: #0f1115;
    --live: #5fc28f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1c2028;
  --ink: #eceef1;
  --ink-2: #c9cdd4;
  --muted: #9aa1ad;
  --line: #272b34;
  --accent: #8db3e8;
  --accent-soft: #1b2636;
  --on-accent: #0f1115;
  --live: #5fc28f;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .nav-cta {
  margin-left: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.nav .nav-cta:hover { background: var(--ink-2); color: var(--bg); }
.nav .nav-cta[aria-current="page"] { color: var(--bg); }

.menu-btn {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  font: 500 .95rem var(--sans);
  cursor: pointer;
}

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: none; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 10px; border: 0; padding: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font: 500 .98rem var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.link-arrow::after { content: " \2192"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-out::after { content: " \2197"; }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 12px 0 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- Page intro ---------- */
.page-intro { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-intro h1 { max-width: 16ch; }
.page-intro .lead { max-width: 640px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .role { font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.portrait {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .portrait { max-width: 340px; order: -1; }
}

/* ---------- Credibility strip ---------- */
.creds {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.creds .label { font-size: .85rem; color: var(--muted); }
.creds .name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 28px 24px; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat > span { color: var(--muted); font-size: .95rem; line-height: 1.5; display: block; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.tag.live { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.tag.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: .85rem;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
}

/* ---------- Projects ---------- */
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-shot {
  display: block;
  background: #0d0f13;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project-shot img { width: 100%; height: auto; transition: transform .5s; }
.project-shot:hover img { transform: scale(1.015); }
.project-body {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px clamp(24px, 5vw, 64px);
}
.project-body h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 14px 0 12px; }
.project-body p { color: var(--ink-2); }
.feature-list { list-style: none; padding: 44px 0 0; margin: 0; display: grid; gap: 12px; align-content: start; }
.feature-list li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 820px) { .project-body { grid-template-columns: 1fr; } .feature-list { padding-top: 12px; } }

.project-sm { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.project-sm .thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.project-sm .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.project-sm h3 { margin: 10px 0 8px; }
.project-sm p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 680px) { .project-sm { grid-template-columns: 1fr; } }

/* ---------- Experience ---------- */
.roles { border-top: 1px solid var(--line); }
.role-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.role-row .when { color: var(--muted); font-size: .95rem; padding-top: 4px; }
.role-row h3 { margin-bottom: 4px; }
.role-row .org { color: var(--ink-2); font-weight: 500; margin-bottom: 14px; }
.role-row ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.role-row li { margin-bottom: 6px; }
.role-row .chips { margin-top: 16px; }
@media (max-width: 680px) { .role-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Talks ---------- */
.talk { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.talk .ph { aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.talk .ph img { width: 100%; height: 100%; object-fit: cover; }
.talk .body { padding: 22px 24px 26px; }
.talk .meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.talk h3 { font-size: 1.2rem; margin-bottom: 10px; }
.talk p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; margin: 0; }

.topic h3 { font-size: 1.2rem; margin-bottom: 8px; }
.topic p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* ---------- Article ---------- */
.article-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.article-card:hover { border-color: var(--ink-2); }
.article-card h3 { font-size: 1.6rem; margin: 10px 0 12px; }
.article-card p { color: var(--ink-2); }

.prose { font-size: 1.12rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; color: var(--ink); }
.prose p { margin-bottom: 1.2em; }
.prose .standfirst { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: var(--ink); }
.byline {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .photo { max-width: 420px; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.awards { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.awards li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.awards strong { font-weight: 600; }
.awards span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 22px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: end;
}
.contact-band h2 { color: var(--bg); }
.contact-band p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 14px 0 0; max-width: 480px; }
.contact-band .btn-row { justify-content: flex-end; }
.contact-band .btn-light { background: var(--bg); color: var(--ink); }
.contact-band .btn-light:hover { background: var(--surface-2); }
.contact-band .btn-outline { border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--bg); }
.contact-band .btn-outline:hover { border-color: var(--bg); }
@media (max-width: 820px) { .contact-band { grid-template-columns: 1fr; } .contact-band .btn-row { justify-content: flex-start; } }

.channel h3 { margin-bottom: 10px; }
.channel p { color: var(--ink-2); font-size: .97rem; }
.contact-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-lines li {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.contact-lines .k { color: var(--muted); font-size: .92rem; }
.contact-lines a { font-size: 1.15rem; word-break: break-word; }
@media (max-width: 480px) { .contact-lines li { grid-template-columns: 1fr; gap: 2px; } }

.copy-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  color: var(--ink-2);
}
.copy-box p:last-of-type { margin-bottom: 14px; }
.copy-btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 8px; padding: 7px 14px; font: 500 .88rem var(--sans); cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer small { color: var(--muted); font-size: .88rem; }

/* ---------- 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) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Chat assistant ---------- */
.chat-trigger {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 500 .95rem var(--sans);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.chat-trigger:hover { border-color: var(--ink-2); }
.chat-trigger .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
}
.chat-trigger .dot svg { width: 15px; height: 15px; }

.chat-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 70;
  width: min(400px, calc(100vw - 40px));
  height: min(560px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 22%);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { font-size: .82rem; color: var(--muted); }
.chat-close {
  appearance: none; border: 0; background: var(--surface-2); color: var(--ink);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.55; white-space: pre-wrap; }
.msg.assistant { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-suggest button {
  appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font: .85rem var(--sans); cursor: pointer;
}
.chat-suggest button:hover { border-color: var(--ink-2); color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 10px; padding: 11px 14px; font: 1rem var(--sans);
}
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button {
  appearance: none; border: 0; border-radius: 10px; padding: 0 16px;
  background: var(--ink); color: var(--bg); font: 500 .95rem var(--sans); cursor: pointer;
}
.chat-form button:disabled { opacity: .4; cursor: default; }
@media (max-width: 480px) {
  .chat-trigger .txt { display: none; }
  .chat-trigger { padding: 10px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- Home hero: the reinsurance tower ---------- */
:root { --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace; --gold: #e8c547; }

.hero-dark {
  position: relative;
  overflow: hidden;
  margin-top: -68px;
  padding-top: 68px;
  background:
    radial-gradient(900px 520px at 78% 30%, rgb(46 74 122 / 55%), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgb(232 197 71 / 7%), transparent 70%),
    #090e18;
  color: #e9ecf2;
}
.hero-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-dark .wrap { position: relative; }
.hero-dark .hero-grid {
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px);
  min-height: min(760px, calc(100svh - 68px - 64px));
}
.hero-dark h1 { color: #fff; font-size: clamp(3rem, 7vw, 5.4rem); margin-bottom: 20px; }
.hero-dark .eyebrow { color: var(--gold); }
.hero-dark .role { color: #fff; font-size: 1.2rem; }
.hero-dark .lead { color: #b9c1cf; }
.hero-dark .btn-primary { background: var(--gold); color: #0b0f18; }
.hero-dark .btn-primary:hover { background: #f2d76b; }
.hero-dark .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 22%); }
.hero-dark .btn-ghost:hover { border-color: #fff; }

.now {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  font-size: .9rem; color: #cfd6e3;
}
.now img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.now b { color: #fff; font-weight: 600; }

.tower { width: 100%; max-width: 540px; margin-inline: auto; font-family: var(--mono); }
.tower-title {
  text-align: center; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: #8f9bb0; margin-bottom: 14px;
}
.tower-title em { font-style: normal; color: var(--gold); }
.spire { position: relative; width: 2px; height: 34px; margin: 0 auto -1px; background: linear-gradient(transparent, var(--gold)); opacity: 0; transition: opacity .6s; }
.spire::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold), 0 0 28px rgb(232 197 71 / 60%);
  animation: beacon 2.4s ease-in-out infinite;
}
@keyframes beacon { 50% { opacity: .35; box-shadow: 0 0 4px var(--gold); } }
.tower.built .spire { opacity: 1; }

.tower-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tower-stack canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; mix-blend-mode: screen; }
.layer {
  position: relative;
  width: var(--w);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgb(232 197 71 / 16%);
  border-radius: 6px;
  background: linear-gradient(90deg, rgb(255 255 255 / 3%), rgb(120 150 210 / 8%));
  font-size: .78rem; line-height: 1.2;
  cursor: default;
  opacity: 0; transform: translateY(16px) scaleX(.96);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), background 1.1s ease, border-color 1.1s ease, box-shadow 1.1s ease;
}
.layer.placed { opacity: 1; transform: none; }
.layer .re { color: #f3f5f9; font-weight: 500; white-space: nowrap; }
.layer .ai { color: var(--gold); opacity: .85; white-space: nowrap; text-align: right; }
.layer:hover, .layer:focus-visible, .layer.active { border-color: rgb(232 197 71 / 70%); background: rgb(232 197 71 / 10%); outline: none; }
.layer.hit { transition: none; background: rgb(232 197 71 / 22%); border-color: rgb(232 197 71 / 75%); box-shadow: 0 0 26px rgb(232 197 71 / 25%); }
.layer.base {
  border-style: dashed; border-color: rgb(255 255 255 / 16%);
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / 3%) 0 6px, transparent 6px 12px);
}
.layer.base .re, .layer.base .ai { color: #8f9bb0; }

.tower-meter {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid rgb(255 255 255 / 10%); border-radius: 8px;
  background: rgb(255 255 255 / 3%);
}
.tower-meter div { padding: 10px 12px; text-align: center; }
.tower-meter div + div { border-left: 1px solid rgb(255 255 255 / 10%); }
.tower-meter span { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8f9bb0; }
.tower-meter b { font-weight: 500; font-size: 1rem; color: #fff; font-variant-numeric: tabular-nums; }
.tower-meter .ok b { color: #6fd39c; }
.tower-caption {
  min-height: 3.4em; margin-top: 14px; text-align: center;
  font-family: var(--sans); font-size: .88rem; line-height: 1.55; color: #9aa6ba;
}
.tower-caption strong { color: #fff; font-weight: 600; }
.tower-caption em { font-style: normal; color: var(--gold); }

@media (max-width: 900px) {
  .hero-dark .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
}
@media (max-width: 480px) {
  .layer { padding: 11px 10px; font-size: .68rem; }
  .tower-meter b { font-size: .88rem; }
}

/* Credentials marquee */
.marquee {
  position: relative;
  border-top: 1px solid rgb(255 255 255 / 9%);
  overflow: hidden;
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-size: 1.25rem; color: #c6cdd9; white-space: nowrap;
  padding-inline: 28px; position: relative;
}
.marquee-track span::after { content: "\2726"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: .6rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .layer { opacity: 1; transform: none; }
  .spire { opacity: 1; }
}

/* Header over the dark hero */
.home .site-header:not(.past-hero) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.past-hero) .brand,
.home .site-header:not(.past-hero) .menu-btn { color: #fff; border-color: rgb(255 255 255 / 25%); }
@media (min-width: 1021px) {
  .home .site-header:not(.past-hero) .nav a { color: #cfd6e3; }
  .home .site-header:not(.past-hero) .nav a:hover { color: #fff; background: rgb(255 255 255 / 8%); }
  .home .site-header:not(.past-hero) .nav .nav-cta { background: #fff; color: #0b0f18; }
}

/* ---------- Try Banu's work ---------- */
.try {
  position: relative;
  overflow: hidden;
  background: #090e18;
  color: #e9ecf2;
  padding-block: clamp(72px, 10vw, 128px);
}
.try::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at var(--mx, 50%) var(--my, 0%), rgb(232 197 71 / 9%), transparent 70%);
  pointer-events: none;
  transition: background .2s;
}
.try .wrap { position: relative; }
.try-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.try-head .eyebrow { color: var(--gold); }
.try-head h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.try-head p:last-child { color: #aab3c2; font-size: 1.1rem; margin: 16px 0 0; }
.try-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 28px); }
@media (max-width: 1000px) { .try-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.app {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.app:hover { --ty: -6px; border-color: rgb(232 197 71 / 45%); box-shadow: 0 30px 80px rgb(0 0 0 / 45%), 0 0 0 1px rgb(232 197 71 / 15%); }
.app-frame { margin: 18px 18px 0; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); border-bottom: 0; background: #0d0f13; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1a1e27; border-bottom: 1px solid rgb(255 255 255 / 7%); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a404c; }
.app-bar i:nth-child(1) { background: #ff5f57; } .app-bar i:nth-child(2) { background: #febc2e; } .app-bar i:nth-child(3) { background: #28c840; }
.app-bar span {
  flex: 1; margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgb(255 255 255 / 6%);
  font: .72rem var(--mono); color: #8f9bb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-frame img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: left top; transition: transform .6s ease; }
.app:hover .app-frame img { transform: scale(1.03); }
.app-body { padding: 24px clamp(22px, 3vw, 32px) 30px; border-top: 1px solid rgb(255 255 255 / 8%); flex: 1; display: flex; flex-direction: column; }
.app-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: .74rem var(--mono); color: #8f9bb0; letter-spacing: .02em; }
.try .tag.live { background: rgb(95 194 143 / 14%); color: #6fd39c; }
.app h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 14px 0 10px; }
.app p { color: #aab3c2; font-size: .98rem; margin: 0 0 22px; }
.app-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: var(--gold); color: #0b0f18; font-weight: 600; font-size: .95rem;
  transition: background .2s, gap .2s;
}
.app:hover .app-cta { background: #f2d76b; gap: 12px; }
.try-note { text-align: center; color: #7d889b; font-size: .9rem; margin: 36px auto 0; max-width: 640px; }
.try-note a { color: #c9d2e0; }

/* ---------- Motto ---------- */
.motto { padding-block: clamp(80px, 12vw, 150px); text-align: center; }
.motto-q {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.motto-q .u { font-style: italic; position: relative; white-space: nowrap; }
.motto-q .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em;
  background: linear-gradient(90deg, var(--gold), #d9a92a);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.6,.1,.2,1) .35s;
}
.motto-q.in .u::after { transform: scaleX(1); }
.motto-by { margin: 28px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .motto-q .u::after { transform: none; transition: none; } }

/* Tower plaque, appears once every layer is placed */
.tower-plaque {
  margin: 12px 0 0; text-align: center;
  font: .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8f9bb0;
  opacity: 0; transition: opacity .8s ease .2s;
}
.tower-plaque em { font-style: normal; color: var(--gold); }
.tower.built .tower-plaque { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tower-plaque { opacity: 1; } }

/* Spotlight that follows the cursor across the hero */
.hero-dark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 360px at var(--mx, 70%) var(--my, 40%), rgb(141 179 232 / 8%), transparent 70%);
  pointer-events: none;
}

/* ---------- Advisory ---------- */
.page-dark { padding-bottom: clamp(56px, 8vw, 96px); }
.page-dark .intro { padding-top: clamp(56px, 8vw, 104px); max-width: 860px; }
.page-dark h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
.page-dark .lead { margin-top: 22px; max-width: 680px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.proof-row span {
  font: .78rem var(--mono); color: #cfd6e3; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 12%); background: rgb(255 255 255 / 4%);
}

.domain { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.domain .num { font: 500 .78rem var(--mono); color: var(--muted); letter-spacing: .1em; }
.domain h3 { font-size: 1.55rem; }
.domain > p { color: var(--ink-2); margin: 0; }
.domain ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .96rem; }
.domain li { margin-bottom: 6px; }
.domain::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ask-btn {
  margin-top: auto; align-self: flex-start;
  appearance: none; cursor: pointer; text-align: left;
  border: 1px dashed var(--line); background: var(--bg); color: var(--ink);
  border-radius: 10px; padding: 10px 14px; font: .9rem var(--sans); line-height: 1.4;
}
.ask-btn::before { content: "Ask the assistant: "; color: var(--muted); }
.ask-btn:hover { border-style: solid; border-color: var(--ink-2); }

.thesis {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center;
}
.thesis blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.thesis blockquote em { font-style: italic; background: linear-gradient(transparent 62%, rgb(232 197 71 / 45%) 62%); }
.thesis p { color: var(--ink-2); }
@media (max-width: 820px) { .thesis { grid-template-columns: 1fr; } }

.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.q-list li { border-bottom: 1px solid var(--line); }
.q-list button {
  width: 100%; appearance: none; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font: 500 1.08rem/1.45 var(--sans); color: var(--ink);
}
.q-list button > span:last-child { flex: none; font: .8rem var(--mono); color: var(--muted); transition: color .15s, transform .15s; }
.q-list button:hover > span:last-child { color: var(--accent); transform: translateX(4px); }
.q-list .tag { margin-right: 12px; vertical-align: 2px; }

.formats { counter-reset: f; }
.format h3 { font-size: 1.25rem; margin-bottom: 8px; }
.format p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.format .who { display: block; margin-top: 12px; font: .78rem var(--mono); color: var(--muted); }

/* "First of its kind" badge */
.tag.first { background: rgb(232 197 71 / 18%); color: #8a6a00; }
.try .tag.first, .hero-dark .tag.first { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.first { color: var(--gold); } }
:root[data-theme="dark"] .tag.first { color: var(--gold); }

/* ---------- Article maths and tables ---------- */
.prose .eq { overflow-x: auto; overflow-y: hidden; margin: 1.4em 0 1.6em; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose .eq .katex-display { margin: 0; }
.prose .katex { font-size: 1.08em; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td:last-child, .prose th:last-child { white-space: normal; min-width: 180px; }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface-2); font-size: .85rem; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.format .who a { font: 500 .95rem var(--sans); color: var(--accent); text-decoration: none; letter-spacing: 0; }
.format .who a::after { content: " \2192"; }
.format .who a:hover { text-decoration: underline; }

/* Personal-projects disclaimer */
.disclaimer {
  margin-top: 20px; padding: 20px 24px;
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; background: var(--surface);
}
.disclaimer strong { display: block; color: var(--ink); margin-bottom: 6px; }
.disclaimer p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.try-note strong { color: #e9ecf2; }
.site-footer small { max-width: 520px; line-height: 1.5; }
.try-grid .app h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); }
.try-grid .app p { font-size: .95rem; }
.try-grid .app-frame { margin: 14px 14px 0; }
.try-grid .app-body { padding: 20px 22px 26px; }

/* ---------- Off the clock ---------- */
.collage { position: relative; padding: 0 12% 12% 0; }
.collage .photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: var(--shadow); }
.collage .photo img { width: 100%; height: 100%; object-fit: cover; }
.collage .inset {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 6px solid var(--bg); border-radius: 16px;
  transform: rotate(4deg); box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
  transition: transform .4s ease;
}
.collage:hover .inset { transform: rotate(1deg) scale(1.03); }
@media (max-width: 820px) { .collage { max-width: 420px; } }

.novels {
  position: relative; overflow: hidden; color: #ece6e6;
  background:
    radial-gradient(700px 420px at 15% 30%, rgb(190 30 45 / 32%), transparent 70%),
    radial-gradient(600px 400px at 90% 90%, rgb(232 197 71 / 8%), transparent 70%),
    #0c0809;
}
.novels .eyebrow { color: #ff8a80; }
.novels h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 26px; }
.novels-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .novels-grid { grid-template-columns: 1fr; } }

.books { display: flex; justify-content: center; align-items: flex-end; gap: 22px; perspective: 1400px; padding-block: 16px; }
.book {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(220px, 42vw); aspect-ratio: 2 / 3; padding: 26px 16px 18px;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 6px 0 10px rgb(0 0 0 / 45%), inset -1px 0 0 rgb(255 255 255 / 8%), 0 30px 60px rgb(0 0 0 / 55%);
  transform: rotateY(-14deg); transition: transform .5s ease;
  color: #f4ecec; font-family: var(--serif);
}
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgb(0 0 0 / 45%), transparent); border-radius: 3px 0 0 3px; }
.book:hover { transform: rotateY(-4deg) translateY(-6px); }
.book-1 { background: radial-gradient(circle at 50% 38%, #c0272d 0%, #6a0f16 55%, #1a0507 100%); z-index: 2; }
.book-2 { background: radial-gradient(circle at 50% 38%, #3a3f4a 0%, #181b22 60%, #08090c 100%); transform: rotateY(-14deg) translateY(18px) scale(.92); opacity: .92; }
.book-2:hover { transform: rotateY(-4deg) translateY(10px) scale(.92); }
.book .series { font: 600 .58rem var(--sans); letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.book .title { margin-top: auto; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.book-2 .title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.book .rule { width: 36px; height: 2px; background: #e8c547; margin: 14px 0 10px; }
.book .tagline { font: italic .8rem var(--serif); opacity: .85; }
.book .author { margin-top: auto; font: 500 .62rem var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.book .num { position: absolute; top: 10px; right: 12px; font: .55rem var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }

.blurb p { color: #cdbfbf; font-size: 1.04rem; line-height: 1.7; margin: 0 0 12px; }
.blurb .beat { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin: 18px 0; }
.blurb strong { color: #fff; font-weight: 600; }
.blurb .hook { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #ff8a80; margin-top: 18px; }
.book-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgb(255 255 255 / 12%); }
.book-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.book-list span { font: .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9b8c8c; width: 82px; }
.book-list strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: #fff; flex: 1; }
.book-list em { font-style: normal; font-size: .8rem; color: #ff8a80; }

.fiction-tile { display: block; margin-top: 20px; text-decoration: none; color: inherit; border-left: 4px solid #c0272d; }
.fiction-tile h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.fiction-tile p { color: var(--ink-2); max-width: 760px; }

/* "Guess what?" line and Moments mosaic */
.novels .guess { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: #e8c547; margin: 0 0 10px; }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.moments figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.moments .m-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moments figure:hover img { transform: scale(1.05); }
.moments figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 65%)); color: #fff; font-size: .85rem; font-weight: 500;
}
@media (max-width: 720px) {
  .moments { grid-template-columns: repeat(2, 1fr); }
}

/* Home teaser for Off the clock */
.novels.teaser { padding-block: clamp(64px, 9vw, 104px); }
.teaser-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.teaser-photo { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; transform: rotate(-2deg); box-shadow: 0 24px 60px rgb(0 0 0 / 50%); transition: transform .4s ease; }
.teaser-photo:hover { transform: rotate(0deg) scale(1.02); }
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; }
.teaser h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.teaser-text { color: #cdbfbf; font-size: 1.05rem; line-height: 1.7; max-width: 620px; margin-bottom: 28px; }
.teaser .btn-primary { background: #e8c547; color: #0b0f18; }
.teaser .btn-primary:hover { background: #f2d76b; }
.teaser .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 25%); }
.teaser .btn-ghost:hover { border-color: #fff; }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } .teaser-photo { max-width: 240px; } }
.teaser-photo.reveal.in { transform: rotate(-2deg); }
.teaser-photo.reveal.in:hover { transform: rotate(0deg) scale(1.02); }
