:root {
  color-scheme: light;
  --lake: #0E6F7E;
  --lake-deep: #083B47;
  --aqua: #00A79D;
  --ochre: #A55F2A;
  --sand: #F2E6D8;
  --paper: #F7FAF8;
  --ink: #1E2B2F;
  --blue-flag: #2E63D8;
  --red-flag: #C94A4A;
  --yellow-flag: #D9A62E;
  --green-flag: #2E8F5B;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(8, 59, 71, 0.16);
  --line-strong: rgba(8, 59, 71, 0.28);
  --shadow-soft: 0 18px 50px rgba(8, 59, 71, 0.11);
  --shadow-float: 0 12px 34px rgba(8, 59, 71, 0.14), 0 2px 8px rgba(8, 59, 71, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "HarmonyOS Sans SC", "HarmonyOS Sans", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 88% 4%, rgba(14, 111, 126, 0.12), transparent 30rem),
    radial-gradient(circle at 4% 38%, rgba(165, 95, 42, 0.09), transparent 27rem),
    linear-gradient(180deg, #FBFDFC 0%, var(--paper) 38%, #F4F8F6 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: var(--lake-deep);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

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

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

h4 {
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

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

strong,
b {
  font-weight: 800;
}

small {
  font-size: 0.82rem;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

::selection {
  color: #fff;
  background: var(--lake);
}

[hidden] {
  display: none !important;
}

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

#main-content {
  display: block;
  outline: none;
}

.site-main {
  position: relative;
  min-height: 60vh;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--sand {
  background: linear-gradient(180deg, rgba(242, 230, 216, 0.72), rgba(242, 230, 216, 0.36));
  border-block: 1px solid rgba(8, 59, 71, 0.08);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-title {
  margin: 0;
  color: var(--lake-deep);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.lede {
  max-width: 62ch;
  color: #334448;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(14, 111, 126, 0.18);
  border-radius: 999px;
  color: var(--lake-deep);
  background: rgba(14, 111, 126, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.prose {
  max-width: 72ch;
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.85;
}

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

.prose a {
  font-weight: 600;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.bento-card {
  grid-column: span 4;
  min-width: 0;
}

.bento-card--wide {
  grid-column: span 8;
}

.bento-card--tall {
  grid-row: span 2;
}

.bento-card--full {
  grid-column: 1 / -1;
}

.card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(8, 59, 71, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.card--glass {
  border-color: rgba(255, 255, 255, 0.74);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
}

.card--solid {
  background: #fff;
}

.card--ochre {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--ochre), #7D431C);
}

.card--ochre h2,
.card--ochre h3,
.card--ochre h4 {
  color: #fff;
}

.path-rail {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 34px;
}

.path-rail::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--aqua), var(--ochre));
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px 56px;
  border: 1px solid rgba(8, 59, 71, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.step-num {
  position: absolute;
  top: 17px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--lake-deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.toc-rail {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 14px 0;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 10px;
  padding-left: 16px;
  color: var(--ochre);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.toc-link {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: rgba(8, 59, 71, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc-link:hover {
  color: var(--lake-deep);
  background: rgba(14, 111, 126, 0.05);
}

.toc-link.is-active,
.toc-link[aria-current="location"] {
  color: var(--lake-deep);
  border-left-color: var(--aqua);
  font-weight: 700;
}

.media-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 59, 71, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 167, 157, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(14, 111, 126, 0.18), rgba(165, 95, 42, 0.16));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8, 59, 71, 0.2)),
    linear-gradient(115deg, transparent 49.7%, rgba(255, 255, 255, 0.26) 50%, transparent 50.3%);
}

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

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

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

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.tag--blue {
  color: #1F4CA8;
  border-color: rgba(46, 99, 216, 0.24);
  background: rgba(46, 99, 216, 0.1);
}

.tag--red {
  color: #9C3131;
  border-color: rgba(201, 74, 74, 0.24);
  background: rgba(201, 74, 74, 0.1);
}

.tag--yellow {
  color: #895F0A;
  border-color: rgba(217, 166, 46, 0.28);
  background: rgba(217, 166, 46, 0.13);
}

.tag--green {
  color: #246B46;
  border-color: rgba(46, 143, 91, 0.24);
  background: rgba(46, 143, 91, 0.1);
}

.tag--ochre {
  color: #7D431C;
  border-color: rgba(165, 95, 42, 0.22);
  background: rgba(165, 95, 42, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.7em 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  color: #fff;
  background: var(--lake-deep);
  box-shadow: 0 8px 18px rgba(8, 59, 71, 0.18);
}

.button--primary:hover {
  color: #fff;
  background: var(--lake);
}

.button--ochre {
  color: #fff;
  background: linear-gradient(135deg, var(--ochre), #7D431C);
  box-shadow: 0 8px 18px rgba(125, 67, 28, 0.2);
}

.button--ochre:hover {
  color: #fff;
  filter: brightness(1.06);
}

.button--ghost {
  color: var(--lake-deep);
  border-color: rgba(8, 59, 71, 0.16);
  background: rgba(255, 255, 255, 0.68);
}

.button--ghost:hover {
  color: var(--lake-deep);
  border-color: rgba(8, 59, 71, 0.28);
  background: #fff;
}

.button--line {
  color: var(--lake);
  border-color: rgba(14, 111, 126, 0.34);
  background: transparent;
}

.button--line:hover {
  color: var(--lake-deep);
  border-color: var(--lake);
  background: rgba(14, 111, 126, 0.06);
}

.breadcrumbs {
  margin: 0 0 20px;
  color: rgba(8, 59, 71, 0.62);
  font-size: 0.8rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: rgba(8, 59, 71, 0.26);
}

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

.breadcrumb-link:hover {
  color: var(--lake-deep);
  text-decoration: underline;
}

.breadcrumb-current {
  color: rgba(8, 59, 71, 0.7);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: clamp(10px, 1.4vw, 18px) var(--gutter) 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--lake-deep);
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  transform: translate(-50%, -160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.nav-float {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  pointer-events: auto;
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 3px 4px 3px 1px;
  border-radius: 999px;
  color: var(--lake-deep);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--lake-deep);
}

.brand-symbol {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 76% 18%, rgba(0, 167, 157, 0.9), transparent 32%),
    linear-gradient(145deg, var(--lake), var(--lake-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 6px 16px rgba(8, 59, 71, 0.18);
}

.brand-symbol::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 8px;
  left: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.56);
  border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%;
  transform: rotate(-18deg);
}

.brand-symbol::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 7px;
  left: 7px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: rotate(-24deg);
}

.brand-symbol i {
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 12px solid rgba(242, 230, 216, 0.88);
  border-left: 6px solid transparent;
}

.brand-symbol i:nth-child(1) {
  left: 5px;
  transform: rotate(-4deg);
}

.brand-symbol i:nth-child(2) {
  left: 15px;
  border-bottom-color: rgba(0, 167, 157, 0.92);
  transform: rotate(3deg);
}

.brand-symbol i:nth-child(3) {
  left: 24px;
  transform: rotate(-2deg) scale(0.82);
}

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

.brand-name {
  overflow: hidden;
  color: var(--lake-deep);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tagline {
  overflow: hidden;
  color: rgba(8, 59, 71, 0.62);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav {
  justify-self: center;
  min-width: 0;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--lake-deep);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--lake-deep);
  background: rgba(14, 111, 126, 0.09);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: var(--lake-deep);
  box-shadow: 0 7px 16px rgba(8, 59, 71, 0.22);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.nav-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ochre), #7D431C);
  box-shadow: 0 7px 16px rgba(125, 67, 28, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-feedback:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(8, 59, 71, 0.14);
  border-radius: 999px;
  color: #fff;
  background: var(--lake-deep);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--lake);
}

.nav-toggle__label {
  line-height: 1;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon i:nth-child(1) {
  top: 0;
}

.nav-toggle__icon i:nth-child(2) {
  top: 5px;
}

.nav-toggle__icon i:nth-child(3) {
  top: 10px;
}

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

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

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

.scroll-track {
  position: absolute;
  right: clamp(20%, 20vw, 40%);
  bottom: 0;
  left: clamp(20%, 20vw, 40%);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(14, 111, 126, 0.1);
  pointer-events: none;
}

.scroll-track__bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--ochre));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  overflow: clip;
  color: var(--ink);
  border-top: 1px solid rgba(8, 59, 71, 0.14);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(180deg, #F4E9DC 0%, #F2E6D8 55%, #EBDCC9 100%);
}

.footer-topo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-topo::before {
  content: "";
  position: absolute;
  top: 22%;
  right: -12%;
  bottom: -30%;
  left: -12%;
  opacity: 0.42;
  background:
    repeating-radial-gradient(ellipse at 20% 100%, transparent 0 24px, rgba(14, 111, 126, 0.12) 25px 26px, transparent 27px 48px),
    repeating-radial-gradient(ellipse at 82% 78%, transparent 0 30px, rgba(165, 95, 42, 0.09) 31px 32px, transparent 33px 58px);
  transform: rotate(-4deg);
}

.footer-topo__node {
  position: absolute;
  top: 58px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--lake);
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 5px rgba(14, 111, 126, 0.08);
}

.footer-topo__node:nth-child(1) {
  left: 12%;
}

.footer-topo__node:nth-child(2) {
  left: 54%;
  border-color: var(--ochre);
  box-shadow: 0 0 0 5px rgba(165, 95, 42, 0.08);
}

.footer-topo__node:nth-child(3) {
  left: 86%;
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) var(--gutter) 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(250px, 0.85fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.footer-lead {
  min-width: 0;
  padding-top: 5px;
}

.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  color: var(--lake-deep);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--lake-deep);
}

.footer-mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--lake-deep);
  box-shadow: 0 6px 14px rgba(8, 59, 71, 0.14);
}

.footer-mark span:first-child {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  transform: rotate(22deg) scaleX(1.3);
}

.footer-mark span:last-child {
  position: absolute;
  top: 18px;
  right: 6px;
  left: 6px;
  height: 2px;
  background: var(--aqua);
  transform: rotate(-27deg);
}

.footer-brand__text {
  display: grid;
  gap: 1px;
}

.footer-brand__name {
  color: var(--lake-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.footer-brand__sub {
  color: rgba(8, 59, 71, 0.6);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.footer-copy {
  max-width: 34ch;
  margin: 18px 0 20px;
  color: #334448;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(8, 59, 71, 0.1);
  border-radius: 999px;
  color: var(--lake-deep);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.3;
}

.status-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-flag);
  box-shadow: 0 0 0 4px rgba(46, 143, 91, 0.13);
}

.footer-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  padding-top: 8px;
}

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

.footer-index__title {
  margin: 0 0 12px;
  color: var(--ochre);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

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

.footer-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lake);
  opacity: 0.32;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--lake);
}

.footer-link:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

.footer-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 26px);
  border-radius: var(--radius-lg);
  color: #F7FAF8;
  background: linear-gradient(150deg, rgba(8, 59, 71, 0.98), rgba(14, 111, 126, 0.94));
  box-shadow: var(--shadow-soft);
}

.footer-contact::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -36px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.03), 0 0 0 36px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.footer-kicker {
  margin: 0 0 8px;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.footer-contact__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.contact-label {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.contact-value {
  display: block;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.footer-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid rgba(8, 59, 71, 0.16);
}

.footer-copyright,
.footer-icp {
  margin: 0;
  color: rgba(8, 59, 71, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-legal a {
  color: rgba(8, 59, 71, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--lake-deep);
  text-decoration: underline;
}

.back-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 1100;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: var(--lake-deep);
  box-shadow: 0 8px 20px rgba(8, 59, 71, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.74;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-top:hover,
.back-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 59, 71, 0.28);
}

.back-top__label {
  line-height: 1;
}

.back-top__icon {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
}

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

  .nav-float {
    grid-template-columns: minmax(150px, 1fr) auto auto;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 0.82rem;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.2fr);
    gap: 8px 24px;
    align-items: start;
  }

  .footer-kicker,
  .footer-contact__title {
    grid-column: 1;
  }

  .contact-list,
  .footer-note {
    grid-column: 2;
  }

  .contact-list {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    padding: 10px 14px 0;
  }

  .nav-float {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 62px;
    padding: 9px 10px 9px 12px;
    border-radius: 22px;
  }

  .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 4px 2px 0;
  }

  .brand-symbol {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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

  .brand-tagline {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 3;
    justify-self: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    background: var(--glass-strong);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.34);
    font-size: 0.92rem;
  }

  .nav-link[aria-current="page"] {
    background: var(--lake-deep);
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header[data-open="true"] .nav-toggle {
    background: var(--lake);
  }

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

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

  .nav-feedback {
    padding: 9px 11px;
    font-size: 0.76rem;
  }

  .scroll-track {
    right: 22%;
    left: 22%;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .bento-card {
    grid-column: span 6;
  }

  .bento-card--wide {
    grid-column: 1 / -1;
  }

  .bento-card--tall {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-kicker,
  .footer-contact__title,
  .contact-list,
  .footer-note {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .media-frame--wide {
    aspect-ratio: 16 / 10;
  }
}

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

  .nav-toggle {
    padding: 10px;
  }

  .nav-feedback {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

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

  .bento-card {
    grid-column: 1 / -1;
  }

  .path-rail {
    padding-left: 28px;
  }

  .path-rail::before {
    left: 11px;
  }

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

  .toc-rail {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .footer-topo__node:nth-child(2) {
    display: none;
  }

  .footer-topo__node:nth-child(1) {
    left: 18%;
  }

  .footer-topo__node:nth-child(3) {
    left: 80%;
  }
}

@media (max-width: 420px) {
  .nav-feedback {
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .brand-symbol {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

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

  .footer-status {
    align-items: flex-start;
    border-radius: var(--radius-md);
  }
}

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

  .button:hover,
  .nav-feedback:hover,
  .back-top[data-visible="true"] {
    transform: none;
  }
}
