/* ============================================================
   SEMICO.AI — Architecture page styles
   Namespace: .ar-*  ·  Adds to semico.css, never redefines tokens.
   ============================================================ */

/* ---------- a11y helper ---------- */
.ar-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 1. Hero ---------- */
.ar-hero {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 80px) 0 clamp(44px, 6vw, 76px);
}
.ar-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.ar-hero .lede { max-width: 620px; }
.ar-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 28px; }
.ar-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* Art rides high — top of the stack aligns with the headline, not below the fold */
.ar-hero-art { display: flex; justify-content: center; align-self: start; margin-top: clamp(0px, 0.6vw, 8px); }
.ar-hero-art svg { width: min(100%, 440px); height: auto; }

/* Isometric stack: five dark dies floating on the sand substrate */
.ar-iso-spine { stroke: rgba(138, 69, 23, 0.5); stroke-width: 1.6; stroke-dasharray: 3 6; }
.ar-iso-slab { filter: drop-shadow(0 14px 14px rgba(36, 31, 22, 0.24)); }
.ar-iso-slab path {
  fill: var(--surface-2);
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 1.6;
  animation: arSlabIn 0.8s var(--ease-out) backwards;
}
/* Dies land bottom-up on load — the stack assembles itself */
.ar-iso-slab:nth-of-type(1) path { animation-delay: 0.05s; }
.ar-iso-slab:nth-of-type(2) path { animation-delay: 0.17s; }
.ar-iso-slab:nth-of-type(3) path { animation-delay: 0.29s; }
.ar-iso-slab:nth-of-type(4) path { animation-delay: 0.41s; }
.ar-iso-slab:nth-of-type(5) path { animation-delay: 0.53s; }
@keyframes arSlabIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.ar-iso-slab--top path {
  fill: var(--surface-3);
  stroke: url(#ar-hg);
  stroke-width: 2;
}
/* Dots light in relay with the climbing packet (same 4.4s period) */
.ar-iso-dot { fill: var(--cyan); animation: arDotPulse 4.4s ease-in-out infinite; }
@keyframes arDotPulse {
  0%, 100% { opacity: 0.25; }
  5%  { opacity: 1; }
  16% { opacity: 0.25; }
}
/* The data packet: one gold pulse climbing L1 → L5 on loop */
.ar-iso-run { animation: arIsoRun 4.4s linear infinite; opacity: 0; }
.ar-iso-run-core { fill: #dcbb55; stroke: rgba(138, 69, 23, 0.55); stroke-width: 1; }
.ar-iso-run-halo { fill: rgba(220, 187, 85, 0.22); }
@keyframes arIsoRun {
  0%   { transform: translateY(0); opacity: 0; }
  4%   { opacity: 1; }
  46%  { transform: translateY(-232px); opacity: 1; }
  54%  { transform: translateY(-232px); opacity: 0; }
  100% { transform: translateY(-232px); opacity: 0; }
}
.ar-iso-label {
  fill: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Tiny verbs on the spine: what each hop upward does — copper on sand */
.ar-iso-verb {
  fill: var(--copper);
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .ar-iso-slab path { animation: none; }
  .ar-iso-dot { animation: none; opacity: 0.85; }
  .ar-iso-run { animation: none; opacity: 0; }
}

@media (max-width: 940px) {
  .ar-hero-grid { grid-template-columns: 1fr; }
  .ar-hero-art { align-self: auto; margin-top: 0; }
  .ar-hero-art svg { width: min(100%, 340px); }
}

/* ---------- 2. Layer stack (centerpiece) ---------- */
/* The stack sits higher when the section is entered */
#layers.section { padding-top: clamp(44px, 6vw, 72px); }

.ar-arch {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 3vw, 44px); align-items: start;
}

.ar-stack { display: flex; flex-direction: column; }
.ar-layer {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--radius-m);
  background: var(--surface-2); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  color: var(--ink-2); font-family: inherit; font-size: 1rem; cursor: pointer;
  transition: border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1), color var(--dur-1);
  opacity: 0;
}
/* Connectors ride ON the sand between the dies — copper, not blue */
.ar-conn {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0 5px 30px; min-height: 32px;
  color: var(--ink-3);
  opacity: 0;
}
.ar-conn-verb {
  flex: none;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper);
  padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1px solid rgba(138, 69, 23, 0.35);
  background: rgba(138, 69, 23, 0.07);
}
.ar-stack.is-built .ar-layer,
.ar-stack.is-built .ar-conn {
  animation: arRise var(--dur-3) var(--ease-out) forwards;
  animation-delay: var(--bd, 0ms);
}
/* Soft landing: rise, drift 4px past, settle */
@keyframes arRise {
  0%   { opacity: 0; transform: translateY(24px); }
  70%  { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}
/* Data pulse: one gold packet relays up the connectors, L1 → L5, on loop.
   Hop window = 12.5% of 4.4s = 0.55s = the stagger, so it reads as one climb. */
@media (prefers-reduced-motion: no-preference) {
  .ar-stack.is-built .ar-conn::before {
    content: ""; position: absolute; left: 35px; top: 50%;
    width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
    background: linear-gradient(140deg, #dcbb55, #a87e1f);
    box-shadow: 0 0 8px rgba(196, 154, 46, 0.65);
    opacity: 0;
    animation: arPulseHop 4.4s linear infinite;
    animation-delay: calc(var(--pd, 0s) + 1.7s);
  }
  /* The layer's number tile ticks as the packet arrives */
  .ar-stack.is-built .ar-layer-num {
    animation: arNumTick 4.4s linear infinite;
    animation-delay: calc(var(--pp, 0s) + 1.7s);
  }
}
@keyframes arPulseHop {
  0%    { opacity: 0; transform: translateY(13px); }
  2%    { opacity: 1; }
  10.5% { opacity: 1; transform: translateY(-12px); }
  12.5% { opacity: 0; transform: translateY(-13px); }
  100%  { opacity: 0; transform: translateY(-13px); }
}
@keyframes arNumTick {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
  1%  { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 0 14px 2px rgba(56, 189, 248, 0.35); }
  9%  { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ar-stack.is-built .ar-layer,
  .ar-stack.is-built .ar-conn { animation: none; opacity: 1; }
}

.ar-layer:hover { border-color: rgba(56, 189, 248, 0.32); color: var(--ink); }
.ar-layer[aria-selected="true"] {
  border-color: rgba(56, 189, 248, 0.55);
  /* translucent brand wash OVER the dark die — never over the sand */
  background: linear-gradient(100deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.10)), var(--surface-2);
  color: var(--ink);
  box-shadow: var(--glow-cyan);
}
.ar-layer-num {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--cyan);
}
.ar-layer[aria-selected="true"] .ar-layer-num {
  background: var(--brand-grad); color: #061018; border-color: transparent;
}
.ar-layer-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-layer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.ar-layer-sub { font-size: 0.8rem; color: var(--ink-3); }
.ar-layer-svg { margin-left: auto; flex: none; color: var(--cyan); opacity: 0.75; }

/* One-line CEO translation — unfolds on hover, focus and on the selected layer */
.ar-layer-ceo {
  display: block; max-height: 0; overflow: hidden;
  opacity: 0; margin-top: 0;
  font-size: 0.8rem; line-height: 1.45; color: var(--ink-2);
  transition: max-height var(--dur-2) var(--ease-out),
              opacity var(--dur-2) var(--ease-out),
              margin-top var(--dur-2) var(--ease-out);
}
.ar-layer-ceo b {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--cyan);
  margin-right: 7px;
}
.ar-layer:hover .ar-layer-ceo,
.ar-layer:focus-visible .ar-layer-ceo,
.ar-layer[aria-selected="true"] .ar-layer-ceo {
  max-height: 3.4em; opacity: 1; margin-top: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .ar-layer-ceo { transition: none; }
}

.ar-conn span {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ar-conn svg { flex: none; color: var(--copper); }

/* Drill-down panel */
.ar-detail {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface-1); border: 1px solid var(--glass-border);
  border-radius: var(--radius-l); padding: clamp(22px, 2.6vw, 32px);
  min-height: 480px;
  box-shadow: var(--shadow-2);
}
.ar-panel { display: none; }
.ar-panel.is-active { display: block; animation: fadeUp var(--dur-2) var(--ease-out); }
.ar-panel-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 10px;
}
.ar-panel h3 { margin-bottom: 0.45em; }
.ar-comps { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.ar-ceo {
  border-left: 3px solid var(--cyan);
  background: var(--glass);
  padding: 14px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin-bottom: 18px;
}
.ar-ceo-label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 6px;
}
.ar-ceo p { margin: 0; color: var(--ink); font-weight: 500; }

/* Icon + fact rows (replace panel prose — de-texted drill-downs) */
.ar-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin: 2px 0 4px;
}
.ar-fact {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--glass); border: 1px solid var(--hairline);
}
.ar-fact svg { flex: none; color: var(--cyan); margin-top: 2px; }
.ar-fact b {
  display: block; font-family: var(--font-ui); font-size: 1.06rem; font-weight: 700;
  color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.ar-fact span { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
@media (max-width: 560px) { .ar-facts { grid-template-columns: 1fr; } }

@media (max-width: 940px) {
  .ar-arch { grid-template-columns: 1fr; }
  .ar-detail { position: static; min-height: 0; }
}

/* Write path strip */
.ar-wp {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 22px clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-1);
}
.ar-wp-title {
  text-align: center; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
/* "act" — the fifth verb; gold on the dark die, echoing the gated-gold CTAs */
.ar-wp-verb {
  display: inline-block; margin-right: 10px; padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(220, 187, 85, 0.4);
  background: linear-gradient(100deg, rgba(220, 187, 85, 0.16), rgba(168, 126, 31, 0.16));
  color: #dcbb55; font-weight: 700; letter-spacing: 0.16em;
}
.ar-wp-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 12px; margin: 14px 0 12px;
}
.ar-wp-step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2);
  white-space: nowrap;
}
.ar-wp-step--gate {
  border-color: rgba(56, 189, 248, 0.55); color: var(--ink);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}
.ar-wp-step--gate svg { color: var(--cyan); }
.ar-wp-arrow { color: var(--ink-3); font-size: 0.9rem; }
/* After the pulse tops out at L5, the approved action flows down the write path */
@media (prefers-reduced-motion: no-preference) {
  .ar-wp-arrow {
    animation: arWpFlow 4.4s linear infinite;
    animation-delay: calc(var(--wd, 0s) + 2.9s);
  }
}
@keyframes arWpFlow {
  0%, 100% { color: var(--ink-3); text-shadow: none; }
  3% { color: #dcbb55; text-shadow: 0 0 10px rgba(220, 187, 85, 0.55); }
  9% { color: var(--ink-3); text-shadow: none; }
}
.ar-wp-note { text-align: center; font-size: 0.84rem; color: var(--ink-3); margin: 0; }
.ar-more { margin-top: 18px; text-align: right; }

/* ---------- 3. Agent anatomy ---------- */
.ar-agent-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.4vw, 48px); align-items: start;
}
@media (max-width: 940px) { .ar-agent-grid { grid-template-columns: 1fr; } }

/* The governed loop lives on its own dark die (.di in HTML) */
.ar-loop-wrap {
  text-align: center;
  border: 1px solid var(--glass-border); border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
}
.ar-loop { width: min(100%, 430px); height: auto; }
.ar-loop-guide { fill: none; stroke: var(--axis-line); stroke-width: 1.5; stroke-dasharray: 3 8; }
.ar-loop-arrow { fill: var(--ink-3); }
.ar-loop-center circle { fill: var(--glass); stroke: var(--glass-border); stroke-width: 1.4; }
.ar-loop-center text {
  fill: var(--ink-2); font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
}
.ar-node circle, .ar-node rect {
  fill: var(--surface-3); stroke: var(--hairline); stroke-width: 1.6;
  transition: stroke var(--dur-1), fill var(--dur-1);
}
.ar-node text {
  fill: var(--ink-2); font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  transition: fill var(--dur-1);
}
.ar-node .ar-node-sub {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; fill: var(--ink-3);
}
.ar-node.is-live circle, .ar-node.is-live rect {
  stroke: var(--cyan); fill: rgba(56, 189, 248, 0.14);
}
.ar-node.is-live text { fill: var(--ink); }
.ar-node.is-done circle, .ar-node.is-done rect { stroke: rgba(56, 189, 248, 0.45); }
.ar-node--gate rect { stroke: rgba(56, 189, 248, 0.4); }

.ar-guard { margin-top: 20px; text-align: left; }
.ar-guard h3 { font-size: 1.05rem; margin-bottom: 10px; }
.ar-guard-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Console column */
.ar-console-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.ar-console-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
#ar-console { min-height: 330px; max-height: 380px; overflow-y: auto; }

.ar-rec {
  margin-top: 16px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 18px 20px;
  box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.ar-rec.is-ready { opacity: 1; transform: none; visibility: visible; }
.ar-rec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.ar-rec-head h3 { margin: 0; font-size: 1.05rem; }
.ar-rec p { font-size: 0.92rem; margin-bottom: 14px; }
.ar-evidence {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--good-text);
}
.ar-gate-box { margin-top: 14px; }
.ar-gate-box pre {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-s); padding: 16px;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.65;
  color: var(--ink-2); overflow-x: auto; margin: 0; min-height: 210px;
  white-space: pre;
}
.ar-gate-audit {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--good-text);
}

/* Named gates */
.ar-gates { margin-top: clamp(40px, 5vw, 64px); }
.ar-gates h3 { margin-bottom: 0.35em; }
.ar-gates-lede { max-width: 640px; margin-bottom: 26px; }
.ar-gates .card p { font-size: 0.9rem; }
.ar-gates .card .chip { margin-top: 4px; }

/* DemoForgi strip */
.ar-df {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-l); padding: 20px clamp(18px, 3vw, 30px);
}
.ar-df p { margin: 0; max-width: 720px; }

/* ---------- 4. Integration wall ---------- */
.ar-int-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#integration .card h3 { font-size: 1.05rem; margin-bottom: 12px; }
#integration .card .icon-tile { margin-bottom: 14px; }

/* Photo + stance: two dies side by side on the sand */
.ar-int-foot {
  margin-top: clamp(32px, 4.5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 2.6vw, 28px); align-items: stretch;
}
.ar-photo { margin: 0; display: flex; flex-direction: column; }
.ar-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; flex: 1; }
.ar-fig-cap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 9px 16px; border-top: 1px solid var(--hairline);
}
.ar-fig-cap .etch { font-size: 0.62rem; }

.ar-stance {
  border: 1px solid var(--glass-border); border-radius: var(--radius-l);
  padding: clamp(26px, 3.6vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    var(--surface-1);
}
.ar-stance svg { color: var(--cyan); margin-bottom: 12px; }
.ar-stance h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 0.5em; }
.ar-stance p { max-width: 780px; margin: 0 auto; }
@media (max-width: 940px) {
  .ar-int-foot { grid-template-columns: 1fr; }
  .ar-photo img { max-height: 320px; }
}

/* ---------- 4b. Trust section — compressed to ~one screen ----------
   Denser padding + a tighter head so the security wall and the deployment
   stepper share a single viewport on a 1440×900 desktop. */
#security.section { padding-top: clamp(38px, 5vw, 64px); padding-bottom: clamp(38px, 5vw, 64px); }
#security .sec-head { margin-bottom: clamp(20px, 2.6vw, 30px); }

/* Security wall — one die, six compact icon+fact cells */
.ar-sec-wall {
  border: 1px solid var(--glass-border); border-radius: var(--radius-l);
  padding: clamp(7px, 1vw, 12px);
  box-shadow: var(--shadow-2);
}
.ar-sec-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--hairline); border-radius: var(--radius-m); overflow: hidden;
}
.ar-sec-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: clamp(12px, 1.5vw, 16px);
  background: var(--surface-2);
}
.ar-sec-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-grad-soft); border: 1px solid var(--glass-border);
  color: var(--cyan);
}
.ar-sec-ic svg { width: 19px; height: 19px; }
.ar-sec-item h3 { font-size: 0.92rem; margin: 1px 0 3px; }
.ar-sec-item p {
  margin: 0; font-size: 0.76rem; color: var(--ink-3); line-height: 1.42;
  font-family: var(--font-mono);
}
@media (max-width: 1020px) { .ar-sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ar-sec-grid { grid-template-columns: 1fr; } }

/* ---------- 5. Deployment — compact horizontal phase stepper ----------
   The tall vertical roadmap timeline collapses into a 3-step horizontal
   tablist on sand: each phase (when · mode · title) always visible, the
   longer detail revealed in one shared panel below — no stacked blocks. */
.ar-deploy { margin-top: clamp(24px, 3.4vw, 40px); }
.ar-deploy-head {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 32px); align-items: center;
  margin-bottom: clamp(14px, 2vw, 20px);
}
.ar-deploy-intro h3 { margin-bottom: 0.3em; }
.ar-deploy-intro p { margin: 0; font-size: 0.9rem; }
.ar-deploy-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.ar-ph-track {
  --ph-gap: clamp(20px, 2.4vw, 34px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ph-gap);
}
.ar-ph {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 13px 15px; border-radius: var(--radius-m);
  background: var(--glass); border: 1px solid var(--hairline);
  border-top: 3px solid var(--hairline);
  color: var(--ink-2); font-family: inherit;
  transition: border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1);
}
/* Copper progress arrow, drawn in the gap ahead of phases 2 and 3 */
.ar-ph:not(:first-child)::before {
  content: ""; position: absolute; left: calc(-0.5 * var(--ph-gap) - 5px); top: 21px;
  width: 9px; height: 9px;
  border-top: 2px solid var(--copper); border-right: 2px solid var(--copper);
  transform: rotate(45deg); opacity: 0.55;
}
.ar-ph:hover { border-color: rgba(138, 69, 23, 0.38); color: var(--ink); }
.ar-ph.is-active {
  background: rgba(138, 69, 23, 0.06);
  border-color: rgba(138, 69, 23, 0.28);
  border-top-color: var(--copper);
  color: var(--ink); box-shadow: var(--shadow-1);
}
.ar-ph-step {
  position: absolute; top: 11px; right: 13px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--ink-3); border: 1px solid var(--hairline);
}
.ar-ph.is-active .ar-ph-step {
  color: var(--copper); border-color: rgba(138, 69, 23, 0.4); background: rgba(138, 69, 23, 0.08);
}
.ar-ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-right: 26px; }
.ar-ph-when {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper);
}
.ar-ph-mode {
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-pill);
  border: 1px solid rgba(138, 69, 23, 0.3); color: var(--copper);
  background: rgba(138, 69, 23, 0.06);
}
.ar-ph-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.96rem;
  line-height: 1.25; color: inherit;
}
.ar-ph-panels { margin-top: 13px; }
.ar-ph-panel { display: none; }
.ar-ph-panel.is-active { display: block; animation: fadeUp var(--dur-2) var(--ease-out); }
.ar-ph-panel p {
  margin: 0; padding: 13px 17px;
  border-left: 3px solid var(--copper);
  background: var(--glass);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.9rem; color: var(--ink-2);
}
@media (prefers-reduced-motion: reduce) { .ar-ph-panel.is-active { animation: none; } }

@media (max-width: 860px) {
  .ar-deploy-head { grid-template-columns: 1fr; }
  .ar-deploy-chips { justify-content: flex-start; }
  .ar-ph-track { grid-template-columns: 1fr; gap: 10px; }
  .ar-ph:not(:first-child)::before { display: none; }
}

/* ---------- 6. CTA band ---------- */
.ar-cta {
  background:
    radial-gradient(1000px 420px at 50% 0%, rgba(56, 189, 248, 0.1), transparent 70%),
    var(--surface-1);
  border-block: 1px solid var(--hairline);
  text-align: center;
}
.ar-cta-inner { max-width: 780px; display: flex; flex-direction: column; align-items: center; }
.ar-cta-inner .kicker::after {
  content: ""; width: 22px; height: 2px;
  background: var(--brand-grad); border-radius: 2px;
}
.ar-cta-inner h2 { margin-bottom: 0.4em; }
.ar-cta-inner .btn { margin-top: 22px; }

/* ---------- 7. Small screens ---------- */
@media (max-width: 640px) {
  .ar-layer { padding: 14px; gap: 12px; }
  .ar-layer-svg { display: none; }
  .ar-conn { flex-wrap: wrap; row-gap: 2px; }
  .ar-wp-step { white-space: normal; }
  .ar-df { flex-direction: column; align-items: flex-start; }
}
