/* Pulse Systems, outcomes build. Brand: Cobalt, Sand, Ink (work/pulse/brand). */
:root {
  --sc-canvas: #F8F6F4;      /* Sand 50 */
  --sc-surface: #FFFFFF;
  --sc-ink: #1A1E25;         /* Ink 950 */
  --sc-ink-soft: #515A69;    /* Ink 700 */
  --sc-accent: #3864DF;      /* Cobalt 600 */
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Zodiak", Georgia, serif;
  --sc-font-text: "General Sans", system-ui, sans-serif;
  --sc-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --sand-100: #EFECE8; --sand-200: #DED8D1;
  --ink-900: #292E37; --ink-800: #3D4450; --ink-500: #7F8A9C; --ink-400: #9BA5B7; --ink-200: #D3D9E4; --ink-50: #F5F7FA;
  --cobalt-400: #7BA0FF; --cobalt-300: #A6BFFF; --cobalt-900: #0B2769; --cobalt-950: #03184C; --cobalt-200: #CAD9FE;
  --green-400: #4ADE80; --green-950: #0B3323;

  --bar-h: 64px;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 56px);
}

html { scroll-padding-top: var(--bar-h); }
body { background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sc-ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 0; border: 0;
  font: 600 0.98rem/1 var(--sc-font-text); letter-spacing: 0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--sc-accent); color: #fff; }
.btn--light { background: #fff; color: var(--cobalt-900); }
.btn--outline { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1.5px var(--sc-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #264EBA; }
  .btn--light:hover { background: var(--ink-50); }
  .btn--outline:hover { background: rgba(41, 46, 55, 0.06); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
}
.link { color: var(--sc-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.link--light { color: #fff; }

/* ---------------------------------------------------------------- goal bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 max(var(--gutter), (100% - 960px) / 2);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out), padding 450ms var(--sc-ease-out);
}
/* At the top the bar sits inside the copy column; once scrolled it opens out to the page column. */
.bar.is-solid { padding-inline: max(var(--gutter), (100% - 1240px) / 2); background: rgba(248, 246, 244, 0.96); border-bottom-color: var(--sand-200); }
.bar__mark { display: flex; align-items: center; flex: none; color: var(--sc-ink); text-decoration: none; }
/* The P mark stands in for the first letter, sized and placed as in the brand lockup. */
.bar__name { font: 600 1.7rem/1 var(--sc-font-text); letter-spacing: -0.01em; white-space: nowrap; }
.bar__logo { display: inline-block; height: 1.385em; width: auto; margin-right: 0.08em; vertical-align: -0.51em; }
.bar__cta { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: clip;
  display: flex; align-items: center;
  background: #EEE9E3;
  --hp: 0; --mx: 0; --my: 0;
}
.hero__scene { position: absolute; inset: 0; pointer-events: none; }
.hero__copy {
  position: relative; z-index: 2;
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding-top: var(--bar-h);
  transform: translate3d(0, calc(var(--hp) * -10vh), 0);
  opacity: calc(1 - max(0, var(--hp) - 0.2) * 2.6);
}
.hero__title {
  max-width: 14ch; font: 500 clamp(2.8rem, 1.2rem + 3.4vw, 5rem)/1.02 var(--sc-font-display);
  letter-spacing: -0.025em; text-wrap: balance; margin: 0; color: var(--sc-ink);
}
.hero__lede {
  margin: 24px 0 0; max-width: 38ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); line-height: 1.5;
  color: var(--ink-800); text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.hero__mail { display: inline-block; margin-top: 18px; font-size: 0.95rem; }

/* Tools row: a short window of drifting logos under the buttons, faded at both
   ends so the loop never shows. Same set as the main site. */
.tools { width: min(560px, 100%); margin-top: clamp(40px, 8vh, 80px); }
.tools__label { margin: 0 0 14px; font: 500 0.72rem/1 var(--sc-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.tools__window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tools__track { display: flex; width: max-content; animation: tools-drift 60s linear infinite; }
.tools ul { display: flex; gap: 2.5rem; margin: 0; padding: 0 2.5rem 0 0; list-style: none; }
.tools li { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; opacity: 0.72; transition: opacity 240ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .tools li:hover { opacity: 1; } }
.tools img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0); }
.tools span { font: 400 0.72rem/1 var(--sc-font-text); color: var(--sc-ink); white-space: nowrap; }
@keyframes tools-drift { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ run */
.run { background: #1A1E25; color: var(--ink-50); }
/* The whole section fits one screen on any device: one spacing unit, scaled by
   screen height, sets the gaps and the space around the closing line. */
.run__stage {
  --run-gap: clamp(12px, 2.6vh, 32px);
  display: flex; flex-direction: column; align-items: center; gap: var(--run-gap);
  min-height: 100vh; min-height: 100svh;
  padding: var(--bar-h) var(--gutter) 0;
  background: #1A1E25;
}
/* Free height is shared 1 : 2 between the top and the closing line, which centres
   itself in its share, so all three spaces come out equal. */
.run__stage::before { content: ""; flex: 1 0 0; }
.run__title { font: 500 clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem)/1.04 var(--sc-font-display); letter-spacing: -0.02em; margin: 0; }
.run__intro { width: 100%; text-align: center; }
.run__you { text-decoration: underline; text-decoration-color: var(--cobalt-400); text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.tab {
  min-height: 40px; padding: 0 15px; border-radius: 0; cursor: pointer;
  border: 1px solid var(--ink-800); background: transparent; color: var(--ink-200);
  font: 500 0.92rem/1 var(--sc-font-text);
  transition: background-color 150ms var(--sc-ease-out), color 150ms var(--sc-ease-out), border-color 150ms var(--sc-ease-out);
}
.tab[aria-pressed="true"] { background: var(--cobalt-400); border-color: var(--cobalt-400); color: var(--cobalt-950); }
@media (hover: hover) and (pointer: fine) { .tab:hover { border-color: var(--cobalt-400); color: #fff; } .tab[aria-pressed="true"]:hover { color: var(--cobalt-950); } }
.tab:focus-visible { outline-color: var(--cobalt-300); }
/* The company-wide goal: set apart from the department tabs, in brand cobalt. */
.tab--native { margin-left: 14px; border-color: var(--cobalt-400); color: var(--cobalt-400); }
/* The AI-native run gets the same cobalt outline as its tab, with a soft glow. */
.panel { transition: box-shadow 300ms var(--sc-ease-out), transform 550ms cubic-bezier(0.45, 0, 0.55, 1), opacity 320ms var(--sc-ease-out); }
/* The five runs are five real cards in one stack, one per tab. Each card sits
   --d places back (0 is the front), down and to the right of the one before it,
   and darker the deeper it is. Picking a tab sends every card above the chosen
   one round to the back, in order, so the stack always adds up. */
.deck {
  --dx: 10px; --dy: 10px;
  position: relative; isolation: isolate; width: min(720px, 100%);
  display: grid; padding: 0 calc(4 * var(--dx)) calc(4 * var(--dy)) 0;
}
.card {
  --d: 0;
  grid-area: 1 / 1; border: 1px solid var(--ink-800);
  transform: translate(calc(var(--d) * var(--dx)), calc(var(--d) * var(--dy)));
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #1A1E25;
  opacity: calc(var(--d) * 0.13); transition: opacity 550ms cubic-bezier(0.45, 0, 0.55, 1);
}
.card.is-moving::after { opacity: 0; }
.card.is-moving { will-change: transform; }
.deck.is-still .card { transition: none; }
.panel.is-native {
  box-shadow: 0 0 0 1px var(--cobalt-400), 0 0 32px rgba(123, 160, 255, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.run__outcome { margin: 16px auto 0; max-width: 52ch; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--ink-200); letter-spacing: 0.005em; }

.panel {
  position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; background: #292E37; border-radius: 0; padding: 22px 24px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-800); }
.panel__dept { margin: 0; font: 500 0.72rem/1 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); }
.panel__name { margin: 8px 0 0; font: 600 1.08rem/1.2 var(--sc-font-text); color: var(--ink-50); }
.panel__status { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 0.78rem/1 var(--sc-font-mono); color: var(--cobalt-300); white-space: nowrap; }
.panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt-400); animation: blink 1.6s ease-in-out infinite; }
.panel.is-done .panel__dot { animation: none; }
@keyframes blink { 50% { opacity: 0.3; } }

.steps { list-style: none; margin: 0; padding: 8px 0 0; position: relative; flex: 1 0 auto; }
.step {
  --pad: 11px; --padx: 12px; --time: 62px; --colgap: 12px;
  position: relative;
  display: grid; grid-template-columns: var(--time) 22px minmax(0, 1fr); column-gap: var(--colgap); align-items: start;
  padding: var(--pad) var(--padx); margin: 0 calc(-1 * var(--padx)); border-radius: 0; opacity: 0.36;
  transition: opacity 420ms var(--sc-ease-out), background-color 420ms var(--sc-ease-out);
}
/* The connector belongs to the row, so it always runs from this circle to the next
   one with a small gap at each end, whatever the row height. A cobalt fill draws
   down it when the step finishes. */
.step:not(:last-child)::before, .step:not(:last-child)::after {
  content: ""; position: absolute; width: 1.5px;
  left: calc(var(--padx) + var(--time) + var(--colgap) + 10.25px);
  top: calc(var(--pad) + 21px); bottom: calc(1px - var(--pad));
  background: var(--ink-800);
}
.step:not(:last-child)::after {
  background: var(--cobalt-400); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 520ms var(--sc-ease-out);
}
.step.is-done:not(:last-child)::after { transform: none; }
.step.is-active, .step.is-done { opacity: 1; }
.step.is-active { background: rgba(123, 160, 255, 0.1); }
.step.is-active .step__text { color: #fff; }
.panel__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink-800); border-radius: 0; overflow: hidden; }
.panel__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--cobalt-400); transform-origin: 0 50%;
  transform: scaleX(var(--run-p, 0));
}
.step__time { font: 500 0.78rem/1.5 var(--sc-font-mono); color: var(--ink-400); font-variant-numeric: tabular-nums; }
.step__mark { position: relative; width: 22px; height: 22px; margin-top: -1px; }
.step__mark::before {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px solid var(--ink-500);
  transition: border-color 200ms var(--sc-ease-out), background-color 200ms var(--sc-ease-out);
}
.step.is-active .step__mark::before { border-color: var(--cobalt-400); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.step.is-done .step__mark::before { border-color: var(--cobalt-400); background: var(--cobalt-400); }
.step__mark svg {
  position: absolute; inset: 6px; width: 10px; height: 10px; opacity: 0; transform: scale(0.5); color: var(--cobalt-950);
  transition: opacity 240ms var(--sc-ease-out), transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step.is-done .step__mark svg { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.step__text { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--ink-50); }
.step__detail { margin: 4px 0 0; font: 400 0.8rem/1.4 var(--sc-font-mono); color: var(--ink-400); }

/* The outcome is the run's last line: it waits like a step, then turns into a green check. */
.step--result.is-on { opacity: 1; animation: result-flash 1.2s var(--sc-ease-out); }
.step--result .step__text { font-size: 1.12rem; font-weight: 600; }
.step--result.is-on .step__text { color: #fff; }
.step--result.is-on .step__time { color: var(--green-400); }
.step--result.is-on .step__mark::before { border-color: var(--green-400); background: var(--green-400); }
.step--result.is-on .step__mark svg { opacity: 1; transform: none; color: var(--green-950); }
@keyframes result-flash { 0% { background: rgba(74, 222, 128, 0.28); } 100% { background: transparent; } }
.panel.is-done .panel__status { color: var(--green-400); }
.panel.is-done .panel__dot { background: var(--green-400); }
.steps, .panel__bar { transition: opacity 400ms var(--sc-ease-out); }
.panel.is-fading .steps, .panel.is-fading .panel__bar { opacity: 0; }
.panel__note { margin: 14px 0 0; font: 400 0.72rem/1 var(--sc-font-mono); color: var(--ink-400); }
/* Same space above and below the line: it cancels the stage gap and pads both sides evenly. */
.run__other {
  flex: 2 0 auto; display: flex; align-items: center; justify-content: center;
  margin: calc(-1 * var(--run-gap)) 0 0; padding-block: calc(var(--run-gap) * 1.2);
  font-size: 1.02rem; color: var(--ink-200); text-align: center;
}
.run__other p { margin: 0; }

/* ------------------------------------------------------------- shared type */
.h2 { font: 500 clamp(2rem, 1.4rem + 1.9vw, 3.1rem)/1.06 var(--sc-font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.sub { margin: 14px auto 0; max-width: 46ch; font-size: 1.08rem; line-height: 1.55; color: var(--sc-ink-soft); }

.how .h2, .how .sub, .start__head { text-align: center; }
.start__head .sub, .how .sub { text-wrap: balance; }
.start__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.start__cta p { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--sc-ink-soft); }

/* ----------------------------------------------------------------- how */
.how { background: var(--sc-canvas); padding: clamp(80px, 12vh, 140px) 0; }
/* The line runs the full width of the steps and ends in an arrow: the work carries
   on after Scale. It draws once when the section arrives, just after the steps
   and their dots have faded in. */
.how__track { --g: clamp(20px, 3vw, 48px); --draw: 1.2s; --wait: 0.6s; position: relative; margin-top: clamp(40px, 6vh, 64px); }
.how__rule {
  position: absolute; left: 0; right: 0.5px; top: 7px; height: 1.5px; background: var(--sc-accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--draw) var(--sc-ease-out) var(--wait);
}
/* Same stroke as the line (1.5px, accent), tip on the line's end, centred on it. */
.how__arrow {
  position: absolute; right: 0; top: calc(7.75px - 7px); width: 8px; height: 14px; overflow: visible;
  fill: none; stroke: var(--sc-accent); stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity 200ms linear calc(var(--wait) + var(--draw) - 0.15s);
}
.how__track.is-drawn .how__rule { transform: scaleX(1); }
.how__track.is-drawn .how__arrow { opacity: 1; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); counter-reset: s; }
.how__steps li { position: relative; padding-top: 40px; text-align: center; }
.how__steps li::before {
  content: ""; position: absolute; left: calc(50% - 8px); top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sc-canvas); border: 1.5px solid var(--sc-accent); transition: background-color 700ms ease-in-out;
}
/* One dot is filled at a time; once the line is drawn the fill steps along it on a loop. */
.how__steps li.is-on::before { background: var(--sc-accent); }
.how__steps h3 { margin: 0; font: 500 clamp(1.25rem, 0.6rem + 1.2vw, 1.6rem)/1.15 var(--sc-font-display); letter-spacing: -0.01em; white-space: nowrap; }
.how__steps p { margin: 12px auto 0; max-width: 36ch; line-height: 1.55; color: var(--ink-800); }
.how__text { text-wrap: balance; }

/* --------------------------------------------------------------- start */
.start { position: relative; background: var(--sand-100); padding: clamp(80px, 12vh, 140px) 0; }
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vh, 56px); }
.offers { width: min(900px, 100%); justify-self: center; }
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand-200); }
.offers > li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--sand-200); align-items: baseline; }
.offers h3 { margin: 0; font: 500 1.3rem/1.2 var(--sc-font-display); }
.offers h3 { position: relative; padding-left: 56px; }
.offers__icon { position: absolute; left: 0; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); overflow: visible; fill: none; stroke: var(--ink-800); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.offers__icon .a { stroke: var(--sc-accent); }
.offers__icon .f { fill: var(--cobalt-200); }
.offers__icon .bg { fill: var(--sand-100); }
.offers p { margin: 0; line-height: 1.55; color: var(--ink-800); }
.offers__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.offers__tags li, .offers__extra { display: block; padding: 6px 9px; border: 1px solid var(--sand-200); font: 500 0.68rem/1 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #ADA498; }
.offers__tags, .offers__tagline { margin-top: 12px; }
.offers__tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offers__tagline .offers__tags { margin-top: 0; }
.offers__extra { border-color: transparent; padding-inline: 0; color: #C4BCB2; }
.fn-mark { position: relative; top: -0.45em; font-size: 0.8em; margin-left: 1px; }
.start__note .fn-mark { margin: 0 1px 0 0; }
.start__note { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3.5vh, 36px); margin: 0; padding: 0 var(--gutter); text-align: center; font-size: 0.82rem; color: #B5ACA1; }

/* ------------------------------------------------------------- founders */
/* A narrow letter: copy, then the two of us. */
.note { background: var(--sc-canvas); padding: clamp(72px, 11vh, 128px) 0; }
.note__wrap { width: min(600px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.note__title { margin: 0; font: 500 clamp(1.7rem, 1.3rem + 1.1vw, 2.3rem)/1.1 var(--sc-font-display); letter-spacing: -0.015em; }
.note__body { margin-top: clamp(20px, 3vh, 28px); }
.note__body p { margin: 0 0 1em; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); line-height: 1.65; color: var(--ink-800); text-wrap: pretty; }
.note__people { list-style: none; margin: clamp(24px, 4vh, 36px) 0 0; padding: clamp(20px, 3vh, 28px) 0 0; border-top: 1px solid var(--sand-200); display: flex; flex-wrap: wrap; gap: 20px 40px; }
.note__people li { display: flex; align-items: center; gap: 14px; }
.note__people img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--cobalt-100, #E8EEFD); }
.note__people p { margin: 0; display: grid; gap: 5px; }
.note__people strong { font-weight: 600; font-size: 1rem; }
.note__people p { gap: 3px; }
.note__people span { font-size: 0.9rem; line-height: 1.3; color: var(--sc-ink-soft); }

/* --------------------------------------------------------------- close */
.close__grid { display: grid; justify-items: center; }
.close__card { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; box-shadow: 0 30px 60px -30px rgba(3, 24, 76, 0.7); }
.close__media { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100%; padding: clamp(28px, 3.5vw, 48px); background: url(assets/close-desk.webp) 50% 70% / cover no-repeat; }
.close__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3, 24, 76, 0.88) 0%, rgba(3, 24, 76, 0.4) 40%, rgba(3, 24, 76, 0.1) 60%, rgba(3, 24, 76, 0.8) 100%); }
.close__copy { position: relative; }
.close__call { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.close__call p { margin: 0; color: #fff; font-size: 1rem; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; min-height: 36px; padding: 0 14px; font-size: 0.92rem; }
.close__title { font: 500 clamp(2rem, 1.3rem + 1.6vw, 2.9rem)/1.05 var(--sc-font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; color: #fff; }
.close__lede { margin: 14px 0 0; max-width: 34ch; font-size: 1.05rem; line-height: 1.55; color: var(--cobalt-200); }
.close__panel { position: relative; color: var(--sc-ink); padding: clamp(28px, 3.5vw, 48px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; transition: opacity 320ms var(--sc-ease-out), transform 320ms var(--sc-ease-out); }
.form.is-leaving { opacity: 0; transform: translateY(-8px); }
.sent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; opacity: 0; transition: opacity 420ms var(--sc-ease-out); }
.sent[hidden] { display: none; }
.sent.is-in { opacity: 1; }
.sent:focus { outline: none; }
.sent__mark { width: 56px; height: 56px; margin-bottom: 6px; fill: none; stroke: var(--sc-accent); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.sent__mark path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 500ms var(--sc-ease-out) 250ms; }
.sent.is-in .sent__mark path { stroke-dashoffset: 0; }
.sent__title { margin: 0; font: 500 1.7rem/1.2 var(--sc-font-display); }
.sent__text { margin: 0; color: var(--sc-ink-soft); }
.close { background: var(--cobalt-900); color: #fff; padding: clamp(88px, 13vh, 150px) 0 0; }
.field { display: grid; gap: 7px; }
.field--wide, .form__error, .form__foot { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field span { font: 500 0.74rem/1 var(--sc-font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--sc-ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--sand-200); border-radius: 0; background: var(--sc-canvas);
  padding: 13px 14px; font: 400 1rem/1.4 var(--sc-font-text); color: var(--sc-ink); resize: vertical;
  transition: border-color 150ms var(--sc-ease-out), background-color 150ms var(--sc-ease-out);
}
.field textarea { font-weight: 500; }
.field select { appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D4450' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.field select:invalid { color: var(--ink-400); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); font-weight: 400; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sc-accent); background-color: #fff; box-shadow: 0 0 0 3px rgba(56, 100, 223, 0.18); }
.field [aria-invalid="true"] { border-color: #9A2B2B; }
.field:has(> :is(input, textarea, select)[required]) > span::after { content: "*"; margin-left: 4px; color: #D93025; }
.form__error { grid-column: 1 / -1; margin: 0; color: #9A2B2B; font-size: 0.92rem; }
.form__foot { display: grid; gap: 12px; margin-top: 4px; }
.form__foot .btn { width: 100%; }
.form__foot .form__hint { text-align: center; }
.form .btn--light { background: var(--sc-accent); color: #fff; }
.form .btn--light:disabled { opacity: 0.7; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .form .btn--light:hover { background: #264EBA; } }
.form__hint { margin: 0; font-size: 0.92rem; color: var(--sc-ink-soft); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: clamp(72px, 10vh, 120px); padding: 28px 0 36px; border-top: 1px solid rgba(202, 217, 254, 0.18); color: var(--cobalt-200); font-size: 0.92rem; }
.foot p { margin: 0; }
.foot img { height: 30px; width: auto; margin-right: auto; }
.foot a { color: #fff; }
.foot a:focus-visible { outline-color: #fff; }
.close :focus-visible { outline-color: #fff; }
.close__panel :focus-visible { outline-color: var(--sc-accent); }

/* Narrow desktops: keep the six area tabs on one line. */
@media (min-width: 761px) and (max-width: 1100px) {
  .tabs { gap: 8px; }
  .tab { padding: 0 8px; font-size: 0.82rem; }
}

/* Short screens: drop the detail lines so the run still fits one screen. */
@media (min-width: 761px) and (max-height: 960px) {
  .run__title { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
  .tabs { margin-top: 14px; }
  .run__outcome { margin-top: 10px; }
  .panel { padding: 16px 22px 14px; }
  .panel__head { padding-bottom: 10px; }
  .step { --pad: 8px; }
  .panel__note { margin-top: 10px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 960px) {
  .close__grid, .start__grid { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: clamp(20px, 3.4vh, 32px); }
  .how__steps li { padding: 0 0 0 38px; text-align: left; }
  .how__steps p { margin: 6px 0 0; }
  .how__steps li::before { top: 4px; left: 0; }
  /* The same drawn line runs down through the dots and ends in an arrow under the last step. */
  .how__rule { left: 7.25px; right: auto; top: 8px; bottom: 16px; width: 1.5px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
  .how__track.is-drawn .how__rule { transform: none; }
  .how__arrow { left: 4px; right: auto; top: auto; bottom: 6px; transform: rotate(90deg); }
}
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar { gap: 10px; }
  .bar__name { font-size: 1.3rem; }
  .bar__cta { padding: 0 14px; font-size: 0.86rem; min-height: 38px; }

  /* The hero fills the large viewport so the next section never shows under a
     see-through browser bar; the copy column fills the small one, so the tool
     row sits at the bottom of the first screen. */
  .hero { align-items: flex-start; height: 100lvh; }
  .hero__copy { width: auto; margin: 0 var(--gutter); padding: calc(var(--bar-h) + 9vh) 0 10px; min-height: 100svh; display: flex; flex-direction: column; transform: none; opacity: 1; }
  .hero__title { font-size: clamp(2.2rem, 1.2rem + 5vw, 2.8rem); }
  .hero__lede { font-size: 1.02rem; margin-top: 14px; }
  .hero__actions { margin-top: 22px; gap: 12px; }
  .hero__actions .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
  .hero__mail { margin-top: 14px; font-size: 0.88rem; }
  .tools { margin-top: auto; padding-top: 24px; }
  .tools ul { gap: 1.75rem; padding-right: 1.75rem; }
  .tools img { width: 22px; height: 22px; }

  .run__stage { --run-gap: clamp(10px, 1.8vh, 18px); }
  .run__other { font-size: 0.94rem; }
  .run__title { font-size: 1.7rem; }
  .tabs { gap: 8px; margin-top: 14px; }
  .tab { min-height: 36px; padding: 0 11px; font-size: 0.84rem; }
  .tab--native { margin-left: 0; }
  .run__outcome { margin-top: 12px; font-size: 0.92rem; line-height: 1.45; }
  .deck { --dx: 5px; --dy: 6px; }
  .panel__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .panel__head > div { display: contents; }
  .panel__dept { grid-area: 1 / 1; }
  .panel__status { grid-area: 1 / 2; }
  .panel__name { grid-column: 1 / -1; font-size: 0.95rem; }
  .panel { padding: 16px 16px 12px; }
  .panel__head { padding-bottom: 10px; }
  .step { --pad: 7px; --padx: 10px; --time: 54px; --colgap: 10px; }
  .step__text { font-size: 0.88rem; }
  .step__detail { font-size: 0.7rem; margin-top: 2px; }
  .step--result .step__text { font-size: 1rem; }
  .panel__note { margin-top: 10px; }

  .note { padding: calc(var(--bar-h) + 16px) 0 56px; }
  .note__body p { font-size: 0.98rem; line-height: 1.6; }
  .note__people { gap: 16px 24px; }
  .note__people img { width: 52px; height: 52px; }
  .start { padding: calc(var(--bar-h) + 20px) 0 96px; }
  .start__grid { gap: 20px; }
  .start .h2 { font-size: 1.8rem; }
  .start__head .sub, .how .sub { margin-top: 8px; font-size: 0.92rem; line-height: 1.45; }
  .start__cta p { font-size: 0.92rem; line-height: 1.45; }
  .offers > li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .offers h3 { display: flex; align-items: center; gap: 10px; padding-left: 0; font-size: 1.15rem; }
  .offers__icon { position: static; width: 30px; height: 30px; transform: none; }
  .offers p { font-size: 0.88rem; line-height: 1.45; }
  .offers__tags, .offers__tagline { margin-top: 8px; }
  .offers__tags { gap: 6px; }
  .offers__tagline { gap: 6px; }
  .offers__tags li, .offers__extra { padding: 5px 7px; font-size: 0.6rem; letter-spacing: 0.04em; }
  .offers__extra { padding-inline: 0; }
  .start__note { bottom: 20px; font-size: 0.74rem; }
  .close__card { grid-template-columns: 1fr; }
  .close__media { min-height: 260px; background-position: 40% 60%; }
  .close__media::before { background: linear-gradient(to bottom, rgba(3, 24, 76, 0.9) 0%, rgba(3, 24, 76, 0.62) 55%, rgba(3, 24, 76, 0.88) 100%); }
  .form { grid-template-columns: 1fr; }
}
/* Short phones: drop the time column so steps fit on one line each, and tighten type. */
@media (max-width: 760px) and (max-height: 760px) {
  .run__title { font-size: 1.6rem; }
  .run__outcome { margin-top: 8px; font-size: 0.86rem; line-height: 1.4; }
  .panel__name { font-size: 0.98rem; }
  .step { --pad: 4px; grid-template-columns: 22px minmax(0, 1fr); }
  .step:not(:last-child)::before, .step:not(:last-child)::after { left: calc(var(--padx) + 10.25px); }
  .panel__note { margin-top: 8px; }
  .step__time { display: none; }
  .step__text { font-size: 0.84rem; }
  .step--result .step__text { font-size: 0.95rem; }
  .run__title { font-size: 1.5rem; }
  .tabs { margin-top: 10px; }
  .tab { min-height: 34px; }
  .panel { padding: 12px 14px 10px; }
  .panel__head { padding-bottom: 8px; }
  .run__other { font-size: 0.88rem; }
  .run__outcome { font-size: 0.82rem; }
  .tabs { gap: 6px; }
  .panel__note { display: none; }

  .start { padding: calc(var(--bar-h) + 10px) 0 80px; }
  .start__grid { gap: 12px; }
  .start .h2 { font-size: 1.55rem; }
  .start__head .sub, .how .sub { font-size: 0.84rem; }
  .offers > li { padding: 9px 0; gap: 2px; }
  .offers h3 { font-size: 1.05rem; }
  .offers__icon { width: 26px; height: 26px; }
  .offers p { font-size: 0.82rem; line-height: 1.4; }
  .offers__tags, .offers__tagline { margin-top: 6px; }
  .start__note { bottom: 14px; font-size: 0.7rem; }
}
@media (max-width: 380px) {
  .bar__cta { padding: 0 12px; font-size: 0.82rem; }
  .hero__title { font-size: 1.9rem; }
  .deck { --dx: 3px; --dy: 5px; }
  .step--result .step__text { font-size: 0.94rem; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__copy { transform: none !important; }
  .hero__copy { opacity: 1 !important; }
  .panel__dot, .step.is-active .step__mark::before, .tools__track, .step--result.is-on { animation: none; }
  .how__rule, .how__arrow { transition: none !important; }
}
