/* ============================================================
   NDANI MEDIA GROUP — EXECUTIVE DESIGN SYSTEM
   Loaded after legacy stylesheets. Retokenises and restyles the
   entire site: ink foundation, bone editorial surfaces, brass
   accent, clay secondary. No purple, no neon, no glass.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Foundation */
  --ink: #0b0b0c;
  --ink-2: #101012;
  --ink-3: #16161a;
  --bone: #f4f1ea;
  --bone-dim: #a9a49a;
  --brass: #c6a15b;
  --brass-soft: #e2cd9f;
  --clay: #a9573a;
  --sage: #7d8a6a;
  --crimson: #b0413e;
  --hairline: rgba(244, 241, 234, 0.12);
  --hairline-strong: rgba(244, 241, 234, 0.22);

  /* Legacy token remap — every legacy rule inherits the new system */
  --primary-color: var(--brass);
  --secondary-color: var(--clay);
  --accent-color: var(--brass-soft);
  --bg-dark: var(--ink);
  --bg-darker: #070708;
  --bg-gradient-start: #131316;
  --bg-gradient-end: #0a0a0b;
  --bg-card: var(--ink-2);
  --bg-light: var(--bone);
  --text-light: var(--bone);
  --text-medium: var(--bone-dim);
  --text-secondary: var(--bone-dim);
  --text-muted: var(--bone-dim);
  --text-dark: #17171a;
  --border-color: var(--hairline);
  --card-radius: 3px;
  --card-border: 1px solid var(--hairline);
  --card-shadow: none;
  --header-height: 84px;

  --shell: 1320px;
  --measure: 68ch;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--bone);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: var(--brass); color: #14110a; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 0;
}

.container,
.wide-layout .container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

section {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
  position: relative;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5,
.display, .stat-value, .stat-number, .momentum-value,
.footer-logo, .hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--bone);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); text-align: left; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { color: var(--bone-dim); margin-bottom: 1rem; }
p strong, strong { color: var(--bone); font-weight: 600; }

.section-title,
.section-header {
  text-align: left;
  max-width: 62ch;
  margin: 0 0 clamp(2.25rem, 4vw, 3.5rem);
}

.section-title h2,
.section-header h2 { text-align: left; }

.section-title > p,
.section-header > p,
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--bone-dim);
  max-width: 60ch;
  margin: 0;
}

/* Eyebrow-like small caps labels */
.hero-kicker,
.stat-label,
.gallery-tag,
.press-tag,
.blog-category,
.news-category,
.dept-meta,
.post-meta,
.contact-label,
.team-role,
.leader-role,
.roadmap-year,
.momentum-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  font-weight: 600;
}

.breadcrumbs {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--bone-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs .current { color: var(--bone); }

/* ---------- 4. Header + navigation ---------- */
.main-header,
body > header:first-of-type {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  -webkit-
  
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.main-header > .container,
body > header:first-of-type > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo:not(:has(img)) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.logo span { color: var(--brass); }

.main-nav > ul,
body > header:first-of-type nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a,
body > header:first-of-type nav a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone);
  text-decoration: none;
  background: none;
  transition: color 0.25s var(--ease);
}

.main-nav a::after,
body > header:first-of-type nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--brass);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover, body > header:first-of-type nav a:hover { color: var(--brass); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after,
body > header:first-of-type nav a:hover::after { width: 100%; }

.main-nav .nav-cta,
.nav-cta {
  padding: 0.7rem 1.35rem;
  background: var(--brass);
  color: #14110a !important;
  border-radius: 2px;
  font-weight: 700;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--brass-soft); }

/* Grouped mega navigation */
.nav-group { position: relative; }
.nav-group > button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-group > button::after {
  content: "";
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.nav-group:hover > button,
.nav-group > button[aria-expanded="true"] { color: var(--brass); }
.nav-group > button[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: -1.25rem;
  min-width: 320px;
  padding: 1.35rem;
  display: grid;
  gap: 0.15rem;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-panel a {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-panel a::after { display: none; }
.nav-panel a:hover { background: rgba(244, 241, 234, 0.05); }
.nav-panel a span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone-dim);
  font-weight: 400;
  margin-top: 0.15rem;
}

.mobile-menu-toggle,
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 998;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

main { padding-top: var(--header-height); }

@media (max-width: 900px) {
  :root { --header-height: 72px; }
  main { padding-top: var(--header-height) !important; }

  .mobile-menu-toggle, .menu-toggle { display: inline-flex; align-items: center; }

  .main-nav,
  body > header:first-of-type nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 420px);
    padding: calc(var(--header-height) + 2rem) clamp(1.5rem, 6vw, 2.5rem) 2.5rem;
    background: var(--ink);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.active,
  body > header:first-of-type nav.active { transform: translateX(0); }

  .main-nav > ul,
  body > header:first-of-type nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > ul > li,
  body > header:first-of-type nav > ul > li { border-bottom: 1px solid var(--hairline); }
  .main-nav > ul > li > a,
  body > header:first-of-type nav > ul > li > a {
    display: block;
    padding: 1.05rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
  .main-nav .nav-cta {
    margin-top: 1.5rem;
    text-align: center;
    border-bottom: 0;
  }
  .nav-group > button { width: 100%; justify-content: space-between; padding: 1.05rem 0; font-size: 0.95rem; }
  .nav-panel {
    position: static;
    min-width: 0;
    padding: 0 0 1rem;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-group.open .nav-panel { display: grid; }
  .nav-panel a { padding: 0.6rem 0; color: var(--bone-dim); }
}

/* ---------- 5. Buttons ---------- */
.btn,
button.btn,
a.btn,
.carousel-btn,
.share-btn,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before, .btn::after { display: none !important; }

.btn-primary,
a.btn-primary,
button.btn-primary,
input[type="submit"],
button[type="submit"] {
  background: var(--brass);
  color: #14110a;
  border-color: var(--brass);
}
.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
  transform: none;
}

.btn-secondary,
.btn-outline,
a.btn-secondary,
a.btn-outline,
button.btn-secondary,
button.btn-outline {
  background: transparent;
  color: var(--bone);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover,
.btn-outline:hover,
a.btn-secondary:hover,
a.btn-outline:hover { border-color: var(--brass); color: var(--brass); background: transparent; }

.btn-tertiary,
a.btn-tertiary {
  background: transparent;
  color: var(--brass);
  border-color: transparent;
  padding-inline: 0;
}
.btn-tertiary:hover, a.btn-tertiary:hover { color: var(--brass-soft); }


.btn-large { min-height: 54px; padding: 1rem 2rem; }
.btn-small { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.7rem; }

.read-more, .dept-link, .results-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-decoration: none;
}
.read-more:hover, .dept-link:hover, .results-link:hover { color: var(--brass-soft); }

/* ---------- 6. Hero ---------- */
.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(62svh, 620px);
  padding-block: clamp(4rem, 12vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 6%, rgba(11, 11, 12, 0.55) 55%, rgba(11, 11, 12, 0.35) 100%),
    linear-gradient(to right, rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0.15) 65%);
}
.hero::after, .page-hero::after { display: none; }

.hero-content {
  max-width: 46rem;
  text-align: left;
  margin: 0;
  transform: none !important;
  opacity: 1 !important;
}
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content > p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(244, 241, 234, 0.82);
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Home hero (index) keeps a taller cinematic frame */
body.home .hero:first-of-type,
.hero.hero-home { min-height: min(88svh, 900px); }

/* ---------- 7. Cards, grids, media ---------- */
.card-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.card,
.team-card,
.post-card,
.news-card,
.press-card,
.dept-card,
.value-card,
.stat-card,
.metric-card,
.project-card,
.testimonial-card,
.leader-card,
.package-card,
.faq-item,
.team-member-card {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: none;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.4s var(--ease);
}
.card:hover,
.team-card:hover,
.post-card:hover,
.news-card:hover,
.press-card:hover,
.dept-card:hover,
.project-card:hover,
.package-card:hover {
  border-color: var(--hairline-strong);
  background: var(--ink-3);
  transform: translateY(-2px);
}

.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }

.card-icon,
.dept-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: transparent;
  color: var(--brass);
  box-shadow: none;
}
.card-icon svg, .dept-icon svg { width: 20px; height: 20px; }

.stat-value, .stat-number, .momentum-value {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  color: var(--bone);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { display: block; margin-bottom: 0.75rem; }

/* Photos and placeholders */
.photo-placeholder,
.news-image-placeholder,
.team-photo,
.member-photo {
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-3);
  border: 1px solid var(--hairline);
}
.team-photo img, .member-photo img, .photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.03); }

/* Logo strip / marquee */
.logo-strip, .marquee-content { align-items: center; }
.logo-strip img, .marquee-content img {
  height: 30px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease);
}
.logo-strip img:hover, .marquee-content img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- 8. Forms ---------- */
.form-group { margin-bottom: 1.35rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="password"], input[type="search"], input[type="date"],
select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  box-shadow: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(169, 164, 154, 0.7); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--ink-2);
}
select option { background: var(--ink-2); color: var(--bone); }

.status-message,
.form-status {
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--brass);
  background: rgba(198, 161, 91, 0.08);
  border-radius: 0 2px 2px 0;
  font-size: 0.95rem;
  color: var(--bone);
}
.status-message.error, .form-status.error {
  border-left-color: var(--crimson);
  background: rgba(176, 65, 62, 0.1);
}
.status-message.success, .form-status.success {
  border-left-color: var(--sage);
  background: rgba(125, 138, 106, 0.12);
}

/* Newsletter */
.footer-newsletter {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-block: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .footer-newsletter { grid-template-columns: 1fr 1fr; }
}
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.newsletter-form input { flex: 1 1 220px; }

/* ---------- 9. Footer ---------- */
.main-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  color: var(--bone-dim);
}
.footer-top {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(280px, 1fr) 1.4fr; }
}
.footer-brand p { max-width: 42ch; font-size: 0.95rem; }
.footer-logo img { height: 34px; margin-bottom: 1.25rem; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.footer-links-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: var(--bone-dim); text-decoration: none; }
.footer-col a:hover { color: var(--bone); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--bone-dim);
  background: transparent;
}
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a, .footer-credit a { color: var(--bone-dim); text-decoration: none; }
.footer-legal a:hover, .footer-credit a:hover { color: var(--brass); }

/* ---------- 10. Editorial / blog ---------- */
.post-content,
.article-body,
.legal-content,
.terms-content {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-content h2, .article-body h2, .legal-content h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.post-content h3, .article-body h3, .legal-content h3 { margin-top: 2rem; }
.post-content p, .article-body p, .legal-content p { color: rgba(244, 241, 234, 0.78); }
.post-content ul, .post-content ol,
.legal-content ul, .legal-content ol { padding-left: 1.25rem; margin-bottom: 1.5rem; color: rgba(244, 241, 234, 0.78); }
.post-content li, .legal-content li { margin-bottom: 0.5rem; }
.post-content a, .legal-content a { color: var(--brass); text-underline-offset: 3px; }

.post-content blockquote, .article-body blockquote {
  margin: 2.25rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: var(--bone);
}
.post-content img, .article-body img { border-radius: 2px; margin-block: 1.75rem; }

.post-meta, .news-meta, .post-date, .news-date {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  color: var(--bone-dim);
}

.share-btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--bone-dim);
}
.share-btn:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- 11. Gallery ---------- */
.gallery-grid,
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery-item img, .gallery-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.9);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.92), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.gallery-overlay p { margin: 0; font-size: 0.85rem; }

.lightbox, .gallery-lightbox {
  background: rgba(7, 7, 8, 0.96) !important;
  -webkit-
  
}
.lightbox img { border-radius: 2px; }

/* ---------- 12. Voting, results, participation ---------- */
.voting-section,
.vote-card,
.vote-panel,
.nominee-card,
.category-card,
.results-card,
.leaderboard,
.package-option {
  background: var(--ink-2) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  color: var(--bone);
}
.nominee-card:hover, .category-card:hover { border-color: var(--brass) !important; }

.package-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
}
.package-option:hover, .package-option:has(input:checked) { border-color: var(--brass) !important; }
.package-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--bone); }
.package-votes { color: var(--bone-dim); font-size: 0.9rem; }

/* Progress / bars */
.progress, .progress-bar, .vote-bar, .result-bar, .bar-track {
  background: rgba(244, 241, 234, 0.08) !important;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill, .vote-bar-fill, .result-bar-fill, .bar-fill {
  background: var(--brass) !important;
  box-shadow: none !important;
}

/* Live indicator */
.live-badge, .live-indicator, .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: rgba(176, 65, 62, 0.14) !important;
  border: 1px solid rgba(176, 65, 62, 0.4) !important;
  color: #e8b3b1 !important;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

/* Skeletons / loading / empty states */
.skeleton, .loading-skeleton {
  background: linear-gradient(90deg, rgba(244,241,234,0.05), rgba(244,241,234,0.11), rgba(244,241,234,0.05));
  background-size: 200% 100%;
  animation: ndani-shimmer 1.4s linear infinite;
  border-radius: 2px;
}
@keyframes ndani-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.empty-state, .no-results, .error-state {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px dashed var(--hairline-strong);
  border-radius: 3px;
  text-align: center;
  color: var(--bone-dim);
}
.spinner, .loader {
  border-color: rgba(244, 241, 234, 0.15) !important;
  border-top-color: var(--brass) !important;
}

/* ---------- 13. Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
th {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  font-weight: 600;
}
td { color: rgba(244, 241, 234, 0.8); }
.table-wrap { overflow-x: auto; }

/* ---------- 14. Misc legacy cleanup ---------- */
[class*="glass"], .glass, .glassmorphism {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: var(--ink-2) !important;
  border: 1px solid var(--hairline) !important;
}

.roadmap-item, .stat-item, .contact-info-item {
  border-color: var(--hairline) !important;
  border-radius: 2px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: var(--bone);
}
.testimonial-author { font-size: 0.85rem; color: var(--bone-dim); }

.skip-link {
  background: var(--brass) !important;
  color: #14110a !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* Ad slots collapse until an ad is actually served, so an unconfigured or
   unfilled slot never leaves a blank band in the layout. */
.ad-slot, .adsbygoogle {
  display: block;
  min-height: 0;
  background: transparent;
}
.adsbygoogle:not([data-ad-status="filled"]) {
  display: none !important;
}
.ad-slot:empty,
.ad-banner:not(:has(.adsbygoogle[data-ad-status="filled"])) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Section rhythm on alternating surfaces */
section + section { border-top: 1px solid var(--hairline); }
.hero + section, .page-hero + section { border-top: 0; }

/* ---------- 15. Motion ---------- */
.reveal, [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible, [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 640px) {
  section { padding-block: clamp(2.75rem, 10vw, 4rem); }
  .hero, .page-hero { min-height: min(70svh, 560px); }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1600px) {
  :root { --shell: 1440px; }
}

/* ---------- 17. Lightbox (ndani-ui.js) ---------- */
.ndani-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: rgba(7, 7, 8, 0.96);
}
.ndani-lightbox.open { display: flex; }
.ndani-lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.ndani-lightbox img {
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.ndani-lightbox figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}
.ndani-lightbox button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.ndani-lightbox button:hover { border-color: var(--brass); color: var(--brass); }
.ndani-lightbox .lb-close { position: absolute; top: 1.25rem; right: 1.25rem; }
@media (max-width: 640px) {
  .ndani-lightbox { flex-wrap: wrap; }
  .ndani-lightbox figure { order: -1; flex-basis: 100%; }
}

/* Header scrolled state */
.main-header.is-scrolled {
  background: color-mix(in oklab, var(--ink) 94%, transparent);
  border-bottom-color: var(--hairline-strong);
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RUNTIME-INJECTED WIDGETS (script.js)
   ============================================================ */

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 1200;
  background: var(--brass) !important;
  box-shadow: none !important;
}

/* Announcement / voting popup */
.vote-popup-overlay {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: color-mix(in oklab, var(--ink) 82%, transparent) !important;
  
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.vote-popup-overlay.active { opacity: 1; pointer-events: auto; }
.vote-popup {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh; overflow-y: auto;
  background: var(--ink-2) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 3px !important;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9) !important;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: left;
}
.vote-popup h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.15; margin: .5rem 0 .55rem;
  color: var(--bone) !important;
}
.vote-popup p {
  color: var(--bone-dim) !important;
  font-size: .95rem; line-height: 1.6; margin: 0 0 1.25rem;
  max-width: 46ch;
}
.vote-popup-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass) !important;
  font-weight: 600;
}
.vote-popup-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
}
.vote-popup-badge.alt { color: var(--clay-light, #c7714f) !important; }
.vote-popup-badge.alt::before { background: var(--clay-light, #c7714f); }
.vote-popup-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.vote-popup-divider {
  height: 1px; background: var(--hairline); margin: 1.75rem 0;
}
.vote-popup-divider:last-child { display: none; }
.vote-popup-close {
  position: absolute; top: .85rem; right: .85rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent;
  color: var(--bone-dim); font-size: 1.4rem; line-height: 1;
  cursor: pointer; border-radius: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.vote-popup-close:hover { color: var(--bone); border-color: var(--hairline); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1250;
  background: var(--ink-2) !important;
  border-top: 1px solid var(--hairline) !important;
  box-shadow: none !important;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.cookie-content {
  max-width: var(--shell, 1320px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.cookie-text p { margin: 0; color: var(--bone-dim) !important; font-size: .88rem; }
.cookie-text a { color: var(--brass) !important; text-decoration: underline; text-underline-offset: 3px; }
.cookie-buttons { display: flex; gap: .6rem; }
.cookie-buttons .btn { padding: .6rem 1.25rem !important; font-size: .72rem !important; }

/* Chat assistant */
.assistant-button {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brass) !important;
  color: var(--ink) !important;
  border: 0 !important; cursor: pointer;
  display: grid; place-items: center; font-size: 1.15rem;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.9) !important;
  transition: transform .2s ease, background .2s ease;
}
.assistant-button:hover { transform: translateY(-2px); }
.assistant-panel {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 68px);
  z-index: 1260;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(560px, 75vh);
  display: none; flex-direction: column;
  background: var(--ink-2) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 3px !important;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9) !important;
}
.assistant-panel.active { display: flex; }
.assistant-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: none !important;
}
.assistant-title {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone) !important; font-weight: 600;
}
.assistant-close {
  background: none; border: 0; color: var(--bone-dim);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.assistant-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.assistant-messages .bubble,
.assistant-bubble {
  max-width: 88%; padding: .7rem .9rem; border-radius: 2px;
  font-size: .88rem; line-height: 1.55;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--hairline) !important;
  color: var(--bone-dim) !important;
}
.assistant-bubble.user, .assistant-messages .bubble.user {
  align-self: flex-end;
  background: var(--brass) !important;
  color: var(--ink) !important;
  border-color: transparent !important;
}
.assistant-quick-actions {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 1.1rem .8rem;
}
.assistant-chip {
  background: none !important;
  border: 1px solid var(--hairline) !important;
  color: var(--bone-dim) !important;
  padding: .4rem .7rem; border-radius: 2px;
  font-size: .74rem; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.assistant-chip:hover { border-color: var(--brass) !important; color: var(--bone) !important; }
.assistant-input {
  display: flex; gap: .5rem; padding: .8rem 1.1rem 1rem;
  border-top: 1px solid var(--hairline);
}
.assistant-input input, .assistant-ticket input, .assistant-ticket textarea {
  flex: 1; min-height: 42px;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--hairline) !important;
  color: var(--bone) !important; padding: .55rem .75rem;
  border-radius: 2px; font-size: .88rem; font-family: inherit;
}
.assistant-send {
  background: var(--brass) !important; color: var(--ink) !important;
  border: 0; padding: 0 1rem; border-radius: 2px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; cursor: pointer;
}
.assistant-ticket { display: none; flex-direction: column; gap: .5rem; padding: 0 1.1rem 1rem; }
.assistant-ticket.active { display: flex; }
.assistant-ticket-actions { display: flex; gap: .5rem; }
.assistant-ticket-status { font-size: .8rem; color: var(--bone-dim); }
.assistant-typing { color: var(--bone-faint, rgba(244,241,234,.45)); font-size: .85rem; }

/* Kill leftover neon/gradient cursor artifacts */
.cursor-particle, .ripple { display: none !important; }


/* Stat/metric grids stay evenly balanced in narrow columns */
.card-grid:has(.stat-value),
.cards-grid:has(.stat-value),
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.card-grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.stat-label {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.stat-card p, .card-grid:has(.stat-value) .card p { margin-top: 0.85rem; font-size: 0.9rem; color: var(--bone-dim); }

/* ============================================================
   VOTING / RESULTS / NOMINATION SURFACES
   Neutralise legacy slate-blue + gradient panels.
   ============================================================ */
.voting-card, .vote-card, .vote-panel, .voting-section,
.vote-header, .vote-hero-card, .voting-form, .vote-form,
.vote-instructions, .voting-instructions, .how-it-works,
.vote-summary, .vote-status, .vote-sidebar,
.results-card, .results-panel, .leaderboard, .leaderboard-card,
.nominee-card, .category-card, .package-option, .stats-card,
.nomination-form, .form-card, .form-section {
  background: var(--ink-2) !important;
  background-image: none !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  color: var(--bone);
}

.vote-header, .vote-hero-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.vote-header h2, .vote-header h3, .vote-hero-card h2 { color: var(--bone) !important; }
.vote-header p, .vote-hero-card p { color: var(--bone-dim) !important; }

.vote-instructions, .voting-instructions, .how-it-works {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.vote-instructions ol, .voting-instructions ol, .how-it-works ol { color: var(--bone-dim); }
.vote-instructions li, .how-it-works li { margin-bottom: .5rem; }

/* Inputs and selects on voting/nomination flows */
.voting-form input, .voting-form select, .voting-form textarea,
.vote-form input, .vote-form select, .vote-form textarea,
.nomination-form input, .nomination-form select, .nomination-form textarea {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--hairline) !important;
  color: var(--bone) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
.voting-form input:focus, .voting-form select:focus, .voting-form textarea:focus,
.nomination-form input:focus, .nomination-form select:focus, .nomination-form textarea:focus {
  border-color: var(--brass) !important;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brass) 25%, transparent) !important;
}

/* Package / nominee selection states */
.package-option.selected, .nominee-card.selected, .category-card.active,
.package-option:hover, .nominee-card:hover {
  border-color: var(--brass) !important;
  background: rgba(198, 161, 91, .06) !important;
}

/* Status messages keep semantic meaning, restrained styling */
.vote-status.success, .status-success, .form-success {
  background: rgba(125, 138, 106, .12) !important;
  border: 1px solid rgba(125, 138, 106, .38) !important;
  color: #d8e0cd !important;
}
.vote-status.error, .status-error, .form-error {
  background: rgba(176, 65, 62, .12) !important;
  border: 1px solid rgba(176, 65, 62, .4) !important;
  color: #f0d6d5 !important;
}
.vote-status.pending, .status-pending, .status-warning {
  background: rgba(198, 161, 91, .1) !important;
  border: 1px solid rgba(198, 161, 91, .35) !important;
  color: #efe3cd !important;
}

.status-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none !important; border: 0 !important; padding: 0 !important;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--brass) !important;
}

/* Text-only page heroes: no ghost image space, editorial framing */
.page-hero {
  min-height: 0;
  padding-block: calc(var(--header-height) + clamp(3rem, 6vw, 5rem)) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}
.page-hero[style*="background"],
.page-hero[style*="url"],
.page-hero.has-image,
.hero {
  min-height: min(62svh, 620px);
  border-bottom: 0;
}

/* Heroes without artwork collapse to a typographic masthead */
.hero:not([style*="url"]):not(.hero-home):not([style*="min-height"]) {
  min-height: 0;
  padding-block: calc(var(--header-height) + clamp(2.5rem, 5vw, 4rem)) clamp(2.25rem, 4vw, 3.25rem) !important;
  border-bottom: 1px solid var(--hairline);
}
.hero:not([style*="url"]):not(.hero-home)::before { background: none; }

/* Team & people pages */
.leadership .team-card:hover { transform: translateY(-4px); box-shadow: none; }
.leadership .team-card:hover::before { opacity: 0.35; filter: blur(24px); }
.team-section .team-card,
.team-section .team-info,
.leadership .team-info,
.culture-section .culture-card { text-align: left; }
.team-section .section-title,
.team-section .section-subtitle,
.leadership .section-title,
.leadership .section-subtitle,
.culture-section .section-title,
.culture-section .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
.team-section .section-subtitle,
.leadership .section-subtitle { max-width: 60ch; }
.team-avatar, .avatar-initials { border-radius: 3px; }

/* Card CTAs stay inline, not full width */
.press-card .btn, .card .btn:not(.btn-block) { align-self: flex-start; }

/* Leadership grid: give portraits and bios room to breathe */
.leadership .team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)) !important;
  gap: clamp(1.5rem, 2.5vw, 2.25rem) !important;
}
.leadership .team-card { padding-bottom: 0.5rem; }
.leadership .card-inner img { height: 380px; }

/* Informational callouts read as quiet notes, not brass banners */
.info-highlight {
  background: rgba(198, 161, 91, 0.08) !important;
  color: var(--bone) !important;
  border-left: 2px solid var(--brass);
  padding: 0.85rem 1.1rem !important;
  border-radius: 0 !important;
}

/* Card headings stay in the typographic hierarchy, not accent colour */
.card h3, .card h4 { color: var(--bone) !important; }

@media (max-width: 900px) {
  body { overflow-x: clip; }
}

@media (max-width: 900px) {
  html { overflow-x: hidden; }
}

/* ============================================================
   EDITORIAL LAYOUT LAYER
   Replaces legacy centred/boxed compositions with an asymmetric
   editorial rhythm. Applies site-wide via .prose-col + section-title.
   ============================================================ */

.prose-col {
  max-width: 68ch;
  margin: 0;
}
.prose-col > p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--bone-dim);
  max-width: 68ch;
}
.prose-col > .card-grid,
.prose-col > .cards-grid {
  max-width: none;
  width: 100%;
}

/* Section headings: left-aligned editorial masthead with a fine rule */
.section-title {
  text-align: left !important;
  max-width: 62ch;
  margin-inline: 0 !important;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}
.section-title > p {
  color: var(--bone-dim);
  max-width: 56ch;
  margin-inline: 0;
}

/* Stat rows: hairline-divided figures instead of boxed cards */
.card-grid:has(.stat-value) {
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.card-grid:has(.stat-value) > .card {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  padding: 1.9rem 1.75rem 2rem 0;
  text-align: left;
}
.card-grid:has(.stat-value) > .card:last-child { border-right: 0; }
.card-grid:has(.stat-value) > .card { padding-left: 1.75rem; }
.card-grid:has(.stat-value) > .card:first-child { padding-left: 0; }
.card-grid:has(.stat-value) > .card:hover { transform: none; }

/* Cards default to left-aligned editorial blocks */
.card { text-align: left; }
.card-icon { margin-left: 0 !important; margin-right: auto; }

/* Any lingering centred inline blocks of CTAs align to the text column */
.card-grid + div > .btn,
.prose-col > div > .btn { margin-left: 0; }

@media (max-width: 720px) {
  .card-grid:has(.stat-value) > .card {
    border-right: 0;
    padding-left: 0;
  }
  .section-title { padding-top: 1.25rem; }
}

/* Editorial two-column: heading rail + prose column, no dead space */
@media (min-width: 1024px) {
  section:has(> .container > .prose-col) > .container {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: start;
  }
  section:has(> .container > .prose-col) > .container > * { grid-column: 1 / -1; }
  section:has(> .container > .prose-col) > .container > .section-title {
    grid-column: 1;
    position: sticky;
    top: 7rem;
    margin-bottom: 0;
  }
  section:has(> .container > .prose-col) > .container > .prose-col {
    grid-column: 2;
    max-width: none;
  }
  section:has(> .container > .prose-col) > .container > .prose-col > p { max-width: 64ch; }
  .prose-col > .card-grid:has(.stat-value) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Radio: editorial live player ---------- */
.radio-live-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .radio-live-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: start;
  }
}
.radio-player { max-width: none; text-align: left; }
.player-card {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 2.25rem;
}
.player-card .np-label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.player-card .now-playing h3 {
  margin: 0.6rem 0 0.35rem;
  color: var(--bone);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.player-card .now-playing p { color: var(--bone-dim); margin: 0; }
.player-card .visualizer {
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 1.75rem 0;
}
.player-card .visualizer > div {
  width: 3px;
  height: 100%;
  background: var(--brass);
  opacity: 0.85;
  animation-name: pulse;
  animation-iteration-count: infinite;
}
.player-card audio {
  width: 100%;
  height: 44px;
  border-radius: 3px;
  filter: invert(1) hue-rotate(180deg) saturate(0.2) brightness(1.05);
}
.player-card .player-meta {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}
@media (prefers-reduced-motion: reduce) {
  .player-card .visualizer > div { animation: none; }
}

/* ---------- Voting: form header ---------- */
.classic-voting-form { max-width: 860px; margin-inline: 0; }
.classic-voting-form .form-header {
  background: var(--ink-2) !important;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  color: var(--bone) !important;
  padding: 2.5rem 2.25rem 2.25rem;
  text-align: left;
}
.classic-voting-form .form-header * { color: inherit; }
.classic-voting-form .form-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass) !important;
}
.classic-voting-form .form-header h2 { margin: 0 0 0.85rem; }
.classic-voting-form .form-header p { color: var(--bone-dim) !important; max-width: 60ch; }
.form-categories {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.form-categories li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone) !important;
}
.classic-voting-form .results-link { margin-top: 1.75rem; }

/* Contact: squared pills, restrained map placeholder */
.map-pill { border-radius: 2px !important; color: var(--brass) !important; }
.contact-map { background: var(--ink-2) !important; }
.social-links a, .follow-list a, .social-pill { border-radius: 2px !important; }

/* ---------- Hero stat cards: hairline ledger, left aligned ---------- */
.gallery-hero-stats,
.services-hero-stats,
.hero-stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
  align-content: start;
}
.gallery-hero-stats .stat-card,
.services-hero-stats .stat-card,
.hero-stats .stat-card {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 0 1.6rem;
  text-align: left !important;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.gallery-hero-stats .stat-label,
.services-hero-stats .stat-label,
.hero-stats .stat-label {
  order: 1;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim) !important;
}
.gallery-hero-stats .stat-value,
.services-hero-stats .stat-value,
.hero-stats .stat-value {
  order: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--bone) !important;
}

/* Gallery grid: even editorial tiles */
.gallery-grid { grid-auto-rows: 1fr; }
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Editorial post cards: full-bleed media */
.post-card { padding: 0 !important; }
.post-card figure {
  height: auto !important;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  width: 100%;
}
.post-card figure img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-content { padding: 1.6rem !important; }

/* ==========================================================================
   Act III — global editorial polish (unboxed cards, ledgers, masthead scale)
   ========================================================================== */

/* Brand mark reads at executive scale */
.logo img { height: 40px; }
.footer-logo img { height: 40px; }

/* Masthead: bigger display, hairline kicker rule */
.hero-content h1, .page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
.breadcrumbs {
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--hairline);
  max-width: 34rem;
}

/* Text-only cards become editorial columns: hairline rule, no box */
.card-grid > .card:not(:has(img)):not(:has(.btn)) {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  padding: 1.9rem 0 0 !important;
}
.card-grid > .card:not(:has(img)):not(:has(.btn)):hover {
  background: transparent !important;
  transform: none !important;
  border-top-color: var(--brass) !important;
}
.card-grid > .card:not(:has(img)) .card-icon {
  width: auto; height: auto;
  border: 0; margin-bottom: 1.1rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.24em; color: var(--brass);
}
.card-grid > .card:not(:has(img)) h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.card-grid > .card:not(:has(img)) p { color: var(--bone-dim); max-width: 42ch; }

/* Ledger rows: label / value / note across a hairline grid */
.intro-stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .intro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-stats > .stat + .stat { border-left: 1px solid var(--hairline); padding-left: 2rem; }
}
.intro-stats > .stat {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  padding: 1.75rem 0 1.9rem !important;
  box-shadow: none !important;
}
.intro-stats > .stat:hover { transform: none !important; background: transparent !important; }
.intro-stats .stat-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.75rem;
}
.intro-stats .stat-value {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  margin-bottom: 0.6rem;
}
.intro-stats p { color: var(--bone-dim); margin: 0; font-size: 0.95rem; max-width: 34ch; }

/* Consent bar: institutional, hairline, not a floating pill */
.cookie-banner {
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  background: rgba(11, 11, 12, 0.94) !important;
  box-shadow: none !important;
}
.cookie-content { align-items: center; gap: 1.5rem; }
.cookie-buttons .btn { letter-spacing: 0.16em !important; text-transform: uppercase; }

/* Section mastheads: title + standfirst on one editorial line, tighter rhythm */
@media (min-width: 1024px) {
  .section-title {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
    max-width: none;
  }
  .section-title > h2 { margin-bottom: 0; }
  .section-title > p { padding-bottom: 0.4rem; max-width: 46ch; }
}
.section-title { margin-bottom: clamp(2rem, 3vw, 2.75rem) !important; }

/* Mobile heroes: bring the headline into the first screen */
@media (max-width: 640px) {
  body.home .hero:first-of-type,
  .hero.hero-home { min-height: 76svh; }
  .hero, .page-hero { padding-block: calc(var(--header-height) + 2.25rem) 2.5rem; }
  .hero-content h1, .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
}

/* ---------- Nomination: reference rail + form ---------- */
.nom-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 1024px) {
  .nom-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .nom-categories { position: sticky; top: 7rem; max-height: calc(100svh - 9rem); overflow-y: auto; }
}
.nom-categories {
  border-top: 1px solid var(--hairline);
  padding-top: 1.75rem;
}
.nom-categories-title {
  font-size: 0.6875rem !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--font-sans, system-ui) !important;
  margin-bottom: 1.75rem;
}
.nom-categories h4 {
  font-size: 0.95rem;
  color: var(--bone);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.nom-categories ol { list-style: none; padding-left: 0 !important; }
.nom-categories li {
  font-size: 0.875rem;
  color: var(--bone-dim);
  padding: 0.3rem 0;
}
.nom-layout .contact-form { max-width: none; margin: 0; }

/* Feedback slots stay invisible until they carry a message */
.form-status:empty, .status-message:empty { display: none !important; }

/* Embedded third-party forms sit in a hairline frame, full editorial width */
.embed-frame {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  max-width: 900px;
}
.embed-frame iframe { width: 100%; border: 0; display: block; }

/* ---------- Press: hairline metric ledger, unboxed press kit ---------- */
.metrics-grid { gap: 0 !important; border-top: 1px solid var(--hairline); }
.metric-card {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 0 1.65rem !important;
}
.metric-card + .metric-card { }
@media (min-width: 700px) {
  .metrics-grid > .metric-card:nth-child(even) { border-left: 1px solid var(--hairline) !important; padding-left: 1.75rem !important; }
}
.metric-card:hover { transform: none !important; background: transparent !important; }
.metric-card h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.4rem; }
.metric-card p { color: var(--bone-dim); margin: 0; font-size: 0.9rem; }

.press-kit-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
  padding: 2.5rem 0 0 !important;
}
.press-kit-card > div { text-align: left !important; }
.press-kit-card h2 { margin-bottom: 0.9rem; }
.press-kit-card p { color: var(--bone-dim); max-width: 52ch; margin-left: 0 !important; margin-right: 0 !important; }

@media (min-width: 1024px) {
  .press-kit-card {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }
  .press-kit-card > div:first-child { grid-column: 1; }
  .press-kit-card .kit-actions { grid-column: 2; justify-content: flex-start; }
}
