:root {
  --ink-900: #071E1A;
  --ink-800: #0B2B26;
  --ink-700: #123D35;
  --ice-200: #BFE8F6;
  --ice-500: #6FB7CF;
  --paper: #F4FAF8;
  --orange: #FF7A1A;
  --amber: #FFB05C;
  --cold: #4FA3D9;
  --mist: #8AA6A0;
  --night: #04110F;
  --line: rgba(191, 232, 246, 0.18);
  --line-strong: rgba(191, 232, 246, 0.34);
  --glass: rgba(11, 43, 38, 0.62);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1380px, calc(100vw - 48px));
  --grid-gap: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 20px;
  --radius-glass: 24px;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -8%, rgba(111, 183, 207, 0.14), transparent 34rem),
    var(--ink-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn--accent:focus-visible,
.desktop-pill:focus-visible {
  outline-color: var(--ice-200);
}

:where([id]) {
  scroll-margin-top: 104px;
}

#main-content {
  scroll-margin-top: 90px;
}

.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;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 220;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 160;
  width: 100%;
  height: 2px;
  background: rgba(191, 232, 246, 0.12);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber) 48%, var(--ice-200));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-header {
  position: relative;
  z-index: 60;
  color: var(--paper);
}

.header-utility {
  background: linear-gradient(90deg, var(--night), var(--ink-900) 48%, var(--ink-800));
  border-bottom: 1px solid var(--line);
}

.header-utility__inner {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  min-height: 54px;
}

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

.brand:hover .brand-mark {
  border-color: var(--ice-200);
  background: linear-gradient(135deg, rgba(191, 232, 246, 0.32), rgba(255, 122, 26, 0.2));
}

.brand-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(191, 232, 246, 0.45);
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(135deg, rgba(191, 232, 246, 0.2), rgba(255, 122, 26, 0.1));
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-left: 1px solid var(--ice-200);
  border-bottom: 1px solid var(--orange);
  transform: skewX(-14deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ice-200);
  border-right: 1px solid var(--ice-200);
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--paper);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand-tag {
  color: var(--ice-500);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.utility-text {
  overflow: hidden;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.utility-link {
  padding: 8px 2px;
  color: rgba(244, 250, 248, 0.7);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.utility-link:hover {
  color: var(--paper);
}

.desktop-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid rgba(191, 232, 246, 0.36);
  border-radius: 999px;
  background: rgba(191, 232, 246, 0.06);
  color: var(--ice-200);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.desktop-pill:hover {
  background: var(--ice-200);
  border-color: var(--ice-200);
  color: var(--ink-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink-900);
}

.btn--accent:hover {
  border-color: var(--amber);
  background: var(--amber);
}

.btn--outline {
  border-color: rgba(191, 232, 246, 0.38);
  background: rgba(191, 232, 246, 0.04);
  color: var(--ice-200);
}

.btn--outline:hover {
  border-color: var(--ice-200);
  background: rgba(191, 232, 246, 0.12);
  color: var(--paper);
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ice-200);
}

.btn--ghost:hover {
  background: rgba(191, 232, 246, 0.08);
  color: var(--paper);
}

.btn--compact {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.header-navbar {
  position: sticky;
  top: 0;
  z-index: 55;
  border-bottom: 1px solid rgba(191, 232, 246, 0.14);
  background: rgba(7, 30, 26, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header-navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  min-height: 68px;
}

.site-header[data-scrolled="true"] .header-navbar {
  border-bottom-color: rgba(191, 232, 246, 0.26);
  background: rgba(7, 30, 26, 0.94);
}

.nav-index {
  flex: none;
  padding-right: clamp(14px, 2vw, 24px);
  border-right: 1px solid rgba(191, 232, 246, 0.22);
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-frame {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.1vw, 30px);
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 0;
  color: rgba(244, 250, 248, 0.64);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link:hover::after {
  transform: scaleX(0.7);
}

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(191, 232, 246, 0.32);
  border-radius: 999px;
  background: rgba(191, 232, 246, 0.06);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.nav-toggle:hover {
  border-color: var(--ice-200);
  background: rgba(191, 232, 246, 0.12);
}

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

.nav-toggle__lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.page-container {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(42px, 7vw, 92px);
}

.content-container {
  width: 100%;
  max-width: 880px;
}

.content-container--narrow {
  max-width: 720px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid-span-2 { grid-column: span 2; }
.grid-span-3 { grid-column: span 3; }
.grid-span-4 { grid-column: span 4; }
.grid-span-5 { grid-column: span 5; }
.grid-span-6 { grid-column: span 6; }
.grid-span-7 { grid-column: span 7; }
.grid-span-8 { grid-column: span 8; }
.grid-span-9 { grid-column: span 9; }
.grid-span-10 { grid-column: span 10; }
.grid-span-11 { grid-column: span 11; }
.grid-span-12 { grid-column: span 12; }

.section-divider {
  position: relative;
  height: clamp(48px, 6vw, 72px);
  overflow: hidden;
  border-block: 1px solid rgba(191, 232, 246, 0.16);
  background: linear-gradient(90deg, rgba(191, 232, 246, 0.03), rgba(191, 232, 246, 0.18) 48%, rgba(191, 232, 246, 0.03));
}

.section-divider::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(7, 30, 26, 0.11) 40px 41px);
  transform: skewX(-18deg);
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  transform: translateY(-50%);
}

.breadcrumbs {
  margin-bottom: 28px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(138, 166, 160, 0.55);
}

.breadcrumbs__link {
  color: var(--ice-500);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--ice-200);
}

.breadcrumbs__current {
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.display-title {
  max-width: 14ch;
  color: inherit;
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-title {
  color: inherit;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 44ch;
  color: rgba(244, 250, 248, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
}

.caption {
  color: var(--mist);
  font-size: 12px;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mono {
  font-family: var(--font-mono);
}

.text-link {
  color: var(--ice-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 232, 246, 0.34);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.light-surface {
  background: var(--paper);
  color: var(--ink-900);
}

.light-surface .display-title,
.light-surface .section-title {
  color: var(--ink-900);
}

.light-surface .lede {
  color: rgba(7, 30, 26, 0.68);
}

.light-surface .caption,
.light-surface .meta-row {
  color: rgba(7, 30, 26, 0.62);
}

.light-surface .eyebrow {
  color: var(--ink-700);
}

.light-surface .text-link {
  color: var(--ink-700);
  border-bottom-color: rgba(7, 30, 26, 0.28);
}

.light-surface .text-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-glass);
  background: linear-gradient(145deg, rgba(18, 61, 53, 0.72), rgba(7, 30, 26, 0.42));
  box-shadow: 0 18px 50px rgba(4, 17, 15, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.solid-panel {
  border: 1px solid rgba(191, 232, 246, 0.12);
  border-radius: var(--radius-card);
  background: var(--ink-700);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(191, 232, 246, 0.2);
  border-radius: 999px;
  background: rgba(191, 232, 246, 0.1);
  color: var(--ice-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
}

.tag--orange {
  border-color: rgba(255, 122, 26, 0.5);
  background: rgba(255, 122, 26, 0.14);
  color: var(--amber);
}

.data-figure {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.data-figure--orange {
  color: var(--orange);
}

.data-figure--cold {
  color: var(--cold);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 43, 38, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.filter-chip {
  appearance: none;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 250, 248, 0.66);
  font-size: 12px;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-chip:hover {
  background: rgba(191, 232, 246, 0.08);
  color: var(--paper);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink-900);
}

.image-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, var(--ink-700), var(--ink-900));
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 0;
  border: 1px solid rgba(191, 232, 246, 0.14);
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(191, 232, 246, 0.08) 22px 23px);
  transform: skewX(-12deg);
}

.image-frame::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 16%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 122, 26, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 122, 26, 0.06);
}

.image-frame--wide { aspect-ratio: 16 / 7; }
.image-frame--landscape { aspect-ratio: 16 / 9; }
.image-frame--square { aspect-ratio: 1 / 1; }
.image-frame--portrait { aspect-ratio: 3 / 4; }

.image-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(4, 17, 15, 0.72);
  color: var(--ice-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chapter-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-left: 1px solid var(--line);
}

.chapter-link {
  position: relative;
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chapter-link:hover {
  background: rgba(191, 232, 246, 0.06);
  color: var(--paper);
}

.chapter-link[aria-current="location"] {
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange);
}

.chapter-link[aria-current="location"]::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -15px;
  width: 2px;
  background: var(--orange);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(111, 183, 207, 0.1), transparent 28rem),
    var(--night);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 62%, rgba(191, 232, 246, 0.04) 62% 62.2%, transparent 62.2%),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(191, 232, 246, 0.025) 120px 121px);
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 96px) clamp(42px, 6vw, 64px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-kicker {
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.footer-brandline {
  max-width: 15ch;
  color: var(--paper);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.footer-note {
  max-width: 36ch;
  color: rgba(244, 250, 248, 0.64);
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: clamp(20px, 4vw, 48px);
}

.footer-col-title {
  margin: 0 0 18px;
  color: var(--ice-500);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.footer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: rgba(244, 250, 248, 0.72);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover {
  border-bottom-color: var(--orange);
  color: var(--ice-200);
}

.footer-contact-item {
  display: grid;
  gap: 3px;
}

.footer-contact-label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.footer-contact-value {
  color: rgba(244, 250, 248, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

.footer-contact-note {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(191, 232, 246, 0.14);
}

.footer-legal,
.footer-copy {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal-link {
  border-bottom: 1px solid transparent;
  color: rgba(244, 250, 248, 0.62);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-legal-link:hover {
  border-bottom-color: var(--ice-200);
  color: var(--ice-200);
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 232, 246, 0.34);
  border-radius: 999px;
  background: rgba(4, 17, 15, 0.86);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), visibility 0.24s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink-900);
}

.back-to-top__arrow {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.back-to-top__text {
  line-height: 1;
}

html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html[data-reveal-ready] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

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

  .header-utility__inner {
    grid-template-columns: auto 1fr;
  }

  .utility-nav {
    grid-column: 2;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: min(100% - 32px, 1380px);
  }

  .header-utility__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 54px;
    gap: 12px;
  }

  .utility-status,
  .utility-link {
    display: none;
  }

  .header-navbar__inner {
    min-height: 62px;
    gap: 12px;
  }

  .nav-index {
    padding-right: 0;
    border-right: 0;
    font-size: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-frame {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 70;
    display: none;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(11, 43, 38, 0.98);
    box-shadow: 0 24px 60px rgba(4, 17, 15, 0.38);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-frame[data-open="true"] {
    display: flex;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(191, 232, 246, 0.12);
    border-radius: 10px;
    font-size: 15px;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    padding-left: 15px;
    background: rgba(255, 122, 26, 0.12);
    box-shadow: inset 3px 0 0 var(--orange);
  }

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

  .grid-span-2,
  .grid-span-3,
  .grid-span-4,
  .grid-span-5,
  .grid-span-6,
  .grid-span-7,
  .grid-span-8,
  .grid-span-9,
  .grid-span-10,
  .grid-span-11,
  .grid-span-12 {
    grid-column: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .brand-tag {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 14px;
  }

  .footer-brandline {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }
}

@media (max-width: 480px) {
  :root {
    --shell: min(100% - 24px, 1380px);
  }

  .desktop-pill {
    display: none;
  }

  .header-utility__inner {
    min-height: 50px;
  }

  .nav-toggle__text {
    display: none;
  }

  .nav-toggle {
    padding: 9px 11px;
  }

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

  .footer-col:last-child {
    grid-column: auto;
  }

  .back-to-top {
    padding: 9px 12px;
  }
}

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

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

  .btn:hover,
  .back-to-top,
  .reveal-ready [data-reveal] {
    transform: none;
  }

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