/* =============================================================
   US Deployment Co. — Landing page styles
   SKIN VARIANT: artifact.world editorial register, translated to
   a light ground. White paper, #1a1a1a ink, #e5e5e5 hairlines,
   Crimson Text display, Arial body, Courier mono, #F04A00 kept
   for structural marks only (rules, icon tiles, the closing band).

   REBRAND: change the tokens in :root below and the brand name
   in index.html.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600&display=swap');

:root {
  /* Brand / theme tokens (artifact.world palette, light ground) */
  --navy:        #1a1a1a;   /* primary ink                   */
  --navy-soft:   #696969;   /* hover / secondary             */
  --accent:      #221fc3;   /* Poetic ultramarine            */
  --accent-dark: #1b18a0;   /* accent hover on light ground  */
  --accent-bright: #3279fc; /* azure for small marks/links   */
  --success:     #1a7f37;
  --warning:     #b45309;
  --danger:      #dc2626;

  --bg:          #ffffff;   /* page background (paper white) */
  --card:        #ffffff;   /* surfaces — white + hairline   */
  --tint:        #fafafa;   /* pale band / pill tint         */
  --ink:         #1a1a1a;   /* primary text                  */
  --ink-soft:    #696969;   /* secondary text                */
  --ink-faint:   #999999;   /* de-emphasis labels only       */
  --line:        #e5e5e5;   /* hairlines                     */
  --line-soft:   #efefef;

  --radius:      3px;       /* per reference cards/buttons   */
  --radius-sm:   3px;
  --nav-h:       64px;

  --serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --sans:  Arial, Helvetica, sans-serif;
  --mono:  'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); color-scheme: light; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.mono  { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 36px; }

h1, h2, h3, h4, p, ul { margin: 0; }

/* =============================================================
   Buttons — reference nav-btn / card-btn register:
   dark #1a1a1a tile, bold small type, 3px radius,
   hover = hairline border lift (no color swap).
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 3px;
  background: var(--accent); color: #fff;
  border: 1px solid transparent;
  font-weight: bold; font-size: 14px; line-height: 1.2;
  letter-spacing: 0;
  transition: background .2s cubic-bezier(0.4,0,0.2,1), color .2s cubic-bezier(0.4,0,0.2,1), border-color .2s cubic-bezier(0.4,0,0.2,1), transform .1s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { background: var(--accent-dark); transform: scale(0.98); }
.btn .icon { font-size: 16px; }

.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 3px; }

.btn-ghost {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--tint); border-color: #999; color: var(--ink); }

/* on-accent pair (used on the orange closing band) */
.btn-light { background: #fff; color: #1a1a1a; border-color: #fff; }
.btn-light:hover { background: #f5f5f5; border-color: #f5f5f5; color: #1a1a1a; }

.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* =============================================================
   Sticky nav — solid paper, single hairline (reference nav is a
   solid ground with a small chip button, no blur, no depth)
   ============================================================= */
.sitenav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sitenav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 36px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  background: transparent;
  border: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-name {
  font-family: var(--serif); font-weight: 600;
  letter-spacing: .04em; color: var(--navy); font-size: 16px; line-height: 1;
}
/* Stacked heavy wordmark (THE ИOETIC CORPORATION register) */
.brand-name.brand-stack {
  display: flex; flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700; font-size: 11.5px; line-height: .95;
  letter-spacing: -.01em;
}
.brand-name.brand-stack b { font-weight: 700; }

.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks a:not(.btn) {
  font-size: 13px; font-weight: bold; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s cubic-bezier(0.4,0,0.2,1);
}
.navlinks a:not(.btn):hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 3px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--navy); font-size: 20px; cursor: pointer;
}
.nav-toggle:hover { background: var(--tint); }

/* =============================================================
   Section rhythm
   ============================================================= */
.band { padding: 120px 0; }
.band-alt { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: bold;
  margin-bottom: 12px;
}
.h2 {
  font-family: var(--serif);
  color: var(--navy); font-size: 34px; line-height: 1.2;
  font-weight: 600; letter-spacing: 0; margin-bottom: 16px; max-width: 720px;
}
.section-lede { font-size: 17px; color: var(--ink-soft); max-width: 680px; margin-bottom: 40px; }
.section-lede strong { color: var(--ink); }

/* Single quiet line beneath a card grid (fit line / closing line) */
.grid-note { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }

/* =============================================================
   1. Hero
   ============================================================= */
.hero-band {
  padding: 48px 0 40px;
  background: var(--bg);
  min-height: calc(100vh - var(--nav-h) - 72px);
  min-height: calc(100svh - var(--nav-h) - 72px);
  display: flex; align-items: center;
}
.hero-band .container { width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center;
}
.hero { max-width: 640px; }
.display {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(34px, 4.2vw, 48px); line-height: 1.12; font-weight: 600;
  margin: 0 0 22px; letter-spacing: 0;
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin-bottom: 32px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Org-chart work-routing simulation panel (white document
       frame: hairlines only, flat — the reference carries no
       shadows anywhere) ------------------------------------- */
.orgsim {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
}
.orgsim-cap {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 4px 16px;
  padding: 9px 14px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
/* reserve constant width for the swapped AS CHARTED / AS IT RUNS text so
   caption line-wrapping — and therefore panel height — is identical in both
   states (em, not ch: ch tracks the '0' advance, ignores .12em tracking;
   both strings are 10 chars ≈ 7.2em at mono 10px) */
#orgsim-vis { display: inline-block; min-width: 7.5em; }
.orgsim-stage { position: relative; height: 378px; }
.orgsim-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.orgsim-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}
.orgsim-toggle { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--bg); }
.orgsim-toggle button {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.2;
  color: var(--ink-soft); padding: 6px 12px;
  transition: background .2s cubic-bezier(0.4,0,0.2,1), color .2s cubic-bezier(0.4,0,0.2,1);
}
.orgsim-toggle button + button { border-left: 1px solid var(--line); }
.orgsim-toggle button:hover { color: var(--ink); }
.orgsim-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.orgsim-toggle button[aria-pressed="true"]:hover { color: #fff; }

/* --- Mini-dashboard region (fixed height in BOTH states: "On paper"
       shows placeholder blocks + the "unknown" line — the chart tells
       you nothing; "Deployed" assembles the live cells in a staggered
       cascade) ---------------------------------------------------- */
.orgsim-dash {
  height: 116px; flex: none;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dash-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 56px; flex: none;
  border-bottom: 1px solid var(--line-soft);
}
.dash-cell {
  position: relative; min-width: 0;
  padding: 8px 12px 6px;
  border-left: 1px solid var(--line-soft);
}
.dash-cell:first-child { border-left: 0; }
.dash-label {
  display: block; font-size: 9.5px; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-val {
  display: block; font-size: 15px; line-height: 1.25;
  color: var(--ink); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-sub {
  display: block; font-size: 9.5px; line-height: 1.3;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-cell .ph { position: absolute; inset: 10px 12px auto; }
.ph i { display: block; height: 7px; width: 52%; background: var(--line-soft); }
.ph i + i { margin-top: 8px; height: 12px; width: 38%; }
.dash-lower { position: relative; flex: 1; min-height: 0; }
.dash-live { display: flex; height: 100%; }
.dash-feed {
  list-style: none; margin: 0; padding: 5px 12px;
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.dash-feed li {
  display: flex; align-items: center; gap: 7px;
  min-height: 15px; min-width: 0;
  font-size: 10.5px; line-height: 1.45; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.chip { flex: none; width: 6px; height: 6px; background: var(--line); border-radius: 50%; }
.chip-auto { background: var(--accent); }
.chip-gate { background: var(--warning); }
.chip-done { background: var(--navy); }
.dash-feed li.is-empty .chip { visibility: hidden; }
.feed-txt { overflow: hidden; text-overflow: ellipsis; }
.feed-t { margin-left: auto; flex: none; font-size: 9.5px; color: var(--ink-faint); }
.dash-kpis {
  flex: none; width: 218px;
  border-left: 1px solid var(--line-soft);
  padding: 5px 12px;
  /* two rows since the cycle-time tile was dropped; centered in the same
     fixed-height region, so panel height is untouched */
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.dash-kpi {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 10.5px; color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dash-kpi .dash-label { display: inline; font-size: 9px; }
.dash-kpi b { font-weight: 600; }
.dash-fine {
  font-size: 8.5px; color: var(--ink-faint); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-unknown {
  position: absolute; inset: 0; margin: 0; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-faint); text-align: center;
  pointer-events: none;
}
/* dashboard reveal: placeholders -> staggered cascade when data-mode flips
   to "agents" (~900ms into the forward morph); toggle back collapses
   immediately */
.dash-cell .real, .dash-live {
  opacity: 0; transform: translateY(5px); visibility: hidden;
  transition: opacity .28s ease, transform .28s ease, visibility 0s .28s;
}
.orgsim[data-mode="today"] .dash-live { pointer-events: none; }
.dash-cell .ph { opacity: 1; transition: opacity .22s ease .05s; }
.dash-unknown {
  opacity: 1; visibility: visible;
  transition: opacity .22s ease .05s, visibility 0s;
}
.orgsim[data-mode="agents"] .dash-cell .real,
.orgsim[data-mode="agents"] .dash-live {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .28s ease, transform .28s ease, visibility 0s;
}
.orgsim[data-mode="agents"] .dash-cell:nth-child(1) .real { transition-delay: .18s; }
.orgsim[data-mode="agents"] .dash-cell:nth-child(2) .real { transition-delay: .26s; }
.orgsim[data-mode="agents"] .dash-cell:nth-child(3) .real { transition-delay: .34s; }
.orgsim[data-mode="agents"] .dash-cell:nth-child(4) .real { transition-delay: .42s; }
.orgsim[data-mode="agents"] .dash-live { transition-delay: .50s; }
.orgsim[data-mode="agents"] .dash-cell .ph { opacity: 0; transition-delay: 0s; }
.orgsim[data-mode="agents"] .dash-unknown {
  opacity: 0; visibility: hidden;             /* hidden from AT too, not just visually */
  transition: opacity .22s ease, visibility 0s .22s;
}
@media (prefers-reduced-motion: reduce) {
  .dash-cell .real, .dash-cell .ph, .dash-live, .dash-unknown { transition: none !important; }
}

/* =============================================================
   2. Wedge — pale tint band; the statement carries the
   reference's quote-block move: an orange left rule.
   ============================================================= */
.wedge { background: var(--tint); color: var(--ink); padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wedge-lead { font-size: 30px; line-height: 1.18; font-weight: 600; letter-spacing: 0; max-width: 720px; margin-bottom: 18px; border-left: 3px solid var(--accent); padding-left: 22px; }
.wedge-body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 780px; padding-left: 25px; }
.wedge-body + .wedge-body { margin-top: 16px; }

/* =============================================================
   3. Method strip — 4 numbered tiles (reference card register:
   1px hairline, 3px radius, hover = border lift)
   ============================================================= */
.phase-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.phase {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s cubic-bezier(0.4,0,0.2,1);
}
.phase:hover { border-color: #b3b3b3; }
.phase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.phase-num {
  font-size: 12px; font-weight: bold; color: var(--ink-faint);
  letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.phase-ico { color: var(--accent); font-size: 22px; display: flex; }
.phase h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.phase p { font-size: 14px; color: var(--ink-soft); }

/* =============================================================
   4. What we do
   ============================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.svc-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s cubic-bezier(0.4,0,0.2,1);
}
.svc-card:hover { border-color: #b3b3b3; }
.svc-num {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px; font-weight: bold; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.svc-ico {
  width: 44px; height: 44px; border-radius: 3px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 18px;
}
.svc-card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 600; letter-spacing: 0; margin-bottom: 10px; line-height: 1.25; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); }

/* =============================================================
   5. Working with us — demo engagement cards
   ============================================================= */
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.demo-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  overflow: hidden;
  transition: border-color .2s cubic-bezier(0.4,0,0.2,1);
}
.demo-card:hover { border-color: #b3b3b3; background: var(--card); }
.sample-pill {
  display: block; align-self: stretch;
  font-size: 10px; font-weight: bold;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 28px; border-radius: 0;
  background: var(--tint); color: var(--ink-soft);
  border: 0; border-bottom: 1px solid var(--line);
  margin: -30px -28px 24px;
}
.demo-ico {
  width: 46px; height: 46px; border-radius: 3px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.demo-card h3 { font-size: 24px; color: var(--navy); font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.demo-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.demo-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-weight: bold; font-size: 14.5px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
}
.demo-link .icon { font-size: 16px; }
.demo-card:hover .demo-link { color: var(--accent-dark); }
.demo-card:hover .demo-link .icon { transform: none; }

/* =============================================================
   6. FAQ — plain accordion
   ============================================================= */
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: bold; color: var(--navy); line-height: 1.4;
  transition: color .2s cubic-bezier(0.4,0,0.2,1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-mark { font-family: var(--mono); font-size: 15px; color: var(--accent-dark); flex: none; }
.faq-mark::before { content: "+"; }
.faq-item[open] .faq-mark::before { content: "\2212"; }
.faq-item p { padding: 0 0 24px; font-size: 15px; color: var(--ink-soft); max-width: 680px; }

/* =============================================================
   7. Ask — the reference's signature close: a solid #F04A00
   band, white bold type (its footer register)
   ============================================================= */
.contact {
  background: var(--accent); color: #fff;
  padding: 120px 0; text-align: center;
  border-top: 0;
}
.contact .h2 { color: #fff; margin: 0 auto 16px; }
.contact-body { font-size: 17px; color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 32px; }
.cta-center { justify-content: center; }
.contact-micro { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 22px; }
.contact-hold { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 26px; }
.contact-hold a {
  color: #fff; font-weight: bold; opacity: 0.92;
  text-decoration: underline; text-underline-offset: 2px;
  transition: opacity .2s cubic-bezier(0.4,0,0.2,1);
}
.contact-hold a:hover { opacity: 1; }
.contact-hold .icon { font-size: 13px; vertical-align: -1px; }
.contact a:focus-visible,
.contact button:focus-visible { outline-color: #fff; }

/* =============================================================
   Footer — quiet paper, single hairline
   ============================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-line { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13px; font-weight: bold; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .phase-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 32px; }
  .orgsim-stage { height: 330px; }
}

@media (max-width: 860px) {
  .container, .sitenav-inner { padding-left: 20px; padding-right: 20px; }
  .band { padding: 72px 0; }
  .hero-band { padding: 56px 0 48px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .orgsim-stage { height: 300px; }
  .display { font-size: 38px; }
  .h2 { font-size: 29px; }
  .wedge-lead { font-size: 25px; }

  .nav-toggle { display: inline-flex; }
  .navlinks {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav-cta { margin: 14px 0 0; justify-content: center; }

  .svc-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* dashboard: 2x2 counter grid (4-up labels ellipsize below ~620px);
     region height still fixed and identical in both modes */
  .orgsim-dash { height: 170px; }
  .dash-strip { grid-template-columns: repeat(2, 1fr); height: 104px; grid-auto-rows: 52px; }
  .dash-cell { padding-top: 7px; }
  .dash-cell:nth-child(3) { border-left: 0; }
  .dash-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .dash-kpis { width: 172px; padding-right: 10px; }
  /* narrow column: let the fine print wrap (room exists: lower region is 66px)
     rather than ellipsize away the "demo org" qualifier */
  .dash-fine { white-space: normal; }
}

@media (max-width: 520px) {
  .phase-strip { grid-template-columns: 1fr; }
  .display { font-size: 33px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   Dark theme preview - append ?theme=dark to the URL.
   The original artifact.world ground: white on black, same
   #F04A00 accent, #333 hairlines.
   Non-destructive: nothing changes without the URL param.
   ============================================================= */
html[data-theme="dark"] {
  --navy:        #e5e5e5;
  --navy-soft:   #999999;
  --accent:      #221fc3;
  --accent-dark: #3532e0;   /* hover brightens on dark ground */
  --accent-bright: #3279fc;
  --bg:          #000000;
  --card:        #0a0a0a;
  --tint:        #0a0a0a;
  --ink:         #e5e5e5;
  --ink-soft:    #999999;
  --ink-faint:   #696969;
  --line:        #333333;
  --line-soft:   #1f1f1f;
}
html[data-theme="dark"] .btn { background: #1a1a1a; color: #e5e5e5; }
html[data-theme="dark"] .btn:hover { background: #1a1a1a; border-color: #4f4f4f; color: #fff; }
html[data-theme="dark"] .btn-ghost { background: transparent; color: #e5e5e5; border-color: #333; }
html[data-theme="dark"] .btn-ghost:hover { background: #1a1a1a; border-color: #4f4f4f; color: #fff; }
html[data-theme="dark"] .brand-mark { border-color: #333; background: #fff; }
html[data-theme="dark"] .phase:hover,
html[data-theme="dark"] .svc-card:hover,
html[data-theme="dark"] .demo-card:hover { border-color: #4f4f4f; }
html[data-theme="dark"] .orgsim-toggle button[aria-pressed="true"] { background: #e5e5e5; color: #000; }
html[data-theme="dark"] .navlinks a:not(.btn):hover { color: #fff; }
html[data-theme="dark"] .footer-links a:hover { color: #fff; }

@keyframes rise-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}
.display { animation: rise-in 1.2s cubic-bezier(0.44,0,0.56,1) both; }
.lede    { animation: rise-in 1.2s cubic-bezier(0.44,0,0.56,1) 0.3s both; }
.cta-row { animation: rise-in 1.2s cubic-bezier(0.44,0,0.56,1) 0.5s both; }
@media (prefers-reduced-motion: reduce) {
  .display, .lede, .cta-row { animation: none; }
}

/* =============================================================
   Spec strips on the demo cards - the document-as-proof readout
   (Courier rows, hairlines, tabular nums — the reference's
   .monospace register)
   ============================================================= */
.spec-strip { margin: 0 0 20px; border-top: 1px solid var(--line); align-self: stretch; }
.spec-strip > div {
  display: flex; gap: 14px; padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
}
.spec-strip dt {
  flex: none; width: 88px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint);
}
.spec-strip dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .spec-strip dt { width: 74px; }
}

/* =============================================================
   INTAKE — self-serve audit intake page (intake.html)
   Same grammar as the rest of the site: hairline cards, 3px
   interactive controls, Courier for labels/microcopy, no new
   colors.
   ============================================================= */

/* Slim header: brand + one back link (no navlinks on this page) */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: bold; color: var(--ink-soft);
  transition: color .2s cubic-bezier(0.4,0,0.2,1);
}
.backlink:hover { color: var(--ink); }
.icon-flip { transform: scaleX(-1); }

.intake-band { padding: 72px 0 110px; }
.intake-head { max-width: 640px; margin-bottom: 52px; }
.intake-title {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12;
  font-weight: 600; letter-spacing: 0;
}
.intake-lede { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin-top: 14px; }

.intake-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 64px; align-items: start;
}

/* --- The form: single column, labels above, generous spacing --- */
.intake-form { display: flex; flex-direction: column; gap: 26px; }

.field label {
  display: block;
  font-family: var(--mono); font-size: 11px; font-weight: bold;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.field .opt { color: var(--ink-faint); margin-left: 8px; }

.field input,
.field select,
.field textarea {
  display: block; width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;               /* interactive tier, matches .btn */
  color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.5;
  padding: 12px 14px;
  transition: border-color .2s cubic-bezier(0.4,0,0.2,1), box-shadow .2s cubic-bezier(0.4,0,0.2,1);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #999; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 31, 195, 0.16);   /* accent at low alpha */
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder,
.field textarea::placeholder {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-faint); opacity: 1;
}
/* selects read as placeholder-grey until a choice is made
   (required + empty disabled first option = :invalid) */
.field select:invalid { color: var(--ink-faint); }
.field select option { color: var(--ink); background: var(--card); }

.form-actions {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
  margin-top: 6px;
}
.form-note { font-size: 12px; color: var(--ink-faint); }

.form-error {
  border: 1px solid var(--danger);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 14px; color: var(--danger);
}
.form-error a {
  color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}

/* --- Success state (replaces the form in the same column) --- */
.intake-done {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.intake-done:focus { outline: none; }
.done-ico {
  width: 44px; height: 44px; border-radius: 3px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 18px;
}
.done-title {
  font-family: var(--serif); font-size: 26px; color: var(--navy);
  font-weight: 600; letter-spacing: 0; margin-bottom: 10px;
}
.done-body { font-size: 15.5px; color: var(--ink-soft); max-width: 460px; }
.done-links {
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  margin-top: 26px;
}
.done-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: bold; font-size: 14.5px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s cubic-bezier(0.4,0,0.2,1);
}
.done-link:hover { color: var(--accent-dark); }
.done-link .icon { font-size: 16px; }

/* --- "What happens next" strip (spec-strip register) --- */
.intake-next {
  border-top: 1px solid var(--line);
  position: sticky; top: calc(var(--nav-h) + 32px);
}
.next-cap {
  font-size: 11px; font-weight: bold;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px; line-height: 1.65; color: var(--ink);
}
.next-num {
  flex: none; color: var(--ink-faint);
  letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.next-close { padding: 14px 0 0; font-size: 12px; color: var(--ink); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .intake-band { padding: 48px 0 80px; }
  .intake-head { margin-bottom: 40px; }
  .intake-grid { grid-template-columns: 1fr; gap: 44px; }
  .intake-next { position: static; }
}
@media (max-width: 520px) {
  .form-actions .btn { width: 100%; justify-content: center; }
  .intake-done { padding: 28px 22px; }
}

/* Nudge the eye toward the toggle: the unpressed mode pulses faintly until used */
#orgsim[data-mode="today"] .orgsim-toggle button[aria-pressed="false"] {
  animation: toggle-nudge 2.6s ease-in-out infinite;
}
@keyframes toggle-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 31, 195, 0); }
  50% { box-shadow: 0 0 0 4px rgba(34, 31, 195, 0.22); }
}
@media (prefers-reduced-motion: reduce) {
  #orgsim[data-mode="today"] .orgsim-toggle button[aria-pressed="false"] { animation: none; box-shadow: 0 0 0 2px rgba(34, 31, 195, 0.25); }
}
