/* ============================================================
   aaas.name — wireframe styles
   Mid-fi: AaaS tokens, but loose/sketchy where appropriate.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-inter);
  background: rgb(var(--basalt-deep));
  color: rgb(var(--text));
}

/* ---------- Generic wireframe primitives ---------- */
.wf-page {
  width: 1280px;
  background:
    radial-gradient(ellipse at 50% 30%, rgb(var(--basalt-bright)) 0%, rgb(var(--basalt-deep)) 60%),
    rgb(var(--basalt-deep));
  color: rgb(var(--text));
  position: relative;
  overflow: hidden;
}

/* film grain overlay */
.wf-page::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

.wf-page > * { position: relative; z-index: 2; }

/* nav bar shared across pages */
.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  border-bottom: 1px solid var(--border);
}
.wf-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jetbrains);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgb(var(--text));
}
.wf-nav-logo .glyph {
  width: 22px; height: 22px;
  border: 1.5px solid rgb(var(--text));
  border-radius: 50%;
  position: relative;
}
.wf-nav-logo .glyph::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: rgb(var(--circuit-glow));
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(var(--circuit-glow) / 0.6);
}
.wf-nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-jetbrains);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.wf-nav-cta {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border: 1px solid rgb(var(--circuit-glow));
  color: rgb(var(--circuit-glow));
  border-radius: 9999px;
}

/* labels */
.ovl {
  font-family: var(--font-jetbrains);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.ovl.cyan { color: rgb(var(--circuit-glow)); }
.ovl.red  { color: rgb(var(--accent-red)); }

.dot-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgb(var(--accent-teal));
  box-shadow: 0 0 8px rgb(var(--accent-teal) / 0.7);
}
.status-dot.cyan { background: rgb(var(--circuit-glow)); box-shadow: 0 0 8px rgb(var(--circuit-glow) / 0.7); }
.status-dot.red  { background: rgb(var(--accent-red));   box-shadow: 0 0 8px rgb(var(--accent-red) / 0.7); }

/* card / glass */
.glass-card {
  background: rgb(var(--basalt-surface) / 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: rgb(var(--circuit-glow));
  color: #000;
  font-family: var(--font-inter);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 13px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: box-shadow 200ms var(--liquid-ease);
}
.btn-primary:hover {
  box-shadow: -4px 4px 0 rgb(var(--accent-red));
  transform: translate(2px, -2px);
}
.btn-primary:active {
  box-shadow: -2px 2px 0 rgb(var(--accent-red));
  transform: translate(0, 0);
}
.btn-outline {
  position: relative;
  transition: color 200ms var(--liquid-ease), border-color 200ms var(--liquid-ease);
}
.btn-outline:hover {
  color: rgb(var(--accent-red));
  border-color: rgb(var(--accent-red) / 0.6);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: transparent;
  color: rgb(var(--text));
  font-family: var(--font-inter);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 13px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
}

/* hero h1 */
.hero-h1 {
  font-family: var(--font-inter);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-size: 88px;
  margin: 0;
}
.hero-h1 .dot { color: rgb(var(--circuit-glow)); }
.hero-h1 .red { color: rgb(var(--accent-red)); }
.hero-h1 .accent { color: rgb(var(--circuit-glow)); }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.section-h2 {
  font-family: var(--font-inter);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: 56px;
  margin: 0;
}
.section-h2 .accent { color: rgb(var(--circuit-glow)); }

/* placeholder block */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0 8px,
      rgba(255,255,255,0.01) 8px 16px
    );
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jetbrains);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* email envelope graphic */
.envelope {
  position: relative;
  background: rgb(var(--basalt-surface));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-jetbrains);
}
.envelope-head {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.envelope-to {
  font-family: var(--font-jetbrains);
  color: rgb(var(--circuit-glow));
  font-size: 13px;
}
.envelope-body {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.5;
  color: rgb(var(--text));
}

/* hand-sketched annotation arrows (optional sketchy layer) */
.annot {
  position: absolute;
  font-family: 'Caveat', 'Permanent Marker', cursive;
  font-size: 18px;
  color: rgb(var(--accent-red));
  z-index: 5;
}

/* ============================================================
   DIRECTION A — "Inbox-first": real email mockup as the hero
   ============================================================ */
.dirA .hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  padding: 80px 56px 100px;
  align-items: center;
}

.dirA .hero-h1 { font-size: 80px; }

.dirA .email-stack {
  position: relative;
  height: 520px;
}

.dirA .email-card {
  position: absolute;
  width: 100%;
  background: rgb(var(--basalt-surface));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.dirA .email-card.outgoing {
  top: 0;
  transform: rotate(-1.5deg);
  z-index: 1;
}
.dirA .email-card.incoming {
  bottom: 0;
  left: 60px;
  width: calc(100% - 60px);
  transform: rotate(1deg);
  background: linear-gradient(180deg, rgb(var(--basalt-bright)) 0%, rgb(var(--basalt-surface)) 100%);
  border-color: rgb(var(--circuit-glow) / 0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 30px rgb(var(--circuit-glow) / 0.15);
  z-index: 2;
}
.dirA .email-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-jetbrains);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.dirA .email-from {
  font-family: var(--font-jetbrains);
  font-size: 13px;
  color: rgb(var(--circuit-glow));
  margin-bottom: 4px;
}
.dirA .email-subj {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}
.dirA .email-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.dirA .arrow-flow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgb(var(--basalt-deep));
  border: 1px solid rgb(var(--circuit-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 30px rgb(var(--circuit-glow) / 0.3);
}

.dirA .how-it-works {
  padding: 100px 56px;
  border-top: 1px solid var(--border);
}
.dirA .how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.dirA .how-step {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgb(var(--basalt-surface) / 0.4);
  position: relative;
}
.dirA .how-num {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  color: rgb(var(--circuit-glow));
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.dirA .how-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--basalt-deep) / 0.5);
}
.dirA .how-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dirA .how-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============================================================
   DIRECTION B — "Conversation flow": full-width thread visualization
   ============================================================ */
.dirB { background: rgb(var(--basalt-deep)); }

.dirB .hero-wrap {
  padding: 80px 56px 60px;
  text-align: center;
}
.dirB .hero-h1 {
  font-size: 96px;
  max-width: 900px;
  margin: 24px auto;
}
.dirB .hero-sub {
  margin: 0 auto 40px;
  text-align: center;
  font-size: 19px;
}
.dirB .hero-ctas {
  display: flex; gap: 12px; justify-content: center;
}

.dirB .thread {
  margin: 80px 56px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgb(var(--basalt-surface) / 0.4);
  position: relative;
}
.dirB .thread-rail {
  position: absolute;
  left: 80px; top: 80px; bottom: 80px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(0,243,255,0) 0%,
    rgb(var(--circuit-glow) / 0.5) 15%,
    rgb(var(--circuit-glow) / 0.5) 85%,
    rgba(0,243,255,0) 100%
  );
}
.dirB .thread-row {
  display: grid;
  grid-template-columns: 64px 1fr 280px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  position: relative;
}
.dirB .thread-row:last-child { margin-bottom: 0; }
.dirB .thread-marker {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgb(var(--basalt-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jetbrains);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 2;
  position: relative;
}
.dirB .thread-row.agent .thread-marker {
  border-color: rgb(var(--circuit-glow));
  color: rgb(var(--circuit-glow));
  box-shadow: 0 0 20px rgb(var(--circuit-glow) / 0.3);
}
.dirB .thread-msg {
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgb(var(--basalt-surface));
}
.dirB .thread-row.agent .thread-msg {
  border-color: rgb(var(--circuit-glow) / 0.3);
}
.dirB .thread-meta {
  font-family: var(--font-jetbrains);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dirB .thread-text {
  font-size: 15px;
  line-height: 1.6;
}
.dirB .thread-deliverable {
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 16px;
  background: rgb(var(--basalt-deep) / 0.6);
}

/* ============================================================
   DIRECTION C — "Use-case showcase": visual-led, big tiles
   ============================================================ */
.dirC .hero-wrap {
  padding: 80px 56px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.dirC .hero-h1 { font-size: 92px; }
.dirC .hero-h1 .strike {
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: rgb(var(--accent-red));
  color: var(--text-muted);
  opacity: 0.6;
}
.dirC .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 20px;
}

.dirC .usecase-strip {
  padding: 60px 56px 100px;
}
.dirC .strip-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
}
.dirC .usecase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 600px;
}
.dirC .uc-tile {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  background: rgb(var(--basalt-surface) / 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dirC .uc-tile.feat {
  grid-row: span 2;
  background:
    radial-gradient(ellipse at 20% 80%, rgb(var(--circuit-glow) / 0.18) 0%, transparent 60%),
    rgb(var(--basalt-surface) / 0.7);
  border-color: rgb(var(--circuit-glow) / 0.25);
}
.dirC .uc-prompt {
  font-family: var(--font-jetbrains);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.dirC .uc-prompt::before {
  content: "TO ▸ ";
  color: rgb(var(--circuit-glow));
}
.dirC .uc-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}
.dirC .uc-tile.feat .uc-title { font-size: 36px; }
.dirC .uc-deliv {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  color: rgb(var(--accent-teal));
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dirC .uc-deliv::before {
  content: "▸ ";
}
.dirC .uc-visual {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 200px; height: 200px;
  opacity: 0.18;
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 12px;
}

/* ============================================================
   DIRECTION D — "Diagram-first": big animated system schematic
   ============================================================ */
.dirD .hero-wrap {
  padding: 60px 56px 40px;
  text-align: center;
}
.dirD .topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgb(var(--accent-red) / 0.4);
  border-radius: 9999px;
  margin-bottom: 32px;
}
.dirD .topic-pill .tlabel {
  font-family: var(--font-jetbrains);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--accent-red));
}
.dirD .hero-h1 {
  font-size: 110px;
  max-width: 1100px;
  margin: 0 auto;
}
.dirD .hero-sub {
  margin: 32px auto 0;
  text-align: center;
}

.dirD .schematic {
  margin: 60px 56px;
  padding: 60px 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 50%, rgb(var(--basalt-bright)) 0%, rgb(var(--basalt-surface)) 60%, rgb(var(--basalt-deep)) 100%);
  position: relative;
}

.dirD .schematic-grid {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 60px;
  align-items: center;
}
.dirD .sch-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dirD .sch-node {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgb(var(--basalt-surface));
  font-family: var(--font-jetbrains);
  font-size: 12px;
  color: var(--text-muted);
}
.dirD .sch-node strong {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  color: rgb(var(--text));
  text-transform: none;
  display: block;
  margin-bottom: 4px;
}
.dirD .sch-center {
  position: relative;
  height: 320px;
}
.dirD .sch-orb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dirD .sch-orb-core {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, rgb(var(--basalt-bright)), rgb(var(--basalt-deep)));
  border: 1px solid rgb(var(--circuit-glow) / 0.4);
  box-shadow: 0 0 80px rgb(var(--circuit-glow) / 0.2), inset 0 0 40px rgb(var(--circuit-glow) / 0.05);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: var(--font-jetbrains);
}
.dirD .sch-orb-core .corename {
  font-size: 11px;
  color: rgb(var(--circuit-glow));
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.dirD .sch-orb-core .coreval {
  font-size: 32px;
  font-weight: 700;
  color: rgb(var(--text));
  font-family: var(--font-inter);
}
.dirD .sch-ring {
  position: absolute;
  border: 1px solid rgb(var(--circuit-glow) / 0.15);
  border-radius: 50%;
}
.dirD .sch-ring.r1 { inset: 30px; border-style: dashed; }
.dirD .sch-ring.r2 { inset: 0; }
.dirD .sch-line {
  stroke: rgb(var(--circuit-glow) / 0.4);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 4;
}

.dirD .sch-flow-label {
  position: absolute;
  font-family: var(--font-jetbrains);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgb(var(--circuit-glow));
  background: rgb(var(--basalt-deep));
  padding: 4px 10px;
  border: 1px solid rgb(var(--circuit-glow) / 0.3);
  border-radius: 9999px;
}

/* shared section foot */
.cta-band {
  padding: 100px 56px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band .section-h2 { margin-bottom: 24px; }
.cta-band p { color: var(--text-muted); margin: 0 auto 32px; max-width: 500px; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; }

/* ---- sketchy mode toggle ---- */
.sketchy {
  font-family: 'Caveat', 'Kalam', cursive;
}
.sketchy.wf-page * {
  /* preserve mono / system feel — only headings get sketchy */
}
.sketchy .hero-h1,
.sketchy .section-h2 {
  font-family: 'Kalam', 'Caveat', cursive;
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.sketchy .ph,
.sketchy .glass-card,
.sketchy .uc-tile,
.sketchy .sch-node,
.sketchy .email-card,
.sketchy .thread-msg,
.sketchy .thread-deliverable {
  border-style: dashed !important;
  border-radius: 6px;
}


/* ============================================================
   RED-ACCENT INTERACTION LAYER (dev handover)
   Per AaaS spec: red is the SIGNAL color — appears in motion,
   in click feedback, on press, on hover signals. Never dominant.
   ============================================================ */

/* --- 1. Click flash (full-viewport red pulse, 80ms) --- */
.click-flash {
  position: fixed;
  inset: 0;
  background: rgb(var(--accent-red));
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}
.click-flash.fire {
  animation: clickFlash 200ms var(--liquid-ease);
}
@keyframes clickFlash {
  0%   { opacity: 0.35; }
  100% { opacity: 0; }
}

/* --- 2. Kinetic hairline (sweeping red dot every 4s) --- */
.kinetic-bar {
  position: relative;
  height: 1px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin: 0 56px;
}
.kinetic-bar::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 80px; height: 7px;
  border-radius: 9999px;
  background: radial-gradient(ellipse, rgb(var(--accent-red) / 0.9) 0%, transparent 70%);
  filter: blur(2px);
  animation: kineticSweep 4s var(--liquid-ease) infinite;
}
@keyframes kineticSweep {
  0%   { left: -10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* --- 3. Logo dot pulse (cyan ↔ red every 3s) --- */
.wf-nav-logo .glyph::after {
  animation: logoDotPulse 3s var(--liquid-ease) infinite;
}
@keyframes logoDotPulse {
  0%, 100% {
    background: rgb(var(--circuit-glow));
    box-shadow: 0 0 10px rgb(var(--circuit-glow) / 0.7);
  }
  50% {
    background: rgb(var(--accent-red));
    box-shadow: 0 0 10px rgb(var(--accent-red) / 0.7);
  }
}

/* --- 4. Status dot pulse (animated, default + variants) --- */
.status-dot {
  animation: statusPulse 2.4s var(--liquid-ease) infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

/* --- 5. Hover-glow on cards: red rim on press/active --- */
.glass-card,
.dirA .how-step,
.dirA .email-card,
.dirB .thread-msg,
.dirC .uc-tile,
.dirD .sch-node {
  transition: transform 300ms var(--liquid-ease),
              border-color 300ms var(--liquid-ease),
              box-shadow 300ms var(--liquid-ease);
}
.glass-card:hover,
.dirA .how-step:hover,
.dirC .uc-tile:hover,
.dirD .sch-node:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--circuit-glow) / 0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35),
              0 0 0 1px rgb(var(--circuit-glow) / 0.08),
              -4px 4px 0 -2px rgb(var(--accent-red) / 0.4);
}
.dirA .how-step:active,
.dirC .uc-tile:active {
  border-color: rgb(var(--accent-red) / 0.6);
  box-shadow: 0 0 24px rgb(var(--accent-red) / 0.25);
}

/* --- 6. Topic / section labels — red corner accent --- */
.ovl.cyan::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: rgb(var(--accent-red));
  border-radius: 50%;
  margin-right: 8px;
  margin-bottom: 1px;
  vertical-align: middle;
  animation: statusPulse 2.4s var(--liquid-ease) infinite;
}

/* --- 7. Link / nav-item hover: cyan→red flip on press --- */
.wf-nav-links span,
.wf-nav-cta {
  position: relative;
  cursor: pointer;
  transition: color 200ms var(--liquid-ease), border-color 200ms var(--liquid-ease);
}
.wf-nav-links span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: rgb(var(--accent-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--liquid-ease);
}
.wf-nav-links span:hover {
  color: rgb(var(--text));
}
.wf-nav-links span:hover::after {
  transform: scaleX(1);
}
.wf-nav-cta:hover {
  border-color: rgb(var(--accent-red));
  color: rgb(var(--accent-red));
  box-shadow: -3px 3px 0 rgb(var(--accent-red) / 0.3);
}

/* --- 8. Direction A — incoming email red "delivered" badge --- */
.dirA .email-card.incoming::before {
  content: "DELIVERED";
  position: absolute;
  top: -10px; right: 24px;
  font-family: var(--font-jetbrains);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  background: rgb(var(--accent-red));
  color: #000;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgb(var(--accent-red) / 0.5);
  animation: badgePop 600ms var(--liquid-ease) 400ms backwards;
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- 9. Direction B — thread "you" markers gain red ring on hover --- */
.dirB .thread-row:not(.agent) .thread-marker {
  transition: border-color 250ms var(--liquid-ease), box-shadow 250ms var(--liquid-ease);
}
.dirB .thread-row:not(.agent):hover .thread-marker {
  border-color: rgb(var(--accent-red));
  box-shadow: 0 0 18px rgb(var(--accent-red) / 0.5);
}

/* --- 10. Direction C — usecase prompt quote-mark in red --- */
.dirC .uc-prompt::after {
  content: "  ◂";
  color: rgb(var(--accent-red));
  margin-left: 4px;
  letter-spacing: 0;
}

/* --- 11. Direction D — schematic "DELIVER" arrow flicker --- */
.dirD .sch-flow-label:last-of-type {
  position: absolute;
  animation: deliverFlicker 5s var(--liquid-ease) infinite;
}
@keyframes deliverFlicker {
  0%, 60%, 100% {
    border-color: rgb(0 212 184 / 0.3);
    color: rgb(0 212 184);
  }
  65%, 70% {
    border-color: rgb(var(--accent-red));
    color: rgb(var(--accent-red));
    box-shadow: 0 0 12px rgb(var(--accent-red) / 0.4);
  }
}

/* --- 12. CTA band — red kinetic underline under headline --- */
.cta-band .section-h2 {
  position: relative;
  display: inline-block;
}
.cta-band .section-h2::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgb(var(--accent-red)) 50%,
    transparent 100%);
  opacity: 0.7;
  animation: ctaUnderline 3s var(--liquid-ease) infinite;
}
@keyframes ctaUnderline {
  0%, 100% { transform: scaleX(0.6); opacity: 0.4; }
  50%      { transform: scaleX(1);   opacity: 0.9; }
}

/* --- 13. Reduced motion — kill all decorative anims --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 150ms !important;
  }
}

/* ============================================================
   DEV HANDOVER SPEC (visible on canvas)
   ============================================================ */
.handover-spec {
  width: 1280px;
  background: rgb(var(--basalt-surface));
  color: rgb(var(--text));
  padding: 56px;
  font-family: var(--font-inter);
  border: 1px solid rgba(255,255,255,0.08);
}
.handover-spec h2 {
  font-family: var(--font-inter);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 8px;
}
.handover-spec h2 .accent { color: rgb(var(--accent-red)); }
.handover-spec .lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.6;
}
.handover-spec .row {
  display: grid;
  grid-template-columns: 180px 1fr 360px;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.handover-spec .row .num {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent-red));
}
.handover-spec .row .what {
  font-size: 15px;
  line-height: 1.55;
}
.handover-spec .row .what strong {
  display: block;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}
.handover-spec .row .demo {
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px;
  background: rgb(var(--basalt-deep));
  font-family: var(--font-jetbrains);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.handover-spec code {
  background: rgb(var(--basalt-deep));
  padding: 2px 6px;
  border-radius: 4px;
  color: rgb(var(--accent-red));
  font-size: 12px;
}


/* ============================================================
   ONE-PAGER layout — single flowing landing page
   ============================================================ */
.onepager {
  width: 100%;
  min-width: 1280px;
}
.onepager .hero-wrap,
.onepager .schematic,
.onepager .thread,
.onepager .usecase-strip {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* sticky glass nav */
.op-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--basalt-deep) / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* section dividers between composed blocks */
.onepager .dirD,
.onepager .dirB,
.onepager .dirC {
  border-top: 1px solid var(--border);
}

/* footer */
.op-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px;
  border-top: 1px solid var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

.op-final-cta {
  max-width: 1280px;
  margin: 0 auto;
}


/* AaaS wordmark logo (replaces CSS glyph in one-pager nav + footer) */
.op-logo {
  height: 22px;
  width: auto;
  display: block;
}
[data-theme="light"] .op-logo { filter: invert(1); }


/* ============================================================
   CONTEXT STACK — orbit diagram + cards (shared: module + page)
   ============================================================ */
.intern-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 500px;
}
.intern-note .status-dot { margin-top: 6px; flex-shrink: 0; }

.ctx-module {
  padding: 96px 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.ctx-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.ctx-head .ovl { display: flex; justify-content: center; margin-bottom: 16px; }
.ctx-head h2 { margin: 0 0 16px; }
.ctx-head p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.6; }

.ctx-orbit {
  position: relative;
  margin: 0 auto 64px;
}
.ctx-ring-outer {
  border: 1px dashed rgb(var(--accent-teal) / 0.35);
}
.ctx-ring-mid {
  border: 1px solid rgb(var(--circuit-glow) / 0.45);
}
.ctx-core {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, rgb(var(--basalt-bright)), rgb(var(--basalt-deep)));
  border: 1px solid rgb(var(--accent-red) / 0.55);
  box-shadow: 0 0 40px rgb(var(--accent-red) / 0.18), inset 0 0 20px rgb(var(--accent-red) / 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-jetbrains);
  transition: box-shadow 300ms var(--liquid-ease);
}
.ctx-core .corelabel { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgb(var(--accent-red)); }
.ctx-core .coreval { font-family: var(--font-inter); font-weight: 700; font-size: 13px; color: rgb(var(--text)); margin-top: 2px; }
.ctx-orbit:hover .ctx-core {
  box-shadow: 0 0 56px rgb(var(--accent-red) / 0.3), inset 0 0 24px rgb(var(--accent-red) / 0.1);
}

.ctx-ring-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-jetbrains);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgb(var(--basalt-deep));
  white-space: nowrap;
}
.ctx-ring-label.outer { border: 1px solid rgb(var(--accent-teal) / 0.5); color: rgb(var(--accent-teal)); }
.ctx-ring-label.mid { border: 1px solid rgb(var(--circuit-glow) / 0.5); color: rgb(var(--circuit-glow)); }

.ctx-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ctx-card { padding: 24px; }
.ctx-card h4 { margin: 12px 0 8px; }
.ctx-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.55; }
.ctx-link {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--accent-red));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 200ms var(--liquid-ease);
}
.ctx-link:hover { text-decoration: underline; opacity: 0.85; }

/* personal vs organizational comparison */
.ctx-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
.ctx-compare .col {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px;
  background: rgb(var(--basalt-surface) / 0.35);
}
.ctx-compare .col.org { border-color: rgb(var(--accent-teal) / 0.3); }
.ctx-compare h3 { margin: 12px 0 20px; }
.ctx-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ctx-compare li { font-size: 14px; color: var(--text-muted); padding-left: 18px; position: relative; }
.ctx-compare li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--circuit-glow));
}
.ctx-compare .col.org li::before { background: rgb(var(--accent-teal)); }

/* tool-diversity comparison grid */
.tool-grid {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.tool-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 24px;
  background: rgb(var(--basalt-surface) / 0.3);
  transition: background 200ms var(--liquid-ease);
}
.tool-row:nth-child(even) { background: rgb(var(--basalt-surface) / 0.12); }
.tool-row:hover { background: var(--circuit-dim); }
.tool-row .tool-name { font-family: var(--font-jetbrains); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--circuit-glow)); }
.tool-row .tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }


/* ============================================================
   DEPTH PASS — link base styles, atmosphere, rhythm, diagram
   ============================================================ */

/* --- base link styles (were missing: buttons rendered underlined) --- */
a { color: rgb(var(--circuit-glow)); text-decoration: none; }
a:hover { color: rgb(var(--accent-red)); }
.btn-primary, .btn-outline, .ctx-link, .wf-nav-logo { text-decoration: none; }
.btn-primary, .btn-outline { white-space: nowrap; }
.btn-primary:hover, .btn-outline:hover, .ctx-link:hover { text-decoration: none; }
.ctx-link { white-space: nowrap; }
.ctx-link:hover { color: rgb(var(--accent-red)); opacity: 1; border-bottom: 1px solid rgb(var(--accent-red) / 0.5); }

/* --- CTA band: heading no longer collides with its animated underline --- */
.cta-band .section-h2 { max-width: 860px; padding-bottom: 10px; }
.cta-band p { margin-top: 30px; }

/* --- section atmosphere (soft aura behind key moments) --- */
.sec-aura { position: relative; isolation: isolate; }
.sec-aura::before {
  content: "";
  position: absolute;
  left: 50%; top: -40px;
  transform: translateX(-50%);
  width: 980px; height: 560px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgb(var(--circuit-glow) / 0.10) 0%, transparent 65%);
}
.sec-aura.red::before {
  background: radial-gradient(ellipse at center, rgb(var(--accent-red) / 0.09) 0%, transparent 65%);
}

/* --- hero typographic flow signature --- */
.hero-flow {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  font-family: var(--font-jetbrains);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-flow .tok {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  background: rgb(var(--basalt-surface) / 0.5);
}
.hero-flow .tok.cy { border-color: rgb(var(--circuit-glow) / 0.4); color: rgb(var(--circuit-glow)); }
.hero-flow .tok.tl { border-color: rgb(var(--accent-teal) / 0.4); color: rgb(var(--accent-teal)); }
.hero-flow .arw { color: rgb(var(--accent-red)); font-style: normal; }
.hero-flow .note { opacity: 0.55; letter-spacing: 0.1em; }

/* breadcrumb eyebrow for subpages */
.page-crumb {
  font-family: var(--font-jetbrains);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 28px 56px 0;
  max-width: 1280px;
  margin: 0 auto;
}
.page-crumb a { color: var(--text-muted); }
.page-crumb a:hover { color: rgb(var(--accent-red)); }
.page-crumb .sep { color: rgb(var(--accent-red)); margin: 0 8px; }

/* --- left-aligned section head variant (breaks centered monotony) --- */
.ctx-head.left {
  text-align: left;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.ctx-head.left .ovl { justify-content: flex-start; }
.ctx-head.left p { margin-top: 16px; max-width: 560px; }
.ctx-head.left .head-meta { flex-shrink: 0; padding-bottom: 6px; }

/* --- orbit: teammate dots on the .company ring (multiplicity) --- */
.ctx-peers {
  position: absolute;
  inset: 0;
  animation: orbitSpin 90s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.ctx-peer {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgb(var(--accent-teal));
  box-shadow: 0 0 10px rgb(var(--accent-teal) / 0.6);
}
.ctx-orbit-wrap { position: relative; }
.ctx-orbit-caption {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-jetbrains);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ctx-orbit-caption b { color: rgb(var(--accent-teal)); font-weight: 400; }
.ctx-orbit-caption i { color: rgb(var(--accent-red)); font-style: normal; }

/* --- compare: visible merge between personal + org --- */
.ctx-compare { grid-template-columns: 1fr 72px 1fr; align-items: center; }
.ctx-merge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  padding: 24px 0;
}
.ctx-merge .line {
  width: 1px; flex: 1; min-height: 40px;
  background: linear-gradient(to bottom, transparent, rgb(var(--circuit-glow) / 0.4), transparent);
}
.ctx-merge .glyph {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgb(var(--accent-red) / 0.5);
  background: rgb(var(--basalt-deep));
  color: rgb(var(--accent-red));
  font-family: var(--font-jetbrains);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgb(var(--accent-red) / 0.2);
}
.ctx-compare-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.ctx-compare-foot strong { color: rgb(var(--text)); font-weight: 600; }

/* --- tool grid: index + per-row accent coding --- */
.tool-row {
  grid-template-columns: 40px 170px 1fr;
  padding: 18px 24px 18px 26px;
  position: relative;
}
.tool-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--row-accent, transparent);
  opacity: 0.75;
  transition: background 200ms var(--liquid-ease), opacity 200ms var(--liquid-ease);
}
.tool-row:hover::before { background: rgb(var(--accent-red)); opacity: 1; }
.tool-idx {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.tool-row .tool-name { color: var(--row-accent, rgb(var(--circuit-glow))); }

/* the punchline, given real weight */
.tool-punch { margin-top: 48px; text-align: center; }
.tool-punch p {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 720px;
  margin: 14px auto 0;
  color: rgb(var(--text));
  text-wrap: pretty;
}

/* module link, given presence */
.ctx-module-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  font-family: var(--font-jetbrains);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--text));
  transition: border-color 200ms var(--liquid-ease), color 200ms var(--liquid-ease), box-shadow 200ms var(--liquid-ease);
}
.ctx-module-link:hover {
  border-color: rgb(var(--accent-red));
  color: rgb(var(--accent-red));
  box-shadow: -3px 3px 0 rgb(var(--accent-red) / 0.3);
}


/* --- depth pass: wrap + collision corrections --- */
.wf-nav-links span, .wf-nav-cta { white-space: nowrap; }
.hero-flow .tok, .hero-flow .note { white-space: nowrap; }

/* left-aligned heads: keep H2 to two lines and clear of the lede */
.ctx-head.left > div:first-child { max-width: 760px; min-width: 0; }
.ctx-head.left h2 { font-size: 44px; line-height: 1.04; margin: 0; }
.ctx-head.left p { position: relative; margin-top: 20px; }

/* CTA heading: shrink-to-fit on max-content so authored line breaks hold */
.cta-band .section-h2 { display: inline-block; max-width: none; padding-bottom: 12px; }
.cta-band p { margin-top: 34px; max-width: 440px; }

/* ---------- mobile: the fixed-width design canvases must not overflow the
 * viewport (probe aaas.name 2026-10-26, 390x844: documentElement scrollWidth
 * 1280 vs 390 — the .onepager min-width forced the page wide). The canvases
 * keep their design width where it fits; below their design width the PAGE
 * no longer scrolls — each canvas frame scrolls its own content instead.
 * Deliberately NOT body{overflow-x:hidden}: nothing is masked, every canvas
 * stays reachable by its own scrollbar. ---------- */
@media (max-width: 1320px) {
  .onepager { min-width: 0; }
  .wf-page,
  .handover-spec {
    max-width: 100%;
    overflow-x: auto;
  }
}
