/* /assets/site.css */

:root {
  --teal-blue: #0B6E8A;
  --deep-teal: #073B4C;
  --amber: #F2A33A;
  --signal: #E4572E;
  --mist: #FAFBFC;
  --sand: #F5F1E8;
  --rock: #1B2A32;
  --neutral: #5C6B73;
  --mint: #47B5A6;
  --gold: #FFD166;
  --line: #9CC9D6;
  --ink: #0A1A20;
  --white: #FFFFFF;
  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-sm: 0.8rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --shadow-panel: 0 1.2rem 3rem rgba(7, 59, 76, 0.12);
  --shadow-soft: 0 0.65rem 1.5rem rgba(10, 26, 32, 0.1);
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --scroll-progress: 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  --scroll-progress: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--rock);
  background:
    linear-gradient(180deg, rgba(156, 201, 214, 0.1) 0, transparent 18rem),
    var(--mist);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--teal-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal);
}

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--rock);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin-block: 0 1em;
  padding-left: 1.25em;
}

::selection {
  color: var(--ink);
  background: var(--gold);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  display: block;
  padding-block: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.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: 200;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  color: var(--ink);
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--rock);
  background: var(--mist);
  border-bottom: 1px solid rgba(7, 59, 76, 0.14);
  transition:
    border-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.site-header[data-scrolled="true"] {
  border-color: rgba(7, 59, 76, 0.28);
  box-shadow: 0 1rem 2.5rem rgba(7, 59, 76, 0.14);
}

.header-rail {
  position: relative;
  overflow: hidden;
  color: var(--mist);
  background:
    linear-gradient(116deg, rgba(255, 209, 102, 0.13) 0 12%, transparent 12% 64%, rgba(156, 201, 214, 0.1) 64% 65%, transparent 65%),
    var(--deep-teal);
}

.header-rail::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -90%;
  width: 48%;
  height: 230%;
  pointer-events: none;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 15px,
    rgba(156, 201, 214, 0.12) 15px 16px
  );
  transform: skewX(-18deg);
}

.header-rail__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding-block: 0.78rem;
}

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

.brand:hover {
  color: var(--gold);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  background: var(--amber);
  border-radius: 0.9rem 1.2rem 0.9rem 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(10, 26, 32, 0.16);
}

.brand__slash {
  position: absolute;
  top: -25%;
  left: 1.2rem;
  width: 0.4rem;
  height: 150%;
  background: var(--deep-teal);
  border-radius: var(--radius-pill);
  transform: rotate(26deg);
}

.brand__dot {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 0.52rem;
  height: 0.52rem;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(250, 251, 252, 0.24);
}

.brand__text {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.brand__name {
  display: block;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__tagline {
  display: block;
  overflow: hidden;
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-rail__meta {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.utility-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-nav__link {
  display: inline-block;
  padding-block: 0.18rem;
  color: var(--line);
  border-bottom: 1px solid transparent;
  font-size: 0.8rem;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    border-color 180ms ease-out;
}

.utility-nav__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.95rem;
  color: var(--ink);
  background: var(--amber);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: 0 0.4rem 1rem rgba(10, 26, 32, 0.18);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease-out,
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}

.header-cta:hover {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 0.65rem 1.3rem rgba(10, 26, 32, 0.22);
  transform: translateY(-1px);
}

.header-nav {
  background: rgba(250, 251, 252, 0.96);
  border-top: 1px solid rgba(156, 201, 214, 0.3);
}

.header-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.15rem;
}

.nav-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.68rem;
  color: var(--deep-teal);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-status__pulse {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(71, 181, 166, 0.16);
}

.primary-nav {
  display: block;
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__item {
  display: block;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.78rem;
  color: var(--rock);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out;
}

.primary-nav__link:hover {
  color: var(--deep-teal);
  background: var(--sand);
  border-color: var(--line);
  transform: translateY(-1px);
}

.primary-nav__link[aria-current="page"] {
  color: var(--white);
  background: var(--teal-blue);
  border-color: var(--deep-teal);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.primary-nav__link[aria-current="page"]::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
  border-radius: 50%;
}

.primary-nav__link[aria-current="page"]:hover {
  color: var(--white);
  background: var(--deep-teal);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  color: var(--mist);
  background: var(--deep-teal);
  border: 1px solid rgba(156, 201, 214, 0.38);
  border-radius: var(--radius-pill);
  box-shadow: 0 0.7rem 1.5rem rgba(10, 26, 32, 0.2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out;
}

.nav-toggle:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--gold);
}

.nav-toggle__lines {
  display: grid;
  width: 1.1rem;
  gap: 4px;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-pill);
  transform-origin: center;
  transition:
    transform 180ms ease-out,
    opacity 180ms ease-out;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--amber);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header[data-open="true"] .header-nav {
  border-color: transparent;
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  color: var(--mist);
  background: var(--ink);
  border-top: 6px solid var(--amber);
}

.footer-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 15%, rgba(11, 110, 138, 0.78) 0 17%, transparent 46%),
    linear-gradient(118deg, var(--deep-teal) 0, var(--ink) 68%);
}

.footer-main::after {
  content: "";
  position: absolute;
  top: -7rem;
  right: -7rem;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border: 1px solid rgba(156, 201, 214, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(156, 201, 214, 0.045),
    0 0 0 6rem rgba(156, 201, 214, 0.035);
}

.footer-main__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.footer-brand {
  min-width: 0;
}

.footer-brand__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.footer-brand__name {
  max-width: 13ch;
  margin: 0 0 0.95rem;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.footer-brand__summary {
  max-width: 34ch;
  margin: 0;
  color: #C9E2E9;
  font-size: 0.94rem;
  line-height: 1.75;
}

.footer-brand__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0.42rem 0.72rem;
  color: var(--line);
  background: rgba(7, 59, 76, 0.38);
  border: 1px solid rgba(156, 201, 214, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.2;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.footer-nav-group {
  min-width: 0;
}

.footer-nav-group__title {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.footer-nav-group__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-group__link {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.12rem;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    border-color 180ms ease-out;
}

.footer-nav-group__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-contact {
  min-width: 0;
  padding: 1.3rem;
  background: rgba(250, 251, 252, 0.06);
  border: 1px solid rgba(156, 201, 214, 0.3);
  border-radius: var(--radius-md);
}

.footer-contact__title {
  margin: 0 0 0.85rem;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.footer-contact__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
}

.footer-contact__item + .footer-contact__item {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(156, 201, 214, 0.18);
}

.footer-contact__label {
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.footer-contact__value {
  min-width: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin: 1rem 0 0;
  color: var(--line);
  font-size: 0.76rem;
  line-height: 1.65;
}

.footer-legal {
  background: var(--ink);
  border-top: 1px solid rgba(156, 201, 214, 0.22);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.15rem;
}

.footer-legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.footer-legal__copyright,
.footer-legal__icp {
  display: inline-block;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-legal__link {
  color: var(--line);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 180ms ease-out;
}

.footer-legal__link:hover {
  color: var(--gold);
}

/* Shared components */

.panel {
  overflow: clip;
  background: var(--white);
  border: 1px solid rgba(156, 201, 214, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.panel--dark {
  color: var(--mist);
  background: var(--deep-teal);
  border-color: rgba(156, 201, 214, 0.32);
}

.panel--dark h2,
.panel--dark h3,
.panel--dark h4 {
  color: var(--mist);
}

.panel--sand {
  background: var(--sand);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(245, 241, 232, 0.72), rgba(250, 251, 252, 0.2));
  border-bottom: 1px solid rgba(156, 201, 214, 0.42);
}

.panel--dark .panel__head {
  background: rgba(10, 26, 32, 0.2);
  border-color: rgba(156, 201, 214, 0.22);
}

.panel__body {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal-blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.panel--dark .eyebrow {
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.section-title {
  max-width: 16ch;
  margin: 0;
  color: var(--rock);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 42ch;
  margin: 0;
  color: var(--neutral);
  font-size: 0.9rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.68rem 1.1rem;
  color: var(--rock);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}

.button:hover {
  color: var(--deep-teal);
  border-color: var(--teal-blue);
  transform: translateY(-1px);
}

.button--primary {
  color: var(--white);
  background: var(--teal-blue);
  border-color: var(--deep-teal);
}

.button--primary:hover {
  color: var(--white);
  background: var(--deep-teal);
  border-color: var(--amber);
}

.button--amber {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--gold);
}

.button--amber:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--amber);
}

.button--ghost {
  color: var(--deep-teal);
  background: transparent;
  border-color: rgba(11, 110, 138, 0.42);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--deep-teal);
  background: var(--sand);
  border-color: var(--teal-blue);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.75rem;
  padding: 0.18rem 0.55rem;
  color: var(--deep-teal);
  background: rgba(156, 201, 214, 0.22);
  border: 1px solid rgba(156, 201, 214, 0.7);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--amber {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--gold);
}

.tag--red {
  color: var(--white);
  background: var(--signal);
  border-color: var(--signal);
}

.tag--teal {
  color: var(--white);
  background: var(--teal-blue);
  border-color: var(--deep-teal);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.52rem;
  height: 0.52rem;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(71, 181, 166, 0.18);
}

.date-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.date-chip {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  min-width: 6.2rem;
  min-height: 4.2rem;
  padding: 0.55rem 0.8rem;
  color: var(--deep-teal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-align: left;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out;
}

.date-chip:hover {
  color: var(--deep-teal);
  background: var(--sand);
  border-color: var(--teal-blue);
  transform: translateY(-1px);
}

.date-chip[aria-current="true"],
.date-chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-blue);
  border-color: var(--deep-teal);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.date-chip__day {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.date-chip__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.4;
  opacity: 0.82;
}

.breadcrumbs {
  margin-block: 0.4rem 1.2rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--neutral);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link {
  color: var(--teal-blue);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--signal);
  text-decoration: underline;
}

.prose {
  max-width: 62ch;
  color: var(--rock);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2,
.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-12 {
  grid-column: 1 / -1;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(11, 110, 138, 0.9), rgba(7, 59, 76, 0.95)),
    var(--deep-teal);
  border: 1px solid rgba(156, 201, 214, 0.45);
  border-radius: var(--radius-md);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 2.8rem 0.9rem 0.75rem;
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(10, 26, 32, 0.84));
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--teal-blue), var(--amber), var(--signal));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

/* Responsive */

@media (max-width: 1080px) {
  .nav-status {
    display: none;
  }

  .primary-nav__link {
    padding-inline: 0.66rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 980px) {
  .footer-main__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .site-header {
    position: relative;
  }

  .header-rail__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .brand {
    width: 100%;
  }

  .brand__tagline {
    white-space: normal;
  }

  .header-rail__meta {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header-nav {
    position: fixed;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    z-index: 90;
    background: transparent;
    border: 0;
  }

  .header-nav__inner {
    position: relative;
    display: flex;
    justify-content: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .nav-status {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 1rem 2.2rem rgba(10, 26, 32, 0.28);
  }

  .primary-nav {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);
    left: 0;
    display: none;
    max-height: min(70vh, 30rem);
    margin: 0;
    padding: 0.65rem;
    overflow-y: auto;
    background: var(--deep-teal);
    border: 1px solid rgba(156, 201, 214, 0.38);
    border-radius: var(--radius-md);
    box-shadow: 0 1.25rem 3rem rgba(10, 26, 32, 0.32);
  }

  .site-header[data-open="true"] .primary-nav {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .primary-nav__link {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.9rem;
    padding: 0.78rem 0.9rem;
    color: var(--mist);
    border-radius: 0.85rem;
    font-size: 1rem;
  }

  .primary-nav__link:hover {
    color: var(--white);
    background: rgba(156, 201, 214, 0.14);
    border-color: rgba(156, 201, 214, 0.34);
    transform: translateX(3px);
  }

  .primary-nav__link[aria-current="page"] {
    color: var(--ink);
    background: var(--amber);
    border-color: var(--gold);
    box-shadow: inset 0 -2px 0 var(--signal);
  }

  .primary-nav__link[aria-current="page"]:hover {
    color: var(--ink);
    background: var(--gold);
  }
}

@media (max-width: 760px) {
  .header-rail__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-cta {
    width: 100%;
  }

  .utility-nav__list {
    gap: 0.55rem 0.9rem;
  }

  .footer-main__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.5rem;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-brand__name {
    max-width: 18ch;
  }

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

  .layout-grid > [class^="col-"] {
    grid-column: 1 / -1;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1rem;
  }

  .brand__name {
    font-size: 1.24rem;
  }

  .brand__tagline {
    font-size: 0.68rem;
  }

  .brand__mark {
    width: 2.45rem;
    height: 2.45rem;
  }

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

  .footer-contact__item {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .date-chip {
    min-width: 5.45rem;
  }
}

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

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

  .header-cta:hover,
  .button:hover,
  .date-chip:hover,
  .primary-nav__link:hover {
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }
}
