/* Agent Office public landing page. Builds on the tokens in styles.css.
   Only the hero moves (Anime.js). Sections below it are static: an isometric
   illustration per desk, in the same drawing style as the hero office. */

body.landing { background: var(--ground); }
.landing main { overflow-x: clip; }
.landing section { scroll-margin-top: 64px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.landing svg use { fill: currentColor; }

/* Split headings: each word sits in a mask so it can rise into place. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 48px);
  background: rgb(238 241 244 / 0.92); border-bottom: 1px solid var(--line);
}
@media (min-width: 721px) { .site-header { height: 64px; padding-block: 0; } }
.site-header .brand { color: var(--ink); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.landing a.btn { text-decoration: none; color: inherit; }
.landing a.btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.lp-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(24px, 4vw, 64px);
  min-height: calc(100vh - 64px); padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px); max-width: 1440px; margin: 0 auto;
}
.lp-hero-copy { flex: 1 1 400px; max-width: 560px; }
.lp-hero h1 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 32em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }


/* ---------- Exploded office ---------- */
.anatomy { position: relative; background: var(--surface); border-block: 1px solid var(--line); }
.anatomy-sticky {
  position: relative; min-height: 760px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 48px; padding: 32px clamp(16px, 4vw, 48px); max-width: 1440px; margin: 0 auto; overflow: hidden; isolation: isolate;
}
/* Blueprint grid: the office is drawn as a floor plan. Only the grid fades, not the content. */
.anatomy-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#e6eaf0 1px, transparent 1px), linear-gradient(90deg, #e6eaf0 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 64% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 64% 50%, #000 40%, transparent 100%);
}
/* Desktop with motion: the office stays pinned while its floors come apart. */
.js-anatomy .anatomy { height: 320vh; }
.scroll-hint { display: none; }
.js-anatomy .scroll-hint { display: inline; }
.js-anatomy .anatomy-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); min-height: 0; }
.anatomy-copy { flex: 1 1 300px; max-width: 400px; }
.anatomy-copy h2, .feature h2, .decision h2, .closing h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.anatomy-copy p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.office-iso { flex: 999 1 560px; min-width: 0; height: 100%; max-height: 820px; }
.iso-top { stroke: var(--line-strong); stroke-width: 1; }
.iso-left { fill: #d5dbe3; }
.iso-right { fill: #c3cbd6; }
.iso-desk { fill: #e3e8ee; stroke: #c9d1db; stroke-width: 1; }
.iso-leader { fill: none; stroke: var(--muted); stroke-width: 1; }
.iso-label { font: 500 15px var(--font-mono); fill: var(--ink); }
.iso-sub { font: 400 14px var(--font-sans); fill: var(--muted); }
.label-icon { fill: currentColor; }
.office-iso .agent-icon { color: #fff; }

/* ---------- Section layout ---------- */
.scene .stage {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto;
}
.feature-flip .stage { flex-direction: row-reverse; }

/* ---------- Feature sections ---------- */
.feature-copy { flex: 1 1 340px; max-width: 460px; }
/* Duotone icon tile: tinted square, icon in the team colour. */
.feature-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.eyebrow b { font: 500 13px var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.feature h2 { color: var(--accent); }
.feature-lead { font-size: 19px; color: var(--ink-2); margin-top: 14px; }
/* The request that started the work, shown as the message it really is. */
.req-msg { margin: 32px 0 0; max-width: 420px; }
.req-msg figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
:where(.req-avatar) { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #dde3ea; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.req-avatar.is-agent { color: #fff; }
.req-avatar svg { width: 16px; height: 16px; }
.req-from { font-weight: 600; }
.req-msg time { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.req-msg blockquote {
  margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px; font-size: 16px; line-height: 1.45; color: var(--ink);
}
.req-picked { margin-top: 10px; font-size: 14px; color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.req-picked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.feature-demo { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; position: relative; }

/* Illustration panel: the desk drawn in isometric, with the work card
   overlapping its lower edge so the two read as one layered picture. */
.spot-panel {
  position: relative; border-radius: 20px; padding: 12px 12px 0; isolation: isolate;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.spot-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%);
}
.spot { display: block; width: 100%; height: auto; overflow: visible; }
.spot-panel .demo-card { margin: -28px 20px -24px; }
.spot-panel + .agent-log { margin-top: 38px; }

.spot polygon { stroke: #9aa7b6; stroke-width: 0.75; stroke-linejoin: round; }
.spot .f-t { fill: var(--surface); } .spot .f-l { fill: #e2e7ed; } .spot .f-r { fill: #c9d1db; }
.spot .sp-top { fill: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.spot .sp-slab-l { fill: color-mix(in srgb, var(--accent) 16%, #dde3ea); }
.spot .sp-slab-r { fill: color-mix(in srgb, var(--accent) 22%, #cbd3dd); }
.sp-grid { fill: none; stroke: color-mix(in srgb, var(--accent) 16%, transparent); stroke-width: 1; }
.spot .sp-accent, .spot .sp-tape { fill: var(--accent); stroke: none; }
.spot .sp-tape { opacity: 0.85; }
.sp-line, .sp-line-hi, .sp-flap { fill: none; stroke-linecap: round; }
.sp-line { stroke: #b4bfcc; stroke-width: 2.5; }
.sp-line-hi { stroke: var(--accent); stroke-width: 3; }
.sp-flap { stroke: #9aa7b6; stroke-width: 1; }
.sp-device .f-t { fill: #e9edf2; }
.sp-kbd .f-t { fill: #d3dae3; }
.sp-screen .f-l { fill: var(--surface); }
.sp-screen .f-r, .sp-screen .f-t { fill: #2b3a50; }
.sp-badge .f-l { fill: var(--surface); }
.sp-pot .f-l { fill: #b9a99a; } .sp-pot .f-r { fill: #a08f80; } .sp-pot .f-t { fill: #6b5a4b; }
.sp-plant circle { fill: #5f8a73; stroke: #4c735f; stroke-width: 0.75; }
.sp-kraft .f-t { fill: #e9cfa6; } .sp-kraft .f-l { fill: #d9b98a; } .sp-kraft .f-r { fill: #c4a072; }
.sp-retail .f-t, .sp-retail .f-l { fill: var(--surface); }
.sp-printer .f-t { fill: #e9edf2; }
.spot .sp-slot { fill: #1f3049; }
.sp-paper .f-l, .sp-envelope .f-t, .sp-envelope .f-l { fill: var(--surface); }
.sp-tray .f-t { fill: #d3dae3; }

.sp-chip-bg { fill: var(--surface); stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 6px 10px rgb(14 26 43 / 0.12)); }
.sp-chip-dot { fill: var(--accent); }
.sp-chip-icon { fill: #fff; color: #fff; }
.sp-chip-text { font: 500 13px var(--font-sans); fill: var(--ink); dominant-baseline: central; }

/* Cards float above the page: depth comes from layering, not decoration. */
.demo-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; box-shadow: 0 24px 48px -28px rgb(14 26 43 / 0.35); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.agent-chip { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.agent-chip svg { width: 18px; height: 18px; }
.demo-title { font-weight: 600; line-height: 1.3; }
.demo-title small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 7px 8px; position: relative; z-index: 1; }
.ck { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.ck svg { width: 16px; height: 16px; }
.checklist .handoff { color: var(--muted); }
.checklist .handoff .ck { color: var(--muted); }

.v-legend { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.vendors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vendors li { display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--surface); position: relative; }
.v-name { font-weight: 500; grid-row: span 2; }
.v-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.v-bar i { display: block; height: 100%; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--v)); }
.vendors .is-best .v-bar i { background: var(--accent); }
.v-val { font: 400 13px var(--font-mono); color: var(--muted); margin-top: 4px; }
.vendors .is-best .v-name, .vendors .is-best .v-val { color: var(--ink); font-weight: 600; }
.po-budget { margin-top: 18px; }
.budget-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.budget-track { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.budget-track i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0.64); }
.recommend { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); }

.memo { overflow: hidden; }
.memo-lines { display: flex; flex-direction: column; gap: 10px; }
.memo-lines span { display: block; height: 8px; width: var(--w); border-radius: 4px; background: #dde3ea; transform-origin: left; }
.stamp {
  position: absolute; right: 28px; top: 92px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 6px;
  font: 600 15px var(--font-mono); letter-spacing: 0.02em; color: var(--ink); transform: rotate(-6deg); background: rgb(255 255 255 / 0.85);
}
.memo-sent { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); }
.memo-sent svg { width: 18px; height: 18px; }
.send-track { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.send-track i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }

.agent-log { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.agent-log li { display: grid; grid-template-columns: 52px 1fr; }
.agent-log time { font-family: var(--font-mono); color: var(--muted); }

/* ---------- Decision ---------- */
.decision-copy { flex: 1 1 360px; max-width: 520px; }
.decision-copy p { font-size: 18px; color: var(--ink-2); margin-top: 16px; }
.decision-card { flex: 1 1 380px; max-width: 540px; background: var(--surface); border-radius: var(--r-floor); padding: 26px; box-shadow: var(--float); border: 1px solid var(--line); }
.dc-head { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.decision-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.decision-card li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dc-text { flex: 1; }
.decision-card small { display: block; font-size: 13px; color: var(--muted); }
.row-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.dc-status { display: grid; flex: none; font-size: 13px; }
.dc-status b { grid-area: 1 / 1; font-weight: 600; padding: 2px 9px; border-radius: 999px; text-align: center; }
.dc-status .wait { background: var(--signal-soft); color: #7c2d12; }
.dc-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dc-actions .btn { cursor: default; }

/* ---------- Closing + footer ---------- */
.closing {
  text-align: center; padding: clamp(80px, 12vw, 160px) 24px; color: #fff;
  background-color: var(--ink);
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.07) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.closing p { color: #cbd5e1; font-size: 18px; max-width: 34em; margin: 16px auto 32px; }
.closing a.btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.closing a.btn-primary:hover { background: #e2e8f0; border-color: #e2e8f0; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px clamp(16px, 4vw, 48px) 96px; font-size: 14px; color: var(--muted); }

/* ---------- Time ruler ---------- */
.time-ruler {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 14px; box-shadow: var(--float);
}
.tr-time { font: 500 14px var(--font-mono); font-variant-numeric: tabular-nums; min-width: 44px; }
.tr-track {
  position: relative; width: 200px; height: 16px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8.7px);
  background-position: 0 50%; background-size: 100% 8px; background-repeat: no-repeat;
}
.tr-needle { position: absolute; left: 0; top: -2px; width: 2px; height: 20px; border-radius: 1px; background: var(--ink); will-change: transform; }

@media (max-width: 720px) {
  .anatomy-sticky { min-height: 0; }
  .spot-panel .demo-card { margin-inline: 8px; }
  .time-ruler { left: 16px; right: 16px; justify-content: center; }
  .tr-track { flex: 1; }
}

/* Bar and line lengths in the illustrations */
.bar-62 { --v: 0.62; }
.bar-90 { --v: 0.9; }
.bar-48 { --v: 0.48; }
.line-92 { --w: 92%; }
.line-84 { --w: 84%; }
.line-96 { --w: 96%; }
.line-70 { --w: 70%; }
.line-88 { --w: 88%; }
.line-52 { --w: 52%; }
