/* Md Imrul Hassan — quiet curiosity */
:root {
  color-scheme: light dark;
  --paper: #f7f4ef;
  --paper-raised: #fffaf4;
  --paper-soft: #e8efea;
  --ink: #172421;
  --muted: #50605b;
  --line: #c9d3ce;
  --accent: #0f5f59;
  --accent-strong: #094b47;
  --accent-soft: #c9ddd5;
  --warm: #a9492d;
  --warm-on-accent: #ffd2bf;
  --dark: #13211f;
  --dark-raised: #1c2d2a;
  --dark-text: #f7f1e8;
  --dark-muted: #c2d0cb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(23, 36, 33, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.14vw, 1.125rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-strong); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; border-radius: 0.18rem; }
::selection { background: var(--accent-soft); color: var(--ink); }

.shell { width: min(100% - (2 * var(--gutter)), 74rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; transform: translateY(-160%); background: var(--ink); color: var(--paper); border-radius: 0.4rem; font-weight: 700; }
.skip-link:focus { transform: none; }
.site-main { min-height: 60vh; }

/* Header */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.site-header__inner { min-height: 5rem; display: flex; align-items: center; gap: 2rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.site-brand:hover { color: var(--ink); }
.site-brand__mark { width: 2.75rem; height: 2.75rem; }
.site-brand__name { font-family: var(--serif); font-size: clamp(1.05rem, 0.98rem + 0.32vw, 1.28rem); font-weight: 700; letter-spacing: -0.018em; }
.site-menu { margin-left: auto; }
.site-menu summary { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.7vw, 1.65rem); }
.site-nav a { position: relative; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: 0.25rem; background: var(--warm); }

/* Shared type and controls */
.eyebrow { margin: 0 0 0.9rem; color: var(--accent); font-size: 0.78rem; line-height: 1.3; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.08; letter-spacing: -0.034em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
p { margin: 0 0 1rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.72rem 1.05rem; border: 2px solid transparent; border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 800; }
.button span, .text-link span { transition: transform 160ms ease; }
.button:hover span, .text-link:hover span { transform: translateX(0.18rem); }
.button--primary { background: var(--accent); color: #fffaf4; }
.button--primary:hover { background: var(--accent-strong); color: #fffaf4; }
.button--light { background: var(--dark-text); color: var(--dark); }
.button--light:hover { background: #fff; color: var(--dark); }
.text-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 800; }
.text-link--light { color: var(--dark-text); }
.text-link--light:hover { color: #fff; }

/* Home */
.hero { min-height: min(46rem, calc(100vh - 5rem)); display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(21rem, 0.94fr); align-items: center; gap: clamp(2.5rem, 7vw, 6.5rem); padding-block: clamp(4rem, 8vw, 7rem); }
.hero__copy { max-width: 42rem; }
.hero h1 { max-width: 8ch; }
.hero__intro { max-width: 39rem; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1.08rem, 1rem + 0.38vw, 1.32rem); line-height: 1.63; }
.hero__visual { margin: 0; }
.hero__visual img { width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * 1.35); box-shadow: var(--shadow); }
.hero__visual figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.76rem; }
.section { padding-block: clamp(5rem, 9vw, 8.5rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.62fr); align-items: end; gap: 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading h2 { max-width: 13ch; }
.section-heading > p { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.section--work { border-top: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.project-card__visual { display: block; overflow: hidden; background: var(--paper-soft); }
.project-card__visual img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 220ms ease; }
.project-card:hover .project-card__visual img { transform: scale(1.015); }
.project-card__body { padding: clamp(1.2rem, 2.4vw, 1.7rem); }
.project-card__kind { margin-bottom: 0.5rem; color: var(--warm); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.project-card h3 a, .work-card h2 a { color: var(--ink); text-decoration: none; }
.project-card h3 a:hover, .work-card h2 a:hover { color: var(--accent); }
.project-card__body > p:not(.project-card__kind), .work-card__body > p { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.project-card__body > .project-status, .work-card__body > .project-status, .project-status {
  width: fit-content; display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.85rem 0 0;
  padding: 0.28rem 0.62rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-soft); color: var(--ink); font-size: 0.7rem; line-height: 1.3; font-weight: 750;
}
.project-status span { color: var(--warm); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.project-status--hero { margin-top: 1.25rem; }
.project-card__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.project-card__links a { font-size: 0.8rem; font-weight: 800; }
.section-more { margin: 2.3rem 0 0; text-align: right; }
.section--notes { border-top: 1px solid var(--line); background: var(--paper-soft); }
.note-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); margin: 0; padding: 0; list-style: none; counter-reset: notes; }
.note-card-grid > li { min-width: 0; display: flex; }
.note-card { min-height: 22rem; display: flex; flex: 1; flex-direction: column; padding: clamp(1.35rem, 2.7vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
.note-card__number { margin: 0 0 auto; color: var(--accent-soft); font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.7rem); font-weight: 700; line-height: 0.8; }
.note-card h3 { margin-top: 0.25rem; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.note-card h3 a { color: var(--ink); text-decoration: none; }
.note-card h3 a:hover { color: var(--accent); }
.note-card > p:not(.note-card__number, .project-card__kind) { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; }
.note-card__link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 1.2rem; font-size: 0.8rem; font-weight: 800; }
.section--research { background: var(--dark); color: var(--dark-text); }
.research-bridge { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr); gap: clamp(3rem, 9vw, 8rem); align-items: center; }
.research-bridge .eyebrow { color: #83d8cc; }
.research-bridge h2 { max-width: 13ch; }
.research-bridge__copy > p:not(.eyebrow) { max-width: 39rem; margin-top: 1.5rem; color: var(--dark-muted); font-size: 1.08rem; }
.thesis-card { position: relative; padding: clamp(1.6rem, 4vw, 2.7rem); border: 1px solid #48605b; border-radius: var(--radius); background: var(--dark-raised); }
.thesis-card::before { content: ''; display: block; width: 3rem; height: 0.3rem; margin-bottom: 2rem; background: #d98462; border-radius: 1rem; }
.thesis-card > p { color: #83d8cc; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.thesis-card h3 { margin: 1.2rem 0; font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.thesis-card > span { display: block; color: var(--dark-muted); font-size: 0.88rem; }
.thesis-card > a { display: inline-flex; gap: 0.55rem; margin-top: 2rem; color: var(--dark-text); font-weight: 800; }
.section--creative { background: var(--paper-raised); }
.creative-grid { display: grid; grid-template-columns: 0.9fr 1.2fr 0.9fr; gap: clamp(1rem, 2.4vw, 1.8rem); }
.creative-card { min-height: 21rem; display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--paper-soft); }
.creative-card > p:first-child { color: var(--warm); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.creative-card h3 { margin: auto 0 1rem; }
.creative-card > p:not(:first-child) { color: var(--muted); font-size: 0.94rem; }
.creative-card > a { margin-top: 1.4rem; font-size: 0.82rem; font-weight: 800; }
.creative-card--poem { background: var(--accent); color: #fffaf4; }
.creative-card--poem > p:first-child { color: var(--warm-on-accent); }
.poem-selection { list-style: none; margin: 0; padding: 0; }
.poem-selection li + li { border-top: 1px solid currentColor; }
.poem-selection a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.75rem; }
.poem-selection span[lang="bn"] { font-family: var(--serif); font-size: 1.35rem; overflow-wrap: anywhere; }
.poem-selection small { font-size: 0.75rem; }
.creative-card--poem h3 { margin: 0 0 1.4rem; }
.creative-card--poem a { color: #fffaf4; }
.closing { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr); gap: clamp(3rem, 8vw, 7rem); padding-block: clamp(5rem, 10vw, 9rem); }
.closing h2 { max-width: 12ch; }
.closing > div > p:last-child { max-width: 32rem; margin-top: 1.4rem; color: var(--muted); }
.closing > .button { justify-self: start; }
.featured-profiles { grid-row: span 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.featured-profiles li { border-bottom: 1px solid var(--line); }
.featured-profiles a { min-height: 5.4rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1rem; padding: 0.8rem 0; color: var(--ink); text-decoration: none; }
.featured-profiles a:hover { color: var(--accent); }
.featured-profiles span { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.featured-profiles small { grid-column: 1; color: var(--muted); font-size: 0.76rem; }
.featured-profiles i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; }

/* Inner pages */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 2rem; color: var(--muted); font-size: 0.78rem; }
.breadcrumb a { color: var(--muted); }
.page-hero { max-width: 58rem; padding-block: clamp(4rem, 9vw, 7.5rem); }
.page-hero h1 { max-width: 11ch; }
.page-hero__dek { max-width: 43rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); }
.page-hero--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.page-hero--split img { width: 100%; border-radius: var(--radius); }
.page-hero--portrait { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.profile-portrait { width: 100%; max-width: 25rem; margin: 0; justify-self: end; }
.profile-portrait img { width: 100%; height: auto; border-radius: var(--radius); }
.profile-portrait figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.75rem; }
@media (max-width: 800px) {
  .page-hero--portrait { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 20rem; justify-self: start; }
}
.page-hero--research { padding-bottom: 3rem; }
.archive-intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
.prose { max-width: 70ch; font-size: clamp(1.03rem, 1rem + 0.15vw, 1.13rem); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.45rem; }
.prose h2 { margin: 3.7rem 0 1.2rem; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.prose h3 { margin: 2.4rem 0 0.85rem; font-size: 1.35rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { font-weight: 650; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(14rem, 18rem); gap: clamp(3rem, 9vw, 8rem); align-items: start; padding-bottom: clamp(5rem, 10vw, 9rem); }
.reading-rail { position: sticky; top: 2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.reading-rail p { margin-bottom: 0.8rem; color: var(--muted); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.reading-rail a { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.85rem; font-weight: 800; }
.entry-list { display: grid; gap: 1rem; padding-bottom: 7rem; }
.entry-list article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-list article > p:first-child { color: var(--warm); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.entry-list h2 { font-size: 1.8rem; }
.entry-list article > p:not(:first-child) { color: var(--muted); }

/* Notes */
.page-hero--notes { max-width: 64rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero--notes h1, .note-hero h1 { max-width: 15ch; font-size: clamp(2.75rem, 6.3vw, 5.35rem); }
.notes-list { margin: 0; padding: 0 0 clamp(5rem, 10vw, 9rem); list-style: none; border-top: 1px solid var(--line); }
.notes-list > li { border-bottom: 1px solid var(--line); }
.notes-list article { display: grid; grid-template-columns: minmax(8rem, 0.24fr) minmax(0, 0.76fr); gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.notes-list__meta > span { display: block; margin-bottom: 1.1rem; color: var(--accent-soft); font-family: var(--serif); font-size: 3.4rem; font-weight: 700; line-height: 0.8; }
.notes-list__meta p { color: var(--warm); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.notes-list h2 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.notes-list h2 a { color: var(--ink); text-decoration: none; }
.notes-list h2 a:hover { color: var(--accent); }
.notes-list article > div:last-child > p { max-width: 48rem; margin-top: 1rem; color: var(--muted); }
.notes-list .note-card__link { margin-top: 0.5rem; padding-top: 0; }
.note-hero { max-width: 68rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.note-reading { padding-bottom: 3rem; }
.prose--note { max-width: 72ch; }
.prose--note > p:first-child { color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.65; }
.prose--note blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--warm); background: var(--paper-soft); font-family: var(--serif); font-size: 1.15rem; }
.prose--note blockquote p { margin: 0; }

/* Work */
.work-list { display: grid; gap: 2rem; padding-bottom: clamp(5rem, 10vw, 9rem); }
.work-card { display: grid; grid-template-columns: minmax(18rem, 0.86fr) minmax(0, 1.14fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
.work-card__visual { min-height: 100%; background: var(--paper-soft); }
.work-card__visual img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.work-card__body { align-self: center; padding: clamp(1.6rem, 4vw, 3rem); }
.work-card h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.project-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.project-hero__copy .button { margin-top: 1.2rem; }
.project-actions { align-items: stretch; gap: 0.7rem; }
.project-actions .button { margin-top: 0; }
.project-actions .button:nth-child(n + 2) { border-color: var(--accent); background: transparent; color: var(--accent); }
.project-actions .button:nth-child(n + 2):hover { border-color: var(--accent-strong); background: var(--paper-soft); color: var(--accent-strong); }
.project-hero figure { margin: 0; }
.project-hero figure img { width: 100%; border-radius: var(--radius); }
.project-hero figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.72rem; }
.project-reading { display: grid; grid-template-columns: minmax(0, 46rem) minmax(13rem, 17rem); gap: clamp(3rem, 9vw, 8rem); align-items: start; padding-bottom: 5rem; }
.project-facts { padding: 1.4rem; border: 1px solid var(--line); border-radius: 0.8rem; }
.project-facts > p { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-facts__list { margin: 1rem 0 0; }
.project-facts__list div { display: grid; gap: 0.2rem; }
.project-facts__list dt { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-facts__list dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.project-facts__links { display: grid; gap: 0; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.project-facts__links a { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.page-neighbours { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem 6rem; border-top: 1px solid var(--line); }
.page-neighbours a { font-weight: 800; }

/* Research */
.research-intro { margin-bottom: 5rem; }
.publication-groups { padding-bottom: 2rem; }
.publication-groups > section { display: grid; grid-template-columns: minmax(11rem, 0.28fr) minmax(0, 0.72fr); gap: clamp(2rem, 7vw, 6rem); padding-block: 3.8rem; border-top: 1px solid var(--line); }
.publication-groups section > header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.2rem; padding: 0 0 2rem; }
.publication-list li + li { padding-top: 2rem; border-top: 1px solid var(--line); }
.publication__year { color: var(--warm); font-size: 0.78rem; font-weight: 800; }
.publication-list h3 { font-family: var(--sans); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.4; letter-spacing: -0.012em; }
.publication-list h3 a { color: var(--ink); }
.publication__authors, .publication__venue { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.84rem; }
.publication__venue { margin-top: 0.25rem; font-style: italic; }
.publication-list small { display: inline-block; margin-top: 0.65rem; color: var(--warm); font-size: 0.72rem; }
.source-note { max-width: 55rem; margin: 2rem 0 7rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--warm); background: var(--paper-soft); color: var(--muted); font-size: 0.88rem; }
.source-note p { margin: 0.35rem 0 0; }

/* Creative, profiles, poems */
.creative-prose { padding-bottom: 2rem; }
.creative-prose h2 { padding-top: 2rem; border-top: 1px solid var(--line); }
.creative-next { max-width: 45rem; margin: 4rem 0 7rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--accent); color: #fffaf4; }
.creative-next .eyebrow { color: var(--warm-on-accent); }
.creative-next h2 { margin-bottom: 1.4rem; font-size: 2rem; }
.creative-next a { display: inline-flex; gap: 0.5rem; margin-right: 1.4rem; color: #fffaf4; font-family: var(--serif); font-size: 1.25rem; }
.profile-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 3rem; }
.profile-groups section { min-width: 0; }
.profile-groups h2 { min-height: 4rem; margin-bottom: 1.2rem; font-size: 1.6rem; }
.profile-groups ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-groups li { border-bottom: 1px solid var(--line); }
.profile-groups a { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.25rem; color: var(--ink); text-decoration: none; }
.profile-groups a:hover { color: var(--accent); }
.profile-groups a span { min-width: 0; }
.profile-groups strong, .profile-groups small { display: block; }
.profile-groups small { margin-top: 0.25rem; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.profile-groups i { font-style: normal; }
.poem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-bottom: 7rem; }
.poem-list article { min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--accent); color: #fffaf4; }
.poem-list article:nth-child(2) { background: var(--dark); }
.poem-list p { color: var(--warm-on-accent); font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.poem-list h2 { margin-bottom: 1.4rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.poem-list a { color: #fffaf4; }
.poem-hero { max-width: 50rem; padding-block: clamp(4rem, 8vw, 6.5rem) 3rem; }
.poem-hero h1 { font-size: clamp(3.2rem, 7vw, 5.7rem); }
.poem-body { max-width: 43rem; padding: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.25rem, 1.12rem + 0.65vw, 1.65rem); line-height: 1.95; }
.poem-body p { margin: 0 0 2.2rem; }
.poem-hero h1, .poem-list h2, .poem-body, .poem-page .page-neighbours a { overflow-wrap: anywhere; }
.poem-recording { max-width: 43rem; padding-bottom: 3rem; }
.not-found { min-height: 66vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 5rem; }
.not-found img { margin-bottom: 2rem; }
.not-found h1 { max-width: 10ch; }
.not-found > p:not(.eyebrow) { max-width: 36rem; margin-top: 1.2rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid #344944; background: var(--dark); color: var(--dark-text); }
.site-footer__inner { min-height: 16rem; display: grid; grid-template-columns: minmax(15rem, 1fr) auto auto; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: 3rem; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--dark-text); text-decoration: none; }
.site-footer__brand span, .site-footer__brand strong, .site-footer__brand small { display: block; }
.site-footer__brand strong { font-family: var(--serif); font-size: 1.25rem; }
.site-footer__brand small { margin-top: 0.2rem; color: var(--dark-muted); font-size: 0.72rem; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.35rem 1.4rem; }
.site-footer__links a { color: var(--dark-text); font-size: 0.78rem; font-weight: 700; }
.site-footer__links span { margin-left: 0.25rem; }
.site-footer__meta { margin: 0; color: var(--dark-muted); font-size: 0.75rem; text-align: right; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a19;
    --paper-raised: #192422;
    --paper-soft: #21332f;
    --ink: #f5efe6;
    --muted: #b8c7c2;
    --line: #3d514c;
    --accent: #79d3c7;
    --accent-strong: #a5e8df;
    --accent-soft: #284f49;
    --warm: #f09b78;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  }
  .site-header { background: color-mix(in srgb, var(--paper) 94%, transparent); }
  .button--primary { background: #79d3c7; color: #10201d; }
  .button--primary:hover { background: #a5e8df; color: #10201d; }
  .creative-card--poem, .creative-next { background: #255f58; }
  .source-note { background: #20302d; }
  .hero__visual img, .page-hero--split img, .project-hero img { filter: brightness(0.88) saturate(0.88); }
  .project-card:hover { border-color: #79d3c7; }
}

@media (max-width: 960px) {
  .project-grid, .note-card-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 0.85fr 1.15fr; }
  .note-card-grid > li:last-child { grid-column: 1 / -1; }
  .note-card-grid > li:last-child .note-card { min-height: 17rem; }
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
  .creative-card--photo { grid-column: 1 / -1; min-height: 16rem; }
  .profile-groups { grid-template-columns: 1fr; gap: 3rem; }
  .profile-groups h2 { min-height: auto; }
  .site-footer__inner { grid-template-columns: 1fr auto; }
  .site-footer__meta { grid-column: 1 / -1; text-align: left; }
}

@media (min-width: 900px) {
  .site-menu:not([open]) > .site-nav { display: flex; }
}

@media (max-width: 899px) {
  :root { --gutter: clamp(1rem, 5vw, 1.5rem); }
  html { scroll-padding-top: 5rem; }
  .site-header__inner { min-height: 4.5rem; }
  .site-brand__mark { width: 2.45rem; height: 2.45rem; }
  .site-menu summary { width: 3rem; min-height: 3rem; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; color: var(--ink); font-size: 0.75rem; font-weight: 800; }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu summary i, .site-menu summary i::before { width: 1.1rem; height: 2px; display: block; background: currentColor; transition: transform 150ms ease; }
  .site-menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-menu summary i::before { content: ''; transform: translateY(0.38rem); }
  .site-menu[open] summary i { transform: rotate(45deg); }
  .site-menu[open] summary i::before { transform: rotate(90deg); }
  .site-nav { position: absolute; top: calc(100% + 1px); left: var(--gutter); right: var(--gutter); display: grid; gap: 0; padding: 0.55rem; border: 1px solid var(--line); border-radius: 0 0 0.85rem 0.85rem; background: var(--paper-raised); box-shadow: var(--shadow); }
  .site-nav a { min-height: 3rem; padding: 0 0.85rem; border-radius: 0.45rem; font-size: 0.9rem; }
  .site-nav a[aria-current='page'] { background: var(--paper-soft); }
  .site-nav a[aria-current='page']::after { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 3rem; padding-block: 3.5rem 4.5rem; }
  .hero h1 { max-width: 7ch; }
  .hero__visual { max-width: 32rem; }
  .section-heading, .research-bridge, .closing, .page-hero--split, .project-hero, .reading-layout, .project-reading { grid-template-columns: 1fr; }
  .section-heading { align-items: start; gap: 1.2rem; }
  .project-grid, .note-card-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; display: block; }
  .note-card-grid > li:last-child { grid-column: auto; }
  .note-card, .note-card-grid > li:last-child .note-card { min-height: 16rem; }
  .notes-list article { grid-template-columns: 1fr; gap: 1.2rem; }
  .notes-list__meta { display: flex; align-items: baseline; gap: 1rem; }
  .notes-list__meta > span { margin: 0; font-size: 2.5rem; }
  .creative-grid { grid-template-columns: 1fr; }
  .creative-card--photo { grid-column: auto; }
  .creative-card { min-height: 17rem; }
  .closing { gap: 2.5rem; }
  .closing .featured-profiles { grid-row: auto; }
  .reading-rail { position: static; }
  .work-card { grid-template-columns: 1fr; }
  .work-card__visual img { min-height: 0; aspect-ratio: 8 / 5; }
  .page-hero--split img { max-width: 32rem; }
  .project-hero { gap: 2.5rem; }
  .publication-groups > section { grid-template-columns: 1fr; gap: 1.5rem; }
  .poem-list { grid-template-columns: 1fr; }
  .poem-body { padding-inline: 0; }
  .site-footer__inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer__meta { grid-column: auto; }
}

@media (min-width: 421px) and (max-width: 899px) and (max-height: 600px) {
  .hero h1 { max-width: none; }
}

@media (max-width: 420px) {
  .site-brand__name { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.85rem, 15vw, 4rem); }
  .button-row { align-items: stretch; gap: 0.7rem; }
  .button-row .button { width: 100%; }
  .button-row .text-link { justify-content: center; }
  .project-card__links { flex-direction: column; }
  .project-actions { flex-direction: column; }
  .project-actions .button { width: 100%; }
  .note-card { padding: 1.35rem; }
  .publication-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .page-neighbours { flex-direction: column; }
  .site-footer__links { grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .reading-rail, .page-neighbours { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}
