:root {
  color-scheme: light;
  --bg: #f3f7f8;
  --surface: #fbfdfd;
  --surface-raised: #fcfefe;
  --surface-muted: #e9f0f2;
  --surface-strong: #dce7e9;
  --ink: #0b1e2b;
  --ink-soft: #425866;
  --ink-faint: #566c78;
  --line: rgba(19, 51, 65, 0.14);
  --line-strong: rgba(19, 51, 65, 0.24);
  --accent: #0a7169;
  --accent-strong: #075b55;
  --accent-soft: #d8eeea;
  --accent-text: #f7fffd;
  --nav-bg: rgba(243, 247, 248, 0.82);
  --shadow-soft: 0 24px 70px rgba(32, 70, 82, 0.12);
  --shadow-card: 0 14px 40px rgba(32, 70, 82, 0.08);
  --radius-card: 20px;
  --radius-media: 28px;
  --max-width: 1240px;
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07131b;
  --surface: #0a1923;
  --surface-raised: #0e202c;
  --surface-muted: #102733;
  --surface-strong: #132f3a;
  --ink: #edf7f7;
  --ink-soft: #adc0c7;
  --ink-faint: #8299a3;
  --line: rgba(198, 226, 228, 0.13);
  --line-strong: rgba(198, 226, 228, 0.23);
  --accent: #67d3c1;
  --accent-strong: #91e6d6;
  --accent-soft: #123b3a;
  --accent-text: #061513;
  --nav-bg: rgba(7, 19, 27, 0.84);
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(10, 113, 105, 0.08), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p,
dd,
figcaption {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

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

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

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(13, 38, 49, 0.06);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  white-space: nowrap;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-sub {
  color: var(--ink-faint);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  min-width: 0;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}

.theme-track {
  display: flex;
  align-items: center;
  width: 34px;
  height: 20px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
}

.theme-track span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 220ms var(--ease), background 220ms ease;
}

html[data-theme="dark"] .theme-track span {
  background: var(--accent);
  transform: translateX(14px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(10, 113, 105, 0.18);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 200ms var(--ease), background 200ms ease, border-color 200ms ease;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(48px, 7vw, 92px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9.7em;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.065em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-line-accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 35em;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link,
.inline-link,
.policy-links a,
.company-links a {
  color: var(--ink);
  font-weight: 650;
  transition: color 180ms ease;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.text-link span,
.inline-link span,
.policy-links span {
  color: var(--accent);
  transition: transform 180ms var(--ease);
}

.text-link:hover,
.inline-link:hover,
.policy-links a:hover,
.company-links a:hover {
  color: var(--accent);
}

.text-link:hover span,
.inline-link:hover span,
.policy-links a:hover span {
  transform: translate(2px, -2px);
}

.hero-media {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.609 / 1;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 260ms ease;
}

.hero-media:hover img {
  transform: scale(1.015);
}

html[data-theme="dark"] .hero-media img {
  filter: brightness(0.74) saturate(0.9);
}

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 370px;
  margin-left: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(238, 246, 248, 0.78);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #173543;
  font-size: 12px;
  line-height: 1.5;
}

html[data-theme="dark"] .hero-media figcaption {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(5, 17, 25, 0.76);
  color: #d6e8eb;
}

.identity-strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.identity-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr 1fr;
}

.identity-grid > div {
  min-width: 0;
  padding: 24px clamp(18px, 2.5vw, 34px);
  border-right: 1px solid var(--line);
}

.identity-grid > div:first-child {
  padding-left: 0;
}

.identity-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.identity-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.identity-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.section {
  padding: clamp(88px, 11vw, 150px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-heading h2,
.boundary-title h2,
.delivery-intro h2,
.security-copy h2,
.pricing-copy h2,
.company-heading h2,
.principle-main h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.section-heading p,
.boundary-title p,
.delivery-intro p,
.security-copy > p,
.pricing-copy > p,
.company-heading p,
.principle-main > p {
  max-width: 610px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  grid-template-rows: repeat(2, minmax(220px, auto)) auto;
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.service-card h3 {
  font-size: clamp(25px, 2.5vw, 36px);
}

.service-card p {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.service-primary {
  display: grid;
  grid-row: span 2;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 30px;
  min-height: 458px;
  padding: clamp(30px, 4vw, 54px);
  background:
    linear-gradient(155deg, transparent 45%, rgba(10, 113, 105, 0.1)),
    var(--surface-raised);
}

.service-primary::before {
  content: "";
  position: absolute;
  top: -90px;
  left: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 26px var(--surface-muted), 0 0 0 27px var(--line);
  opacity: 0.72;
}

.service-code {
  position: relative;
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: clamp(72px, 10vw, 138px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-list li,
.pricing-factors span {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1;
}

.service-data,
.service-ops {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.service-data {
  background: var(--accent-soft);
}

.service-ops {
  background:
    repeating-linear-gradient(135deg, transparent 0 15px, rgba(10, 113, 105, 0.055) 15px 16px),
    var(--surface-raised);
}

.service-index {
  margin-bottom: auto;
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service-support {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr minmax(0, 2.1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 30px clamp(30px, 4vw, 52px);
  background: var(--surface-muted);
}

.service-support .service-index {
  margin: 0;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.boundary {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.boundary-title {
  max-width: 760px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--line);
}

.boundary-columns article {
  min-height: 310px;
  padding: clamp(30px, 4vw, 54px);
  background: var(--surface-raised);
}

.boundary-columns article:last-child {
  background: var(--surface-muted);
}

.boundary-columns span,
.principle-stack article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.boundary-columns h3 {
  max-width: 12em;
  margin-top: 72px;
  font-size: clamp(27px, 3vw, 40px);
}

.boundary-columns p {
  max-width: 31em;
  margin-top: 18px;
  color: var(--ink-soft);
}

.boundary-note {
  max-width: 760px;
  margin: 30px 0 0 auto;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
}

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(54px, 9vw, 120px);
}

.delivery-intro {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.delivery-list {
  counter-reset: delivery;
}

.delivery-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: delivery;
}

.delivery-list li:first-child {
  padding-top: 0;
}

.delivery-list h3 {
  font-size: 28px;
}

.delivery-list p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--ink-soft);
}

.delivery-list li > span {
  align-self: start;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 11px;
  white-space: nowrap;
}

.access-principles {
  padding-top: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.principle-main,
.principle-stack article {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.principle-main {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  background: var(--accent-soft);
}

.principle-word {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  color: color-mix(in srgb, var(--accent) 18%, transparent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: clamp(180px, 30vw, 400px);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
}

.principle-main h2,
.principle-main p {
  position: relative;
  z-index: 1;
}

.principle-stack {
  display: grid;
  gap: 18px;
}

.principle-stack article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 261px;
  padding: 32px;
  background: var(--surface-raised);
}

.principle-stack h3 {
  margin-top: 46px;
  font-size: 28px;
}

.principle-stack p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.security {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 94px);
}

.security-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: #0a1620;
  box-shadow: var(--shadow-soft);
}

.security-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 260ms ease;
}

.security-media:hover img {
  transform: scale(1.02);
}

html[data-theme="light"] .security-media img {
  filter: saturate(0.88) brightness(1.04);
}

.security-list {
  margin-top: 36px;
}

.security-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.security-list strong {
  font-size: 14px;
}

.security-list span {
  color: var(--ink-soft);
  font-size: 14px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.policy-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(50px, 8vw, 110px);
}

.pricing-copy {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.pricing-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pricing-list {
  border-top: 1px solid var(--line-strong);
}

.pricing-item {
  border-bottom: 1px solid var(--line-strong);
}

.pricing-item button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.pricing-item button span:first-child {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.pricing-item button span:last-child {
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
}

.pricing-panel {
  overflow: hidden;
}

.pricing-panel p {
  max-width: 42em;
  padding: 0 56px 28px 0;
  color: var(--ink-soft);
}

.company {
  padding-top: 0;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background:
    linear-gradient(145deg, transparent 58%, rgba(10, 113, 105, 0.08)),
    var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.company-heading p {
  font-size: 15px;
}

.company-details > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1.58fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: var(--ink-faint);
  font-size: 12px;
}

.company-details dd {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.company-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: -12px;
}

.company-links a {
  min-height: 36px;
  font-size: 13px;
}

.site-footer {
  padding: 54px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 46px 80px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid > div:first-child > p {
  color: var(--ink-soft);
  font-size: 13px;
}

.trademark-note {
  max-width: 690px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.8;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11px;
}

.footer-meta a {
  transition: color 180ms ease;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Shared legal pages */
.legal-main {
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 11vw, 150px);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.45fr);
  align-items: end;
  gap: 56px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero h1 {
  font-size: clamp(48px, 7vw, 82px);
}

.legal-hero p {
  color: var(--ink-soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
  margin-top: 64px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
}

.legal-toc strong {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-faint);
  font-size: 13px;
  transition: color 180ms ease;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-content section {
  padding: 0 0 46px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3vw, 36px);
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.legal-content li {
  position: relative;
  padding-left: 18px;
}

.legal-content li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-callout {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  color: var(--ink) !important;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .hero-media figcaption {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: var(--bg);
  }

  .hero-media figcaption {
    background: var(--surface-raised);
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    gap: 18px;
  }

  .site-nav {
    gap: 18px;
  }

  .brand-sub,
  .theme-toggle > span:last-child {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(410px, 1.14fr);
    gap: 42px;
  }

  .identity-grid {
    grid-template-columns: 1.25fr 1fr 1.15fr 0.9fr;
  }

  .service-primary {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .service-code {
    margin-bottom: auto;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    width: 100vw;
    height: calc(100dvh - var(--header-height));
    padding: 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 50px rgba(13, 38, 49, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms var(--ease);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 21px;
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: inline-grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-raised);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 200ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3.75px) rotate(45deg);
  }

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

  .nav-shell {
    display: flex;
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 46px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: 710px;
  }

  .hero-media {
    width: 100%;
    min-width: 0;
    max-width: 760px;
  }

  .hero-media img {
    aspect-ratio: 3 / 1;
    object-position: 70% 58%;
  }

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

  .identity-grid > div,
  .identity-grid > div:first-child,
  .identity-grid > div:last-child {
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .identity-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .identity-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .service-primary {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
    min-height: 390px;
  }

  .service-support {
    grid-template-columns: auto 1fr;
  }

  .service-support .inline-link {
    grid-column: 2;
  }

  .delivery-layout,
  .pricing-layout,
  .company-panel {
    grid-template-columns: 1fr;
  }

  .delivery-intro,
  .pricing-copy {
    position: static;
  }

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

  .principle-main {
    min-height: 440px;
  }

  .principle-stack {
    grid-template-columns: 1fr 1fr;
  }

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

  .security-media {
    max-width: 720px;
  }

  .company-links {
    grid-column: 1;
    margin-top: 0;
  }

  .legal-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 50px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --radius-card: 16px;
    --radius-media: 20px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .theme-track {
    width: 32px;
  }

  html[data-theme="dark"] .theme-track span {
    transform: translateX(12px);
  }

  .hero {
    padding: 38px 0 40px;
  }

  .hero-grid {
    gap: 30px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .text-link {
    min-height: 48px;
  }

  .hero-media figcaption {
    position: static;
    max-width: none;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface-raised);
    color: var(--ink-soft);
  }

  .hero-media img {
    aspect-ratio: 16 / 7;
    object-position: 70% 58%;
  }

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

  .identity-grid > div,
  .identity-grid > div:first-child,
  .identity-grid > div:last-child,
  .identity-grid > div:nth-child(2n),
  .identity-grid > div:nth-last-child(-n + 2) {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-grid > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading,
  .boundary-title {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .boundary-title h2,
  .delivery-intro h2,
  .security-copy h2,
  .pricing-copy h2,
  .company-heading h2,
  .principle-main h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .section-heading p,
  .boundary-title p,
  .delivery-intro p,
  .security-copy > p,
  .pricing-copy > p,
  .company-heading p,
  .principle-main > p {
    font-size: 15px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-primary,
  .service-data,
  .service-ops,
  .service-support {
    grid-column: auto;
    min-height: auto;
    padding: 28px;
  }

  .service-primary {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .service-code {
    font-size: 78px;
  }

  .service-data,
  .service-ops {
    min-height: 270px;
  }

  .service-support {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .service-support .inline-link {
    grid-column: auto;
  }

  .boundary-columns {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .boundary-columns article {
    min-height: 270px;
    padding: 28px;
  }

  .boundary-columns h3 {
    margin-top: 54px;
  }

  .boundary-note {
    margin-top: 24px;
  }

  .delivery-layout,
  .pricing-layout {
    gap: 44px;
  }

  .delivery-list li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .delivery-list li > span {
    width: fit-content;
  }

  .access-principles {
    padding-top: 0;
  }

  .principle-main {
    min-height: 410px;
    padding: 28px;
  }

  .principle-word {
    font-size: 190px;
  }

  .principle-stack {
    grid-template-columns: 1fr;
  }

  .principle-stack article {
    min-height: 240px;
    padding: 28px;
  }

  .security-grid {
    gap: 42px;
  }

  .security-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pricing-panel p {
    padding-right: 0;
  }

  .company-panel {
    gap: 38px;
    padding: 28px;
  }

  .company-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .footer-meta {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .legal-main {
    padding-top: 44px;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 38px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 42px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .legal-toc strong {
    width: 100%;
    margin-bottom: 4px;
  }

  .legal-toc a {
    padding: 4px 0;
  }
}

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

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

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

@media print {
  .site-header,
  .theme-toggle,
  .menu-toggle,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 36px 0;
  }

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