/*
 * Orbit Development Group: shared stylesheet.
 * The homepage and the pages under /tools/ all load this file.
 *   1. Tokens          shared
 *   2. Base            shared
 *   3. Site chrome     shared header, navigation, footer
 *   4. Homepage        everything below the header on the homepage
 *   5. Motion          entrance and scroll reveal
 *   6. Responsive
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --page: #f7f6ef;
  --surface: #fcfbf7;
  --surface-alt: #efeee6;
  --ink: #11271d;
  --text: #3f4a42;
  --muted: #68716a;
  --line: #d8d9cf;
  --accent: #0f503b;
  --accent-deep: #0a3d2d;
  --accent-soft: #dce8dd;
  --signal: #1faa6b;
  --paper-shadow: rgba(27, 45, 35, .10);
  --button-text: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, "Cascadia Mono", Consolas, "Roboto Mono", "Noto Sans Mono", "DejaVu Sans Mono", "Liberation Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
  --serif: Georgia, "Times New Roman", serif;
  /* The dark "stage" panels keep the same colours in both themes. */
  --stage: #0b1410;
  --stage-ink: #f3f6ef;
  --stage-text: #b9c5ba;
  --stage-muted: #8d9b90;
  --stage-line: rgba(243, 246, 239, .13);
  --stage-signal: #63e0a4;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container-max: 1320px;
  --gutter: 48px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111813;
  --surface: #172019;
  --surface-alt: #1d2a21;
  --ink: #edf2e9;
  --text: #c7d0c5;
  --muted: #9eaa9e;
  --line: #334337;
  --accent: #b9d7bf;
  --accent-deep: #d3e6d3;
  --accent-soft: #273d2d;
  --signal: #63e0a4;
  --paper-shadow: rgba(0, 0, 0, .25);
  --button-text: #122218;
  --stage: #0a0f0c;
}

/* 2. Base ------------------------------------------------------------------ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.35; }
::selection { color: var(--page); background: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.container {
  width: min(var(--container-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 18px;
  z-index: 60;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--page);
}
.skip-link:focus { top: 12px; }
.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;
}
/* Small mono label used at the top of the tool pages. */
.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

/* 3. Site chrome ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  transition: border-color .3s ease;
}
.site-header[data-at-top] { border-bottom-color: transparent; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  display: block;
  width: 35px;
  height: 30px;
  flex: 0 0 35px;
  color: var(--accent);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-mark::after {
  inset: 9px 0;
  transform: rotate(-24deg);
}
.brand-mark span {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
  color: var(--ink);
  font-size: 14px;
}
.site-nav a { white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover { color: var(--accent); }
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 16px 7px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  transition: background-color .25s ease, color .25s ease;
}
.site-nav a.nav-contact:hover { background: var(--accent); color: var(--button-text); }
.nav-contact span {
  font-size: 15px;
  line-height: 1;
  transition: transform .35s var(--ease-out);
}
.nav-contact:hover span { transform: translate(2px, -2px); }
.header-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}
.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.language-link:hover { color: var(--ink); }
.language-link[aria-current="page"] { background: var(--surface-alt); color: var(--ink); }
.theme-toggle,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover,
.nav-toggle:hover { border-color: var(--ink); }
.theme-symbol { display: flex; width: 17px; height: 17px; }
.theme-icon { display: none; width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-icon-sun,
:root[data-theme="light"] .theme-icon-moon { display: block; }
.theme-toggle [data-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 4.25px; transform: rotate(-45deg); }

.site-footer {
  padding-block: 24px;
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-service-link,
.footer-filing-link { color: var(--accent); }
.footer-service-link:hover,
.footer-filing-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 4. Homepage -------------------------------------------------------------- */
.home {
  font-size: 16px;
  line-height: 1.7;
}
.home h1, .home h2, .home h3, .home h4 { text-wrap: balance; }
.home p { text-wrap: pretty; }
.home summary { list-style: none; }
.home summary::-webkit-details-marker { display: none; }

/* Header: the navigation folds into a panel until there is room for it. */
.home .header-inner {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
}
.home .header-tools { margin-left: auto; }
.home .brand { min-width: 0; }
.home .brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home .header-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: 6px max(var(--gutter), calc((100% - var(--container-max)) / 2)) 26px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  box-shadow: 0 30px 50px -30px rgba(17, 39, 29, .3);
}
.home .site-header.is-menu-open .header-menu { display: flex; }
.home .header-menu .site-nav {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  font-size: 17px;
}
.home .header-menu .site-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}
.home .header-menu .site-nav a.nav-contact {
  justify-content: center;
  min-height: 50px;
  margin-top: 18px;
  border-bottom: 0;
}
.home .header-menu .language-switcher { align-self: flex-start; }
.home .site-nav a.is-active { color: var(--accent); }
/* The folded menu needs JavaScript to open; without it the links stay visible in a scrolling row. */
html:not(.js) .home .header-inner { flex-wrap: wrap; row-gap: 0; }
html:not(.js) .home .header-menu {
  position: static;
  display: flex;
  flex: 1 0 100%;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  max-height: none;
  overflow-x: auto;
  padding: 0 0 10px;
  border-bottom: 0;
  background: none;
  box-shadow: none;
}
html:not(.js) .home .header-menu .site-nav {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
html:not(.js) .home .header-menu .site-nav a {
  display: inline-flex;
  min-height: 38px;
  border-bottom: 0;
}
html:not(.js) .home .header-menu .site-nav a.nav-contact { margin-top: 0; }
html:not(.js) .home .header-menu .language-switcher { flex: 0 0 auto; align-self: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn > span {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform .4s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--button-text); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:hover > span { transform: translate(3px, -3px); }
.btn-ghost {
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:hover > span { transform: translateX(4px); }

/* Intro */
.intro {
  position: relative;
  padding-block: clamp(32px, 4.4vw, 60px) clamp(40px, 5.4vw, 80px);
}
/* The lede and actions sit beside the headline when it leaves room, below it otherwise. */
.intro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(20px, 2.6vw, 36px) clamp(32px, 4vw, 56px);
}
.intro-kicker {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--signal);
}
.intro-title {
  flex: 0 1 auto;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(40px, 12.2vw, 58px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.1;
}
html[lang="en"] .intro-title {
  font-size: clamp(33px, 9.6vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.06;
}
.title-line {
  display: block;
  margin-block: -.06em -.14em;
  padding-block: .06em .14em;
  overflow: hidden;
}
.title-line > span { display: block; }
.intro-aside {
  display: flex;
  flex: 1 1 380px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 32px;
  min-width: 0;
  padding-bottom: clamp(2px, .8vw, 12px);
}
.intro-lede {
  flex: 1 1 300px;
  max-width: 30em;
  color: var(--text);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  text-wrap: balance;
}
.intro-actions {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 12px;
}
.intro-actions .btn { flex: 1 1 auto; }

/* Stage: the dark showcase panel under the headline */
.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(32px, 4vw, 54px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stage);
  color: var(--stage-text);
  box-shadow: 0 40px 80px -48px rgba(11, 20, 16, .55);
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.stage::before {
  background:
    radial-gradient(46% 72% at 0% 100%, rgba(15, 80, 59, .5), transparent 72%),
    linear-gradient(180deg, #0c1310, #080c0a);
}
.stage::after {
  background-image:
    linear-gradient(var(--stage-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(70% 90% at 70% 44%, #000, transparent 76%);
  mask-image: radial-gradient(70% 90% at 70% 44%, #000, transparent 76%);
}
.stage-visual {
  position: relative;
  grid-row: 1;
  height: clamp(250px, 74vw, 400px);
  margin: 0;
}
.stage-artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 116%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: translate(-50%, -50%);
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.stage-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 132%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-w) * 1%);
  height: calc(var(--orbit-h) * 1%);
  margin: calc(var(--orbit-h) * -.5%) 0 0 calc(var(--orbit-w) * -.5%);
  border: 1px solid rgba(243, 246, 239, .15);
  border-radius: 50%;
  transform: rotate(var(--orbit-tilt));
  transition: border-color .6s ease;
}
.orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--stage-signal);
  box-shadow: 0 0 14px var(--stage-signal);
  opacity: .5;
  transition: opacity .6s ease;
}
.orbit-a { --orbit-w: 100; --orbit-h: 36; --orbit-tilt: -24deg; --orbit-time: 96s; }
.orbit-b { --orbit-w: 84; --orbit-h: 30; --orbit-tilt: 58deg; --orbit-time: 128s; }
.orbit-c { --orbit-w: 62; --orbit-h: 62; --orbit-tilt: 12deg; --orbit-time: 160s; }
.stage[data-active="hardware"] .orbit-a,
.stage[data-active="embedded"] .orbit-b,
.stage[data-active="agent"] .orbit-c { border-color: rgba(99, 224, 164, .62); }
.stage[data-active="hardware"] .orbit-a i,
.stage[data-active="embedded"] .orbit-b i,
.stage[data-active="agent"] .orbit-c i { opacity: 1; }
.stage-copy {
  display: flex;
  grid-row: 2;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: 6px 22px 26px;
}
.stage-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stage-muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stage-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: 0 0 18px;
  background: var(--stage-signal);
}
.stage-text { transition: opacity .18s ease, transform .18s ease; }
.stage-text.is-swapping { opacity: 0; transform: translateY(6px); }
.stage-label {
  color: var(--stage-ink);
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.stage-description {
  max-width: 27em;
  margin-top: 14px;
  color: var(--stage-text);
  font-size: 16px;
  line-height: 1.75;
}
.scene-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scene-controls button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid var(--stage-line);
  border-radius: 999px;
  background: transparent;
  color: var(--stage-text);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.scene-controls button:hover { border-color: rgba(243, 246, 239, .42); color: var(--stage-ink); }
.scene-controls button[aria-pressed="true"] {
  border-color: var(--stage-ink);
  background: var(--stage-ink);
  color: #0b1410;
}
.scene-controls button:focus-visible { outline-color: var(--stage-signal); }
.module-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}
.scene-controls button[aria-pressed="true"] .module-dot { background: #0f7a4c; opacity: 1; }
.stage-tags {
  display: grid;
  grid-row: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--stage-line);
  list-style: none;
}
.stage-tags li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 15px 22px;
  color: var(--stage-text);
  font-size: 14px;
  line-height: 1.4;
}
.stage-tags li:nth-child(even) { border-left: 1px solid var(--stage-line); }
.stage-tags li:nth-child(n + 3) { border-top: 1px solid var(--stage-line); }
.stage-tag-index {
  color: var(--stage-signal);
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
}

/* Technology ticker */
.ticker {
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: flex; width: max-content; }
.ticker-group {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker-group li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  color: var(--muted);
  font: 500 13px/1.4 var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker-group li::after {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}

/* Section scaffolding */
.section {
  padding-block: clamp(72px, 9vw, 132px);
  scroll-margin-top: calc(16px - clamp(72px, 9vw, 132px));
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 2.8vw, 38px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-index { color: var(--accent); font-weight: 600; }
.section-index::after {
  content: "/";
  margin-left: 12px;
  color: var(--line);
  font-weight: 400;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(36px, 4.8vw, 68px);
}
.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.08;
}
html[lang="en"] .section-title { letter-spacing: -.04em; }
.section-lede {
  flex: 0 1 30em;
  max-width: 30em;
  padding-bottom: .4em;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .6em;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .2s ease;
}
.section-link > span:last-child { transition: transform .4s var(--ease-out); }
.section-link:hover { color: var(--accent); }
.section-link:hover > span:last-child { transform: translateX(4px); }
.section-prose {
  max-width: 32em;
  margin-top: clamp(20px, 2.4vw, 32px);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}
.section-prose p + p { margin-top: 1em; }

/* Disclosure toggle shared by project, capability and term details */
.toggle-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: background-size .3s var(--ease), border-color .25s ease, transform .5s var(--ease-out);
}
.home summary:hover .toggle-icon { border-color: var(--ink); }
.home details[open] > summary .toggle-icon {
  background-size: 10px 1.5px, 1.5px 0;
  transform: rotate(180deg);
}

/* Projects */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 5.4vw, 80px) clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.work-card { min-width: 0; container-type: inline-size; }
.work-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  aspect-ratio: 16 / 10;
}
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 39, 29, .1);
  border-radius: inherit;
  pointer-events: none;
}
.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.work-body { padding-top: 22px; }
.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.work-index { color: var(--accent); font-weight: 600; }
.work-title {
  margin-top: 12px;
  font-size: clamp(23px, 2vw, 28px);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.work-subtitle {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.work-summary {
  max-width: 36em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 26px;
  margin-top: 14px;
}
.work-details { min-width: 0; }
.work-details[open] { flex-basis: 100%; }
.work-details > summary,
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color .2s ease;
}
.work-details > summary:hover,
.work-link:hover { color: var(--accent); }
.work-link > span:last-child {
  font-size: 16px;
  transition: transform .4s var(--ease-out);
}
.work-link:hover > span:last-child { transform: translate(2px, -2px); }
.work-details-body {
  padding-block: 12px 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}
.work-details-body > p { max-width: 40em; }
.work-facts {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.work-facts > div {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.work-facts dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.work-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
@container (min-width: 520px) {
  .work-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
    gap: 4px 22px;
  }
  .work-facts dd { margin-top: 0; }
}
.empty-projects {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 18px;
}
.empty-projects small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* Team */
.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.team-directory { min-width: 0; }
.team-directory-label {
  margin-bottom: 16px;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .3s ease, transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.team-card-index {
  position: absolute;
  top: clamp(22px, 2.2vw, 28px);
  right: clamp(22px, 2.2vw, 28px);
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
}
.team-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 28px;
}
.team-avatar-frame {
  position: relative;
  width: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-alt);
  aspect-ratio: 1;
}
.team-avatar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 39, 29, .12);
  border-radius: inherit;
  pointer-events: none;
}
.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card-heading { min-width: 0; }
.team-card h3 {
  overflow-wrap: anywhere;
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.team-role {
  margin-top: 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.team-credentials {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.team-focus {
  flex: 1 0 auto;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.team-tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

/* Capabilities */
.capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.capability-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: -1px 0 0 -1px;
  padding: clamp(24px, 2.6vw, 36px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: background-color .35s ease;
}
.capability-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(26px, 3.2vw, 44px);
}
.capability-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.capability-icon svg { width: 24px; height: 24px; }
.capability-index {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
}
.capability-card h3 {
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1.35;
}
.capability-description {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}
.capability-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.capability-tech li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: 500 12px/1.5 var(--mono);
}
.capability-details { padding-top: 22px; }
/* Keep the toggles on one line while every card in the grid is closed. */
.capability-grid:not(:has(details[open])) .capability-details { margin-top: auto; }
.capability-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color .2s ease;
}
.capability-details > summary:hover { color: var(--accent); }
.capability-facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-top: 14px;
}
.capability-facts > div + div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.capability-facts dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.capability-facts dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Delivery strip */
.delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: clamp(26px, 3.4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.delivery-kicker {
  color: var(--accent);
  font: 600 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.delivery-title {
  margin-top: 10px;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.delivery-lede {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}
.delivery-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: delivery;
}
.delivery-list li {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 80, 59, .28);
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  counter-increment: delivery;
}
.delivery-list li::before {
  content: counter(delivery, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 600 12px/1 var(--mono);
  letter-spacing: .12em;
}
.delivery-list h4 { font-size: 17px; line-height: 1.4; }
.delivery-list p {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

/* Process */
.mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(36px, 5vw, 76px);
}
.mode-index {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  transition: color .45s var(--ease);
}
.mode-icon {
  display: flex;
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: color .45s var(--ease);
}
.mode-icon svg { width: 32px; height: 32px; }
.mode-card h3 {
  font-size: clamp(21px, 1.9vw, 26px);
  letter-spacing: -.03em;
  line-height: 1.3;
  transition: color .45s var(--ease);
}
.mode-card p {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  transition: color .45s var(--ease);
}
.terms {
  margin-top: clamp(36px, 4.6vw, 64px);
  border-top: 1px solid var(--line);
}
.term { border-bottom: 1px solid var(--line); }
.term > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-block: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s ease;
}
.term > summary:hover { color: var(--accent); }
.term-index {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
}
.term-title {
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.term-copy {
  max-width: 46em;
  padding: 0 0 26px 50px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}
.term-copy p + p { margin-top: .8em; }

/* Contact */
.contact {
  padding-bottom: clamp(56px, 7vw, 104px);
  scroll-margin-top: 12px;
}
.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 5.6vw, 84px);
  border-radius: var(--radius-lg);
  background: var(--stage);
  color: var(--stage-text);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(122, 176, 146, .2), transparent 70%),
    radial-gradient(60% 90% at 0% 100%, rgba(15, 80, 59, .55), transparent 72%),
    linear-gradient(180deg, #0e1914, #080e0b);
}
.contact-orbits {
  position: absolute;
  top: 50%;
  right: -14%;
  z-index: -1;
  width: min(78%, 900px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.contact-orbits .orbit { border-color: rgba(243, 246, 239, .2); }
.contact-orbits .orbit i { opacity: .9; }
.contact .section-kicker {
  margin-bottom: clamp(18px, 2.2vw, 28px);
  padding-top: 0;
  border-top: 0;
  color: var(--stage-muted);
}
.contact .section-index { color: var(--stage-signal); }
.contact .section-index::after { color: var(--stage-line); }
.contact-title {
  color: var(--stage-ink);
  font-size: clamp(34px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.08;
}
html[lang="en"] .contact-title { letter-spacing: -.04em; }
.contact-lede {
  max-width: 30em;
  margin-top: clamp(16px, 2vw, 24px);
  color: var(--stage-text);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
}
.contact-method { min-width: 0; }
.contact-method-label {
  display: block;
  color: var(--stage-muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding-block: 18px;
  border-block: 1px solid var(--stage-line);
  color: var(--stage-ink);
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.3;
  transition: border-color .3s ease;
}
.contact-email > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.contact-email:hover { border-color: rgba(243, 246, 239, .4); }
.contact-email:focus-visible { outline-color: var(--stage-signal); }
.contact-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--stage-signal);
  color: #0b1410;
  font-size: 22px;
  line-height: 1;
  transition: transform .5s var(--ease-out);
}
.contact-email:hover .contact-arrow { transform: rotate(45deg); }
.contact-note {
  margin-top: 16px;
  color: var(--stage-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Footer */
.home .site-footer { padding-block: 28px 34px; font-size: 13px; }
.footer-brand { color: var(--ink); font-weight: 600; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: color .2s ease;
}
.footer-top:hover { color: var(--accent); }

/* Dark theme adjustments */
:root[data-theme="dark"] .stage,
:root[data-theme="dark"] .contact-panel { box-shadow: inset 0 0 0 1px var(--stage-line); }
:root[data-theme="dark"] .work-image { filter: brightness(.88) saturate(.94); }
:root[data-theme="dark"] .work-media::after,
:root[data-theme="dark"] .team-avatar-frame::after { border-color: rgba(237, 242, 233, .12); }
:root[data-theme="dark"] .home .header-menu { box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }

/* Hover refinements only where a pointer can hover */
@media (hover: hover) {
  .work-card:hover .work-image { transform: scale(1.035); }
  .team-card:hover {
    border-color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: 0 26px 44px -30px var(--paper-shadow), 0 2px 6px var(--paper-shadow);
    transform: translateY(-4px);
  }
  .capability-card:hover { background: var(--surface); }
  .mode-card:hover { border-color: var(--ink); background: var(--ink); }
  .mode-card:hover h3 { color: var(--page); }
  .mode-card:hover p,
  .mode-card:hover .mode-index { color: var(--page); opacity: .78; }
  .mode-card:hover .mode-icon { color: var(--page); }
}

/* 5. Motion ---------------------------------------------------------------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
    transform .9s var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal-ready.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { transform: translateY(112%); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(40px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes orbit-spin {
  from { transform: rotate(var(--orbit-tilt)); }
  to { transform: rotate(calc(var(--orbit-tilt) + 360deg)); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 170, 107, .45); }
  55% { box-shadow: 0 0 0 7px rgba(31, 170, 107, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-kicker { animation: fade-up .8s var(--ease-out) both; }
  .title-line > span { animation: rise 1.05s var(--ease-out) .1s both; }
  .title-line:nth-child(2) > span { animation-delay: .2s; }
  .title-line:nth-child(3) > span { animation-delay: .3s; }
  .title-line:nth-child(4) > span { animation-delay: .4s; }
  .intro-lede { animation: fade-up .9s var(--ease-out) .42s both; }
  .intro-actions { animation: fade-up .9s var(--ease-out) .52s both; }
  .stage { animation: stage-in 1.25s var(--ease-out) .3s both; }
  .status-dot { animation: pulse 2.8s ease-out infinite; }
  .orbit { animation: orbit-spin var(--orbit-time, 120s) linear infinite; }
  .orbit-b { animation-direction: reverse; }
  .ticker-track { animation: ticker 110s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .home { interpolate-size: allow-keywords; }
    .home details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
    }
    .home details[open]::details-content { block-size: auto; }
  }
}

/* 6. Responsive ------------------------------------------------------------ */
@media (min-width: 561px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-actions { flex: 0 1 auto; }
  .intro-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 641px) {
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
  .intro-title {
    font-size: clamp(62px, 8.2vw, 124px);
    letter-spacing: -.055em;
    line-height: 1.05;
  }
  html[lang="en"] .intro-title {
    font-size: clamp(46px, 5.8vw, 86px);
    letter-spacing: -.045em;
    line-height: 1.04;
  }
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: clamp(430px, 41vw, 590px);
  }
  .stage-copy {
    grid-column: 1;
    grid-row: 1;
    gap: 32px;
    padding: clamp(28px, 3.6vw, 52px);
  }
  .stage-visual {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 320px;
  }
  .stage-artwork { height: 112%; }
  .stage-tags {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stage-tags li {
    padding: 18px clamp(16px, 2.2vw, 30px);
    border-top: 0;
  }
  .stage-tags li:nth-child(n + 3) { border-top: 0; }
  .stage-tags li + li { border-left: 1px solid var(--stage-line); }
  .stage-tags li:first-child { padding-left: clamp(28px, 3.6vw, 52px); }
  .mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card:nth-child(even) { margin-top: clamp(40px, 6vw, 72px); }
  .term > summary { grid-template-columns: clamp(56px, 7vw, 104px) minmax(0, 1fr) auto; gap: 16px; min-height: 84px; }
  .term-copy { padding: 0 60px 30px calc(clamp(56px, 7vw, 104px) + 16px); }
}
@media (min-width: 901px) {
  .contact-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .delivery { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
@media (min-width: 1001px) {
  .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .team-intro { position: sticky; top: 112px; }
}
@media (min-width: 1101px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-card:nth-child(even) { margin-top: 0; }
  .work-card:nth-child(3n + 2) { margin-top: clamp(40px, 4.4vw, 64px); }
}
/* Inline navigation: Chinese labels fit from 1100px, the longer English ones from 1360px. */
@media (min-width: 1100px) {
  html:not([lang="en"]) .home .header-menu {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-bottom: 0;
    background: none;
    box-shadow: none;
  }
  html:not([lang="en"]) .home .header-menu .site-nav {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(16px, 1.9vw, 30px);
    font-size: 14px;
  }
  html:not([lang="en"]) .home .header-menu .site-nav a {
    display: inline-flex;
    min-height: 38px;
    border-bottom: 0;
  }
  html:not([lang="en"]) .home .header-menu .site-nav a.nav-contact { margin-top: 0; }
  html:not([lang="en"]) .home .header-menu .nav-tools { margin-left: auto; }
  html:not([lang="en"]) .home .header-menu .language-switcher { align-self: center; }
  html:not([lang="en"]) .home .header-tools { margin-left: 0; }
  html:not([lang="en"]) .home .nav-toggle { display: none; }
}
@media (min-width: 1360px) {
  html[lang="en"] .home .header-menu {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-bottom: 0;
    background: none;
    box-shadow: none;
  }
  html[lang="en"] .home .header-menu .site-nav {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(16px, 1.9vw, 30px);
    font-size: 14px;
  }
  html[lang="en"] .home .header-menu .site-nav a {
    display: inline-flex;
    min-height: 38px;
    border-bottom: 0;
  }
  html[lang="en"] .home .header-menu .site-nav a.nav-contact { margin-top: 0; }
  html[lang="en"] .home .header-menu .nav-tools { margin-left: auto; }
  html[lang="en"] .home .header-menu .language-switcher { align-self: center; }
  html[lang="en"] .home .header-tools { margin-left: 0; }
  html[lang="en"] .home .nav-toggle { display: none; }
}
@media (max-width: 1160px) {
  :root { --gutter: 32px; }
}
@media (max-width: 900px) {
  .site-nav { gap: 14px; font-size: 12px; }
}
@media (max-width: 760px) {
  :root { --container-max: 680px; --gutter: 20px; }
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
  .header-inner > .site-nav { display: none; }
  .brand { font-size: 18px; }
  .home .header-menu { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-lede { flex-basis: auto; padding-bottom: 0; }
  .section-link { margin-bottom: 0; }
}
@media (max-width: 520px) {
  :root { --container-max: 480px; --gutter: 14px; }
  .header-inner { gap: 10px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 30px; height: 27px; flex-basis: 30px; }
  .intro-kicker { font-size: 10px; letter-spacing: .1em; }
  .btn { min-height: 50px; padding-inline: 20px; font-size: 14px; }
  .stage { border-radius: 18px; }
  .stage-tags li { padding: 14px 16px; font-size: 13px; }
  .work-media { border-radius: 12px; }
  .capability-grid, .delivery, .mode-card, .contact-panel { border-radius: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .contact-arrow { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
  .term > summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
  .term-copy { padding-left: 38px; }
}
@media (max-width: 359px) {
  .home .brand { gap: 6px; font-size: 15px; }
  html[lang="en"] .home .brand { font-size: 13px; letter-spacing: -.03em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-ready { opacity: 1; transform: none; }
}
