:root {
  --deep: #0B2A4A;
  --harbor: #071B33;
  --orange: #F26A21;
  --mint: #9BD6D8;
  --sand: #E8D9C3;
  --paper: #F7F5EF;
  --graphite: #1B232C;
  --steel: #5A6875;
  --orange-soft: #FFB27A;
  --teal: #2F7F86;
  --white: #FFFDF8;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius-s: 8px;
  --radius-m: 18px;
  --radius-l: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 18px 50px rgba(7, 27, 51, .10);
  --shadow-line: 0 1px 0 rgba(155, 214, 216, .16);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.7;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.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: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 4px 14px 4px 14px;
  background: var(--orange);
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--deep);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(155, 214, 216, .18);
}

.header-wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--wrap));
  margin-inline: auto;
}

.header-utility {
  background: var(--harbor);
  border-bottom: 1px solid rgba(155, 214, 216, .16);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding-block: 5px;
}

.utility-note,
.utility-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .06em;
}

.utility-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(247, 245, 239, .76);
}

.utility-hint {
  color: var(--mint);
  opacity: .82;
}

.signal-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 106, 33, .16);
}

.command-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding-block: 11px;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px 14px 4px 14px;
  background: var(--orange);
  color: var(--deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.08;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--mint);
  opacity: .82;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(155, 214, 216, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.nav-toggle:hover {
  border-color: var(--mint);
  background: rgba(155, 214, 216, .08);
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transition: transform 180ms var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 42px;
  padding: 10px 10px;
  border-radius: var(--radius-s);
  color: rgba(247, 245, 239, .78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(155, 214, 216, .09);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(155, 214, 216, .68);
  transform: translateY(-1px);
}

.nav-label {
  display: inline-block;
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(155, 214, 216, .08);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

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

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: 6px;
  padding: 11px 17px;
  border-radius: 4px 14px 4px 14px;
  background: var(--orange);
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(242, 106, 33, .20);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.contact-cta::after {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.contact-cta:hover {
  color: var(--deep);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(155, 214, 216, .12);
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}

.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--harbor);
  color: var(--paper);
}

.footer-signal {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange) 0 16%, var(--mint) 16% 48%, rgba(155, 214, 216, .14) 48% 100%);
}

.footer-wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(38px, 6vw, 68px) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(30px, 5vw, 52px);
  border-bottom: 1px solid rgba(155, 214, 216, .18);
}

.footer-title {
  color: var(--paper);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

.footer-domain {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mint);
}

.footer-summary {
  max-width: 46ch;
  margin-top: 18px;
  color: rgba(247, 245, 239, .74);
  font-size: 15px;
  line-height: 1.8;
}

.footer-callout {
  padding: 20px;
  border: 1px solid rgba(155, 214, 216, .22);
  border-radius: 4px 22px 4px 22px;
  background: rgba(155, 214, 216, .07);
}

.footer-callout-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mint);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 4px 14px 4px 14px;
  background: var(--orange);
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.footer-cta:hover {
  color: var(--deep);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.footer-callout-note {
  margin-top: 12px;
  color: rgba(247, 245, 239, .62);
  font-size: 13px;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: .85fr .85fr 1.3fr;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(30px, 5vw, 52px);
}

.footer-col-title,
.footer-contact-title {
  margin: 0 0 14px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.footer-links {
  display: grid;
  gap: 3px;
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding: 4px 0;
  color: rgba(247, 245, 239, .78);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

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

.contact-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.contact-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
}

.contact-label {
  color: rgba(155, 214, 216, .72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.contact-value {
  color: rgba(247, 245, 239, .82);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 18px;
  padding-left: 13px;
  border-left: 2px solid var(--orange);
  color: rgba(247, 245, 239, .58);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(155, 214, 216, .18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: rgba(247, 245, 239, .56);
}

.footer-legal,
.footer-meta {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-link {
  color: rgba(247, 245, 239, .72);
  text-decoration: none;
}

.legal-link:hover {
  color: var(--orange-soft);
}

.page-shell {
  width: min(calc(100% - (var(--pad) * 2)), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(44px, 7vw, 92px);
}

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

.section--mint {
  background: var(--mint);
}

.section--deep {
  background: var(--deep);
  color: var(--paper);
}

.section--deep .lede,
.section--deep .prose {
  color: rgba(247, 245, 239, .78);
}

.section-head {
  max-width: 72ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.section--deep .eyebrow {
  color: var(--mint);
}

.display {
  max-width: 13ch;
  color: inherit;
  font-size: clamp(42px, 7.2vw, 72px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
}

.section-title {
  color: inherit;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.lede {
  max-width: 42ch;
  margin-top: 18px;
  color: var(--steel);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.prose {
  max-width: 38em;
  color: var(--graphite);
  line-height: 1.85;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  letter-spacing: -.025em;
}

.prose a {
  color: var(--teal);
}

.breadcrumbs {
  padding-block: 18px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--steel);
}

.breadcrumb-link {
  color: var(--steel);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--teal);
}

.breadcrumb-link[aria-current="page"] {
  color: var(--graphite);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px 14px 4px 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

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

.button--primary {
  background: var(--orange);
  color: var(--deep);
}

.button--primary:hover {
  background: var(--orange-soft);
  color: var(--deep);
}

.button--ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--deep);
}

.button--ghost:hover {
  background: rgba(11, 42, 74, .06);
  color: var(--deep);
}

.section--deep .button--ghost {
  color: var(--paper);
}

.section--deep .button--ghost:hover {
  background: rgba(247, 245, 239, .08);
  color: var(--paper);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(11, 42, 74, .13);
  border-radius: 4px 22px 4px 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11, 42, 74, .04);
}

.stack {
  display: grid;
  gap: 16px;
}

.meta {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
}

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(155, 214, 216, .26);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.callout {
  padding: clamp(16px, 3vw, 24px);
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--sand);
  color: var(--graphite);
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(11, 42, 74, .14);
  border-radius: 4px 22px 4px 22px;
  background:
    linear-gradient(135deg, rgba(155, 214, 216, .58), rgba(232, 217, 195, .58) 54%, rgba(242, 106, 33, .16)),
    linear-gradient(90deg, transparent 0 28%, rgba(11, 42, 74, .10) 28% 28.5%, transparent 28.5% 100%),
    var(--paper);
  box-shadow: inset 0 0 0 12px rgba(247, 245, 239, .22);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-top: 1px solid rgba(11, 42, 74, .20);
  border-left: 1px solid rgba(11, 42, 74, .16);
  background:
    repeating-linear-gradient(90deg, rgba(11, 42, 74, .08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(11, 42, 74, .06) 0 1px, transparent 1px 44px);
  transform: skewX(-8deg);
}

.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-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 3px 9px 3px 9px;
  background: rgba(7, 27, 51, .78);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 70;
  padding: 11px 14px;
  border: 0;
  border-radius: 4px 14px 4px 14px;
  background: var(--orange);
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 28px rgba(7, 27, 51, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
}

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

.to-top:hover {
  background: var(--orange-soft);
}

@media (max-width: 1080px) {
  .command-bar {
    gap: 12px;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .contact-cta {
    padding-inline: 13px;
    font-size: 13px;
  }
}

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

  .command-bar {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 12px var(--pad) 16px;
    background: var(--deep);
    border-top: 1px solid rgba(155, 214, 216, .20);
    box-shadow: 0 18px 30px rgba(7, 27, 51, .22);
  }

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

  .site-header[data-open="true"] .nav-toggle {
    border-color: var(--orange);
    background: rgba(242, 106, 33, .10);
  }

  .site-header[data-open="true"] .nav-toggle-bars i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header[data-open="true"] .nav-toggle-bars i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--mint) transparent;
  }

  .nav-link {
    min-height: 46px;
    padding: 12px 13px;
    background: rgba(155, 214, 216, .06);
    border: 1px solid rgba(155, 214, 216, .12);
    font-size: 14px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(242, 106, 33, .12);
    border-color: rgba(242, 106, 33, .40);
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .contact-cta {
    margin-left: 0;
  }

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

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

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

@media (max-width: 620px) {
  .utility-note {
    font-size: 10px;
    letter-spacing: .03em;
  }

  .command-bar {
    gap: 9px;
    min-height: 60px;
    padding-block: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

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

  .brand-domain {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .nav-toggle {
    min-height: 40px;
    padding: 7px 10px;
  }

  .nav-toggle-label {
    display: none;
  }

  .contact-cta {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 12px;
  }

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

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

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

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

  .contact-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
