@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../assets/fonts/barlow-semi-condensed-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../assets/fonts/barlow-semi-condensed-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../assets/fonts/source-sans-3-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../assets/fonts/source-sans-3-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #142b34;
  --ink-deep: #0c2028;
  --paper: #f5f3ee;
  --white: #fff;
  --teal: #087f75;
  --teal-light: #74d1c3;
  --slate: #53656c;
  --line: #cfd8d6;
  --soft: #e4efeb;
  --display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

/* Dark theme: core tokens only; full palette pass comes next */
:root[data-theme="dark"] {
  --ink: #e6eeec;
  --ink-deep: #08141a;
  --paper: #0e1a1f;
  --white: #15252c;
  --teal: #2bb3a3;
  --slate: #9db0b3;
  --line: #2a3f47;
  --soft: #1b2f37;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
::selection { background: var(--teal-light); color: var(--ink); }
section[id], main[id] { scroll-margin-top: 94px; }
.shell { width: min(100% - 64px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow, .micro-label { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow { margin: 0 0 25px; color: var(--teal); }
.section { padding-block: 112px; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(42px, 4.1vw, 64px); letter-spacing: -.025em; line-height: 1.02; }
h1, h2, h3, p { text-wrap: pretty; }
h2 em, h1 em { font-style: normal; color: var(--teal); }
.section-intro { display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 10%; align-items: end; margin-bottom: 58px; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro > p:last-child { max-width: 560px; margin: 0 0 6px; color: var(--slate); font-size: 20px; line-height: 1.5; }
.button { min-height: 52px; padding: 12px 22px; display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; border: 1px solid transparent; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); }
.button-primary:hover { background: #06665f; }
.text-link { display: inline-flex; align-items: center; gap: 18px; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; transition: gap .18s ease; }
.text-link:hover { gap: 25px; }
.text-link.light { color: var(--teal-light); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; height: 76px; background: rgba(245,243,238,.96); border-bottom: 1px solid rgba(20,43,52,.12); backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 180px; height: 55px; flex: none; overflow: hidden; position: relative; }
.brand-window { display: block; width: 100%; height: 100%; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.site-nav > a { font-size: 15px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.site-nav > a:hover { color: var(--teal); }
.site-nav .nav-cta { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 5px; white-space: nowrap; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--white); }
.site-nav .nav-login { gap: 10px; display: inline-flex; align-items: center; border-color: var(--teal); background: var(--teal); color: #fff; }
.site-nav .nav-login:hover { border-color: #06665f; background: #06665f; color: #fff; }
.theme-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .site-nav .nav-login:not(:hover) { color: var(--ink-deep); }
[data-theme="dark"] .site-header { background: rgba(14,26,31,.96); border-bottom-color: var(--line); }
/* Flip the dark logo to light on the dark header */
[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
.menu-toggle { display: none; }

/* Hero */
.hero { background-color: var(--paper); background-image: linear-gradient(rgba(8,127,117,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(8,127,117,.12) 1px, transparent 1px); background-size: 52px 52px; overflow: hidden; position: relative; }
/* Cursor glow: brighter copy of the grid, masked to a circle around the pointer (position set in script.js). */
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background-image: linear-gradient(rgba(8,127,117,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(8,127,117,.55) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent); mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent); }
.hero.is-glowing::before { opacity: 1; }
.hero > * { position: relative; z-index: 1; }
.hero-grid { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(34px, 5vw, 90px); }
.hero-copy { min-width: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.eyebrow-mark { width: 20px; height: 2px; background: var(--teal); }
h1 { margin: 0; max-width: 650px; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 6.6vw, 102px); letter-spacing: -.04em; line-height: .94; }
h1 em { display: block; }
.hero-lede { max-width: 510px; margin: 32px 0 31px; color: var(--slate); font-size: 21px; line-height: 1.48; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 29px; }
.workspace-hero { position: relative; min-width: 0; width: 100%; max-width: 710px; min-height: 494px; justify-self: end; background: #eaf0ef; border: 1px solid #adc5c0; border-radius: 12px; box-shadow: 22px 26px 0 rgba(8,127,117,.08), 0 24px 70px rgba(17,54,60,.12); transform: rotate(-1.1deg); }
.hero-copy { animation: hero-arrive .7s cubic-bezier(.2,.7,.2,1) both; }
.workspace-hero { animation: hero-arrive .8s .12s cubic-bezier(.2,.7,.2,1) both; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
@media (hover: hover) {
  .workspace-hero:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 28px 34px 0 rgba(8,127,117,.1), 0 34px 80px rgba(17,54,60,.16); }
}
.workspace-hero::before { content: ''; position: absolute; left: -20px; top: 26px; bottom: 30px; width: 20px; border-top: 1px solid var(--teal); border-bottom: 1px solid var(--teal); border-left: 1px solid var(--teal); opacity: .45; }
.workspace-topbar { height: 44px; padding-inline: 15px; display: flex; align-items: center; gap: 16px; background: var(--ink); border-radius: 11px 11px 0 0; color: #bbcfce; font: 600 10px/1 var(--body); letter-spacing: .11em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #75908e; }
.window-dots i:first-child { background: var(--teal-light); }
.workspace-topbar-right { margin-left: auto; color: #83aaa5; }
.workspace-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); height: 418px; }
.workspace-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 14px; background: #17323b; color: #839f9e; }
.rail-logo { width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal); color: var(--white); font: 700 18px/1 var(--display); border-radius: 5px; }
.rail-icon { width: 30px; height: 30px; display: grid; place-items: center; font-size: 17px; }
.rail-icon.active { background: #2e5860; color: var(--teal-light); border-radius: 5px; }
.workspace-main { min-width: 0; padding: 19px 23px 22px; background: #fbfcfa; border-radius: 0 0 11px 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; }
.micro-label { color: var(--teal); font-size: 10px; letter-spacing: .12em; }
.workspace-heading h2 { margin: 1px 0 0; font: 600 27px/1.1 var(--display); }
.workspace-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #d7e9e5; color: var(--ink); font-size: 10px; font-weight: 600; }
.workspace-tabs { display: flex; gap: 24px; margin-top: 21px; border-bottom: 1px solid #dce5e3; color: #75878a; font-size: 12px; }
.workspace-tabs span { padding-bottom: 8px; }
.workspace-tabs .selected { color: var(--teal); border-bottom: 2px solid var(--teal); font-weight: 600; }
.workspace-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.workspace-summary > div { min-height: 78px; display: flex; flex-direction: column; padding: 10px; border: 1px solid #dce5e3; border-radius: 5px; background: var(--white); }
.mini-icon { color: var(--teal); font-size: 16px; line-height: 1.1; }
.workspace-summary b { font-size: 11px; line-height: 1.15; }
.workspace-summary small { margin-top: 3px; color: var(--slate); font-size: 9px; line-height: 1.2; }
.workspace-lower { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; margin-top: 12px; }
.workspace-table { min-width: 0; border: 1px solid #dce5e3; border-radius: 5px; background: var(--white); }
.table-heading { display: flex; justify-content: space-between; padding: 9px 10px; border-bottom: 1px solid #e7edeb; }
.table-heading b { font-size: 11px; }
.table-heading > span { color: var(--teal); font-size: 8px; font-weight: 600; letter-spacing: .07em; }
.table-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 5px; align-items: center; min-height: 48px; padding: 7px 9px; border-bottom: 1px solid #edf1ef; }
.table-row:last-child { border-bottom: 0; }
.type-mark { width: 13px; height: 14px; border-radius: 2px; background: #e3eeeb; border: 1px solid #a7c9c3; }
.type-mark.activity { border-radius: 50%; }
.type-mark.review { border: 0; background: var(--teal-light); }
.table-row b, .table-row small { display: block; line-height: 1.1; }
.table-row b { font-size: 10px; }
.table-row small { margin-top: 4px; color: var(--slate); font-size: 9px; }
.status-pill { padding: 3px 5px; color: #327365; background: #e9f5ee; border-radius: 3px; font-size: 8px; font-style: normal; }
.status-pill.pending { color: #8b6731; background: #fff1da; }
.assistant-preview { min-width: 0; position: relative; padding: 12px; background: #e4f1ee; border-radius: 5px; }
.assistant-spark { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 11px; background: var(--teal); color: var(--white); border-radius: 4px; font-size: 18px; }
.assistant-preview p { margin: 10px 0 18px; font: 600 19px/1.09 var(--display); }
.assistant-preview p strong { color: var(--teal); }
.assistant-input { display: flex; justify-content: space-between; padding: 7px; border: 1px solid #b9d7d0; border-radius: 3px; background: var(--white); color: var(--slate); font-size: 9px; }
.assistant-input span { color: var(--teal); }
.workspace-caption { position: absolute; right: 0; bottom: -28px; color: var(--slate); font-size: 11px; font-style: italic; }

/* Platform */
.section-platform { background: var(--paper); }
.foundation-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foundation-list { border-right: 1px solid var(--line); }
.foundation-tab { width: 100%; min-height: 84px; display: grid; grid-template-columns: 46px 1fr 24px; gap: 12px; align-items: center; padding: 14px 24px 14px 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: color .18s ease, padding .18s ease, background .18s ease; }
.foundation-tab:last-child { border-bottom: 0; }
.foundation-tab:hover { color: var(--teal); padding-left: 12px; }
.foundation-tab[aria-selected="true"] { background: #e8efeb; padding-left: 18px; color: var(--teal); }
.foundation-index { color: #6c8885; font-size: 13px; font-weight: 600; }
.foundation-tab > span:nth-child(2) { font: 600 27px/1 var(--display); }
.foundation-arrow { text-align: right; font-size: 17px; }
.foundation-display { min-height: 445px; display: grid; }
.foundation-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; padding: 40px 0 40px 45px; }
.foundation-panel-copy { align-self: center; }
.foundation-panel-copy h3 { margin: 14px 0 15px; font: 600 38px/1.05 var(--display); }
.foundation-panel-copy p { max-width: 330px; margin: 0; color: var(--slate); font-size: 17px; line-height: 1.55; }
.data-sheet { width: 100%; max-width: 420px; min-height: 350px; justify-self: end; display: flex; flex-direction: column; padding: 0 20px 16px; background: var(--white); border: 1px solid #d8e1df; border-radius: 7px; box-shadow: 12px 15px 0 #e3ebe6; }
.data-sheet-top { height: 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5ebe9; color: var(--slate); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.data-sheet-top > span:first-child { display: flex; align-items: center; gap: 5px; }
.sheet-square { display: inline-block; width: 9px; height: 9px; background: var(--teal); }
.figure-heading { padding-top: 19px; }
.figure-heading > span { display: block; color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.figure-heading strong { display: block; margin-top: 4px; font: 600 24px/1.05 var(--display); }
.diagram { position: relative; width: 100%; min-height: 208px; margin-top: 16px; }
.figure-foot { margin-top: auto; padding-top: 9px; border-top: 1px solid #e3ebe8; color: var(--slate); font-size: 11px; line-height: 1.25; }

.memory-diagram { min-height: 214px; }
.memory-folders { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.folder-card { min-width: 0; height: 78px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px; border: 1px solid #c6dcd5; border-radius: 5px; background: #f1f7f3; }
.folder-icon { position: relative; width: 30px; height: 19px; margin-bottom: 5px; border: 1px solid #70aca2; border-radius: 2px; background: #cce7df; }
.folder-icon::before { content: ''; position: absolute; left: -1px; top: -6px; width: 14px; height: 6px; border: 1px solid #70aca2; border-bottom: 0; border-radius: 2px 3px 0 0; background: #cce7df; }
.folder-card b, .folder-card small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.folder-card b { font-size: 11px; }
.folder-card small { margin-top: 2px; color: var(--slate); font-size: 9px; }
.memory-links { display: block; width: 100%; height: 62px; overflow: visible; }
.memory-links path, .relation-links path { fill: none; stroke: #53a89e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.memory-hub { width: min(100%, 255px); min-height: 60px; display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 9px 12px; border-radius: 5px; background: var(--ink); color: var(--white); }
.hub-emblem { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 3px; background: var(--teal); font: 700 21px/1 var(--display); }
.memory-hub b, .memory-hub small { display: block; line-height: 1.1; }
.memory-hub b { font: 600 20px/1 var(--display); }
.memory-hub small { margin-top: 5px; color: #b9d4ce; font-size: 10px; }

.relation-diagram { height: 207px; min-height: 0; }
.relation-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.relation-node { position: absolute; z-index: 1; width: 99px; min-height: 59px; display: flex; align-items: center; gap: 5px; padding: 7px; border: 1px solid #c6dcd5; border-radius: 5px; background: #f1f7f3; font-size: 11px; }
.relation-node span { color: var(--teal); font-size: 19px; line-height: 1; }
.relation-document { top: 0; left: 0; }
.relation-activity { top: 0; right: 0; }
.relation-material { bottom: 0; left: 0; }
.relation-approval { bottom: 0; right: 0; }
.relation-center { position: absolute; z-index: 2; top: 50%; left: 50%; width: 92px; height: 67px; display: grid; place-items: center; translate: -50% -50%; border: 3px solid var(--white); border-radius: 5px; background: var(--teal); color: var(--white); font: 600 20px/.9 var(--display); text-align: center; box-shadow: 0 0 0 1px #69ada4; }

.ownership-diagram { min-height: 209px; }
.action-card { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 11px; border: 1px solid #bed9d1; border-radius: 5px; background: #f2f8f4; }
.action-symbol { width: 31px; height: 31px; display: grid; place-items: center; flex: none; background: var(--teal); border-radius: 4px; color: var(--white); font-size: 17px; }
.action-card div { min-width: 0; }
.action-card small, .action-card b { display: block; line-height: 1.15; }
.action-card small { color: var(--slate); font-size: 9px; letter-spacing: .08em; }
.action-card b { margin-top: 4px; font: 600 19px/1 var(--display); }
.action-state { margin-left: auto; padding: 4px 7px; border-radius: 3px; background: #e6f0e9; color: #326d60; font-size: 10px; font-weight: 600; }
.assignment-stem { width: 2px; height: 33px; margin: 0 auto; background: #c5ded7; }
.assignment-stem::after { content: ''; display: block; width: 2px; height: 100%; background: var(--teal); }
.assignment-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.assignment-details > div { min-height: 97px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px 7px; border: 1px solid #d2e2dd; border-radius: 5px; background: var(--white); }
.detail-icon { color: var(--teal); font-size: 17px; line-height: 1; }
.assignment-details small { margin-top: 8px; color: var(--teal); font-size: 9px; font-weight: 600; letter-spacing: .06em; }
.assignment-details b { margin-top: 2px; font-size: 11px; line-height: 1.14; }

.review-diagram { min-height: 205px; padding-top: 15px; }
.review-track { position: absolute; z-index: 0; left: 16%; right: 16%; top: 36px; height: 2px; background: #c9ded8; }
.review-track span { display: block; width: 100%; height: 100%; background: var(--teal); transform-origin: left; }
.review-stages { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; }
.review-stages li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.review-stages li > span { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--teal); border-radius: 50%; background: var(--white); color: var(--teal); font-size: 12px; font-weight: 600; }
.review-stages b { margin-top: 9px; font: 600 20px/1 var(--display); }
.review-stages small { margin-top: 4px; color: var(--slate); font-size: 10px; }
.review-record { display: flex; align-items: center; gap: 9px; margin-top: 25px; padding: 10px 12px; border: 1px solid #c9dfd6; border-radius: 5px; background: #eff7f2; }
.review-record > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 15px; }
.review-record b, .review-record small { display: block; line-height: 1.15; }
.review-record b { font-size: 12px; }
.review-record small { margin-top: 3px; color: var(--slate); font-size: 10px; }

.dashboard-diagram { min-height: 207px; padding: 0 10px 10px; border: 1px solid #cbded8; border-radius: 5px; background: #f8fbf8; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid #dce8e3; }
.dashboard-toolbar b { font: 600 18px/1 var(--display); }
.dashboard-toolbar span { color: var(--teal); font-size: 9px; font-weight: 600; letter-spacing: .07em; }
.dashboard-plot { display: grid; grid-template-columns: 105px 1fr; gap: 10px 9px; align-items: center; padding-block: 14px; }
.dashboard-plot > span { color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.1; }
.plot-track { height: 13px; border-radius: 3px; background: #dceae4; overflow: hidden; }
.plot-track i { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: var(--teal); }
.dashboard-plot > span:nth-of-type(2) + .plot-track i { background: #7caea1; }
.dashboard-plot > span:nth-of-type(3) + .plot-track i { background: #a8c6bc; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 5px; padding-top: 9px; border-top: 1px solid #dce8e3; color: var(--slate); font-size: 8px; font-weight: 600; letter-spacing: .04em; }

.foundation-panel:not([hidden]) .folder-card, .foundation-panel:not([hidden]) .relation-node, .foundation-panel:not([hidden]) .assignment-details > div, .foundation-panel:not([hidden]) .review-stages li { animation: diagram-appear .45s ease-out both; }
.foundation-panel:not([hidden]) .folder-card:nth-child(2), .foundation-panel:not([hidden]) .assignment-details > div:nth-child(2), .foundation-panel:not([hidden]) .review-stages li:nth-child(2) { animation-delay: .12s; }
.foundation-panel:not([hidden]) .folder-card:nth-child(3), .foundation-panel:not([hidden]) .assignment-details > div:nth-child(3), .foundation-panel:not([hidden]) .review-stages li:nth-child(3) { animation-delay: .24s; }
.foundation-panel:not([hidden]) .memory-links path, .foundation-panel:not([hidden]) .relation-links path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: diagram-draw .65s .35s ease-out forwards; }
.foundation-panel:not([hidden]) .memory-hub, .foundation-panel:not([hidden]) .relation-center, .foundation-panel:not([hidden]) .review-record { animation: diagram-appear .45s .65s ease-out both; }
.foundation-panel:not([hidden]) .action-card { animation: diagram-appear .4s ease-out both; }
.foundation-panel:not([hidden]) .assignment-stem::after { animation: line-grow .45s .28s ease-out both; transform-origin: top; }
.foundation-panel:not([hidden]) .review-track span { animation: line-grow-x .7s .3s ease-out both; }
.foundation-panel:not([hidden]) .plot-track i { animation: bar-grow .75s ease-out both; }
.foundation-panel:not([hidden]) .plot-track:nth-of-type(2) i { animation-delay: .13s; }
.foundation-panel:not([hidden]) .plot-track:nth-of-type(3) i { animation-delay: .26s; }
@keyframes diagram-appear { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes diagram-draw { to { stroke-dashoffset: 0; } }
@keyframes line-grow { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes line-grow-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes bar-grow { from { width: 0; } to { width: var(--fill); } }
.platform-foundations { display: flex; align-items: center; gap: 40px; margin-top: 24px; }
.platform-foundations > span { color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.platform-foundations p { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--slate); font-size: 15px; }
.platform-foundations i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }

/* AI */
.section-agents { background: var(--ink); color: var(--white); }
.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(55px, 10vw, 180px); align-items: center; }
.section-agents .eyebrow, .section-deployment .eyebrow { color: var(--teal-light); }
.section-agents h2 em, .section-deployment h2 em { color: var(--teal-light); }
.agents-copy > p:not(.eyebrow), .deployment-intro > p { max-width: 525px; color: #bfd0ce; font-size: 19px; }
.agents-copy .text-link { margin-top: 34px; }
.agent-flow { border: 1px solid #4c7074; border-radius: 9px; overflow: hidden; background: #183740; box-shadow: 16px 16px 0 rgba(116,209,195,.05); }
.flow-head { display: flex; align-items: center; gap: 11px; min-height: 57px; padding: 10px 20px; border-bottom: 1px solid #3b5d61; color: #c4d8d6; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.flow-symbol { color: var(--teal-light); font-size: 24px; line-height: 1; }
.flow-state { margin-left: auto; color: #91aaa9; }
.flow-row { display: flex; gap: 22px; padding: 25px 26px; }
.flow-row.emphasis { margin-inline: 11px; padding: 21px 15px; background: #25534f; border: 1px solid #4a8f82; border-radius: 5px; }
.flow-step { color: var(--teal-light); font-size: 13px; font-weight: 600; }
.flow-row strong { font: 600 29px/1 var(--display); }
.flow-row p { margin: 5px 0 0; color: #bed0cf; font-size: 15px; line-height: 1.35; }
.flow-connector { height: 23px; margin-left: 37px; border-left: 1px dashed #6ba99e; }
.flow-connector::after { content: ''; display: block; width: 3px; height: 0; margin-left: -2px; background: var(--teal-light); }
.agent-flow.is-visible .flow-connector::after { animation: flow-fill .5s .25s ease-out forwards; }
.flow-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid #3b5d61; color: #adcbc7; font-size: 11px; font-weight: 600; letter-spacing: .05em; }

/* Team selector */
.section-teams { background: #eaf0ec; }
.teams-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 428px; border: 1px solid #bad0c9; background: var(--paper); }
.team-nav { display: flex; flex-direction: column; border-right: 1px solid #bad0c9; }
.team-tab { min-height: 71px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 26px; border: 0; border-bottom: 1px solid #d5e2dc; background: transparent; color: var(--ink); font: 600 25px/1 var(--display); text-align: left; cursor: pointer; }
.team-tab:last-child { border-bottom: 0; }
.team-tab:hover, .team-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.team-tab span:last-child { font: 400 18px/1 var(--body); opacity: .7; }
.team-panels { min-width: 0; }
.team-panel { padding: clamp(26px, 4vw, 55px); }
.team-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.team-panel-badge { color: var(--slate); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.team-panel h3 { max-width: 720px; margin: 25px 0 30px; font: 600 clamp(34px, 3.5vw, 49px)/1.06 var(--display); }
.team-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-process > div { min-height: 132px; padding: 20px 17px 20px 0; }
.team-process > div + div { padding-left: 17px; border-left: 1px solid var(--line); }
.team-process span { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.team-process p { margin: 9px 0 0; color: var(--slate); font-size: 15px; line-height: 1.38; }
.team-panel-link { display: inline-flex; gap: 14px; margin-top: 28px; padding-bottom: 2px; border-bottom: 1px solid currentColor; color: var(--teal); font-size: 17px; font-weight: 600; text-decoration: none; }

/* Systems */
.systems-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 135px); align-items: center; }
.section-description { max-width: 540px; margin: 25px 0 0; color: var(--slate); font-size: 19px; }
.proposed-note { display: flex; align-items: flex-start; gap: 13px; max-width: 440px; margin: 32px 0 0; color: var(--slate); font-size: 15px; }
.note-line { display: block; width: 22px; height: 2px; margin-top: 12px; flex: none; background: var(--teal); }
.systems-map { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 14px 14px 0 var(--soft); }
.systems-map-head { display: flex; justify-content: space-between; padding: 16px 23px; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.systems-rows { padding: 0 23px; }
.system-row { display: grid; grid-template-columns: 15px minmax(100px, 1fr) minmax(120px, .9fr); gap: 12px; align-items: center; min-height: 69px; border-bottom: 1px solid #e2e9e6; }
.system-node { display: block; width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 50%; }
.system-row strong, .system-row small { display: block; line-height: 1.18; }
.system-row strong { font-size: 16px; }
.system-row small { margin-top: 4px; color: var(--slate); font-size: 12px; }
.system-use { color: var(--slate); font-size: 13px; line-height: 1.3; }
.systems-hub { display: flex; align-items: center; gap: 13px; margin: 21px 23px 23px; padding: 13px 16px; border-radius: 5px; background: var(--ink); color: var(--white); }
.hub-icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--teal); border-radius: 4px; font: 700 22px/1 var(--display); }
.systems-hub strong, .systems-hub small { display: block; line-height: 1.2; }
.systems-hub strong { font: 600 22px/1 var(--display); }
.systems-hub small { margin-top: 3px; color: #b9cdca; font-size: 12px; }

/* Deployment */
.section-deployment { background: var(--ink-deep); color: var(--white); }
.deployment-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8vw; align-items: end; margin-bottom: 45px; }
.deployment-intro > p { margin: 0 0 4px; }
.deployment-map { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: stretch; }
.deployment-environment { padding: 22px; border: 1px dashed #82b6b0; border-radius: 8px; background: #102e36; box-shadow: inset 0 0 0 5px rgba(116,209,195,.025); }
.deployment-map-head { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.deployment-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #5f9b94; color: var(--teal-light); }
.deployment-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.deployment-map-head div span, .deployment-map-head div strong { display: block; }
.deployment-map-head div span, .deployment-status, .deployment-stage-top span, .deployment-gate span, .deployment-explainer > span { font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.deployment-map-head div span { color: #82afa9; }
.deployment-map-head div strong { font: 600 24px/1.1 var(--display); }
.deployment-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--teal-light); text-transform: uppercase; }
.deployment-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 10px var(--teal-light); }
.deployment-stages { display: flex; align-items: stretch; gap: 0; }
.deployment-stage { flex: 1 1 0; min-width: 0; min-height: 173px; padding: 18px; border: 1px solid #3c6568; border-radius: 5px; background: #1b3d45; color: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.deployment-stage:hover, .deployment-stage.is-active { border-color: var(--teal-light); background: #24545a; box-shadow: 0 0 0 1px rgba(116,209,195,.18); }
.deployment-stage:hover { transform: translateY(-3px); }
.deployment-stage:focus-visible { outline-color: var(--teal-light); outline-offset: 3px; }
.deployment-stage-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 54px; color: var(--teal-light); }
.deployment-stage-top svg { width: 37px; height: 37px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.deployment-stage strong, .deployment-stage small, .deployment-model strong, .deployment-model small { display: block; }
.deployment-stage strong { margin-bottom: 6px; font: 600 25px/1 var(--display); }
.deployment-stage small { color: #c0d4d2; font-size: 12px; line-height: 1.3; }
.deployment-flow-link { position: relative; flex: 0 0 26px; align-self: center; height: 1px; background: #74d1c3; }
.deployment-flow-link::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; content: ''; border-top: 1px solid #74d1c3; border-right: 1px solid #74d1c3; transform: rotate(45deg); }
.deployment-flow-link i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #baf0e7; animation: deployment-flow 2.7s linear infinite; }
.deployment-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #315960; color: #afd2cc; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.deployment-controls span::before { content: '✓'; margin-right: 8px; color: var(--teal-light); }
.deployment-connection { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.deployment-connection::before { position: absolute; top: 61%; right: 100%; width: 18px; border-top: 1px dashed #82b6b0; content: ''; }
.deployment-gate { display: grid; gap: 8px; justify-items: center; color: var(--teal-light); text-align: center; }
.deployment-gate i { height: 27px; border-left: 1px dashed #82b6b0; }
.deployment-gate small { color: #b1c8c5; font-size: 11px; line-height: 1.3; }
.deployment-model { padding: 22px 13px; border: 1px solid #3b5d61; border-radius: 5px; background: #173139; text-align: center; }
.deployment-model-icon { display: block; color: #b5cbc8; font-size: 35px; line-height: 1; }
.deployment-model strong { margin-top: 10px; font: 600 22px/1 var(--display); }
.deployment-model small { margin-top: 6px; color: #a8c0bd; font-size: 11px; }
.deployment-explainer { display: grid; grid-template-columns: 185px 1fr; gap: 22px; align-items: center; margin-top: 17px; padding: 15px 20px; border-left: 3px solid var(--teal-light); background: #17333b; }
.deployment-explainer > span { color: var(--teal-light); }
.deployment-explainer i { font-style: normal; }
.deployment-explainer p { margin: 0; color: #d7e4e1; font-size: 16px; }
.deployment-note { margin: 20px 0 0; color: #a9c0bd; font-size: 14px; }
@keyframes deployment-flow { to { left: calc(100% - 5px); } }

/* Roadmap */
.section-roadmap { background: var(--paper); }
.roadmap-intro { margin-bottom: 54px; }
.roadmap-experience { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); border: 1px solid var(--line); background: #fff; box-shadow: 16px 16px 0 #e3ebe7; }
.roadmap-list { position: relative; margin: 0; padding: 14px 0; list-style: none; border-right: 1px solid var(--line); }
.roadmap-list::before { position: absolute; top: 48px; bottom: 48px; left: 39px; width: 1px; background: var(--line); content: ''; }
.roadmap-list li { position: relative; }
.roadmap-step { display: grid; grid-template-columns: 46px 1fr 17px; align-items: center; gap: 13px; width: 100%; min-height: 85px; padding: 11px 21px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.roadmap-step:hover, .roadmap-step.is-active { border-left-color: var(--teal); background: #eaf3ef; }
.roadmap-step:focus-visible { outline-color: var(--teal); outline-offset: -4px; }
.roadmap-number { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #b8ccc7; border-radius: 50%; background: #fff; color: var(--teal); font: 600 16px/1 var(--display); }
.roadmap-step.is-active .roadmap-number { border-color: var(--teal); background: var(--teal); color: #fff; }
.roadmap-step strong, .roadmap-step small { display: block; }
.roadmap-step strong { font: 600 24px/1.06 var(--display); }
.roadmap-step small { margin-top: 4px; color: var(--slate); font-size: 13px; line-height: 1.25; }
.roadmap-step-arrow { color: var(--teal); opacity: 0; transition: opacity .2s; }
.roadmap-step:hover .roadmap-step-arrow, .roadmap-step.is-active .roadmap-step-arrow { opacity: 1; }
.roadmap-display { display: flex; flex-direction: column; min-width: 0; padding: 29px 36px 22px; background: linear-gradient(145deg, #fff 10%, #f7faf8 100%); }
.roadmap-display-top, .roadmap-controls { display: flex; justify-content: space-between; align-items: center; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.roadmap-progress { height: 3px; margin-top: 15px; background: #d9e7e2; }
.roadmap-progress span { display: block; width: 16.6667%; height: 100%; background: var(--teal); transition: width .3s ease; }
.roadmap-scene { flex: 1; display: flex; align-items: center; }
.roadmap-panel { width: 100%; animation: roadmap-enter .3s ease both; }
.roadmap-panel-copy > span, .roadmap-outcome span { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .11em; }
.roadmap-panel h3 { max-width: 590px; margin: 12px 0 8px; font: 600 clamp(30px, 3vw, 43px)/1 var(--display); }
.roadmap-panel-copy p { max-width: 560px; margin: 0; color: var(--slate); font-size: 16px; line-height: 1.4; }
.roadmap-figure { display: flex; align-items: center; justify-content: center; min-height: 195px; margin: 21px 0 16px; padding: 20px; border: 1px solid #c4d9d3; border-radius: 6px; background: #edf5f1; color: var(--ink); }
.roadmap-figure i { font-style: normal; }
.roadmap-figure strong { font: 600 24px/1.1 var(--display); }
.roadmap-figure b { margin: 0 17px; color: var(--teal); font: 600 27px/1 var(--display); }
.roadmap-figure-discover { flex-direction: column; gap: 8px; }
.roadmap-figure-discover > span { color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.roadmap-figure-discover div, .roadmap-figure-connect div, .roadmap-figure-agent div, .roadmap-figure-expand div { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.roadmap-figure-discover i, .roadmap-figure-connect i, .roadmap-figure-agent i, .roadmap-figure-expand i { padding: 9px 12px; border: 1px solid #adcac1; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 600; }
.roadmap-figure-discover b { margin: 0; line-height: 1; transform: rotate(90deg); }
.roadmap-figure-discover strong, .roadmap-figure-connect strong, .roadmap-figure-agent strong, .roadmap-figure-expand strong { padding: 12px 17px; border-radius: 4px; background: var(--ink); color: #fff; text-align: center; }
.roadmap-workspace { width: min(100%, 395px); border: 1px solid var(--teal); border-radius: 5px; background: #fff; box-shadow: 10px 10px 0 #cfe5db; }
.roadmap-workspace > span { display: block; padding: 9px 13px; border-bottom: 1px solid #c4d9d3; color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.roadmap-workspace div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 14px; }
.roadmap-workspace i { display: grid; place-items: center; min-height: 62px; padding: 7px; border: 1px solid #c4d9d3; background: #edf5f1; font-size: 12px; font-weight: 600; text-align: center; }
.roadmap-figure-agent b { display: grid; place-items: center; width: 80px; height: 80px; margin-inline: 15px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 33px; text-align: center; }
.roadmap-figure-agent b small { display: block; margin-top: -15px; font: 600 11px/1 var(--body); }
.roadmap-figure-agent > span { color: var(--teal); font: 600 24px/1 var(--display); }
.roadmap-figure-measure { flex-direction: column; gap: 18px; }
.roadmap-figure-measure div { display: flex; align-items: center; justify-content: center; }
.roadmap-figure-measure div span { padding: 13px 18px; border: 1px solid #adcac1; border-radius: 4px; background: #fff; font-size: 13px; font-weight: 600; }
.roadmap-figure-measure div b { margin-inline: 17px; }
.roadmap-figure-measure strong { font-size: 17px; }
.roadmap-figure-expand div { flex-direction: column; }
.roadmap-outcome { margin: 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.roadmap-outcome span { margin-right: 10px; }
.roadmap-controls { padding-top: 22px; }
.roadmap-controls div { display: flex; gap: 7px; }
.roadmap-controls button { width: 36px; height: 36px; border: 1px solid var(--teal); border-radius: 3px; background: #fff; color: var(--teal); cursor: pointer; transition: background .2s, color .2s; }
.roadmap-controls button:hover:not(:disabled) { background: var(--teal); color: #fff; }
.roadmap-controls button:disabled { border-color: #b9c9c4; color: #9faeaa; cursor: default; }
@keyframes roadmap-enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Pilot */
.section-pilot { padding-block: 76px; background: var(--soft); }
.pilot-intro { margin-bottom: 32px; }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pilot-panel { padding: 21px 26px 12px; border: 1px solid #b9d0c8; border-radius: 6px; background: var(--white); }
.pilot-evaluation { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pilot-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.pilot-evaluation .pilot-panel-head { border-color: #45636a; }
.pilot-panel-head span, .pilot-footnote span { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.pilot-evaluation .pilot-panel-head span { color: var(--teal-light); }
.pilot-panel-head strong { font: 600 23px/1 var(--display); text-align: right; }
.pilot-panel ul { margin: 0; padding: 0; list-style: none; }
.pilot-panel li { display: grid; grid-template-columns: 37px 1fr; gap: 12px; padding: 12px 0; }
.pilot-panel li + li { border-top: 1px solid var(--line); }
.pilot-evaluation li + li { border-color: #45636a; }
.pilot-panel li > span { color: var(--teal); font: 600 21px/1 var(--display); }
.pilot-evaluation li > span { color: var(--teal-light); }
.pilot-panel li strong { display: block; font: 600 25px/1.05 var(--display); }
.pilot-panel li p { margin: 5px 0 0; color: var(--slate); font-size: 15px; line-height: 1.35; }
.pilot-evaluation li p { color: #bfd2cf; }
.pilot-footnote { display: flex; gap: 16px; align-items: baseline; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #b9d0c8; color: var(--slate); font-size: 14px; }
.pilot-footnote span { flex: none; }
@media (max-width: 760px) {
  .pilot-grid { grid-template-columns: 1fr; }
  .pilot-panel-head { flex-direction: column; gap: 5px; }
  .pilot-panel-head strong { text-align: left; }
  .pilot-footnote { flex-direction: column; gap: 4px; }
}

.site-footer { background: var(--ink-deep); color: #d2e0df; }
.footer-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { color: var(--white); font: 700 31px/1 var(--display); }
.footer-dot { color: var(--teal-light); }
.footer-inner > span:nth-child(2) { font-size: 14px; }
.footer-inner a { color: var(--white); font-size: 14px; text-decoration: none; }

@keyframes hero-arrive {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes flow-fill {
  to { height: 100%; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  h1 { font-size: clamp(60px, 6.8vw, 82px); }
  .workspace-hero { transform: none; }
  .workspace-body { height: 400px; }
  .workspace-hero { min-height: 444px; }
  .workspace-summary { gap: 5px; }
  .workspace-summary > div { padding: 7px; }
  .workspace-main { padding-inline: 13px; }
  .workspace-lower { grid-template-columns: 1fr; }
  .assistant-preview { display: none; }
  .foundation-panel { grid-template-columns: 1fr; gap: 22px; padding: 25px 24px; }
  .foundation-panel-copy h3 { margin-block: 8px; }
  .data-sheet { max-width: none; min-height: 255px; }
  .team-process { grid-template-columns: 1fr; }
  .team-process > div { min-height: auto; padding: 13px 0; }
  .team-process > div + div { padding: 13px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Header collapses to the menu earlier than the rest of the layout: the top bar needs ~1000px */
@media (max-width: 1000px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--ink); border-radius: 5px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 100%; height: 2px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 30px rgba(20,43,52,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { min-height: 46px; display: flex; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .nav-cta { margin-top: 12px; justify-content: space-between; padding: 8px 13px; }
  .site-nav .theme-toggle { width: 44px; height: 44px; margin-top: 12px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 40px, 580px); }
  .site-header { height: 64px; }
  .brand { width: 158px; }
  .section { padding-block: 68px; }
  .section h2 { font-size: clamp(41px, 9vw, 56px); }
  .section-intro { display: block; margin-bottom: 33px; }
  .section-intro > p:last-child { margin-top: 20px; font-size: 18px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 36px; padding-top: 56px; padding-bottom: 57px; }
  .hero-copy { padding-bottom: 0; }
  .hero .eyebrow { margin-bottom: 22px; }
  h1 { max-width: 600px; font-size: clamp(51px, 12vw, 78px); }
  .hero-lede { margin-block: 26px; font-size: 18px; }
  .hero-actions { gap: 20px; }
  .workspace-hero { align-self: center; max-width: 570px; }
  .workspace-body { height: 400px; }
  .workspace-caption { bottom: -24px; }
  .foundation-layout { display: block; }
  .foundation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .foundation-tab { min-width: 0; min-height: 80px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .foundation-tab:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .foundation-tab[aria-selected="true"], .foundation-tab:hover { padding-left: 12px; }
  .foundation-tab > span:nth-child(2) { font-size: 20px; }
  .foundation-arrow { display: none; }
  .foundation-display { min-height: 0; }
  .foundation-panel { padding: 25px 10px 34px; }
  .foundation-panel-copy h3 { font-size: 32px; }
  .data-sheet { width: calc(100% - 12px); }
  .platform-foundations { display: block; }
  .platform-foundations p { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .agents-grid, .systems-layout { grid-template-columns: 1fr; gap: 42px; }
  .agents-copy > p:not(.eyebrow) { font-size: 18px; }
  .agents-copy .text-link { margin-top: 18px; }
  .teams-layout { display: block; }
  .team-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid #bad0c9; }
  .team-tab { min-width: 0; min-height: 58px; padding: 10px 15px; border-right: 1px solid #d5e2dc; border-bottom: 1px solid #d5e2dc; font-size: 22px; }
  .team-tab span:last-child { display: none; }
  .team-panel { padding: 29px 21px; }
  .team-panel h3 { margin-block: 20px 22px; font-size: 34px; }
  .systems-map { margin-right: 12px; }
  .footer-inner { min-height: 120px; flex-wrap: wrap; justify-content: space-between; padding-block: 25px; }
  .footer-inner > span:nth-child(2) { order: 3; width: 100%; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(42px, 11vw, 48px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .workspace-hero { min-height: 380px; }
  .workspace-topbar { height: 35px; font-size: 8px; }
  .workspace-topbar-right { display: none; }
  .workspace-body { height: 345px; grid-template-columns: 34px minmax(0,1fr); }
  .workspace-rail { gap: 12px; }
  .rail-logo { width: 22px; height: 22px; margin-bottom: 9px; }
  .rail-icon { font-size: 13px; }
  .workspace-main { padding: 13px 9px; }
  .workspace-heading h2 { font-size: 22px; }
  .workspace-avatar { display: none; }
  .workspace-tabs { gap: 13px; margin-top: 13px; font-size: 10px; }
  .workspace-summary { margin-top: 11px; }
  .workspace-summary > div { min-height: 66px; padding: 5px; }
  .workspace-summary b { font-size: 9px; }
  .workspace-summary small { font-size: 8px; }
  .workspace-lower { margin-top: 8px; }
  .table-row { min-height: 43px; }
  .foundation-panel-copy p { font-size: 16px; }
  .flow-row { padding-inline: 18px; }
  .flow-row.emphasis { margin-inline: 7px; padding-inline: 11px; }
  .flow-footer { flex-direction: column; gap: 3px; }
  .system-row { grid-template-columns: 12px 1fr; gap: 9px; padding-block: 11px; }
  .system-use { grid-column: 2; }
  .roadmap-experience { grid-template-columns: 1fr; }
  .roadmap-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .roadmap-step { min-height: 70px; }
  .roadmap-display { min-height: 510px; padding: 25px; }
}

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