/* TaiOS TUZ — product site
   Pure CSS. No framework, no external typefaces. */

:root {
  color-scheme: light;
  --bg: #f2efe7;
  --bg-soft: #eae6dc;
  --surface: #fbfaf6;
  --surface-raised: #ffffff;
  --surface-muted: #e5e1d6;
  --ink: #131510;
  --ink-soft: #2d302a;
  --muted: #696b64;
  --faint: #91938c;
  --line: rgba(19, 21, 16, 0.14);
  --line-strong: rgba(19, 21, 16, 0.25);
  --accent: #b8543b;
  --accent-deep: #8f3f2c;
  --accent-soft: rgba(184, 84, 59, 0.11);
  --mineral: #4a6460;
  --mineral-soft: rgba(74, 100, 96, 0.12);
  --inverse: #11130f;
  --inverse-raised: #181b16;
  --inverse-soft: #20241d;
  --inverse-ink: #f4f1e8;
  --inverse-muted: #a8aca2;
  --inverse-line: rgba(244, 241, 232, 0.14);
  --header-bg: rgba(242, 239, 231, 0.78);
  --shadow-sm: 0 10px 30px rgba(35, 28, 21, 0.07);
  --shadow-lg: 0 42px 100px rgba(35, 28, 21, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1280px;
  --header-height: 76px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e100d;
  --bg-soft: #121510;
  --surface: #151813;
  --surface-raised: #1a1e18;
  --surface-muted: #20241d;
  --ink: #f1eee5;
  --ink-soft: #d7d5cc;
  --muted: #9da097;
  --faint: #74786f;
  --line: rgba(241, 238, 229, 0.13);
  --line-strong: rgba(241, 238, 229, 0.24);
  --accent: #d36c50;
  --accent-deep: #e17a5e;
  --accent-soft: rgba(211, 108, 80, 0.12);
  --mineral: #7da29c;
  --mineral-soft: rgba(125, 162, 156, 0.12);
  --header-bg: rgba(14, 16, 13, 0.78);
  --shadow-sm: 0 12px 36px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 48px 120px rgba(0, 0, 0, 0.42);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 250ms ease, color 250ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

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

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform 180ms ease;
}

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

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

.section {
  padding: clamp(110px, 11vw, 176px) 0;
  background: var(--bg);
}

.section-inverse {
  position: relative;
  padding: clamp(110px, 11vw, 176px) 0;
  overflow: hidden;
  background: var(--inverse);
  color: var(--inverse-ink);
}

.section-inverse::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow i {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-inverse .eyebrow {
  color: #858b80;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

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

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}

html[data-theme="dark"] .button-quiet {
  background: rgba(255, 255, 255, 0.035);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--inverse-ink);
}

.button-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 8px 30px rgba(30, 25, 19, 0.04);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-wrap {
  width: min(calc(100% - 48px), var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 43px;
  height: 22px;
  color: var(--ink);
}

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

.brand-edition {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .desktop-nav {
  background: rgba(255, 255, 255, 0.025);
}

.desktop-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(20, 18, 14, 0.05);
}

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

.icon-button {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .icon-button {
  background: rgba(255, 255, 255, 0.025);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.language-button span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.theme-button {
  width: 38px;
  padding: 0;
}

html[data-theme="light"] .theme-sun,
html[data-theme="dark"] .theme-moon {
  display: none;
}

.menu-button {
  display: none;
  width: 38px;
  padding: 0;
}

.menu-close {
  display: none;
}

.site-header.is-menu-open .menu-open {
  display: none;
}

.site-header.is-menu-open .menu-close {
  display: block;
}

.mobile-menu {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
  padding: 22px 0 32px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.mobile-menu nav b {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.mobile-menu > p {
  max-width: 390px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  min-height: max(820px, 100svh);
  padding: calc(var(--header-height) + 70px) 0 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, var(--mineral-soft), transparent 32%),
    radial-gradient(circle at 12% 68%, var(--accent-soft), transparent 28%),
    var(--bg);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(var(--line) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 45%);
  opacity: 0.35;
}

.hero-atmosphere {
  position: absolute;
  width: min(70vw, 1000px);
  aspect-ratio: 1;
  top: 1%;
  right: -25%;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.55;
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
}

.hero-atmosphere::after {
  inset: 27%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 6vw, 94px);
}

.hero-copy {
  padding-top: 10px;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(54px, 6.3vw, 94px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.069em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: 8px;
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.hero-lead {
  max-width: 590px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-specs {
  max-width: 610px;
  margin-top: 58px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.hero-specs div {
  min-width: 0;
  padding-right: 14px;
}

.hero-specs dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-specs dd {
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 320px;
  height: 320px;
  top: -64px;
  right: -62px;
}

.orbit-two {
  width: 132px;
  height: 132px;
  bottom: 20px;
  left: -50px;
}

.desktop-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1.31 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  background: #dfe2e4;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  container-type: inline-size;
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  transform-origin: center;
}

html[data-theme="dark"] .desktop-shell {
  border-color: rgba(255, 255, 255, 0.16);
}

.desktop-wallpaper,
.desktop-wallpaper img,
.desktop-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.desktop-wallpaper img {
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.82) contrast(0.94) brightness(1.03);
  transform: scale(1.02);
}

.desktop-shade {
  background:
    linear-gradient(to bottom, rgba(21, 28, 36, 0.15), transparent 34%),
    linear-gradient(to top, rgba(22, 19, 16, 0.18), transparent 34%);
}

.desktop-bar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 9.5cqw;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.2cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(252, 253, 253, 0.32);
  color: #20241f;
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  font-size: 1.75cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.desktop-brand svg {
  width: 5.2cqw;
  height: 2.8cqw;
}

.desktop-state {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-family: var(--font-mono);
  font-size: 1.2cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.desktop-state span {
  width: 0.8cqw;
  height: 0.8cqw;
  border-radius: 50%;
  background: #436c56;
  box-shadow: 0 0 0 0.6cqw rgba(67, 108, 86, 0.14);
}

.desktop-bar time {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 1.25cqw;
  font-weight: 700;
}

.desktop-stage {
  position: absolute;
  z-index: 3;
  top: 14cqw;
  left: 4.4cqw;
  right: 4.4cqw;
  bottom: 16.5cqw;
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 1.6cqw;
}

.stage-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2.2cqw;
  background: rgba(250, 251, 250, 0.62);
  box-shadow: 0 1.6cqw 5cqw rgba(44, 37, 30, 0.12), inset 0 1px rgba(255, 255, 255, 0.7);
  color: #252923;
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
}

.stage-panel > header {
  height: 5.8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.2cqw;
  border-bottom: 1px solid rgba(28, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 1.05cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stage-panel > header i {
  width: 1.3cqw;
  height: 1.3cqw;
  border: 1px solid rgba(25, 28, 24, 0.18);
  border-radius: 50%;
}

.stage-body {
  padding: 3.1cqw 3cqw;
}

.stage-overline {
  color: #62726d;
  font-family: var(--font-mono);
  font-size: 1cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stage-body h2 {
  max-width: 93%;
  margin-top: 1.5cqw;
  font-size: 2.55cqw;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.stage-body p {
  max-width: 92%;
  margin-top: 1.6cqw;
  color: rgba(37, 41, 35, 0.66);
  font-size: 1.45cqw;
  line-height: 1.52;
}

.stage-lines {
  margin-top: 2.4cqw;
  display: grid;
  gap: 1cqw;
}

.stage-lines b {
  height: 0.75cqw;
  border-radius: 999px;
  background: rgba(44, 48, 42, 0.1);
}

.stage-lines b:nth-child(2) { width: 89%; }
.stage-lines b:nth-child(3) { width: 96%; }
.stage-lines b:nth-child(4) { width: 66%; }

.lens-list {
  padding: 1.3cqw;
  display: grid;
  gap: 1cqw;
}

.lens-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 3.1cqw 1fr;
  align-items: center;
  gap: 1.1cqw;
  padding: 1.4cqw;
  border: 1px solid rgba(32, 36, 31, 0.08);
  border-radius: 1.3cqw;
  background: rgba(255, 255, 255, 0.3);
}

.lens-list > div > span {
  width: 3.1cqw;
  height: 3.1cqw;
  display: grid;
  place-items: center;
  border-radius: 0.9cqw;
  background: rgba(74, 100, 96, 0.13);
  color: #4a6460;
  font-family: var(--font-mono);
  font-size: 1cqw;
  font-weight: 800;
}

.lens-list p {
  min-width: 0;
}

.lens-list b,
.lens-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lens-list b {
  font-size: 1.25cqw;
  font-weight: 700;
}

.lens-list small {
  margin-top: 0.4cqw;
  color: rgba(37, 41, 35, 0.48);
  font-family: var(--font-mono);
  font-size: 0.86cqw;
}

.intent-dock {
  position: absolute;
  z-index: 7;
  right: 12%;
  bottom: 3.6cqw;
  left: 12%;
}

.intent-context {
  display: block;
  margin: 0 0 0.7cqw 1.5cqw;
  color: rgba(29, 34, 30, 0.67);
  font-family: var(--font-mono);
  font-size: 0.95cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.intent-input {
  min-width: 0;
  height: 7.5cqw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4cqw;
  padding: 0 2.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2cqw;
  background: rgba(250, 251, 250, 0.75);
  box-shadow: 0 1.2cqw 4cqw rgba(37, 30, 24, 0.13), inset 0 1px rgba(255, 255, 255, 0.8);
  color: #252923;
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
}

.prompt-mark {
  color: #b8543b;
  font-family: var(--font-mono);
  font-size: 2.5cqw;
  font-weight: 700;
}

.intent-input > span:nth-child(2) {
  overflow: hidden;
  font-size: 1.55cqw;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intent-input kbd {
  min-width: 3cqw;
  height: 3cqw;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 35, 30, 0.1);
  border-radius: 0.7cqw;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(31, 35, 30, 0.56);
  font-family: var(--font-mono);
  font-size: 1.15cqw;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.visual-caption {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.visual-caption span {
  padding-top: 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.visual-caption p {
  max-width: 470px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 32px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--accent);
  animation: scrollLine 2.2s var(--ease) infinite;
  transform: translateX(-105%);
}

@keyframes scrollLine {
  50%, 100% { transform: translateX(105%); }
}

/* Premise */
.premise-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.section-intro h2,
.section-heading h2,
.architecture-copy h2,
.local-copy h2,
.status-head h2 {
  font-size: clamp(45px, 5.3vw, 76px);
  font-weight: 520;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

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

.inverse-intro h2 {
  margin-top: 28px;
}

.inverse-intro > p {
  max-width: 480px;
  margin-top: 28px;
  color: var(--inverse-muted);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

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

.shift-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 0.72fr) 28px minmax(0, 1.28fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--inverse-line);
}

.shift-number {
  padding-top: 5px;
  color: #6f756b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.shift-old small,
.shift-new small {
  display: block;
  margin-bottom: 8px;
  color: #70766c;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shift-old strong,
.shift-new strong {
  display: block;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 570;
  letter-spacing: -0.035em;
}

.shift-old strong {
  color: #7f857b;
  text-decoration: line-through;
  text-decoration-color: rgba(127, 133, 123, 0.42);
  text-decoration-thickness: 1px;
}

.shift-new strong {
  color: var(--inverse-ink);
}

.shift-new p {
  max-width: 430px;
  margin-top: 10px;
  color: var(--inverse-muted);
  font-size: 13px;
  line-height: 1.55;
}

.shift-row > svg {
  width: 22px;
  height: 22px;
  margin-top: 27px;
  color: var(--accent);
}

/* Section headings */
.section-heading {
  margin-bottom: clamp(55px, 7vw, 92px);
}

.heading-columns {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.58fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: end;
}

.heading-columns > p {
  max-width: 480px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

/* Intent lab */
.intent-lab {
  min-height: 700px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.lab-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
}

.lab-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.lab-sidebar-head span,
.lab-sidebar-head small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lab-sidebar-head span {
  color: var(--ink-soft);
}

.lab-sidebar-head small {
  color: var(--faint);
}

.scenario-tabs {
  display: grid;
  gap: 8px;
}

.scenario-tabs button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 13px;
  padding: 18px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease, transform 170ms var(--ease);
}

.scenario-tabs button:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.scenario-tabs button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--ink);
}

.scenario-tabs button > span {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.scenario-tabs b,
.scenario-tabs small {
  display: block;
}

.scenario-tabs b {
  font-size: 14px;
  font-weight: 750;
}

.scenario-tabs small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.45;
}

.lab-local-note {
  margin-top: auto;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.local-pulse {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--mineral);
  box-shadow: 0 0 0 5px var(--mineral-soft);
}

.lab-local-note b,
.lab-local-note small {
  display: block;
}

.lab-local-note b {
  font-size: 11px;
  font-weight: 750;
}

.lab-local-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.lab-canvas {
  position: relative;
  min-width: 0;
  min-height: 700px;
  overflow: hidden;
  color: #262a25;
  isolation: isolate;
}

.lab-wallpaper,
.lab-wallpaper img,
.lab-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lab-wallpaper img {
  object-fit: cover;
  filter: saturate(0.76) brightness(1.02) contrast(0.92);
  transform: scale(1.04);
  transition: filter 300ms ease, transform 600ms var(--ease);
}

.lab-canvas[data-mode="find"] .lab-wallpaper img {
  filter: saturate(0.9) brightness(0.96) contrast(0.94);
  transform: scale(1.02) translateX(-1%);
}

.lab-canvas[data-mode="secure"] .lab-wallpaper img {
  filter: saturate(0.48) brightness(0.72) contrast(1.04);
  transform: scale(1.06);
}

.lab-wash {
  z-index: 1;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0.12), rgba(20, 24, 20, 0.06));
}

.lab-topbar {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(249, 250, 249, 0.38);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.lab-topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.lab-topbar svg {
  width: 32px;
  height: 17px;
}

.lab-mode {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lab-topbar time {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.lab-panels {
  position: absolute;
  z-index: 4;
  top: 82px;
  left: 28px;
  right: 28px;
  bottom: 164px;
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 16px;
}

.lab-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 19px;
  background: rgba(250, 251, 250, 0.64);
  box-shadow: 0 18px 56px rgba(36, 31, 26, 0.11), inset 0 1px rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
  transition: transform 260ms var(--ease), opacity 220ms ease, background-color 260ms ease;
}

.lab-canvas.is-switching .lab-panel {
  opacity: 0.3;
  transform: translateY(8px) scale(0.992);
}

.lab-canvas[data-mode="secure"] .lab-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(24, 29, 25, 0.75);
  color: #eef0ec;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}

.lab-panel > header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(30, 34, 29, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lab-canvas[data-mode="secure"] .lab-panel > header {
  border-color: rgba(255, 255, 255, 0.1);
}

.lab-panel > header i {
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
}

.lab-panel-content {
  padding: clamp(24px, 4vw, 42px);
}

.content-kicker {
  color: #55716b;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lab-canvas[data-mode="secure"] .content-kicker {
  color: #9ec3ba;
}

.lab-panel-content h3 {
  max-width: 570px;
  margin-top: 16px;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.lab-panel-content > p {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(38, 42, 37, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.lab-canvas[data-mode="secure"] .lab-panel-content > p {
  color: rgba(238, 240, 236, 0.62);
}

.document-blocks {
  margin-top: 34px;
  display: grid;
  gap: 11px;
}

.document-blocks span {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(38, 42, 37, 0.09);
}

.lab-canvas[data-mode="secure"] .document-blocks span {
  background: rgba(255, 255, 255, 0.09);
}

.document-blocks span:nth-child(2) { width: 92%; }
.document-blocks span:nth-child(3) { width: 97%; }
.document-blocks span:nth-child(4) { width: 77%; }
.document-blocks span:nth-child(5) { width: 54%; }

.resource-list {
  padding: 13px;
  display: grid;
  gap: 9px;
}

.resource-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(30, 34, 29, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.lab-canvas[data-mode="secure"] .resource-list article {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.resource-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(74, 100, 96, 0.12);
  color: #4a6460;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.lab-canvas[data-mode="secure"] .resource-list article > span {
  background: rgba(158, 195, 186, 0.1);
  color: #9ec3ba;
}

.resource-list p {
  min-width: 0;
}

.resource-list b,
.resource-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-list b {
  font-size: 11px;
  font-weight: 750;
}

.resource-list small {
  margin-top: 4px;
  color: rgba(38, 42, 37, 0.46);
  font-family: var(--font-mono);
  font-size: 8px;
}

.lab-canvas[data-mode="secure"] .resource-list small {
  color: rgba(238, 240, 236, 0.42);
}

.lab-trace {
  position: absolute;
  z-index: 6;
  right: 30px;
  bottom: 111px;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.lab-trace span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(34, 38, 33, 0.38);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lab-trace span:not(:last-child)::after {
  position: absolute;
  top: 4px;
  right: 8px;
  left: 18px;
  z-index: -1;
  height: 1px;
  background: rgba(31, 35, 30, 0.18);
  content: "";
}

.lab-trace i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 38, 33, 0.28);
  border-radius: 50%;
  background: rgba(250, 251, 250, 0.72);
}

.lab-trace .is-done,
.lab-trace .is-active {
  color: rgba(34, 38, 33, 0.72);
}

.lab-trace .is-done i {
  border-color: #52736b;
  background: #52736b;
}

.lab-trace .is-active i {
  border-color: #b8543b;
  background: #b8543b;
  box-shadow: 0 0 0 5px rgba(184, 84, 59, 0.12);
}

.lab-canvas[data-mode="secure"] .lab-trace span {
  color: rgba(255, 255, 255, 0.42);
}

.lab-canvas[data-mode="secure"] .lab-trace span:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.16);
}

.lab-intent {
  position: absolute;
  z-index: 7;
  right: 12%;
  bottom: 25px;
  left: 12%;
}

.lab-intent > span {
  display: block;
  margin: 0 0 7px 14px;
  color: rgba(34, 38, 33, 0.64);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lab-canvas[data-mode="secure"] .lab-intent > span {
  color: rgba(255, 255, 255, 0.58);
}

.lab-intent > div {
  min-width: 0;
  height: 59px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 15px;
  background: rgba(250, 251, 250, 0.78);
  box-shadow: 0 12px 40px rgba(36, 29, 24, 0.13), inset 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
}

.lab-canvas[data-mode="secure"] .lab-intent > div {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(20, 25, 21, 0.8);
  color: #eef0ec;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
}

.lab-intent b {
  color: #b8543b;
  font-family: var(--font-mono);
  font-size: 21px;
}

.lab-intent p {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-intent kbd {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 34, 29, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(30, 34, 29, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lab-canvas[data-mode="secure"] .lab-intent kbd {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

/* Architecture */
.architecture {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.architecture-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

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

.architecture-copy h2 {
  margin-top: 28px;
}

.architecture-copy > p {
  max-width: 500px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.architecture-note {
  max-width: 470px;
  margin-top: 42px;
  padding: 20px 22px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}

.architecture-note span {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.architecture-note p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.architecture-explorer {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(290px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.layer-stack {
  padding: 18px;
  display: grid;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.layer-stack button {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease, transform 170ms var(--ease);
}

.layer-stack button:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.layer-stack button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(25, 21, 16, 0.05);
}

.layer-stack button > span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.layer-stack b,
.layer-stack small {
  display: block;
}

.layer-stack b {
  font-size: 13px;
  font-weight: 760;
}

.layer-stack small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-stack button > i {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.layer-detail {
  min-width: 0;
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft), transparent 32%),
    var(--surface-raised);
  transition: opacity 160ms ease, transform 220ms var(--ease);
}

.layer-detail.is-switching {
  opacity: 0.25;
  transform: translateY(7px);
}

.layer-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.layer-detail-top span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.layer-detail-top svg {
  width: 50px;
  height: 25px;
  color: var(--accent);
}

.layer-detail h3 {
  margin-top: 60px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.layer-detail-lead {
  max-width: 500px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.layer-detail dl {
  margin-top: 42px;
  display: grid;
}

.layer-detail dl div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.layer-detail dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.layer-detail dd {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.layer-flow {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.layer-flow span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-flow i {
  height: 1px;
  background: var(--line-strong);
}

/* Principles */
.principles-heading {
  position: relative;
  z-index: 1;
}

.principles-heading .heading-columns > p {
  color: var(--inverse-muted);
}

.principle-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
}

.principle-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--inverse-line);
  border-radius: 26px;
  background: var(--inverse-raised);
}

.principle-card > span {
  color: #777d73;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.principle-card h3 {
  max-width: 580px;
  margin-top: 70px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.principle-card > p {
  max-width: 550px;
  margin-top: 18px;
  color: var(--inverse-muted);
  font-size: 14px;
  line-height: 1.65;
}

.principle-quote {
  min-height: 500px;
  background:
    radial-gradient(circle at 86% 86%, rgba(184, 84, 59, 0.15), transparent 33%),
    var(--inverse-raised);
}

.principle-quote blockquote {
  max-width: 740px;
  margin-top: 95px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.principle-quote > svg {
  position: absolute;
  right: 42px;
  bottom: 35px;
  width: 100px;
  height: 50px;
  color: var(--accent);
  opacity: 0.8;
}

.mini-path,
.security-line {
  position: absolute;
  right: 42px;
  bottom: 36px;
  left: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.mini-path b,
.security-line span {
  color: #7f857b;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-path i,
.security-line i {
  height: 1px;
  background: var(--inverse-line);
}

.semantic-nodes {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 170px;
  height: 108px;
}

.semantic-nodes::before,
.semantic-nodes::after {
  position: absolute;
  content: "";
  background: var(--inverse-line);
  transform-origin: left center;
}

.semantic-nodes::before {
  width: 135px;
  height: 1px;
  top: 52px;
  left: 18px;
  transform: rotate(-19deg);
}

.semantic-nodes::after {
  width: 110px;
  height: 1px;
  top: 38px;
  left: 42px;
  transform: rotate(31deg);
}

.semantic-nodes i {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid var(--inverse-raised);
  border-radius: 50%;
  background: #737b71;
  box-shadow: 0 0 0 1px var(--inverse-line);
}

.semantic-nodes i:nth-child(1) { left: 4px; top: 47px; background: var(--accent); }
.semantic-nodes i:nth-child(2) { left: 47px; top: 16px; }
.semantic-nodes i:nth-child(3) { left: 72px; top: 69px; }
.semantic-nodes i:nth-child(4) { right: 35px; top: 35px; }
.semantic-nodes i:nth-child(5) { right: 2px; top: 73px; }
.semantic-nodes i:nth-child(6) { right: 13px; top: 8px; }

.principle-security {
  background:
    linear-gradient(135deg, rgba(74, 100, 96, 0.1), transparent 42%),
    var(--inverse-raised);
}

/* Local */
.local-section {
  background: var(--bg-soft);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: center;
}

.local-copy h2 {
  margin-top: 28px;
}

.local-copy > p {
  max-width: 540px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.local-copy ul {
  margin-top: 36px;
  display: grid;
  gap: 15px;
}

.local-copy li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.local-copy li svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--mineral);
}

.local-diagram {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
}

.device-frame {
  position: relative;
  width: min(100%, 680px);
  min-height: 400px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    linear-gradient(rgba(74, 100, 96, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 100, 96, 0.035) 1px, transparent 1px),
    var(--surface);
  background-size: 24px 24px;
  box-shadow: var(--shadow-sm);
}

.device-head {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.device-head i {
  padding: 5px 8px;
  border: 1px solid rgba(74, 100, 96, 0.25);
  border-radius: 999px;
  background: var(--mineral-soft);
  color: var(--mineral);
  font-style: normal;
}

.device-core {
  width: min(75%, 410px);
  margin: 55px auto 0;
  padding: 30px;
  display: grid;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 20px 50px rgba(40, 34, 28, 0.08);
}

.device-core svg {
  width: 88px;
  height: 44px;
  color: var(--accent);
}

.device-core strong {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.device-core small {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.device-modules {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.device-modules span {
  min-width: 0;
  padding: 11px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-optional {
  width: min(78%, 520px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.network-optional i {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px);
}

.external-node {
  min-width: 180px;
  margin-top: 8px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.external-node svg {
  width: 24px;
  height: 24px;
  grid-row: 1 / span 2;
  color: var(--faint);
}

.external-node span {
  font-size: 11px;
  font-weight: 750;
}

.external-node small {
  color: var(--faint);
  font-size: 9px;
}

/* Status */
.status {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.status-shell {
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--inverse-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 93% 6%, rgba(184, 84, 59, 0.13), transparent 30%),
    var(--inverse-raised);
}

.status-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--inverse-line);
}

.status-head h2 {
  max-width: 760px;
  margin-top: 26px;
}

.status-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--inverse-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #80a891;
  box-shadow: 0 0 0 5px rgba(128, 168, 145, 0.1);
}

.status-badge b {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-grid article {
  min-width: 0;
  padding: 38px 34px 38px 0;
}

.status-grid article + article {
  padding-left: 34px;
  border-left: 1px solid var(--inverse-line);
}

.status-grid article > span {
  color: #777d73;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.status-grid h3 {
  margin-top: 24px;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.status-grid p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--inverse-muted);
  font-size: 12px;
  line-height: 1.58;
}

.status-footer {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--inverse-line);
}

.status-footer p {
  color: var(--inverse-muted);
  font-size: 12px;
}

/* Closing */
.closing {
  position: relative;
  min-height: 880px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.closing-image,
.closing-image img,
.closing-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-image img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.7) brightness(0.72) contrast(1.02);
  transform: scale(1.02);
}

.closing-overlay {
  background:
    linear-gradient(to bottom, rgba(13, 15, 13, 0.52), rgba(13, 15, 13, 0.18) 42%, rgba(13, 15, 13, 0.58)),
    radial-gradient(circle at 50% 50%, transparent 10%, rgba(11, 13, 11, 0.38) 82%);
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mark {
  width: 92px;
  height: 46px;
  color: #fff;
}

.closing-label {
  margin-top: 23px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.closing h2 {
  margin-top: 36px;
  font-size: clamp(54px, 7.5vw, 108px);
  font-weight: 470;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.closing h2 span,
.closing h2 em {
  display: block;
}

.closing h2 em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.closing-content > p:not(.closing-label) {
  max-width: 630px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.back-top {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 700;
}

.back-top i {
  font-family: var(--font-mono);
  font-style: normal;
  transition: transform 160ms ease;
}

.back-top:hover i {
  transform: translateY(-3px);
}

/* Footer */
.site-footer {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 50px;
}

.footer-brand > p {
  max-width: 330px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer nav a {
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.footer-meta a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.footer-meta small {
  margin-top: 10px;
  color: var(--faint);
  font-size: 9px;
}

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.js [data-reveal][data-delay="1"] {
  transition-delay: 100ms;
}

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

/* Responsive */
@media (max-width: 1120px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 90px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 76px;
  }

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

  .hero h1 {
    max-width: 800px;
    font-size: clamp(62px, 9vw, 96px);
  }

  .hero-visual {
    width: min(100%, 850px);
    justify-self: center;
  }

  .scroll-cue {
    display: none;
  }

  .premise-grid,
  .architecture-grid,
  .local-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .inverse-intro,
  .architecture-copy {
    position: static;
  }

  .inverse-intro h2,
  .architecture-copy h2,
  .local-copy h2 {
    max-width: 840px;
  }

  .intent-lab {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .architecture-explorer {
    max-width: 900px;
  }

  .local-copy {
    max-width: 760px;
  }

  .local-diagram {
    width: min(100%, 780px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .nav-wrap,
  .mobile-menu {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-header.is-menu-open {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-menu {
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    padding-bottom: 42px;
  }

  .mobile-menu > p {
    margin-top: auto;
    padding-top: 34px;
  }

  .heading-columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .heading-columns > p {
    max-width: 620px;
  }

  .intent-lab {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .lab-sidebar {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .scenario-tabs button {
    grid-template-columns: 1fr;
  }

  .scenario-tabs button > span {
    display: none;
  }

  .lab-local-note {
    display: none;
  }

  .lab-canvas {
    min-height: 640px;
  }

  .architecture-explorer {
    grid-template-columns: 1fr;
  }

  .layer-stack {
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layer-stack button {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .layer-stack button > span,
  .layer-stack button > i {
    display: none;
  }

  .layer-detail {
    min-height: 520px;
  }

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

  .principle-card,
  .principle-quote {
    min-height: 420px;
  }

  .status-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .status-grid article,
  .status-grid article + article {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--inverse-line);
  }

  .status-grid article:last-child {
    border-bottom: 0;
  }

  .status-grid p {
    max-width: 620px;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 650px) {
  .section,
  .section-inverse {
    padding: 88px 0;
  }

  .hero {
    padding: calc(var(--header-height) + 62px) 0 72px;
  }

  .brand-mark {
    width: 38px;
    height: 20px;
  }

  .language-button {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .language-button svg {
    display: none;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

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

  .hero-specs {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

  .hero-specs div:nth-child(n + 3) {
    padding-top: 17px;
    border-top: 1px solid var(--line);
  }

  .desktop-shell {
    border-radius: 20px;
    transform: none;
  }

  .visual-caption {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .premise-grid,
  .architecture-grid,
  .local-grid {
    gap: 50px;
  }

  .section-intro h2,
  .section-heading h2,
  .architecture-copy h2,
  .local-copy h2,
  .status-head h2 {
    font-size: clamp(39px, 11vw, 56px);
  }

  .shift-row {
    grid-template-columns: 24px 1fr;
    gap: 12px;
  }

  .shift-row > svg {
    display: none;
  }

  .shift-old,
  .shift-new {
    grid-column: 2;
  }

  .shift-old {
    padding-bottom: 17px;
  }

  .shift-old strong,
  .shift-new strong {
    font-size: 22px;
  }

  .scenario-tabs {
    grid-template-columns: 1fr;
  }

  .scenario-tabs button {
    grid-template-columns: 26px 1fr;
  }

  .scenario-tabs button > span {
    display: block;
  }

  .lab-canvas {
    min-height: 720px;
  }

  .lab-panels {
    top: 74px;
    right: 16px;
    bottom: 154px;
    left: 16px;
    grid-template-columns: 1fr;
    grid-template-rows: 1.35fr 0.65fr;
    gap: 10px;
  }

  .lab-panel > header {
    height: 44px;
  }

  .lab-panel-content {
    padding: 22px;
  }

  .lab-panel-content h3 {
    font-size: 27px;
  }

  .lab-panel-content > p {
    margin-top: 12px;
    font-size: 11px;
  }

  .document-blocks {
    margin-top: 20px;
    gap: 7px;
  }

  .document-blocks span {
    height: 6px;
  }

  .resource-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .resource-list article {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
  }

  .resource-list article > span {
    width: 25px;
    height: 25px;
  }

  .resource-list small {
    display: none;
  }

  .lab-trace {
    right: 16px;
    bottom: 102px;
    left: 16px;
  }

  .lab-trace b {
    display: none;
  }

  .lab-intent {
    right: 16px;
    bottom: 18px;
    left: 16px;
  }

  .lab-intent > div {
    height: 55px;
  }

  .lab-intent p {
    font-size: 11px;
  }

  .layer-stack {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
  }

  .layer-stack button {
    padding: 13px;
  }

  .layer-detail {
    min-height: 0;
    padding: 28px 24px;
  }

  .layer-detail h3 {
    margin-top: 42px;
  }

  .layer-flow {
    margin-top: 30px;
  }

  .principle-card,
  .principle-quote {
    min-height: 390px;
    padding: 28px;
  }

  .principle-quote blockquote {
    margin-top: 70px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .principle-card h3 {
    margin-top: 55px;
  }

  .mini-path,
  .security-line {
    right: 28px;
    bottom: 27px;
    left: 28px;
  }

  .semantic-nodes {
    right: 20px;
    bottom: 17px;
    transform: scale(0.8);
    transform-origin: bottom right;
  }

  .local-diagram {
    min-height: 490px;
  }

  .device-frame {
    min-height: 350px;
    border-radius: 24px;
  }

  .device-core {
    width: 85%;
    margin-top: 38px;
    padding: 23px;
  }

  .device-modules {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .device-modules span {
    padding: 9px 5px;
    font-size: 6px;
  }

  .status-shell {
    border-radius: 24px;
  }

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

  .closing {
    min-height: 730px;
  }

  .closing h2 {
    font-size: clamp(50px, 14vw, 72px);
  }

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

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

@media (max-width: 390px) {
  .nav-actions {
    gap: 5px;
  }

  .brand-edition {
    display: none;
  }

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

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

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

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

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

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