:root {
  --bg: #0a0b0d;
  --ink: #e8eaed;
  --ink-2: #a3a8b0;
  --ink-3: #7f858e;
  --line: rgb(226 231 240 / 0.09);
  --line-2: rgb(226 231 240 / 0.18);
  --blue: #528dff;
  --gutter: clamp(20px, 4.4vw, 48px);
  --nav-h: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sans: "Inter Variable", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body { margin: 0; font-size: 1rem; line-height: 1.55; overflow-x: clip; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--blue); color: #06080c; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2 { font-weight: 500; letter-spacing: -0.034em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.1vw, 5.25rem); line-height: 1.03; }
h2 { font-size: clamp(2.125rem, 4.5vw, 3.875rem); line-height: 1.06; }
h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.012em; }

.skip {
  position: fixed; z-index: 30; top: 10px; left: 10px;
  padding: 8px 14px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: 0.875rem;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Navigation */
.nav {
  position: sticky; z-index: 20; top: 0; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms, background-color 240ms;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(10 11 13 / 0.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav.is-scrolled, .nav.is-open { border-color: var(--line); }
.nav__row { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.025em; padding-block: 8px; }
.brand img { display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; font-size: 0.8438rem; }
.nav__links a:not(.btn) { padding: 8px 12px; color: var(--ink-2); transition: color 160ms; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current]:not(.btn) { color: var(--ink); }
.nav__links .btn { margin-left: 12px; }
.nav__toggle { display: none; }

/* Actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
  background: var(--ink); color: #0b0c0e;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: -0.01em; cursor: pointer;
  transition: background-color 160ms;
}
.btn:hover { background: #fff; }
.btn--small { min-height: 32px; padding: 0 13px; font-size: 0.8438rem; border-radius: 7px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.textlink { padding-block: 10px; color: var(--ink-2); font-size: 0.9375rem; transition: color 160ms; }
.textlink span { display: inline-block; margin-left: 4px; transition: transform 240ms var(--ease); }
.textlink:hover { color: var(--ink); }
.textlink:hover span { transform: translateY(3px); }

/* Hero */
.hero { overflow: clip; padding-top: clamp(56px, 9vw, 104px); }
.hero__copy { position: relative; z-index: 2; }
.lead { max-width: 35.5rem; margin-top: 26px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; letter-spacing: -0.014em; text-wrap: pretty; }
.hero__figure { position: relative; margin-top: -64px; }
.motion {
  position: absolute; z-index: 3; right: 0; bottom: 96px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px;
  border: 0; background: none; color: var(--ink-3); font: 400 0.8125rem/1 var(--sans); cursor: pointer;
}
.motion:hover { color: var(--ink); }
.motion__icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.motion[aria-pressed="true"] .motion__icon { width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 9px; border-left-color: currentColor; }

.key { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.key div { padding: 14px 16px 0 0; font-size: 0.875rem; line-height: 1.45; }
.key dt { font-weight: 500; letter-spacing: -0.01em; }
.key dd { color: var(--ink-3); }
.key__center dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }

/* Statement */
.statement { padding-block: clamp(112px, 15vw, 208px) clamp(72px, 8vw, 112px); }
.statement p { max-width: 62rem; color: var(--ink-3); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.22; letter-spacing: -0.028em; text-wrap: pretty; }
.statement strong { color: var(--ink); font-weight: inherit; }

/* Sections */
.section { padding-block: clamp(88px, 11vw, 160px); overflow-x: clip; }
.section--ruled { border-top: 1px solid var(--line); }
.head h2 { max-width: 17em; }
.head > p, .control__copy > p { max-width: 33rem; margin-top: 24px; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; letter-spacing: -0.01em; text-wrap: pretty; }
#automation h2 { max-width: 12.5em; }
.head--split { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: end; }
.head--split > p { margin: 0; padding-bottom: 6px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.principles h3 { margin-top: 32px; }
.principles p { margin-top: 8px; color: var(--ink-3); font-size: 0.9375rem; max-width: 24rem; text-wrap: pretty; }

.plan { margin-top: clamp(24px, 4vw, 56px); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.notes div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.notes dt { font-weight: 500; letter-spacing: -0.012em; }
.notes dd { margin-top: 6px; color: var(--ink-3); font-size: 0.9375rem; text-wrap: pretty; }

.flow { margin-top: clamp(48px, 6vw, 88px); }

.control { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.walls { margin-top: 44px; border-bottom: 1px solid var(--line); }
.walls li { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.walls li span:last-child { color: var(--ink-3); text-align: right; transition: color 200ms; }
.walls li:hover span:last-child { color: var(--ink); }

/* Closing */
.closing { padding-block: clamp(96px, 13vw, 192px); }
.closing__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.closing h2 { font-size: clamp(2.375rem, 5.4vw, 4.875rem); line-height: 1.04; }
.form { display: grid; gap: 26px; padding-top: 10px; }
.field label { display: block; color: var(--ink-2); font-size: 0.875rem; }
.field label span { color: var(--ink-3); margin-left: 6px; }
.field input, .field textarea {
  display: block; width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgb(226 231 240 / 0.38); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); letter-spacing: -0.01em; resize: vertical;
  transition: border-color 160ms, box-shadow 160ms;
}
.field :is(input, textarea):hover { border-color: rgb(226 231 240 / 0.6); }
.field :is(input, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__end p { color: var(--ink-3); font-size: 0.875rem; }
.form__status { min-height: 1.5em; color: var(--ink); font-size: 0.9375rem; }

.footer { border-top: 1px solid var(--line); padding-block: 30px; color: var(--ink-3); font-size: 0.8438rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.footer .brand { color: var(--ink); font-size: 0.9688rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer nav a { padding-block: 6px; }
.footer nav a:hover { color: var(--ink); }
.footer p { margin-left: auto; }

/* Drawing language */
[data-figure] * { vector-effect: non-scaling-stroke; }
/* pathLength dashes must stay in user units */
[data-figure] :is(.pulse, .route) { vector-effect: none; }
.ln { fill: none; stroke: #dfe4ec; stroke-width: 1; }
.o04 { stroke-opacity: 0.045; } .o08 { stroke-opacity: 0.085; } .o14 { stroke-opacity: 0.15; }
.o22 { stroke-opacity: 0.24; } .o36 { stroke-opacity: 0.38; } .o60 { stroke-opacity: 0.62; }
.dash { stroke-dasharray: 2 5; }
.blue { stroke: var(--blue); stroke-opacity: 1; }
.dot { fill: #cfd4dc; } .dot--blue { fill: var(--blue); }
.cell { fill: #dfe4ec; fill-opacity: 0.07; } .cell--on { fill-opacity: 0.45; } .cell--blue { fill: var(--blue); fill-opacity: 1; }
.face { stroke: #dfe4ec; stroke-width: 1; stroke-linejoin: round; }
.face--top { fill: #22252a; stroke-opacity: 0.5; }
.face--lit { fill: #17191d; stroke-opacity: 0.32; }
.face--dim { fill: #0f1013; stroke-opacity: 0.24; }
.is-accent > .face--top { stroke: var(--blue); stroke-opacity: 1; }
.is-accent > .face--lit, .is-accent > .face--dim { stroke: var(--blue); stroke-opacity: 0.55; }
.wall { fill: #121418; stroke: #dfe4ec; stroke-opacity: 0.34; transition: stroke-opacity 240ms, fill 240ms; }
.wall-group.is-active .wall { fill: #1c1f25; stroke-opacity: 0.95; }
.lbl { fill: #a3a8b0; font: 400 13px var(--sans); letter-spacing: -0.005em; }
.lbl--ink { fill: var(--ink); }
.pulse { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 5 95; stroke-dashoffset: 5; animation: travel 7s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 5; } to { stroke-dashoffset: -95; } }
.motion-paused .pulse { animation-play-state: paused; }

/* Without script the drawings are absent; the text stands alone */
html:not(.js) :is([data-figure], .motion) { display: none; }
html:not(.js) .hero__figure { margin-top: 72px; }

/* Entry */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero__figure { margin-top: 24px; }
  .plumb { display: none; }
  .motion { position: static; margin: 12px 0 18px; padding: 0; min-height: 44px; }
  .key { grid-template-columns: 1fr; border: 0; }
  .key div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
  .key dd { text-align: right; }
  .head--split, .control, .closing__row { grid-template-columns: minmax(0, 1fr); }
  .head--split { gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 72px; }
  .principles svg { max-width: 400px; }
  .principles h3 { margin-top: 24px; }
  .notes { grid-template-columns: 1fr; gap: 28px; }
  .plan svg, .flow svg { max-width: 520px; margin-inline: auto; }
  .control__figure { max-width: 520px; margin-inline: auto; }
}

@media (max-width: 720px) {
  h1 br { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 400 0.875rem/1 var(--sans); cursor: pointer; }
  .nav__toggle-icon { position: relative; width: 16px; height: 8px; border-block: 1.5px solid currentColor; transition: height 200ms; }
  .is-open .nav__toggle-icon { height: 2px; border-bottom: 0; }
  .nav__links { display: flex; flex-wrap: wrap; }
  .js .nav__links { display: none; }
  .js .is-open .nav__links {
    position: absolute; inset: 100% 0 auto; display: grid; gap: 0; padding: 4px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 1.125rem;
  }
  .js .is-open .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .js .is-open .nav__links .btn { margin: 20px 0 0; min-height: 46px; font-size: 1rem; }
  html:not(.js) .nav { height: auto; }
  html:not(.js) .nav__toggle { display: none; }
  .footer p { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__copy > * { animation: rise 1s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .hero__copy > :nth-child(3) { animation-delay: 180ms; }
  .hero__figure { animation: appear 1.6s 200ms ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes appear { from { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .motion { display: none; }
  .pulse { stroke-dasharray: none; stroke-opacity: 0.8; stroke-width: 1.25; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .field :is(input, textarea):focus { outline: 2px solid Highlight; }
}

/* Login: explicit secondary action, visible even with mobile menu closed. */
.nav__links .btn--login,.nav__login-mobile{color:var(--ink);background:transparent;border:1px solid #626873}.nav__links .btn--login:hover,.nav__login-mobile:hover{background:#252a32;border-color:#a0a8b4}.nav__links .btn--login+.btn{margin-left:4px}.nav__login-mobile{display:none}
@media(max-width:720px){.nav__login-mobile{display:inline-flex;margin-left:auto;margin-right:16px;min-height:36px}.js .is-open .nav__links .btn--login{display:none}}

.illustration-note { margin-bottom: 14px; color: var(--ink-3); font-size: 0.8125rem; }
.contact-notice { padding-top: 10px; }
.contact-notice p { max-width: 28rem; margin-top: 12px; color: var(--ink-2); }
.login-main { padding-top: 15vh; }

/* Legibility refinement: retain titanium hierarchy while keeping smaller text readable. */
:root { --ink-2: #bec4ce; --ink-3: #a4abb6; }
.nav__links { font-size: 0.90625rem; }
.nav__links a:not(.btn) { color: #bdc3cc; }
.nav__links a:not(.btn):hover { color: #f5f6f8; }
.nav__links .btn--login, .nav__login-mobile { border-color: #7c8490; }
.key dt, .key dd, .illustration-note, .principles small, .footer, .notes dd, .walls li span:last-child { color: var(--ink-3); }
.illustration-note { font-size: 0.875rem; }
/* Graphic callouts sit above fine technical lines; keep a subtle dark keyline. */
[data-figure] .lbl { fill: #d0d5de; font-size: 15px; paint-order: stroke fill; stroke: #0a0b0d; stroke-width: 3px; stroke-linejoin: round; }
[data-figure] .lbl--ink { fill: #f3f5f8; }
@media (max-width: 720px) {
  .nav__links { font-size: 1.125rem; }
  .key dt, .key dd { font-size: 0.875rem; }
}

/* Diagram captions on narrow displays: SVG text alone scales down too far. */
.mobile-diagram-key { display: none; }
@media(max-width: 720px) {
  .mobile-diagram-key { display: block; text-align: center; max-width: 34rem; padding: 0 16px; margin: 12px auto 20px; font-size: 15px; line-height: 1.65; color: #d6dae2; letter-spacing: -0.01em; }
  .plan, .flow { -webkit-mask-image: none; mask-image: none; }
  .principles p, .notes dd, .control__copy p { color: #c0c6d0; }
  .key dd, .footer { color: #b8bec8; }
}
