@import url("./tokens.css?v=agents-1");
@import url("./base.css?v=agents-1");

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-4xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper); font-weight: var(--weight-strong); text-decoration: none; }
.skip:focus-visible { top: var(--space-sm); }

/* Shared type */
.eyebrow { margin-bottom: var(--space-sm); font-size: var(--text-sm); font-weight: var(--weight-strong); line-height: 1.4; color: var(--color-accent-soft); }
.section-title { font-size: var(--text-section); font-weight: var(--weight-display); line-height: 1.1; letter-spacing: var(--tracking-section); color: var(--color-ink); }
.section-copy { max-width: 46ch; margin-top: var(--space-md); font-size: var(--text-lg); line-height: 1.6; color: var(--color-ink-2); }
.section { padding-top: var(--section-gap); scroll-margin-top: calc(var(--space-xl) - var(--section-gap)); }
.prose-link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-soft); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
@media (hover: hover) { .prose-link:hover { text-decoration-color: var(--color-ink); } }

/* Icons: Phosphor Regular symbols from assets/icons/phosphor-regular.svg, filled with the text colour */
.icon { flex-shrink: 0; fill: currentColor; }
.icon-tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-control); background: var(--color-paper-3); color: var(--color-accent-soft); }

/* Buttons: a solid violet primary and a bordered secondary. Both share one height, corner, label size and icon size. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-height); padding: 0 var(--button-pad); border: 1px solid var(--color-accent-edge); border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-ink); font: var(--weight-strong) var(--text-button)/1.2 var(--font-body); letter-spacing: var(--tracking-button); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .btn:hover { background: var(--color-accent-hover); } }
.btn:active { border-color: var(--color-accent-press); background: var(--color-accent-press); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* Disabled buttons drop the violet for a neutral surface, so the label stays readable */
.btn:disabled { border-color: var(--color-rule-strong); background: var(--color-paper-3); color: var(--color-ink-2); cursor: not-allowed; }
/* Phosphor glyphs keep 2px of air inside a 16px box; pull the icon out by that much so label and glyph look evenly padded */
.btn__icon { width: var(--icon-button); height: var(--icon-button); margin-inline-end: -2px; }
.btn__icon--lead { margin-inline: -2px 0; }
.btn--ghost { border-color: var(--color-secondary-border); background: transparent; color: var(--color-ink); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--color-secondary-border-hover); background: var(--color-paper-2); } }
.btn--ghost:active { border-color: var(--color-secondary-border-hover); background: var(--color-paper-3); }
.btn--sm { min-height: var(--control-height-sm); padding: 0 var(--button-pad-sm); font-size: var(--text-sm); }

/* Header */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky-nav); border-bottom: 1px solid var(--color-rule); background: var(--color-paper); }
.site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); min-height: var(--nav-height); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--color-ink); text-decoration: none; border-radius: var(--radius-chip); }
.brand__mark { width: 21px; height: 22px; flex-shrink: 0; }
.brand__word { font-size: var(--text-wordmark); font-weight: var(--weight-strong); line-height: 1; letter-spacing: -0.02em; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: var(--space-xs); }
/* Pages without the section nav: brand left, actions right */
.site-header__inner--simple { grid-template-columns: minmax(0, 1fr) auto; }

.site-nav__list { display: flex; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-chip); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .site-nav__list a:hover { color: var(--color-ink); } }
.site-nav__head, .site-nav__cta { display: none; }

/* The menu toggle and the menu's close button share the secondary button's edge at the header button's height */
.menu-toggle, .site-nav__close { align-items: center; gap: var(--space-xs); min-height: var(--control-height-sm); padding: 0 var(--space-sm) 0 14px; border: 1px solid var(--color-secondary-border); border-radius: var(--radius-control); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: var(--weight-strong); letter-spacing: var(--tracking-button); line-height: 1; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.menu-toggle { display: none; }
.menu-toggle .icon, .site-nav__close .icon { width: 18px; height: 18px; }
@media (hover: hover) { .menu-toggle:hover, .site-nav__close:hover { border-color: var(--color-secondary-border-hover); background: var(--color-paper-3); } }

@media (min-width: 60rem) {
  .site-nav { display: block; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; color: inherit; }
}

@media (max-width: 59.999rem) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-toggle { display: inline-flex; }
  .site-nav:popover-open { position: fixed; inset: 0 0 auto 0; display: grid; gap: var(--space-lg); width: 100%; max-width: none; height: auto; margin: 0; padding: 0 var(--gutter) var(--space-lg); border: 0; border-bottom: 1px solid var(--color-rule-strong); background: var(--color-paper-2); color: var(--color-ink); }
  .site-nav::backdrop { background: color-mix(in oklab, var(--color-paper) 80%, transparent); }
  .site-nav__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-height); border-bottom: 1px solid var(--color-rule); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .site-nav__title { color: var(--color-ink-2); font-size: var(--text-sm); font-weight: var(--weight-strong); }
  .site-nav__close { display: inline-flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li + li { border-top: 1px solid var(--color-rule); }
  .site-nav__list a { display: flex; min-height: 52px; padding: 0; border-radius: 0; color: var(--color-ink); font-size: var(--text-lg); }
  .site-nav__cta { display: inline-flex; width: 100%; }
}

/* Phones keep the header login button; only the narrowest screens leave it to the menu */
@media (max-width: 23rem) {
  .site-header__cta { display: none; }
}

/* No popover support: the links stay on the page as a row under the brand */
@supports not selector(:popover-open) {
  .menu-toggle { display: none !important; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; }
  .site-nav__list { flex-wrap: wrap; }
}

/* Hero: centered copy, then the planned workflow as the visual */
.hero { padding-block: 80px var(--space-2xl); text-align: center; }
.hero__inner { display: grid; justify-items: center; }
/* One flat pill: a status dot and label, a hairline, then the program name */
.badge { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; row-gap: var(--space-2xs); min-height: 32px; padding: 0 14px; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.4; color: var(--color-muted); }
.badge__tag { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); font-weight: var(--weight-strong); }
.badge__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-soft); }
.badge__text { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--color-rule-strong); }
.hero__title { margin-top: var(--space-lg); font-size: var(--text-hero); font-weight: var(--weight-display); line-height: 1.04; letter-spacing: var(--tracking-hero); color: var(--color-ink); }
.hero__lede { max-width: 31em; margin-top: 20px; font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-2); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }

/* Hero background: a WebGL contour lattice (hero-art.js) over a static SVG of the same scene, which shows on its own
   without JavaScript or WebGL2 and with reduced motion. It runs under the "How it will work" panel, which covers it. */
.hero { position: relative; }
.hero-art { position: absolute; inset: 0 0 -240px; z-index: 0; overflow: hidden; pointer-events: none; }
/* The still is drawn at 1280 wide and split in two, so each ridge stays pinned to its own edge at any width */
.hero-art canvas, .hero-art__still { position: absolute; top: 0; left: 0; height: 100%; transition: opacity 900ms var(--ease-out); }
.hero-art canvas { width: 100%; opacity: 0; }
.hero-art__still { width: 50%; }
.hero-art__still + .hero-art__still { left: 50%; }
.hero-art.is-live canvas { opacity: 1; }
.hero-art.is-live .hero-art__still { opacity: 0; }
.hero__inner, .workflow { position: relative; z-index: 1; }
/* The pause control sits level with the hero actions, at the content's right edge */
.hero-art__toggle { position: absolute; right: var(--gutter); bottom: 6px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-width: 36px; min-height: 36px; padding: 0 var(--space-sm) 0 10px; border: 1px solid var(--color-secondary-border); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink-2); font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1; cursor: pointer; transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.hero-art__toggle .icon { width: 14px; height: 14px; }
@media (hover: hover) { .hero-art__toggle:hover { border-color: var(--color-secondary-border-hover); color: var(--color-ink); } }
/* Narrower screens have no room beside the actions, so the control gets its own row under them. The row is reserved
   even while the control is hidden, so nothing shifts when the animation starts. */
@media (max-width: 59.999rem) {
  .hero__inner { padding-bottom: 52px; }
  .hero-art__toggle { bottom: 0; }
}
/* On phones the copy spans nearly the full width, so the ridges fade back behind its middle and keep full strength at the edges */
@media (max-width: 40rem) {
  .hero-art { opacity: 0.85; mask-image: linear-gradient(90deg, #000, rgb(0 0 0 / 0.25) 32%, rgb(0 0 0 / 0.25) 68%, #000); }
}

/* How it will work: the pitch on top, then a concept drawing of the planned agent loop. A lead goes in on the left,
   the agents plan, search, check and follow new leads around the ring, and findings come out on the right for review.
   Each step's text sits under its drawing. The drawings repeat the text, so they are aria-hidden. */
.workflow { scroll-margin-top: var(--space-xl); }
.workflow__panel { overflow: clip; border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.workflow__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-lg) var(--space-3xl); padding: var(--space-3xl) var(--space-2xl) var(--space-2xl); }
.workflow__lede { max-width: 44ch; font-size: var(--text-lg); line-height: 1.6; color: var(--color-ink-2); }
.workflow__stage { padding: var(--space-xl) var(--space-2xl) var(--space-2xl); border-top: 1px solid var(--color-rule); background: var(--color-paper); }
.workflow__caption { font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1.4; color: var(--color-muted); }

.flow { --loop: 400px; --loop-inset: 60px; --sources-h: 56px; --chip-h: 36px; --flow-gap: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr) var(--loop) minmax(0, 1fr); column-gap: var(--flow-gap); margin: var(--space-md) 0 0; padding: 0; list-style: none; isolation: isolate; }
/* Each step spans the two rows as a subgrid, so the drawings share one row and the text starts on one line under them */
.flow__step { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.flow__text { grid-row: 2; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.flow__visual { grid-row: 1; position: relative; display: grid; }
.flow__title { display: flex; align-items: baseline; gap: 10px; font-size: var(--text-lg); font-weight: var(--weight-strong); line-height: 1.35; letter-spacing: -0.01em; color: var(--color-ink); }
.flow__num { display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--color-accent-line); border-radius: 50%; background: var(--color-accent-tint); font-size: var(--text-xs); font-weight: var(--weight-strong); line-height: 1; color: var(--color-accent-soft); font-variant-numeric: tabular-nums; }
.flow__desc { max-width: 40ch; margin-top: var(--space-xs); padding-left: 32px; color: var(--color-ink-2); }

/* The lead and the findings sit level with the ring's centre, below the band the public sources take up */
.flow__step--lead .flow__visual { align-content: center; padding-top: var(--sources-h); }
.flow__step--review .flow__visual { grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); padding-top: var(--sources-h); }
.node--findings { grid-row: 2; }
.node--review { grid-row: 3; align-self: start; margin-top: var(--space-xl); border-color: var(--color-accent-line); }

.node { position: relative; display: flex; align-items: center; gap: var(--space-sm); width: 100%; padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper-2); }
.node .icon-tile { width: 36px; height: 36px; }
.node__text { display: grid; gap: 2px; min-width: 0; }
.node__title { font-size: var(--text-sm); font-weight: var(--weight-strong); line-height: 1.35; color: var(--color-ink); }
.node__sub { font-size: var(--text-xs); line-height: 1.4; color: var(--color-muted); }

/* Connectors: a hairline (::before) and an arrowhead (::after). The ring's step chips sit on top of the line ends. */
.node::before, .node::after { position: absolute; z-index: -1; background: var(--color-control-border); }
.node::after { width: 7px; height: 10px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.flow__step--lead .node::before { content: ""; left: 100%; top: 50%; width: calc(var(--flow-gap) + var(--loop-inset)); height: 1px; }
.flow__step--lead .node::after { content: ""; left: calc(100% + var(--flow-gap) + 6px); top: calc(50% - 4.5px); }
.node--findings::before { content: ""; right: 100%; top: 50%; width: calc(var(--flow-gap) + var(--loop-inset)); height: 1px; }
.node--findings::after { content: ""; right: calc(100% + 2px); top: calc(50% - 4.5px); }
.node--review::before { content: ""; left: 30px; bottom: 100%; width: 1px; height: var(--space-xl); }
.node--review::after { content: ""; left: 25.5px; bottom: calc(100% + 2px); width: 10px; height: 7px; clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* The loop: one ring with four step chips on it, the public sources fanned out above Search, and the core in the middle.
   The lower half of the ring, from Check through Follow new leads back to Plan, is the return path and is drawn in lavender. */
.loop { position: relative; width: var(--loop); height: calc(var(--sources-h) + var(--loop)); margin-inline: auto; }
.loop__ring { position: absolute; top: var(--sources-h); left: 0; width: var(--loop); height: var(--loop); }
.loop__track { stroke: var(--color-rule-strong); }
.loop__return { stroke: var(--color-accent-soft); stroke-width: 1.5; }
.loop__chevron { stroke: var(--color-control-border); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.loop__chevron--return { stroke: var(--color-accent-soft); }
.loop__core { position: absolute; top: calc(var(--sources-h) + var(--loop) / 2); left: 50%; translate: -50% -50%; display: grid; justify-items: center; align-content: center; gap: 2px; width: 148px; aspect-ratio: 1; border: 1px solid var(--color-accent-line); border-radius: 50%; background: var(--color-accent-tint); text-align: center; }
.loop__mark { width: 24px; height: 25px; margin-bottom: var(--space-xs); }
.loop__name { font-size: var(--text-md); font-weight: var(--weight-strong); line-height: 1.3; color: var(--color-ink); }
.loop__mode { font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1.3; color: var(--color-accent-soft); }
.loop__steps { display: contents; }

.station { position: absolute; display: inline-flex; align-items: center; gap: var(--space-xs); height: var(--chip-h); padding: 0 14px 0 10px; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-sm); font-weight: var(--weight-strong); line-height: 1; color: var(--color-ink); white-space: nowrap; translate: -50% -50%; }
.station .icon { width: 16px; height: 16px; color: var(--color-accent-soft); }
.station--plan { top: calc(var(--sources-h) + var(--loop) / 2); left: var(--loop-inset); }
.station--search { top: calc(var(--sources-h) + var(--loop-inset)); left: 50%; }
.station--check { top: calc(var(--sources-h) + var(--loop) / 2); left: calc(var(--loop) - var(--loop-inset)); }
.station--follow { top: calc(var(--sources-h) + var(--loop) - var(--loop-inset)); left: 50%; border-color: var(--color-accent-line); background: var(--color-accent-tint); }

/* Three equal columns, so the fan's drops at 1/6, 1/2 and 5/6 of its width meet each source's centre */
.sources { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--sources-h) + var(--loop-inset) - var(--chip-h) / 2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr); column-gap: var(--space-xs); justify-items: center; }
.sources__label { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-xs); font-size: var(--text-xs); font-weight: var(--weight-strong); line-height: 1.3; color: var(--color-muted); }
.sources__label .icon { width: 14px; height: 14px; color: var(--color-accent-soft); }
.sources__item { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-chip); background: var(--color-paper-2); font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1; color: var(--color-ink-2); white-space: nowrap; }
.sources__fan { grid-column: 1 / -1; justify-self: stretch; width: 100%; height: 100%; color: var(--color-rule-strong); }
.sources__fan path { vector-effect: non-scaling-stroke; }

/* Below 72rem the steps stack. The ring becomes a rail: the steps in a column, the sources hanging off Search,
   and a lavender bracket on the left that runs from Follow new leads back up into Plan. */
@media (max-width: 71.999rem) {
  .flow { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
  .flow__step { grid-row: auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; gap: var(--space-lg) var(--space-2xl); align-items: start; }
  .flow__step + .flow__step { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
  .flow__text { grid-row: 1; margin: 0; padding: 0; border: 0; }
  .flow__visual { grid-row: 1; }
  .flow__step--lead .flow__visual, .flow__step--review .flow__visual { padding-top: 0; }
  .flow__step--review .flow__visual { grid-template-rows: none; }
  .node--findings, .node--review { grid-row: auto; }
  .node { width: min(100%, 24rem); }
  .flow__step--lead .node::before, .flow__step--lead .node::after, .node--findings::before, .node--findings::after { content: none; }

  .loop { width: min(100%, 24rem); height: auto; margin-inline: 0; padding: var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper-2); }
  .loop__ring { display: none; }
  .loop__core { position: static; translate: none; grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: 10px; width: auto; aspect-ratio: auto; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border: 0; border-bottom: 1px solid var(--color-rule); border-radius: 0; background: none; text-align: start; }
  .loop__mark { grid-row: span 2; align-self: center; width: 21px; height: 22px; margin: 0; }
  .loop__steps { position: relative; display: grid; justify-items: start; gap: var(--space-sm); padding-left: 32px; }
  .loop__steps::before { content: ""; position: absolute; top: calc(var(--chip-h) / 2); bottom: calc(var(--chip-h) / 2); left: 8px; width: 24px; border: 1.5px solid var(--color-accent-soft); border-right: 0; border-radius: 12px 0 0 12px; }
  .loop__steps::after { content: ""; position: absolute; top: calc(var(--chip-h) / 2 - 4.25px); left: 25px; width: 7px; height: 10px; background: var(--color-accent-soft); clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .station { position: static; translate: none; }
  .sources { position: static; display: flex; flex-wrap: wrap; gap: 6px; height: auto; margin: -2px 0 2px 18px; padding: 2px 0 2px 14px; border-left: 1px solid var(--color-rule-strong); }
  .sources__label { flex-basis: 100%; margin: 0 0 2px; }
  .sources__fan { display: none; }
}
@media (max-width: 59.999rem) {
  .workflow__head { grid-template-columns: minmax(0, 1fr); padding: var(--space-2xl) var(--space-xl) var(--space-xl); }
  .workflow__stage { padding-inline: var(--space-xl); }
}
@media (max-width: 47.999rem) {
  .flow__step { grid-template-columns: minmax(0, 1fr); }
  .flow__visual { grid-row: 2; }
}

/* Vision, principles and access share one 5:7 split, so their right-hand columns start on the same line */
.vision__grid, .principles__grid, .access__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.vision__grid { row-gap: var(--space-lg); }
.vision__copy { max-width: 46ch; font-size: var(--text-lg); line-height: 1.65; color: var(--color-ink-2); }

/* Principles: four principles as an open 2x2 list under hairlines */
/* Each principle spans two rows of the list as a subgrid, so descriptions in one row start on the same line */
.principles__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); margin: 0; }
.principle { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--space-xs); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-strong); }
.principle dt { display: flex; align-items: center; gap: 10px; }
.principle__icon { width: 20px; height: 20px; color: var(--color-accent-soft); }
.principle__title { font-size: var(--text-lg); font-weight: var(--weight-strong); line-height: 1.35; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
.principle dd { margin: 0; font-size: var(--text-md); line-height: 1.55; color: var(--color-ink-2); }

/* Access: the invitation note and login on the left, general questions on the right */
.access { padding-bottom: var(--section-gap); }
.access__action { margin-top: var(--space-xl); }
.contact { display: grid; gap: var(--space-xs); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); }
.contact__title { font-size: var(--text-lg); font-weight: var(--weight-strong); line-height: 1.35; letter-spacing: -0.01em; color: var(--color-ink); }
.contact__note { margin-top: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* Form fields */
.field { display: grid; align-content: start; min-width: 0; }
.field__label { margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.4; color: var(--color-ink); }
.field__input { width: 100%; min-width: 0; min-height: var(--input-height); padding: 0 14px; border: 1px solid var(--color-control-border); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); line-height: 1.4; transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .field__input:not(:disabled):hover { border-color: var(--color-muted); } }
.field__input:focus, .field__input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.field__input:disabled { border-color: var(--color-rule-strong); cursor: not-allowed; }

/* Client login: a placeholder card over the static lattice. Every control is disabled until the app exists. */
.login { padding-block: var(--space-4xl); }
/* From tablets up the card is centred in the first screen, so the footer starts below the fold */
@media (min-width: 40rem) { .login { display: grid; align-content: center; min-height: calc(100svh - var(--nav-height)); } }
.login__inner { position: relative; z-index: 1; }
.login__card { max-width: 440px; margin-inline: auto; padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.login__title { font-size: var(--text-section); font-weight: var(--weight-display); line-height: 1.1; letter-spacing: var(--tracking-section); color: var(--color-ink); }
.login__notice { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-sm) 14px; border: 1px solid var(--color-accent-line); border-radius: var(--radius-control); background: var(--color-accent-tint); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.5; color: var(--color-ink); }
.login__notice .icon { width: 20px; height: 20px; color: var(--color-accent-soft); }
.login__form { margin-top: var(--space-lg); }
.login__fields { display: grid; gap: var(--space-md); min-width: 0; margin: 0; padding: 0; border: 0; }
.login__fields:disabled .field__label { color: var(--color-ink-2); }
.login__button { width: 100%; margin-top: var(--space-xs); }
.login__help { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-rule); background: var(--color-paper); }
/* Two rows: brand and links on top, then the year, ownership line and email under one hairline */
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-lg); }
.site-footer__line { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.site-footer__nav { justify-self: end; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; }
@media (hover: hover) { .site-footer__nav a:hover { color: var(--color-ink); } }
.site-footer__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-lg); padding-top: var(--space-xs); border-top: 1px solid var(--color-rule); }
.site-footer__email { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-soft); text-underline-offset: 0.2em; }
@media (hover: hover) { .site-footer__email:hover { text-decoration-color: var(--color-ink); } }
.site-footer__legal { font-size: var(--text-sm); color: var(--color-muted); }

/* Tablet */
@media (max-width: 59.999rem) {
  .hero { padding-block: var(--space-3xl) var(--space-2xl); }
  .vision__grid, .principles__grid, .access__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-2xl) var(--space-xl); }
  .badge { font-size: var(--text-xs); }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 22rem; gap: 10px; margin-top: 28px; }
  .btn:not(.btn--sm) { padding: 0 18px; }
  .workflow .container { padding-inline: 0; }
  .workflow__panel { border-inline: 0; border-radius: 0; }
  .workflow__head { padding: var(--space-xl) var(--gutter) var(--space-lg); }
  .workflow__stage { padding: 20px var(--gutter) var(--space-xl); }
  .flow__step + .flow__step { margin-top: var(--space-lg); padding-top: var(--space-lg); }
  .principles__list { grid-template-columns: minmax(0, 1fr); }
  .login { padding-block: var(--space-2xl); }
  .login__card { padding: var(--space-lg) 20px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .site-footer__nav { justify-self: start; }
}

/* Narrow phones: buttons get smaller type and may wrap; the badge keeps only its tag */
@media (max-width: 24rem) {
  .btn { padding: 0 var(--space-md); font-size: var(--text-sm); white-space: normal; }
  .access__action { width: 100%; }
}
@media (max-width: 23rem) {
  .badge { padding-right: var(--space-2xs); }
  .badge__text { display: none; }
}
