/* ============================================================
   SEMICO.AI — Why SemAi page styles · v4 "lighter silicon sand"
   Namespace: .wy-*  ·  Adds to semico.css, never redefines tokens.
   Page plane is sand (dark ink). v4 pass: content cards use the
   SPEC v4 light-card recipe (#f9f5ec / #f4eddd / #efe6d2, hairline,
   warm shadow); the only remaining dark islands are demo chrome
   (knowledge console) and photo-frame captions, which keep .di.
   ============================================================ */

/* ---------- 1. Hero ---------- */
.wy-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 108px) 0 clamp(44px, 6vw, 80px);
}
.wy-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.wy-hero-copy .lede { max-width: 600px; }
.wy-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 26px; }
.wy-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* art rides toward the headline (start-aligned) rather than centred, and a
   touch higher — bigger scene, lifted up. Reset in the stacked layout below. */
.wy-hero-art { display: flex; justify-content: center; align-self: start; margin-top: clamp(-26px, -1.7vw, -8px); }

/* ---------- 1b. "A Tuesday in the corner office" — hero character scene.
   House stick-figure language (hexagon-headed agents, ink on sand, copper
   accents; status colors only for state). One 16s narrative loop:
   alerts fly in → coffee trembles → agents march in → each alert is
   caught and stamped "handled · cited" → the stack grows → the CEO leans
   back. Base (non-animated) styles ARE the final calm state, so
   prefers-reduced-motion lands there automatically. ---------- */
.wy-tuesday { width: min(100%, 640px); }
.wy-tuesday svg { display: block; width: 100%; height: auto; }
.tu-scene .sk { stroke: var(--ink-2); stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tu-scene .sk-thin { stroke: var(--ink-3); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.tu-scene .sk-cop { stroke: var(--copper); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tu-scene .sk-copf { fill: var(--copper); }
.tu-scene .sk-good { stroke: var(--sand-good); fill: none; stroke-linecap: round; }
.tu-scene .etchtxt { font-family: var(--font-mono); fill: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; }
.tu-scene .tu-emoji { font-size: 11px; }
.tu-scene .tu-albl, .tu-scene .tu-dlbl {
  font-family: var(--font-mono); fill: var(--ink-2); font-size: 7.5px;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.tu-scene .tu-alert-box { fill: rgba(160, 36, 36, 0.06); stroke: var(--sand-bad); stroke-width: 1.5; opacity: 0.9; }
.tu-scene .tu-done-box { fill: rgba(13, 107, 13, 0.06); stroke: var(--sand-good); stroke-width: 1.4; }
.tu-scene .tu-tick { fill: var(--sand-good); font-size: 9px; font-weight: 700; }

/* alert chips: fly in staggered, hover, get caught at ~46% */
.tu-a { opacity: 0; animation: wyTuFly 16s var(--ease-out, ease) infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.tu-a2 { animation-delay: 0.85s; } .tu-a3 { animation-delay: 1.7s; }
.tu-a4 { animation-delay: 2.55s; } .tu-a5 { animation-delay: 3.4s; }
.tu-hover { animation: wyTuBob 2.6s ease-in-out infinite; }
@keyframes wyTuFly {
  0% { opacity: 0; transform: translate(-150px, -70px) scale(0.9); }
  4% { opacity: 1; }
  7% { transform: translate(0, 0) scale(1); }
  41% { opacity: 1; transform: translate(0, 0) scale(1); }
  46%, 100% { opacity: 0; transform: translate(6px, 26px) scale(0.55); }
}
@keyframes wyTuBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

/* agents: walk-cycle walkers march in, then crossfade to standing stampers */
.tu-walker { opacity: 0; animation: wyTuMarch 16s linear infinite; }
.tu-w2 { animation-delay: 0.85s; } .tu-w3 { animation-delay: 1.7s; }
.tu-w4 { animation-delay: 2.55s; } .tu-w5 { animation-delay: 3.4s; }
.tu-walker .legF { animation: wyLegF 0.72s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0%; }
.tu-walker .legB { animation: wyLegB 0.72s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0%; }
.tu-walker .armF { animation: wyLegB 0.72s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0%; }
.tu-walker .armB { animation: wyLegF 0.72s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0%; }
.tu-walker .wbob { animation: wyBobW 0.36s ease-in-out infinite; }
@keyframes wyTuMarch {
  0% { opacity: 0; transform: translateX(-340px); }
  6% { opacity: 1; }
  30% { opacity: 1; transform: translateX(0); }
  33%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes wyLegF { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-24deg); } }
@keyframes wyLegB { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(24deg); } }
@keyframes wyBobW { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
.tu-stand { animation: wyTuStand 16s linear infinite backwards; }
.tu-s2 { animation-delay: 0.85s; } .tu-s3 { animation-delay: 1.7s; }
.tu-s4 { animation-delay: 2.55s; } .tu-s5 { animation-delay: 3.4s; }
@keyframes wyTuStand {
  0%, 30% { opacity: 0; }
  33% { opacity: 1; }
  96% { opacity: 1; }
  100% { opacity: 0; }
}
.tu-stamparm { animation: wyTuStampArm 16s ease-in-out infinite; }
.tu-s2 .tu-stamparm { animation-delay: 0.85s; } .tu-s3 .tu-stamparm { animation-delay: 1.7s; }
.tu-s4 .tu-stamparm { animation-delay: 2.55s; } .tu-s5 .tu-stamparm { animation-delay: 3.4s; }
@keyframes wyTuStampArm {
  0%, 38% { transform: rotate(0deg); }
  42% { transform: rotate(-26deg); }
  46% { transform: rotate(9deg); }
  50%, 100% { transform: rotate(0deg); }
}
.tu-catch { opacity: 0; animation: wyTuCatch 16s linear infinite; }
.tu-s2 .tu-catch { animation-delay: 0.85s; } .tu-s3 .tu-catch { animation-delay: 1.7s; }
.tu-s4 .tu-catch { animation-delay: 2.55s; } .tu-s5 .tu-catch { animation-delay: 3.4s; }
@keyframes wyTuCatch { 0%, 43% { opacity: 0; } 45%, 49% { opacity: 1; } 53%, 100% { opacity: 0; } }

/* the handled stack: rows stamp in (scale-down pop), clear when the loop resets */
.tu-done { animation: wyTuDone 16s var(--ease-out, ease) infinite backwards; transform-box: fill-box; transform-origin: 50% 50%; }
.tu-d2 { animation-delay: 0.85s; } .tu-d3 { animation-delay: 1.7s; }
.tu-d4 { animation-delay: 2.55s; } .tu-d5 { animation-delay: 3.4s; }
@keyframes wyTuDone {
  0%, 44% { opacity: 0; transform: translateY(-14px) scale(1.6); }
  47% { opacity: 1; transform: translateY(1px) scale(1); }
  49% { transform: translateY(0) scale(1); }
  99% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(1); }
}

/* CEO: upright while alerts land, leans back once the stack is handled */
.tu-lean { transform: rotate(9deg); animation: wyTuLean 16s ease-in-out infinite; }
@keyframes wyTuLean {
  0%, 68% { transform: rotate(0deg); }
  74% { transform: rotate(10.5deg); }
  80%, 96% { transform: rotate(9deg); }
  100% { transform: rotate(0deg); }
}

/* coffee: a trembling cup crossfades to a calm, steaming one */
.tu-cup-live { opacity: 0; animation: wyTuCupLive 16s linear infinite; }
.tu-cup-calm { animation: wyTuCupCalm 16s linear infinite; }
.tu-shake { animation: wyTuShake 0.42s linear infinite; }
@keyframes wyTuCupLive { 0% { opacity: 1; } 66% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes wyTuCupCalm { 0% { opacity: 0; } 66% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes wyTuShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(0.8px, -0.4px) rotate(0.9deg); }
  50% { transform: translate(-0.7px, 0.3px) rotate(-0.8deg); }
  75% { transform: translate(0.5px, 0.4px) rotate(0.6deg); }
}
.tu-steam { animation: wyTuSteam 2.4s ease-in-out infinite; }
@keyframes wyTuSteam { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

/* reduced motion: kill the stagger too, so the calm base state is immediate */
@media (prefers-reduced-motion: reduce) {
  .tu-scene * { animation-delay: 0s !important; }
}

/* ---------- 1c. Roadmap facts strip — on-sand, etch labels + ink values ---------- */
.wy-facts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  margin-top: clamp(26px, 4vw, 44px);
  width: max-content; max-width: 100%; margin-inline: auto;
}
.wy-fact {
  display: flex; align-items: baseline; gap: 12px;
  padding: 6px 30px; border-right: 1px solid var(--hairline);
}
.wy-fact:last-child { border-right: 0; }
.wy-fact-v {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.1;
}
.wy-fact-l {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 760px) {
  .wy-facts { flex-direction: column; align-items: stretch; width: 100%; }
  .wy-fact { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 10px 4px; justify-content: space-between; }
  .wy-fact:last-child { border-bottom: 0; }
}

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

/* ---------- 2. Origin duo + tick lists (v4 light cards) ---------- */
.wy-duo {
  background: #f9f5ec; border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 26px;
  box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
/* shared light-card icon tile: sand glass + copper (mirrors the cliff rows) */
.wy-duo .icon-tile, .wy-native-row .icon-tile, .wy-flip-face .icon-tile {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--copper); font-size: 1.25rem;
}
.wy-duo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.wy-duo-head .icon-tile { margin: 0; }
.wy-duo-head h3 { margin: 0; font-size: 1.14rem; }
.wy-duo-line { margin: 0 0 4px; font-size: 0.92rem; }

/* Expander: content preserved behind a quiet etched toggle */
.wy-x-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink-2); cursor: pointer;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.wy-x-toggle:hover { color: var(--ink); border-color: var(--link); }
.wy-x-toggle svg { transition: transform var(--dur-2) var(--ease-out); flex: none; }
.wy-x-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.wy-x-body { animation: fadeUp var(--dur-2) var(--ease-out); }

/* Screen-reader-only helper for flip toggles */
.wy-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wy-ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.wy-ticks li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  color: var(--ink-2); font-size: 0.92rem; line-height: 1.5;
}
.wy-ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sand-good); font-weight: 700; font-size: 0.85rem;
}
.wy-ticks a { color: var(--link); }

/* ---------- 3. Vocabulary test (v4 light panel; product chips stay dark dies) ---------- */
.wy-vocab {
  margin-top: clamp(36px, 5vw, 60px);
  background: #f9f5ec;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
.wy-vocab-head { max-width: 720px; margin-bottom: 20px; }
.wy-vocab-head h3 { margin-bottom: 6px; }
.wy-vocab-head p { margin: 0; font-size: 0.95rem; }
.wy-wry { color: var(--ink-3); font-style: italic; }
.wy-vocab-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
/* terms as etched chips — silkscreen type on little dies */
.wy-term {
  padding: 9px 15px; border-radius: 8px;
  background: #f4eddd; border: 1px solid var(--hairline);
  color: var(--ink-2); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.wy-term:hover { color: var(--ink); border-color: rgba(11, 102, 163, 0.4); transform: translateY(-1px); }
.wy-term.is-active {
  color: var(--ink); background: rgba(11, 102, 163, 0.08);
  border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link);
}
.wy-vocab-panel {
  background: #f4eddd; border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 22px 24px;
}
.wy-vocab-panel.is-active { animation: fadeUp var(--dur-2) var(--ease-out); }
.wy-vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wy-vp-grid p { margin: 0; font-size: 0.94rem; }
.wy-vp-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.wy-vp-grid > div:last-child .wy-vp-label { color: var(--link); }
.wy-vp-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wy-vp-products .chip { color: var(--ink); }
.wy-vp-products .chip:hover { border-color: rgba(56, 189, 248, 0.4); }
.wy-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
@media (max-width: 720px) {
  .wy-vp-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- 3b. Domain-native: photo + decision rows ---------- */
.wy-native-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 60px); align-items: center;
}
.wy-native-photo { margin: 0; }
/* keep the die-on-sand tilt through (and after) the scroll reveal */
.wy-native-photo.reveal { transform: rotate(-1.2deg) translateY(26px); }
.wy-native-photo.reveal.in-view { transform: rotate(-1.2deg); }
.wy-fig-cap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; padding: 9px 16px;
  border-top: 1px solid var(--hairline);
}
.wy-fig-cap .etch { font-size: 0.62rem; }
.wy-native-rows { display: flex; flex-direction: column; gap: 14px; }
.wy-native-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: #f9f5ec;
  border: 1px solid var(--hairline); border-radius: var(--radius-m);
  padding: 18px 20px; box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
.wy-native-row h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.wy-native-row p { margin: 0 0 10px; font-size: 0.9rem; }
.wy-native-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* etched spec chips — silkscreen type; glass tokens resolve per plane */
.wy-echip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2);
}
a.wy-echip { transition: border-color var(--dur-1), color var(--dur-1); }
a.wy-echip:hover { border-color: var(--link); color: var(--ink); }
@media (max-width: 940px) {
  .wy-native-grid { grid-template-columns: 1fr; }
  .wy-native-photo { max-width: 540px; }
}

/* ---------- 4. Knowledge cliff ---------- */
.wy-urgency-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 48px); align-items: start;
  margin-top: clamp(30px, 4vw, 48px);
}
.wy-urgency-copy h3 { margin-bottom: 12px; }
.wy-urgency-copy p { font-size: 0.98rem; }
/* icon + fact rows (sit directly on the sand — ink resolves dark) */
.wy-cliff { list-style: none; padding: 0; margin: 16px 0 18px; display: flex; flex-direction: column; gap: 13px; }
.wy-cliff li { display: flex; gap: 14px; align-items: flex-start; }
.wy-cliff-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-top: 2px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--copper);
}
.wy-cliff b { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.wy-cliff span { display: block; font-size: 0.86rem; color: var(--ink-2); line-height: 1.45; }
.wy-cliff-close { font-size: 0.95rem; max-width: 520px; }
.wy-console-wrap {
  background: var(--surface-1); border: 1px solid var(--glass-border);
  border-radius: var(--radius-l); padding: 16px 18px 14px;
}
.wy-console-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.wy-console-title {
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
#wy-console { min-height: 236px; }
.wy-console-cap { font-size: 0.78rem; color: var(--ink-3); margin: 10px 2px 0; }
@media (max-width: 940px) {
  .wy-urgency-grid { grid-template-columns: 1fr; }
}

/* ---------- 5. Architecture teaser + shared flip cards (v4 light cards —
   full copy preserved on the back face, index-page mechanics) ---------- */
.wy-flip { position: relative; height: 196px; perspective: 1400px; background: none; }
.wy-flip-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-out);
}
.wy-flip.is-flipped .wy-flip-inner { transform: rotateY(180deg); }
.wy-flip-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: #f9f5ec; border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 20px 20px 16px;
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
.wy-flip-front { cursor: pointer; visibility: visible; transition: visibility 0s linear 0.3s; }
.wy-flip.is-flipped .wy-flip-front { visibility: hidden; }
.wy-flip-front:hover { border-color: rgba(11, 102, 163, 0.35); }
.wy-flip-back {
  transform: rotateY(180deg); background: #efe6d2;
  border-color: rgba(11, 102, 163, 0.30); justify-content: center;
  visibility: hidden; transition: visibility 0s linear 0.3s; cursor: pointer;
}
.wy-flip.is-flipped .wy-flip-back { visibility: visible; }
.wy-flip-face h3 { color: var(--ink); font-size: 1.05rem; margin: 0 0 8px; }
.wy-flip-face .icon-tile { margin-bottom: 12px; }
.wy-flip-gist { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.wy-flip-back p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.wy-flip-hint {
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.wy-flip-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--link); cursor: pointer; display: grid; place-items: center;
  transition: transform 0.35s var(--ease-out), background var(--dur-1), border-color var(--dur-1);
}
.wy-flip-toggle:hover { background: var(--glass-strong); border-color: var(--link); }
.wy-flip.is-flipped .wy-flip-toggle { transform: rotate(45deg); }
@media (max-width: 1020px) { .wy-flip { height: 186px; } }
@media (max-width: 640px) { .wy-flip { height: 196px; } }
.wy-more { margin-top: 26px; }

/* ---------- 6. Engagement ladder + pilot (v4 light cards) ---------- */
/* etched terms row under the section heading (replaces the lede) */
.wy-sec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wy-ladder {
  list-style: none; counter-reset: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; padding: 0; margin: 0 0 clamp(32px, 4vw, 52px);
}
.wy-step {
  position: relative;
  background: #f9f5ec; border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 20px 20px 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
.wy-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.wy-step p { font-size: 0.85rem; margin-bottom: 14px; flex: 1; }
.wy-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 12px;
  background: #efe6d2; border: 1px solid var(--glass-border);
  color: var(--copper); font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
}
.wy-step-data {
  display: inline-flex; align-self: flex-start;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
/* the key step ("your data enters here") wears the house gold */
.wy-step--key { border-color: rgba(168, 126, 31, 0.55); box-shadow: 0 6px 24px rgba(168, 126, 31, 0.22); }
.wy-step--key .wy-step-num { background: linear-gradient(120deg, #dcbb55, #c49a2e 55%, #a87e1f); color: #241f16; border-color: transparent; }
.wy-step--key .wy-step-data { color: var(--copper); border-color: rgba(168, 126, 31, 0.45); }
@media (max-width: 1020px) { .wy-ladder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wy-ladder { grid-template-columns: 1fr; } }

.wy-pilot {
  background: #f9f5ec; border: 1px solid var(--hairline);
  border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 6px 24px rgba(36, 31, 22, 0.10);
}
.wy-pilot > h3 { margin-bottom: 20px; }
.wy-pilot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wy-pilot-step {
  background: #f4eddd; border: 1px solid var(--hairline);
  border-radius: var(--radius-m); padding: 18px;
}
.wy-pilot-when {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 8px;
}
.wy-pilot-step h4 { margin-bottom: 6px; }
.wy-pilot-step p { font-size: 0.85rem; margin: 0; }
.wy-pilot-close { margin: 20px 2px 0; font-size: 0.98rem; color: var(--ink-2); }
@media (max-width: 1020px) { .wy-pilot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wy-pilot-grid { grid-template-columns: 1fr; } }

/* ---------- 7. Roadmap timeline ---------- */
/* Overlapping wave bars on an 18-month scale (on-sand infographic) */
.wy-waves { max-width: 860px; margin: 0 0 clamp(24px, 3.5vw, 38px); }
.wy-wave-row { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; }
.wy-wave-lbl {
  flex: none; width: 58px; text-align: right;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.wy-wave-track {
  position: relative; flex: 1; height: 20px;
  border-bottom: 1px dashed var(--hairline);
}
.wy-wave-bar {
  position: absolute; left: var(--l); width: var(--w); top: 0; height: 18px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; padding: 0 10px;
  color: #f7f2e6; font-family: var(--font-mono); font-size: 0.62rem;
  font-weight: 600; letter-spacing: 0.1em; white-space: nowrap;
}
.wy-wb1 { background: var(--copper); }
.wy-wb2 { background: var(--link); }
.wy-wb3 { background: var(--sand-engineering); }
.wy-wave-axis {
  display: flex; justify-content: space-between; margin: 4px 0 0 72px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 560px) {
  .wy-wave-lbl { width: 44px; }
  .wy-wave-axis { margin-left: 58px; }
  .wy-wave-bar { padding: 0 7px; }
}

.wy-tl { max-width: 860px; }
.wy-tl .tl-item h4 { margin: 4px 0 0; }
.wy-tl-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--ink); font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; text-align: left;
  transition: color var(--dur-1);
}
.wy-tl-toggle:hover { color: var(--link); }
.wy-tl-caret { color: var(--ink-3); transition: transform var(--dur-2) var(--ease-out); flex: none; }
.tl-item.is-open .wy-tl-caret { transform: rotate(180deg); color: var(--link); }
.wy-tl-body { max-height: 0; overflow: hidden; transition: max-height var(--dur-2) var(--ease-out); }
.wy-tl-inner { padding: 10px 0 6px; }
.wy-tl-inner > p { font-size: 0.96rem; max-width: 680px; }
.wy-auto {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: #f9f5ec; border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 14px;
}
.wy-auto-meter { display: inline-flex; gap: 3px; }
.wy-auto-meter i {
  width: 14px; height: 6px; border-radius: 3px;
  background: var(--bg-deep); border: 1px solid var(--hairline);
}
.wy-auto-meter i.on { background: var(--link); border-color: transparent; }
.wy-tl-products { display: flex; flex-wrap: wrap; gap: 8px; }
.wy-tl-products .chip { color: var(--ink); }
.wy-tl-products .chip:hover { border-color: rgba(56, 189, 248, 0.4); }

/* ---------- 8. Owllys story (deep sand band — tints kept faint) ---------- */
.wy-owllys {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(93, 79, 192, 0.06), transparent 70%),
    radial-gradient(760px 380px at 8% 100%, rgba(138, 69, 23, 0.06), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--hairline);
}
.wy-flow {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 20px; margin-bottom: clamp(26px, 3.5vw, 40px);
}
.wy-flow-from { display: flex; flex-wrap: wrap; gap: 8px; }
.wy-flow-arrow { color: var(--ink-3); flex: none; }
.wy-flow-to {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--brand-grad-soft); border: 1px solid rgba(14, 122, 184, 0.45);
  color: var(--ink); font-weight: 600; font-size: 0.92rem;
}
.wy-flow-to svg { color: var(--cyan-deep); }
.wy-owllys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1020px) { .wy-owllys-grid { grid-template-columns: 1fr; } }
.wy-quote {
  margin: clamp(26px, 3.5vw, 40px) 0 0; padding: 4px 0 4px 22px;
  border-left: 3px solid; border-image: linear-gradient(180deg, #0b66a3, #5d4fc0) 1;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600; color: var(--ink); line-height: 1.35;
}
.wy-owllys-df { margin: 18px 0 0; font-size: 0.95rem; max-width: 640px; }

/* ---------- 9. What we are not — three animated gag scenes ----------
   House stick-figure language (ink on sand, hexagon heads, copper accents;
   status colours only for state). Each claim is dramatized above its etched
   one-line proof. The base (unanimated) drawing IS the resolved "kept
   promise" state — the cited receipt, the shipped/graduated crate, the open
   glass box — so prefers-reduced-motion lands on a readable tableau. */
.wy-not-wry { margin: 10px auto 0; max-width: 560px; font-style: italic; color: var(--ink-3); font-size: 0.95rem; }
.wn-gags { align-items: stretch; margin-top: 4px; }
.wn-gag { margin: 0; display: flex; flex-direction: column; }
.wn-stage {
  border: 1px solid var(--hairline); border-radius: var(--radius-m);
  background: var(--glass); padding: 12px 12px 4px;
}
.wn-scene { display: block; width: 100%; height: auto; }
.wn-gag figcaption { padding: 15px 4px 0; }
.wn-gag h3 { display: flex; align-items: center; gap: 10px; font-size: 1.06rem; margin: 0 0 7px; }
.wy-no {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink-2); font-size: 0.78rem; font-weight: 700;
}
.wn-say { margin: 0 0 12px; font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }
.wn-proof {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.wn-proof span { color: var(--sand-good); font-weight: 700; flex: none; }

/* ink-drawing palette (mirror of the hero Tuesday scene) */
.wn-scene .sk { stroke: var(--ink-2); stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wn-scene .sk-thin { stroke: var(--ink-3); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.wn-scene .sk-cop { stroke: var(--copper); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wn-scene .sk-copf { fill: var(--copper); }
.wn-scene .sk-good { stroke: var(--sand-good); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wn-scene .sk-ink { fill: var(--ink); }
.wn-scene .sk-lidf { fill: var(--ink-2); }
.wn-scene .paper { fill: var(--bg-page); }
.wn-scene .etchtxt { font-family: var(--font-mono); fill: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.wn-scene .lbl { font-family: var(--font-mono); fill: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.wn-scene .wn3-q { fill: var(--bg-page); font-family: var(--font-display); font-weight: 700; }

/* gag 1 — the bot parrots empty air; our agent stamps a cited receipt */
.wn1-echo { animation: wnEcho 3.4s ease-in-out infinite; }
.wn1-rip { animation: wnRip 3.4s ease-out infinite; transform-box: fill-box; transform-origin: 0% 50%; }
.wn1-rip2 { animation: wnRip 3.4s ease-out 0.45s infinite; transform-box: fill-box; transform-origin: 0% 50%; }
.wn1-arm { animation: wnArm 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 0%; }
.wn1-receipt { animation: wnReceipt 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.wn1-chk { animation: wnFlash 3.4s ease-in-out infinite; }
@keyframes wnEcho { 0%, 100% { opacity: 0.35; } 42%, 60% { opacity: 1; } }
@keyframes wnRip { 0% { opacity: 0; transform: scale(0.5); } 28% { opacity: 0.5; } 70%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes wnArm { 0%, 100% { transform: rotate(0); } 46%, 60% { transform: rotate(-10deg); } }
@keyframes wnReceipt { 0%, 30% { opacity: 0.12; transform: translateY(7px) scale(0.68); } 44% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes wnFlash { 0%, 46% { opacity: 0; } 55%, 82% { opacity: 1; } 93%, 100% { opacity: 0; } }

/* gag 2 — pilots die in a graveyard; our one graduates and ships */
.wn2-ship { animation: wnLift 3.2s ease-in-out infinite; }
.wn2-lift { animation: wnFlicker 3.2s linear infinite; }
.wn2-up { animation: wnUp 3.2s ease-in-out infinite; }
.wn2-chk { animation: wnFlash 3.2s ease-in-out infinite; }
.wn2-ghost { opacity: 0; animation: wnGhost 3.2s ease-in-out 0.6s infinite; }
@keyframes wnLift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes wnFlicker { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }
@keyframes wnUp { 0%, 100% { opacity: 0.2; transform: translateY(2px); } 50% { opacity: 0.9; transform: translateY(-3px); } }
@keyframes wnGhost { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 0.55; } 80%, 100% { opacity: 0; transform: translateY(-16px); } }

/* gag 3 — a black box flips open to a glass box with a visible cited chain */
.wn3-cover { opacity: 0; animation: wnCover 4.2s ease-in-out infinite; }
.wn3-lid { transform-box: fill-box; transform-origin: 0% 100%; transform: rotate(-42deg); animation: wnLid 4.2s ease-in-out infinite; }
.wn3-link { stroke-dasharray: 5 5; animation: wnAnt 0.9s linear infinite; }
@keyframes wnCover { 0%, 20% { opacity: 1; } 34%, 86% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wnLid { 0%, 16% { transform: rotate(4deg); } 34%, 86% { transform: rotate(-42deg); } 100% { transform: rotate(4deg); } }
@keyframes wnAnt { to { stroke-dashoffset: -20; } }

/* reduced motion: freeze every gag on its resolved base tableau */
@media (prefers-reduced-motion: reduce) {
  .wn-scene * { animation: none !important; }
}
