/* ==========================================================================
   Osman Goni Ridwan — personal academic site
   Formal light theme: serif headings (Source Serif 4), sans body (Inter),
   hairline rules instead of boxes, one accent color for links.
   The tokens in :root are also used by the pages in symmetry/.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #1d4f91;
  --accent-ink: #163d70;
  --accent-soft: #eef3fa;
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --header-h: 64px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--ink-2); font-size: .9rem; font-weight: 500; padding: 8px 11px; border-radius: 6px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links .nav-cv { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--ink); }
.nav-links .nav-cv:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

/* "Learn with me" dropdown */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 .9rem var(--sans); color: var(--ink-2); background: none; border: 0;
  padding: 8px 11px; border-radius: 6px; cursor: pointer;
}
.nav-dd-toggle:hover, .nav-dd.open .nav-dd-toggle { color: var(--ink); background: var(--bg-soft); }
.nav-dd-toggle.active { color: var(--accent); }
.nav-dd-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-dd.open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .08); padding: 6px;
}
.nav-dd.open .nav-dd-menu,
html:not(.js) .nav-dd:hover .nav-dd-menu,
html:not(.js) .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-links .nav-dd-menu a, .nav-dd-menu .dd-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.dd-title { display: block; color: var(--ink); font-size: .9rem; font-weight: 500; }
.dd-note { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.nav-links .nav-dd-menu a:hover .dd-title { color: var(--accent); }
.dd-item.is-soon .dd-title { color: var(--muted); }
.dd-item.is-soon .dd-note { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nav-links .nav-dd-menu .dd-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: .84rem; color: var(--accent); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .nav-cv { margin: 8px 0 0; text-align: center; }
  .nav-dd-toggle { width: 100%; justify-content: space-between; padding: 12px 8px; }
  .nav-dd-menu { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 6px 12px; }
  .nav-dd-menu::before { display: none; }
  .nav-links .nav-dd-menu a, .nav-dd-menu .dd-item { padding: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink); font: 600 .92rem/1 var(--sans); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .86rem; }

/* ---------- Intro ---------- */
.intro { padding: 72px 0 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.2rem); letter-spacing: -.015em; margin-bottom: 10px; }
.role { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 2px; }
.affil { color: var(--muted); margin-bottom: 24px; }
.bio { font-size: 1.06rem; line-height: 1.7; max-width: 44em; }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 26px 0 0; font-weight: 500; font-size: .95rem; }
.intro-links .btn { margin-right: 6px; }
.portrait { margin: 6px 0 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }

.intro-facts {
  margin: 56px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.intro-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.intro-facts dd { margin: 0; font-size: .93rem; color: var(--ink); line-height: 1.5; }
.intro-facts .fact-sub { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); }

@media (max-width: 880px) {
  .intro { padding-top: 40px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .portrait { order: -1; width: 140px; margin: 0; }
  .portrait img { aspect-ratio: 1; border-radius: 50%; }
  .intro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
}
@media (max-width: 480px) { .intro-facts { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.intro + .section { margin-top: 72px; }
.section + .section, .intro + .section { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 56px 0; } .intro + .section { margin-top: 48px; } }

.section h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-bottom: 8px; }
.section-head { margin-bottom: 36px; }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lede { margin: 0; color: var(--muted); font-size: 1rem; max-width: 46em; }

/* ---------- Research carousel ---------- */
.carousel-controls { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { font-size: 17px; }
.icon-btn .i-play, .carousel-controls.is-paused .i-pause { display: none; }
.carousel-controls.is-paused .i-play { display: block; }

.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; position: relative;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slide {
  flex: 0 0 calc(100% - 56px); scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.slide-media { margin: 0; padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.slide-media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.slide-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: #0b3a28; }
.slide-video.is-light { aspect-ratio: 6 / 5; max-height: 420px; object-fit: contain; border-radius: 0; background: #fff; }
.slide-media figcaption { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.slide-body { padding: 30px 32px; display: flex; flex-direction: column; }
.slide-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.slide h3 { font-size: 1.35rem; margin-bottom: 12px; }
.slide-body > p { font-size: .95rem; }
.results { margin: 0 0 20px; padding-left: 18px; font-size: .92rem; }
.results li { margin-bottom: 6px; }
.results strong { color: var(--ink); }
.slide-links { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; font-weight: 600; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots button { width: 32px; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.carousel-dots button::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--line-strong); }
.carousel-dots .fill { display: block; height: 3px; margin-top: -3px; border-radius: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.carousel-dots .is-active .fill { transform: scaleX(1); }
.carousel.is-running .carousel-dots .is-active .fill { animation: dotfill var(--car-delay, 7s) linear var(--car-start, 0s); }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* CSPFlow funnel diagram */
.flow { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.flow-phase { align-self: stretch; margin: 6px 0 2px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; }
.flow-step {
  width: var(--w); display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 14px; border-radius: 6px; font-size: .85rem;
  background: var(--accent-soft); border: 1px solid #d6e1f0; color: var(--ink);
}
.flow-step b { font-weight: 600; white-space: nowrap; }
.flow-step span { color: var(--ink-2); font-size: .8rem; text-align: right; }
.flow-b { background: var(--bg-soft); border-color: var(--line-strong); }

@media (max-width: 880px) {
  .slide { flex-basis: 90%; grid-template-columns: 1fr; }
  .slide-media { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .slide-body { padding: 22px 20px; }
  .slide h3 { font-size: 1.2rem; }
  .flow-step { width: 100%; }
}
@media (max-width: 520px) {
  .carousel-controls { width: 100%; justify-content: flex-end; }
  .flow-step span { display: none; }
}

/* ---------- Expertise (evidence table) ---------- */
.evidence { border-top: 1px solid var(--ink); }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ev-area h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ev-area p { font-size: .94rem; margin-bottom: 10px; }
.ev-area .ev-tools { margin: 0; font-size: .85rem; color: var(--muted); }
.ev-proof { list-style: none; padding: 0; margin: 0; }
.ev-proof li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--line-strong); font-size: .94rem; color: var(--ink); }
.ev-proof li:first-child { padding-top: 0; }
.ev-proof li:last-child { border-bottom: 0; }
.ev-proof span { flex-shrink: 0; font-size: .82rem; color: var(--muted); text-align: right; }
@media (max-width: 820px) {
  .ev-row { grid-template-columns: 1fr; gap: 16px; }
  .ev-proof li { flex-direction: column; gap: 2px; }
  .ev-proof span { text-align: left; }
}

/* ---------- Learn with me ---------- */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.learn-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.learn-media { display: block; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.learn-media img { width: 100%; height: auto; aspect-ratio: 1200 / 776; object-fit: cover; }
.learn-body { flex: 1; display: flex; flex-direction: column; padding: 24px 28px; }
.learn-status {
  align-self: flex-start; margin-bottom: 12px; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.learn-status.is-ready { color: var(--accent); border-color: #c9d7ec; background: var(--accent-soft); }
.learn-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.learn-body > p { font-size: .95rem; }
.learn-label { margin: 2px 0 6px; font-size: .74rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.learn-outline { columns: 2; column-gap: 28px; margin: 0 0 16px; padding-left: 20px; font-size: .88rem; }
.learn-outline li { break-inside: avoid; margin-bottom: 4px; }
.learn-note { font-size: .84rem !important; color: var(--muted); }
.learn-actions { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: .9rem; font-weight: 600; }
@media (max-width: 880px) { .learn-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .learn-outline { columns: 1; } .learn-body { padding: 20px; } }

/* ---------- Publications ---------- */
.scholar-stats { display: flex; gap: 32px; margin: 0; }
.scholar-stats dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scholar-stats dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.pub-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  font: 500 .86rem/1 var(--sans); color: var(--ink-2); background: #fff;
  border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 999px; cursor: pointer;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-tools input, .pub-tools select {
  font: 400 .9rem/1 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; height: 38px;
}
.pub-tools input { width: 250px; max-width: 100%; }
.pub-tools input:focus, .pub-tools select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .pub-tools, .pub-tools input { width: 100%; } .pub-tools input { flex: 1; } }

.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub-year { font-family: var(--serif); color: var(--muted); font-size: 1rem; padding-top: 2px; }
.pub-title { font-size: 1.08rem; line-height: 1.4; margin-bottom: 6px; }
.pub-authors { font-size: .92rem; margin-bottom: 2px; }
.pub-authors .me { font-weight: 700; color: var(--ink); }
.pub-venue { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.pub-highlight { font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--line-strong); padding: 2px 0 2px 12px; margin: 2px 0 10px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.tag { font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag-first { color: var(--accent); border-color: #c9d7ec; }
.pub-cites { color: var(--muted); }
.pub-links { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-weight: 600; }
.pub-empty { padding: 32px 0; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .pub-links { margin-left: 0; width: 100%; }
}

/* ---------- Experience / Education ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { margin-bottom: 28px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 48px; } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { padding: 0 0 28px 20px; border-left: 2px solid var(--line); position: relative; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.when { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.timeline h3 { font-size: 1.12rem; margin-bottom: 4px; }
.where { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.timeline > li > p:last-child { font-size: .94rem; margin: 0; }
.bullets { margin: 0; padding-left: 18px; font-size: .93rem; }
.bullets li { margin-bottom: 6px; }

/* ---------- Honors & service ---------- */
.honors-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.honors-grid h2 { margin-bottom: 20px; }
.honors { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.honors th, .honors td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.honors th { width: 72px; font-family: var(--serif); font-weight: 600; color: var(--muted); }
.honors td { color: var(--ink); font-size: .95rem; }
.honors td span { display: block; font-size: .86rem; color: var(--muted); }
.honors-grid .sub { font-size: 1.1rem; margin: 32px 0 10px; }
.service { font-size: .94rem; margin-bottom: 8px; }
.service strong { color: var(--ink); }
.award-photo { margin: 52px 0 0; }
.award-photo img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.award-photo figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) { .honors-grid { grid-template-columns: 1fr; gap: 32px; } .award-photo { margin-top: 0; max-width: 480px; } }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0 0 22px; max-width: 52rem; border-top: 1px solid var(--ink); }
.news-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-size: .85rem; font-weight: 600; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-list p { margin: 0; font-size: .95rem; }
.news-list a { font-weight: 600; margin-left: 2px; }
.news-list:not(.expanded) .news-more { display: none; }
@media (max-width: 520px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contact / Footer ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contact-card { font-style: normal; display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 2px solid var(--accent); }
.contact-card a { font-size: 1.1rem; font-weight: 600; }
.contact-card span { font-size: .9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: .86rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.footer-legal { flex-basis: 100%; font-size: .8rem; line-height: 1.55; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Copyright line on the symmetry pages (they load this stylesheet) */
.site-copy { max-width: var(--max); margin: 56px auto 0; padding: 22px 24px 32px; border-top: 1px solid var(--line); }
.site-copy p { margin: 0; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.site-copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal on scroll (subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .carousel-controls, .carousel-dots, .pub-controls, .news-toggle, .intro-links .btn { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .news-list .news-more { display: grid !important; }
  .section { padding: 24px 0; }
}
