/* =========================================================================
   AI & Humanities Initiatives — home page styles.
   Loaded in addition to assets/site.css. Page-specific structural rules;
   shared chrome (slidebar, overlay, footer grid) lives in site.css.
   ========================================================================= */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --fg: #ffffff;
  --muted: #737373;
  --border: #242424;
  --accent: #000000;
  --accent-secondary: #0000ee;
  --radius: 8px;
  --rule: 1px;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 80px;
  --space-7: 120px;
  --display-1: clamp(40px, 7vw, 96px);
  --display-2: clamp(32px, 4.6vw, 56px);
  --h2: clamp(24px, 2.6vw, 36px);
  --h3: clamp(18px, 1.6vw, 22px);
  --body: 17px;
  --meta: 13px;
  --label: 11px;
  --header-height: 73px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Aeonik Pro Regular", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, a, button, dd { overflow-wrap: anywhere; }
a { color: var(--accent-secondary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--rule) solid var(--border);
}
.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.wordmark .mark { font-weight: 700; }
.wordmark .sub { color: var(--muted); font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; }

.primary-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  color: var(--fg);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}
.primary-nav a:hover { color: var(--accent-secondary); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent-secondary); }

.nav-cta {
  display: none;
  margin-left: 12px;
  padding: 10px 16px;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
}
.nav-cta:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); text-decoration: none; }

.menu-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: var(--rule) solid var(--border);
  color: var(--fg);
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after,
.menu-toggle .bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars span { top: 50%; transform: translateY(-50%); display: block; }
.menu-toggle .bars::after { bottom: 0; }

/* Mobile overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.overlay[data-open="true"] { display: flex; }
.overlay-top { display: flex; align-items: center; justify-content: space-between; }
.overlay-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: var(--rule) solid var(--border);
}
.overlay nav { margin-top: 48px; display: grid; gap: 8px; }
.overlay nav a {
  color: var(--fg);
  font-size: clamp(28px, 6vw, 44px);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: var(--rule) solid var(--border);
}
.overlay-menu {
  overflow-y: auto;
  padding-bottom: var(--space-4);
}
.overlay-menu-group {
  display: grid;
  gap: 6px;
}
.overlay-menu-group + .overlay-menu-group { margin-top: 24px; }
.overlay-menu h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.overlay-menu .overlay-menu-group a {
  font-size: clamp(18px, 3.8vw, 28px);
}
.overlay-foot { margin-top: auto; color: var(--muted); font-size: var(--meta); }

@media (min-width: 1180px) {
  .primary-nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ===== Layout primitives ===== */
.section { padding: var(--space-7) var(--gutter); }
.section.tight { padding: var(--space-6) var(--gutter); }
main > section { scroll-margin-top: 88px; }
.container { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  color: var(--muted);
  font-size: var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rule { height: var(--rule); background: var(--border); border: 0; margin: 0; }
.meta {
  font-size: var(--meta);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
}
.arrow::after { content: " →"; transition: transform 0.18s ease; display: inline-block; }
a:hover .arrow::after { transform: translateX(4px); }

/* ===== Hero ===== */
/* Density discipline: display headline ≤ 140px / ≤ 8 words / ≤ 3 lines.
   Bottom padding is capped so flow content stays inside the safe zone;
   the meta-block aligns to the end of the grid so the lede never shares
   a baseline with the location row. */
.hero {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(48px, 8vh, 96px) var(--gutter);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-6);
  }
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  font-weight: 400;
  max-width: 16ch;
}
.hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.hero .lede + .actions { margin-top: var(--space-5); }
.hero .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: var(--rule) solid var(--border);
  color: var(--fg);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.primary:hover { background: var(--accent-secondary); border-color: var(--accent-secondary); color: var(--fg); text-decoration: none; transform: translateY(-1px); }
.btn:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); text-decoration: none; transform: translateY(-1px); }
.btn:active,
.news-card:active,
.social-card:active,
.init-tile:active { transform: translateY(0); }
.hero .meta-block {
  border-top: var(--rule) solid var(--border);
  padding-top: var(--space-3);
  display: grid;
  gap: 4px;
  align-self: end;
}
.hero .meta-block a { color: var(--fg); }
.hero .meta-block a:hover { color: var(--accent-secondary); text-decoration: none; }
.hero-eyebrow { margin: 0 0 16px; }
.meta-spacer { margin-top: 16px; }

@media (max-width: 720px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    align-items: end;
    padding-top: clamp(40px, 8vh, 72px);
    padding-bottom: clamp(32px, 7vh, 56px);
  }
}

/* ===== Section heading ===== */
.sec-head {
  max-width: var(--max);
  margin: 0 auto var(--space-5);
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 720px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); }
}
.sec-head h2 {
  font-size: var(--display-2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 400;
}
.sec-head .more { color: var(--fg); font-size: 14px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  .sec-head .more { white-space: normal; justify-self: start; }
}

/* ===== About panel ===== */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6); }
}
.about-grid p { font-size: clamp(18px, 1.6vw, 22px); max-width: 60ch; }
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.portrait::after {
  content: "Director portrait · placeholder";
  position: absolute; inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: var(--label);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(to top, var(--bg), transparent);
}
.portrait svg { width: 100%; height: 100%; }

/* ===== News / Events card row ===== */
.news-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .news-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-row { grid-template-columns: repeat(4, 1fr); } }
.news-card {
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  min-height: 100%;
  transition: border-color 150ms ease, transform 150ms ease;
}
.news-card:is(:hover, :focus-visible) { border-color: var(--accent-secondary); text-decoration: none; transform: translateY(-2px); }
.news-card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #242424, #0a0a0a);
  border-bottom: var(--rule) solid var(--border);
  position: relative;
}
.news-card .thumb .status {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
}
.news-card .body { padding: 18px; display: grid; gap: 6px; }
.news-card .body h3 { font-size: var(--h3); margin: 0; line-height: 1.2; font-weight: 400; }
.news-card .body .meta { font-size: var(--meta); }

/* ===== Accordion (programmes + people + social) ===== */
.accordion { max-width: var(--max); margin: 0 auto; }
.accordion + .accordion { margin-top: var(--space-3); }
.acc-item {
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.acc-item + .acc-item { margin-top: var(--space-2); }
.acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  color: var(--fg);
  min-height: 64px;
  transition: background 150ms ease, color 150ms ease;
}
.acc-trigger:is(:hover, :focus-visible) { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.acc-trigger .title { display: grid; gap: 2px; }
.acc-trigger .title strong { font-size: var(--h3); font-weight: 400; }
.acc-trigger .title span { color: var(--muted); font-size: var(--meta); }
.acc-trigger .chev {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: transform 0.18s ease;
}
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--fg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.22s ease; }
.acc-panel > .acc-inner { overflow: hidden; min-height: 0; }
.acc-trigger[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-content { padding: 4px 22px 22px; display: grid; gap: 12px; }

/* Programme panel list */
.prog-list { display: grid; gap: 12px; }
.prog-list :is(a, button) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  min-height: 80px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.prog-list :is(a, button):is(:hover, :focus-visible) { border-color: var(--accent-secondary); text-decoration: none; transform: translateX(2px); }
.prog-list .thumb {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #242424, #0a0a0a);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
}
.prog-list .meta { font-size: var(--meta); }
.prog-list .arrow { color: var(--muted); }

/* People rows */
.person-list { display: grid; gap: 8px; }
.person-list :is(a, button) {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  min-height: 80px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.person-list :is(a, button):is(:hover, :focus-visible) { border-color: var(--accent-secondary); text-decoration: none; transform: translateX(2px); }
.person-list .avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #242424, #0a0a0a);
  border: var(--rule) solid var(--border);
}
.person-list .meta { font-size: var(--meta); }

/* Social grid */
.social-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .social-grid { grid-template-columns: repeat(4, 1fr); } }
.social-card {
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, transform 150ms ease;
}
.social-card:is(:hover, :focus-visible) { border-color: var(--accent-secondary); text-decoration: none; transform: translateY(-2px); }
.social-card .thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #242424, #0a0a0a);
  border-bottom: var(--rule) solid var(--border);
  position: relative;
}
.social-card .thumb .platform {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 8px;
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-card .body { padding: 14px; display: grid; gap: 4px; }

/* ===== Initiative grid (5 areas) ===== */
.init-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .init-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .init-grid { grid-template-columns: repeat(5, 1fr); } }
.init-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.init-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #242424, #0a0a0a);
}
.init-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, color-mix(in oklab, var(--fg) 6%, transparent), transparent 60%),
    radial-gradient(80% 60% at 90% 90%, color-mix(in oklab, var(--fg) 4%, transparent), transparent 70%);
}
.init-tile:is(:hover, :focus-visible) { border-color: var(--accent-secondary); text-decoration: none; transform: translateY(-2px); }
.init-tile .label {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 24ch;
}
.init-tile h3 {
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 400;
}
.init-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.init-tile .arrow { color: var(--muted); font-size: var(--meta); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 520px) {
  .init-tile {
    aspect-ratio: auto;
    min-height: 240px;
  }
}

/* ===== Get Involved routes ===== */
.routes {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route {
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.route h3 { font-size: var(--h2); margin: 0; font-weight: 400; line-height: 1.05; }
.route .meta { font-size: var(--meta); }
.route a { color: var(--fg); min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.route a:hover { color: var(--accent-secondary); text-decoration: none; }

/* ===== Contact / newsletter ===== */
.contact-card {
  max-width: var(--max);
  margin: 0 auto;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-card { grid-template-columns: 1.2fr 1fr; gap: var(--space-6); } }
.contact-card h2 { font-size: var(--display-2); margin: 0; line-height: 1.05; font-weight: 400; letter-spacing: -0.015em; }
.news-form { display: grid; gap: 12px; }
.news-form label { font-size: var(--meta); color: var(--muted); }
.news-form .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
@media (max-width: 520px) {
  .news-form .row { grid-template-columns: 1fr; }
  .news-form button { width: 100%; }
}
.news-form input[type="email"] {
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 15px;
  min-width: 0;
}
.news-form input[type="email"]:focus { border-color: var(--accent-secondary); outline: none; }
.news-form input[type="email"][aria-invalid="true"] { border-color: var(--fg); }
.news-form button {
  height: 48px;
  padding: 0 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.news-form button:hover { background: var(--accent-secondary); color: var(--fg); transform: translateY(-1px); }
.news-form .consent { font-size: var(--meta); color: var(--muted); }
.news-form .consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.news-form .form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: var(--meta);
}
.news-form .form-message[data-state="error"] { color: var(--fg); }
.news-form .form-message[data-state="success"] { color: var(--fg); }

/* ===== Footer ===== */
.site-footer {
  border-top: var(--rule) solid var(--border);
  background: var(--bg);
  padding: var(--space-6) var(--gutter) var(--space-5);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { display: grid; gap: 16px; }
.footer-brand .mark { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.footer-brand address { font-style: normal; color: var(--muted); font-size: var(--meta); line-height: 1.6; }
.footer-col h4 {
  font-size: var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--fg); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--accent-secondary); text-decoration: none; }
.footer-bottom {
  max-width: var(--max);
  margin: var(--space-5) auto 0;
  padding-top: var(--space-3);
  border-top: var(--rule) solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--meta);
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials .empty { color: var(--muted); font-style: italic; }
.footer-bottom .photo-credit { color: var(--muted); font-size: var(--meta); max-width: 56ch; }
.footer-bottom .photo-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Hero background (photograph) =====
   Documentary still from the HKU University Museum and Art Gallery
   (Faculty of Arts complex). Anchored right, fading into a dark
   plate on the left so the headline + lede keep their contrast. */
.hero-photo {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  pointer-events: none;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, color-mix(in oklab, var(--bg) 72%, transparent) 35%, transparent 100%);
}
@media (max-width: 720px) {
  .hero-photo {
    inset: 0;
    opacity: 0.26;
  }
  .hero-photo::after {
    background: linear-gradient(to bottom, color-mix(in oklab, var(--bg) 64%, transparent), var(--bg) 92%);
  }
}

/* ===== Decorative motif =====
   One Lissajous-style closed curve. Sits behind the hero copy,
   pinned bottom-right with a consistent inset, never overlapping
   text. Stroke uses the border token; no off-system colour. */
.motif {
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 56%;
  height: 90%;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  mix-blend-mode: screen;
}
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }
.motif path { vector-effect: non-scaling-stroke; }

/* ===== Empty state label ===== */
.placeholder-tag {
  font-size: var(--label);
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: var(--rule) dashed var(--border);
  padding: 4px 8px;
  border-radius: var(--radius);
  display: inline-block;
}


/* ===== WP container-aligned hero (Gutenberg home) =====
   Hero matches --max container width like other sections. */
.hero {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.wp-site-blocks .hero,
.entry-content .hero,
.ast-container .hero {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
/* Neutralize Astra content gutters fighting the design system */
.page-id-34 .entry-content > .wp-block-group.hero,
.page-id-34 .entry-content > .aih-section {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.page-id-34 .site-content .ast-container {
  max-width: var(--max);
  padding-left: 0;
  padding-right: 0;
}
.page-id-34 .entry-header { display: none; }
