:root {
  --abyss: #04131F;
  --deep-blue: #082A44;
  --pool-teal: #0B5E63;
  --aqua: #19C3C9;
  --indigo: #262A63;
  --action-orange: #FF7A1A;
  --data-amber: #FFC15A;
  --bright-white: #F6FBFF;
  --slate-text: #9BB3C7;
  --jewel-wine: #6D2145;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, 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", "SFMono-Regular", Consolas, monospace;

  --rail-width: 268px;
  --shell-max: 1440px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --line: rgba(155, 179, 199, 0.22);
  --line-strong: rgba(25, 195, 201, 0.42);
  --shadow-float: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--abyss);
  background-image:
    radial-gradient(1200px 620px at 88% -10%, rgba(25, 195, 201, 0.16), transparent 62%),
    radial-gradient(900px 540px at 6% 8%, rgba(38, 42, 99, 0.42), transparent 66%),
    linear-gradient(180deg, #04131F 0%, #061B2D 46%, #04131F 100%);
  background-attachment: fixed;
  color: var(--bright-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--bright-white);
}

p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--aqua);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--data-amber);
}

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

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

input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--data-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--action-orange);
  color: var(--abyss);
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- shell ---------- */
.site-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 18px 0;
}

@media (min-width: 1024px) {
  .site-shell {
    padding-left: calc(var(--rail-width) + 46px);
    padding-right: 38px;
  }
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--action-orange);
  color: var(--abyss);
  font-weight: 700;
  border-radius: var(--radius-s);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- header / side rail ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, rgba(4, 19, 31, 0.98), rgba(6, 26, 42, 0.96));
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand toggle"
    "nav nav"
    "progress progress";
  gap: 14px 16px;
  align-items: center;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px 18px 12px;
}

.progress-rail {
  grid-area: progress;
  position: relative;
  height: 3px;
  width: 100%;
  background: rgba(155, 179, 199, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--data-amber), var(--action-orange));
  border-radius: 999px;
  transition: width 0.12s linear;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 10px;
  background: var(--deep-blue);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bright-white);
  line-height: 1;
}

.brand-mark:hover {
  color: var(--data-amber);
  border-color: var(--data-amber);
}

.brand-mark-dot {
  color: var(--action-orange);
}

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

.brand-line {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bright-white);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-text);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.nav-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--deep-blue);
  color: var(--bright-white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-toggle-bar {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--aqua);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-text {
  border-left: 1px solid var(--line);
  padding-left: 8px;
  color: var(--slate-text);
}

.site-nav {
  grid-area: nav;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(160deg, #082A44, #061E31 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-float);
}

.site-nav[data-open] {
  display: flex;
}

.nav-kicker {
  font-size: 11px;
  color: var(--aqua);
  letter-spacing: 0.16em;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--bright-white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-left: 3px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.nav-link:hover {
  background: rgba(25, 195, 201, 0.12);
  border-left-color: var(--aqua);
  color: var(--bright-white);
  padding-left: 15px;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(11, 94, 99, 0.85), rgba(38, 42, 99, 0.5));
  border-left-color: var(--action-orange);
  color: var(--bright-white);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--data-amber);
}

.nav-index {
  font-size: 11px;
  color: var(--slate-text);
  letter-spacing: 0.1em;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: var(--action-orange);
  color: var(--abyss);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-action:hover {
  background: var(--data-amber);
  color: var(--abyss);
  transform: translateY(-1px);
}

.nav-foot {
  font-size: 10px;
  color: var(--slate-text);
  letter-spacing: 0.12em;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-width);
    background:
      radial-gradient(340px 260px at 50% 0%, rgba(25, 195, 201, 0.16), transparent 70%),
      linear-gradient(180deg, #04131F, #061D30 60%, #04131F);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    width: auto;
    max-width: none;
    min-height: 100%;
    padding: 26px 20px 22px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-mark {
    font-size: 26px;
    padding: 8px 12px;
  }

  .brand-line {
    font-size: 16px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[data-open] {
    display: flex;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    gap: 18px;
    flex: 1;
  }

  .nav-list {
    gap: 6px;
  }

  .nav-link {
    font-size: 18px;
  }

  .header-action {
    margin-top: auto;
  }

  .progress-rail {
    height: 4px;
    margin-top: auto;
  }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(38, 42, 99, 0.55), transparent 68%),
    radial-gradient(760px 340px at 96% 18%, rgba(11, 94, 99, 0.42), transparent 70%),
    linear-gradient(180deg, #061B2D, #04131F 62%);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 48px 18px 36px;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bright-white);
  line-height: 1.1;
}

.footer-logo-dot {
  color: var(--action-orange);
}

.footer-logo:hover {
  color: var(--data-amber);
}

.footer-line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--aqua);
}

.footer-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate-text);
  line-height: 1.75;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bright-white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-cta:hover {
  background: rgba(25, 195, 201, 0.14);
  border-color: var(--aqua);
  color: var(--bright-white);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--aqua);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--bright-white);
  font-size: 15px;
  line-height: 1.6;
  display: inline-block;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--data-amber);
  transform: translateX(3px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(155, 179, 199, 0.12);
}

.contact-item-block {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--slate-text);
  min-width: 46px;
}

.contact-value {
  font-size: 14px;
  color: var(--bright-white);
  word-break: break-word;
  flex: 1 1 auto;
}

.copy-button {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-text);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.copy-button:hover {
  color: var(--abyss);
  background: var(--aqua);
  border-color: var(--aqua);
}

.copy-button[data-copied] {
  color: var(--abyss);
  background: var(--data-amber);
  border-color: var(--data-amber);
}

.service-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 18px 26px;
  border-top: 1px solid var(--line);
}

.footer-copyright,
.footer-icp {
  font-size: 12px;
  color: var(--slate-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--slate-text);
}

.footer-legal a:hover {
  color: var(--data-amber);
}

@media (min-width: 620px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    padding: 62px 34px 44px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

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

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 34px 28px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    margin-left: var(--rail-width);
  }

  .footer-main {
    padding-left: 46px;
    padding-right: 38px;
  }

  .footer-bottom {
    padding-left: 46px;
    padding-right: 38px;
  }
}

/* ---------- typography blocks ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--aqua);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--action-orange);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate-text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--action-orange);
  color: var(--abyss);
}

.btn-primary:hover {
  background: var(--data-amber);
  color: var(--abyss);
}

.btn-ghost {
  background: transparent;
  color: var(--bright-white);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--aqua);
  background: rgba(25, 195, 201, 0.12);
  color: var(--bright-white);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-text);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(155, 179, 199, 0.45);
}

.breadcrumb-item a {
  color: var(--slate-text);
}

.breadcrumb-item a:hover {
  color: var(--aqua);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--data-amber);
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(165deg, rgba(8, 42, 68, 0.92), rgba(4, 19, 31, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--abyss);
  background: var(--aqua);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-text);
}

.card-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-text);
}

/* ---------- stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--data-amber);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate-text);
  text-transform: uppercase;
}

/* ---------- tags ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-text);
  background: rgba(8, 42, 68, 0.6);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

button.tag {
  cursor: pointer;
}

button.tag:hover {
  color: var(--bright-white);
  border-color: var(--aqua);
}

.tag[aria-pressed="true"] {
  color: var(--abyss);
  background: var(--aqua);
  border-color: var(--aqua);
}

/* ---------- timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(6, 27, 45, 0.72);
  overflow: hidden;
}

.timeline-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(38, 42, 99, 0.34);
  border-left: 3px solid var(--indigo);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bright-white);
  text-align: left;
}

.timeline-date:hover {
  background: rgba(38, 42, 99, 0.55);
}

.timeline-date::after {
  content: "+";
  font-size: 16px;
  color: var(--aqua);
  transition: transform 0.2s var(--ease);
}

.timeline-date[aria-expanded="true"]::after {
  content: "–";
}

.timeline-items {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 12px 16px;
  border-top: 1px solid rgba(155, 179, 199, 0.12);
}

.timeline-item .mono {
  font-size: 11px;
  color: var(--aqua);
  min-width: 54px;
}

/* ---------- check card ---------- */
.check-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(11, 94, 99, 0.42), rgba(4, 19, 31, 0.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: rgba(4, 19, 31, 0.45);
  border: 1px solid rgba(155, 179, 199, 0.14);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.check-item:has(.check-input:checked) {
  border-color: var(--aqua);
  background: rgba(25, 195, 201, 0.12);
}

.check-input {
  margin-top: 5px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--action-orange);
}

.check-label {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bright-white);
}

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-m);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(25, 195, 201, 0.28), transparent 60%),
    linear-gradient(140deg, #082A44, #04131F 72%);
  border: 1px solid var(--line);
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(246, 251, 255, 0.05) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(246, 251, 255, 0.04) 0 1px, transparent 1px 54px);
  pointer-events: none;
}

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

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

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

.media-frame-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(0deg, rgba(4, 19, 31, 0.94), rgba(4, 19, 31, 0));
}

/* ---------- misc ---------- */
.section-highlight {
  scroll-margin-top: 24px;
}

@media (min-width: 1024px) {
  .section-highlight {
    scroll-margin-top: 32px;
  }
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep-blue);
  border: 1px solid var(--line-strong);
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--abyss);
  background: var(--aqua);
}

@media (min-width: 1024px) {
  .to-top {
    right: 28px;
    bottom: 26px;
  }
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- responsive header ---------- */
@media (min-width: 520px) {
  .header-inner {
    padding: 16px 22px 12px;
  }

  .brand-line {
    font-size: 16px;
  }
}

/* ---------- reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
