:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-soft: #faf9f4;
  --ink: #1d2a26;
  --muted: #5c6b64;
  --brand: #174a3a;
  --brand-dark: #0d2f26;
  --brand-blue: #123d4a;
  --accent: #b9892e;
  --accent-soft: #f4ead2;
  --border: #dce3dc;
  --border-strong: #c4d0c7;
  --danger: #8a2e2e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(19, 48, 38, 0.09);
  --shadow-soft: 0 8px 24px rgba(19, 48, 38, 0.07);
  --container: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 74, 58, 0.07), transparent 32rem),
    radial-gradient(circle at 100% 12%, rgba(185, 137, 46, 0.08), transparent 28rem),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-blue);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.65em;
  font-weight: 750;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.container--wide {
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  margin-inline: auto;
}

.container--wide .collection-page {
  padding: clamp(1rem, 1.8vw, 1.6rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-blue));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  color: var(--brand-dark);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  margin-left: auto;
}

.nav-list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.58rem 0.72rem;
  color: var(--ink);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.is-active > .nav-link,
.nav-item.is-open > .nav-link {
  color: var(--brand);
  background: var(--accent-soft);
}

.nav-item.is-active > .nav-link {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: -0.3rem;
  padding: 0;
  color: var(--muted);
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
}

.submenu-toggle:hover {
  color: var(--brand);
  background: var(--accent-soft);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 60;
  display: none;
  min-width: 15rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* Invisible bridge across the visual gap so moving from the parent item into
   the submenu keeps the hover/focus path continuous. */
.submenu::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  right: 0;
  left: 0;
  height: 0.55rem;
}

.submenu a,
.submenu span {
  display: block;
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  border-radius: 7px;
  font-size: 0.88rem;
  text-decoration: none;
}

.submenu a:hover,
.submenu-item.is-active a {
  color: var(--brand);
  background: var(--accent-soft);
}

@media (hover: hover) {
  .nav-item.has-children:hover > .submenu,
  .nav-item.has-children:focus-within > .submenu {
    display: block;
  }
}

.nav-item.is-open > .submenu {
  display: block;
}

/* Main layout */
.site-main {
  padding-block: 2rem 4rem;
}

.breadcrumbs {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Home page */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: clamp(1.7rem, 5vw, 3.4rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.17), transparent 16rem),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, var(--brand-blue));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  max-width: 18ch;
  margin: 0.35rem 0 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

.hero .eyebrow {
  color: #e8d9a8;
}

.hero-lead {
  max-width: 62ch;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  color: #17231f;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  color: #17231f;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.home-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.home-legacy {
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-links {
  position: sticky;
  top: 106px;
  padding: 1.2rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-links h2 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.quick-links ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.quick-links li + li {
  border-top: 1px solid var(--border);
}

.quick-links li a {
  display: block;
  padding: 0.62rem 0.1rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.quick-links li a:hover {
  color: var(--brand);
}

.quick-links-all {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

/* Inner pages */
.page-article,
.collection-page {
  padding: clamp(1.15rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.page-header {
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0;
}

.archive-badge {
  display: inline-flex;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.65rem;
  color: #6f4b08;
  background: var(--accent-soft);
  border: 1px solid #e6d19f;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.archive-notice {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  color: #5f4a20;
  background: #fbf6e8;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}

.empty-state {
  padding: 1.5rem;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

/* Legacy HTML content */
.legacy-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.legacy-content > :first-child {
  margin-top: 0;
}

.legacy-content > :last-child {
  margin-bottom: 0;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3,
.legacy-content h4,
.legacy-content h5,
.legacy-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
}

.legacy-content h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.legacy-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.legacy-content h3 {
  font-size: 1.3rem;
}

.legacy-content h4 {
  font-size: 1.14rem;
}

.legacy-content h5 {
  font-size: 1.02rem;
}

.legacy-content h6 {
  font-size: 0.94rem;
}

.legacy-content p,
.legacy-content li {
  line-height: 1.72;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
}

.legacy-content iframe {
  max-width: 100%;
  border: 0;
}

.legacy-content blockquote {
  margin: 1.1rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legacy-content blockquote > :last-child {
  margin-bottom: 0;
}

.legacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.legacy-content th,
.legacy-content td {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  vertical-align: top;
}

.legacy-content th {
  background: var(--surface-soft);
  font-weight: 700;
}

.legacy-content ul,
.legacy-content ol {
  padding-left: 1.45rem;
}

.legacy-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.9rem;
  background: #f2f4f0;
  border-radius: var(--radius-sm);
}

.legacy-content code {
  overflow-wrap: anywhere;
}

.legacy-content center {
  display: block;
  text-align: center;
}

.legacy-content font {
  line-height: inherit;
}

.legacy-content .table-scroll,
.legacy-content .embed-responsive {
  max-width: 100%;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.embed-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
}

.embed-responsive iframe {
  width: 100%;
  height: 100%;
}

/* 404 */
.error-page {
  max-width: 680px;
  margin: 2rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page .hero-actions {
  justify-content: center;
}

.error-page .button-secondary {
  color: var(--brand);
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.error-page .button-secondary:hover {
  color: var(--brand);
}

/* Collections */
.collection-header {
  margin-bottom: 1.4rem;
}

.collection-header h1 {
  margin-bottom: 0.5rem;
}

.collection-description {
  max-width: 75ch;
  color: var(--muted);
}

.collection-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.legacy-note {
  padding: 0.65rem 0.85rem;
  color: #5f4a20;
  background: #fbf6e8;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.collection-switch {
  font-size: 0.92rem;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

#collection-search {
  flex: 1 1 16rem;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
}

#collection-search:focus {
  border-color: var(--brand);
}

.collection-visible-count {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.collection-table-wrap {
  max-height: 75vh;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.45;
}

.data-table caption {
  text-align: left;
}

.data-table th,
.data-table td {
  min-width: 7rem;
  max-width: 30rem;
  padding: 0.55rem 0.7rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--brand-dark);
  background: #eef2ed;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.data-table th:hover,
.data-table th:focus-visible {
  background: var(--accent-soft);
}

.data-table th[aria-sort="ascending"]::after {
  content: " ↑";
  color: var(--accent);
}

.data-table th[aria-sort="descending"]::after {
  content: " ↓";
  color: var(--accent);
}

.data-table tbody tr:nth-child(even) {
  background: #fbfcf9;
}

.data-table tbody tr:hover {
  background: #f4f7f1;
}

.data-table tbody tr[hidden] {
  display: none;
}

.collection-hint {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  color: #dbe7df;
  background: var(--brand-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-title {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-col address {
  max-width: 34ch;
  color: #aebfb4;
  font-style: normal;
  font-size: 0.9rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col a {
  color: #dbe7df;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #91a89b;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-admin {
  color: #aebfb4;
  text-decoration: none;
}

.footer-admin:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    flex: 1 1 auto;
    padding: 0.75rem 0.55rem;
    font-size: 1rem;
  }

  .submenu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0;
    font-size: 0.85rem;
  }

  .submenu {
    position: static;
    flex: 1 0 100%;
    display: none;
    min-width: 0;
    padding: 0.2rem 0 0.65rem 0.9rem;
    border: 0;
    border-left: 2px solid var(--accent-soft);
    border-radius: 0;
    box-shadow: none;
  }

  .submenu::before {
    display: none;
  }

  .nav-item.is-open > .submenu {
    display: block;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-links {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .site-main {
    padding-block: 1.25rem 2.5rem;
  }

  .page-article,
  .collection-page {
    padding: 1rem;
  }

  .hero {
    border-radius: var(--radius);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Home hero slider */
.hero-slider {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 8.6;
  min-height: 460px;
  max-height: 660px;
  margin-bottom: 2rem;
  overflow: hidden;
  color: #fff;
  background: var(--brand-dark);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero-slider:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-slider__track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide__backdrop {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(22px) saturate(1.08) brightness(0.72);
  opacity: 0.9;
  transform: scale(1.02);
}

.hero-slide.is-active .hero-slide__backdrop {
  animation: hero-ken-burns 12s ease-out forwards;
}

.hero-slide__image {
  position: absolute;
  top: 50%;
  right: 4%;
  z-index: 2;
  display: block;
  width: min(40%, 520px);
  height: auto;
  background: rgba(8, 33, 27, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(2, 14, 11, 0.5);
  transform: translateY(-50%);
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-slider__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(8, 33, 27, 0.92) 0%,
      rgba(8, 33, 27, 0.64) 42%,
      rgba(8, 33, 27, 0.2) 72%,
      rgba(8, 33, 27, 0.06) 100%
    ),
    linear-gradient(
      0deg,
      rgba(8, 33, 27, 0.84) 0%,
      rgba(8, 33, 27, 0.28) 38%,
      transparent 66%
    );
}

.hero-slider__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(54%, 660px);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  pointer-events: none;
}

.hero-slider__content a {
  pointer-events: auto;
}

.hero-slider h1 {
  max-width: 17ch;
  margin: 0.35rem 0 0.75rem;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(4, 20, 16, 0.35);
}

.hero-slider .eyebrow {
  color: #f0dfaa;
  text-shadow: 0 1px 14px rgba(4, 20, 16, 0.45);
}

.hero-slider .hero-lead {
  max-width: 55ch;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  text-shadow: 0 1px 18px rgba(4, 20, 16, 0.45);
}

.hero-slider .button {
  box-shadow: 0 10px 28px rgba(4, 20, 16, 0.22);
}

.hero-slider .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.hero-slider .button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slider__controls {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.6rem);
  right: clamp(1rem, 2.5vw, 1.6rem);
  z-index: 5;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(8, 33, 27, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-slider__button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.hero-slider__button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-slider__button:active {
  transform: scale(0.94);
}

.hero-slider__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-slider__icon-play[hidden],
.hero-slider__icon-pause[hidden] {
  display: none;
}

.hero-slider__dots {
  position: absolute;
  left: clamp(1.6rem, 4vw, 3.2rem);
  bottom: 0.95rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.hero-slider__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-slider__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider__dot:hover::before {
  background: rgba(255, 255, 255, 0.8);
}

.hero-slider__dot.is-active::before {
  width: 24px;
  background: var(--accent);
}

.hero-slider__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-slider__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e8ca84);
}

@media (max-width: 760px) {
  .hero-slider {
    aspect-ratio: auto;
    height: clamp(420px, 54vh, 480px);
    max-height: none;
    border-radius: var(--radius);
  }

  .hero-slider__content {
    width: 100%;
    padding: 1.3rem 1.3rem 4.4rem;
  }

  .hero-slider h1 {
    max-width: 15ch;
    margin-bottom: 0.55rem;
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
  }

  .hero-slider .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }

  .hero-slider .hero-lead {
    max-width: 38ch;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-slider .button {
    min-height: 42px;
    padding: 0.58rem 0.95rem;
    font-size: 0.92rem;
  }

  .hero-slider__controls {
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.22rem;
  }

  .hero-slider__button {
    width: 38px;
    height: 38px;
  }

  .hero-slide__backdrop {
    filter: blur(16px) saturate(1.08) brightness(0.68);
  }

  .hero-slide__image {
    top: 4%;
    right: auto;
    left: 50%;
    width: min(68%, 260px);
    border-radius: 12px;
    transform: translateX(-50%);
  }

  .hero-slider__dots {
    left: 1.2rem;
    bottom: 0.8rem;
  }

}

@media (max-width: 420px) {
  .hero-slider {
    height: clamp(430px, 56vh, 480px);
  }

  .hero-slider__content {
    padding: 1.15rem 1.1rem 4.2rem;
  }

  .hero-slider .hero-lead {
    max-width: 34ch;
    font-size: 0.88rem;
  }
}

/* Page loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(13, 47, 38, 0.34);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

html.js-loading .page-loader {
  visibility: visible;
  pointer-events: auto;
  animation: page-loader-reveal 0.01s linear 0.22s forwards;
}

@keyframes page-loader-reveal {
  to {
    opacity: 1;
  }
}

.page-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 9.5rem;
  padding: 1.15rem 1.4rem;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-loader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(23, 74, 58, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: page-loader-spin 0.85s linear infinite;
}

.page-loader__text {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__spinner {
    animation: none;
    border-top-color: var(--brand);
  }
}
