/* =========================================================
   yue-fluxfield skin — YUECI KEJI homepage design system
   ---------------------------------------------------------
   Single source of truth: site/DESIGN.md (Gate B hash target).
   Direction: A+C hybrid (direction board §7, user convergence
   2026-10-19): deep ink+violet flux-field skeleton carrying
   factory-evidence photo bands.

   Scope: every selector hangs under body.yue-home. The engine
   shell (header / footer / quick-contact) stays engine-styled
   for site-wide consistency; this skin governs <main> only.

   Motion: MOTION 4 — L1 hover/focus + L2 scroll-reveal only.
   No L3 ambient layer, no infinite loops. Hover uses transform;
   reveal uses the independent `translate` property so the two
   never fight (engine convention). prefers-reduced-motion
   degrades per-class below (no wildcard兜底).

   Zero webfont. Zero AI-violet values. Zero stock pixels —
   unselected photo slots render honest placeholder boxes.
   ========================================================= */

body.yue-home {
  /* ---- Brand purple family (client input: black + purple, D149) ---- */
  --yue-brand-600: #6D3BD1;   /* deep purple, light-surface links */
  --yue-brand-500: #7C5CD6;   /* primary brand purple; fills/edges only */
  --yue-brand-400: #A98CFF;   /* dark-surface accent + CTA fill */
  --yue-brand-300: #B9A3FF;   /* bright accent on ink */
  --yue-brand-200: #C9B6FF;   /* focus ring / highlight */

  /* ---- Ink surfaces (purple-tinted blacks, never neutral) ---- */
  --yue-ink-900: #0A0A0F;     /* page base */
  --yue-ink-800: #121220;     /* raised surface / header tint */
  --yue-ink-700: #141422;     /* deep panel */
  --yue-ink-600: #1A1A2E;     /* card */

  /* ---- Text on dark ---- */
  --yue-text-hi: #E8E6F0;     /* 16.00:1 on ink-900 */
  --yue-text-sec: #B9B5CC;    /* 9.92:1 */
  --yue-text-muted: #8B86A3;  /* 5.68:1 (AA) */

  /* ---- Paper islands (evidence-dense light zones) ---- */
  --yue-paper: #EDEBF5;
  --yue-paper-hi: #F7F6FB;
  --yue-on-paper: #0A0A0F;    /* 16.74:1 on paper */
  --yue-on-paper-muted: #5C5878; /* 5.70:1 */

  /* ---- Hairlines (the only divider source) ---- */
  --yue-hairline-dark: rgba(169, 140, 255, .16);
  --yue-hairline-light: rgba(109, 59, 209, .14);

  /* ---- Type (zero webfont; sans + mono engineering duet) ---- */
  --yue-font-sans: "Avenir Next", "Segoe UI", Verdana, Geneva, "Liberation Sans", sans-serif;
  --yue-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;

  /* ---- Spacing / radius / shadow ---- */
  --yue-s-1: 8px;  --yue-s-2: 16px; --yue-s-3: 24px; --yue-s-4: 32px;
  --yue-s-5: 48px; --yue-s-6: 72px; --yue-s-7: 96px; --yue-s-8: 128px;
  --yue-r-xs: 2px; --yue-r-sm: 4px; --yue-r: 6px;
  --yue-shadow-lift: 0 18px 48px rgba(10, 10, 15, .55);
  --yue-ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* enter: fast-out gentle-stop, zero overshoot */

  /* ---- Engine chrome accent (primer --brand placeholder, homepage-scoped) ---- */
  --brand: var(--yue-brand-600);

  background: var(--yue-ink-900);
  color: var(--yue-text-hi);
  font-family: var(--yue-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.yue-home ::selection {
  background: var(--yue-brand-500);
  color: #FFFFFF;
}

/* ---- Focus visibility (keyboard parity everywhere) ---- */
body.yue-home a:focus-visible,
body.yue-home button:focus-visible,
body.yue-home [tabindex]:focus-visible {
  outline: 2px solid var(--yue-brand-200);
  outline-offset: 2px;
  border-radius: var(--yue-r-xs);
}

/* =========================================================
   SHARED COMPONENTS (DESIGN.md §3 — inner pages may reuse)
   ========================================================= */

body.yue-home .yue-eyebrow-tag {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yue-text-muted);
  margin: 0 0 var(--yue-s-2);
  white-space: normal;
}

body.yue-home .yue-cta-solid,
body.yue-home .yue-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--yue-s-1);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--yue-r-sm);
  text-decoration: none;
  transition: transform var(--motion-fast) var(--yue-ease-out),
              background-color var(--motion-fast) var(--yue-ease-out),
              border-color var(--motion-fast) var(--yue-ease-out),
              box-shadow var(--motion-fast) var(--yue-ease-out);
}

body.yue-home .yue-cta-solid {
  background: var(--yue-brand-400);
  color: var(--yue-ink-900);            /* 7.41:1 AAA */
  border: 1px solid var(--yue-brand-400);
}

body.yue-home .yue-cta-solid:hover {
  transform: translateY(-2px);
  box-shadow: var(--yue-shadow-lift);
  background: var(--yue-brand-300);
  border-color: var(--yue-brand-300);
}

body.yue-home .yue-cta-ghost {
  background: transparent;
  color: var(--yue-text-hi);
  border: 1px solid var(--yue-hairline-dark);
}

body.yue-home .yue-cta-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--yue-brand-400);
  color: var(--yue-brand-200);
}

body.yue-home .yue-cta-arrow {
  transition: transform var(--motion-fast) var(--yue-ease-out);
}

body.yue-home .yue-cta-solid:hover .yue-cta-arrow,
body.yue-home .yue-cta-ghost:hover .yue-cta-arrow {
  transform: translateX(3px);
}

body.yue-home .yue-numlabel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--yue-font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--yue-brand-200);
  border: 1px solid var(--yue-hairline-dark);
  border-radius: var(--yue-r-sm);
}

body.yue-home .yue-chipset-tag {
  display: inline-block;
  font-family: var(--yue-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--yue-text-sec);
  border: 1px solid var(--yue-hairline-dark);
  border-radius: var(--yue-r-sm);
  padding: 12px 14px;   /* 13px x 1.65 line-height + 24px = 45.5px >= 44px touch target */
  text-decoration: none;
  transition: color var(--motion-fast) var(--yue-ease-out),
              border-color var(--motion-fast) var(--yue-ease-out),
              transform var(--motion-fast) var(--yue-ease-out);
}

body.yue-home .yue-chipset-tag:hover {
  color: var(--yue-brand-200);
  border-color: var(--yue-brand-400);
  transform: translateY(-1px);
}

body.yue-home .yue-rulebar-line {
  height: 1px;
  background: var(--yue-hairline-dark);
  border: 0;
}

body.yue-home .yue-askbar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yue-s-3);
  flex-wrap: wrap;
  margin-top: var(--yue-s-4);
  padding: var(--yue-s-3) var(--yue-s-4);
  border: 1px solid var(--yue-hairline-dark);
  border-radius: var(--yue-r-sm);
  background: var(--yue-ink-800);
}

body.yue-home .yue-askbar__text {
  margin: 0;
  font-size: 16px;
  color: var(--yue-text-sec);
  max-width: 68ch;
}

body.yue-home .yue-docrow-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--yue-s-3);
  padding: 13px 0;
  border-bottom: 1px solid var(--yue-hairline-light);
}

body.yue-home .yue-docrow__title {
  font-size: 15px;
  color: var(--yue-on-paper);
}

body.yue-home .yue-docrow__title a {
  color: var(--yue-brand-600);
  text-decoration: none;
}

body.yue-home .yue-docrow__title a:hover {
  text-decoration: underline;
}

body.yue-home .yue-docrow__meta {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  color: var(--yue-on-paper-muted);
  white-space: nowrap;
}

body.yue-home .yue-specrow {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: var(--yue-s-3);
  padding: 15px 0;
  border-bottom: 1px solid var(--yue-hairline-dark);
  margin: 0;
}

body.yue-home .yue-specrow__key {
  font-family: var(--yue-font-mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--yue-brand-200);
  font-variant-numeric: tabular-nums;
}

body.yue-home .yue-specrow__val {
  margin: 0;
  font-size: 15px;
  color: var(--yue-text-sec);
}

/* ---- Honest image placeholder (zero-fabrication slot) ---- */
body.yue-home .yue-imgslot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg,
      rgba(169, 140, 255, .045) 0 10px,
      transparent 10px 20px),
    var(--yue-ink-800);
  border: 1px dashed var(--yue-hairline-dark);
  border-radius: var(--yue-r-xs);
  color: var(--yue-text-muted);
  overflow: hidden;
}

body.yue-home .yue-imgslot__tag {
  font-family: var(--yue-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: var(--yue-s-1) var(--yue-s-2);
}

body.yue-home img.yue-hero-img,
body.yue-home img.yue-matcard__img,
body.yue-home img.yue-plantcard__img,
body.yue-home img.yue-labcard__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--yue-r-xs);
}

/* ---- Flux-field signal hair (A signature divider) ---- */
body.yue-home .yue-signalhair {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--yue-brand-600) 30%,
    var(--yue-brand-400) 50%,
    var(--yue-brand-600) 70%,
    transparent);
  opacity: .5;
}

/* ---- Section head (shared rhythm) ---- */
body.yue-home .yue-sechead {
  max-width: 72ch;
  margin-bottom: var(--yue-s-5);
}

body.yue-home .yue-sechead h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--yue-s-2);
  font-weight: 700;
}

body.yue-home .yue-sechead__intro {
  margin: 0;
  font-size: 16px;
  color: var(--yue-text-sec);
}

body.yue-home .yue-sechead--band {
  max-width: 68ch;
}

body.yue-home .yue-section {
  padding: var(--yue-s-6) 0;
}

/* ---------- section identity (rhythm differentiation, VARIANCE 7) ---------- */
body.yue-home .yue-materialgrid,
body.yue-home .yue-labwall,
body.yue-home .yue-workflow {
  background: var(--yue-ink-900);
}

body.yue-home .yue-applicationrail {
  background: var(--yue-ink-800);
  border-top: 1px solid var(--yue-hairline-dark);
  border-bottom: 1px solid var(--yue-hairline-dark);
}

body.yue-home .yue-latestnotes {
  background: var(--yue-ink-800);
  border-top: 1px solid var(--yue-hairline-dark);
}

/* =========================================================
   HOMEPAGE-ONLY LAYOUT (DESIGN.md §4 — inner pages forbidden)
   ========================================================= */

/* ---------- B1 fluxhero: asymmetric 7:5, workshop photography ---------- */
body.yue-home .yue-fluxhero {
  position: relative;
  padding: var(--yue-s-7) 0 var(--yue-s-6);
  overflow: hidden;
}

/* L0 static texture: faint flux-field dot grid (no animation) */
body.yue-home .yue-fluxhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1px, rgba(169, 140, 255, .10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

body.yue-home .yue-fluxhero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-5);
  align-items: center;
}

body.yue-home .yue-fluxhero__copy {
  min-width: 0;
}

body.yue-home .yue-hero-title {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 60ch;
  margin: 0 0 var(--yue-s-3);
}

body.yue-home .yue-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--yue-text-sec);
  max-width: 56ch;
  margin: 0 0 var(--yue-s-4);
}

body.yue-home .yue-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yue-s-2);
  margin-bottom: var(--yue-s-4);
}

body.yue-home .yue-hero-markets {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yue-text-muted);
  margin: 0;
}

body.yue-home .yue-fluxhero__visual {
  min-width: 0;
}

body.yue-home .yue-hero-img,
body.yue-home .yue-fluxhero__visual .yue-imgslot {
  aspect-ratio: 4 / 3;
  width: 100%;
}

body.yue-home .yue-hero-caption {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--yue-text-muted);
  margin: var(--yue-s-2) 0 0;
}

body.yue-home .yue-fluxhero .yue-signalhair {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---------- B2 materialgrid: 5 families, lead card asymmetry ---------- */
body.yue-home .yue-matgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-3);
}

body.yue-home .yue-matcard {
  display: flex;
  flex-direction: column;
  gap: var(--yue-s-2);
  padding: var(--yue-s-3);
  background: var(--yue-paper);
  color: var(--yue-on-paper);
  border-radius: var(--yue-r-sm);
  transition: transform var(--motion-base) var(--yue-ease-out),
              box-shadow var(--motion-base) var(--yue-ease-out);
}

body.yue-home .yue-matcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--yue-shadow-lift);
}

body.yue-home .yue-matcard .yue-imgslot {
  background:
    repeating-linear-gradient(135deg,
      rgba(109, 59, 209, .05) 0 10px,
      transparent 10px 20px),
    var(--yue-paper-hi);
  border: 1px dashed var(--yue-hairline-light);
  color: var(--yue-on-paper-muted);
}

body.yue-home .yue-matcard__img,
body.yue-home .yue-matcard .yue-imgslot {
  aspect-ratio: 4 / 3;
}

body.yue-home .yue-matcard--lead .yue-matcard__img,
body.yue-home .yue-matcard--lead .yue-imgslot {
  aspect-ratio: 16 / 10;
}

body.yue-home .yue-matcard__title {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}

body.yue-home .yue-matcard__title a {
  color: var(--yue-on-paper);
  text-decoration: none;
}

body.yue-home .yue-matcard__title a:hover {
  color: var(--yue-brand-600);
}

body.yue-home .yue-mattag {
  font-family: var(--yue-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yue-brand-600);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

body.yue-home .yue-matcard__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yue-on-paper-muted);
}

body.yue-home .yue-matcard__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--yue-brand-600);
  text-decoration: none;
  align-self: flex-start;
}

body.yue-home .yue-matcard__link:hover {
  text-decoration: underline;
}

/* ---------- B3 fluxspec: measurable-parameter narrative ---------- */
body.yue-home .yue-fluxspec {
  background: var(--yue-ink-800);
  border-top: 1px solid var(--yue-hairline-dark);
  border-bottom: 1px solid var(--yue-hairline-dark);
}

body.yue-home .yue-fluxspec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-5);
}

body.yue-home .yue-fluxspec__rail .yue-cta-ghost {
  margin-top: var(--yue-s-3);
}

body.yue-home .yue-specrail {
  margin: 0;
  align-self: start;
}

/* ---------- B4 plantband: full-bleed workshop evidence ---------- */
body.yue-home .yue-plantband {
  padding: var(--yue-s-6) 0 0;
}

body.yue-home .yue-plantband__strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-2);
}

body.yue-home .yue-plantcard {
  margin: 0;
  position: relative;
}

body.yue-home .yue-plantcard__img,
body.yue-home .yue-plantcard .yue-imgslot {
  aspect-ratio: 3 / 2;
  border-radius: var(--yue-r-xs);
}

body.yue-home .yue-plantcard__cap {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yue-text-muted);
  margin: var(--yue-s-2) 0 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- B5 labwall: measurement equipment wall ---------- */
body.yue-home .yue-labgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-3);
}

body.yue-home .yue-labcard {
  display: flex;
  flex-direction: column;
  gap: var(--yue-s-2);
  padding: var(--yue-s-3);
  background: var(--yue-ink-800);
  border: 1px solid var(--yue-hairline-dark);
  border-radius: var(--yue-r-sm);
  transition: transform var(--motion-base) var(--yue-ease-out),
              border-color var(--motion-base) var(--yue-ease-out);
}

body.yue-home .yue-labcard:hover {
  transform: translateY(-2px);
  border-color: var(--yue-brand-500);
}

body.yue-home .yue-labcard__img,
body.yue-home .yue-labcard .yue-imgslot {
  aspect-ratio: 4 / 3;
}

body.yue-home .yue-labcard__name {
  font-family: var(--yue-font-mono);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--yue-text-hi);
  margin: 0;
  font-weight: 600;
}

body.yue-home .yue-labcard__note {
  margin: 0;
  font-size: 13px;
  color: var(--yue-text-muted);
}

/* ---------- B6 applicationrail ---------- */
body.yue-home .yue-apprail__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-3);
  align-items: start;
}

body.yue-home .yue-apprail__head h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 700;
}

body.yue-home .yue-apprail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yue-s-1);
}

body.yue-home .yue-apprail__inner .yue-cta-ghost {
  justify-self: start;
}

/* ---------- B7 certvault: paper island, evidence + validity gated ---------- */
body.yue-home .yue-certvault {
  background: var(--yue-paper);
  color: var(--yue-on-paper);
}

body.yue-home .yue-certvault__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-5);
}

body.yue-home .yue-certvault .yue-eyebrow-tag {
  color: var(--yue-brand-600);
}

body.yue-home .yue-certvault__head h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--yue-s-2);
  font-weight: 700;
}

body.yue-home .yue-certvault__head .yue-sechead__intro {
  color: var(--yue-on-paper-muted);
}

body.yue-home .yue-sysrow {
  list-style: none;
  margin: 0 0 var(--yue-s-4);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-2);
}

body.yue-home .yue-sysrow__item {
  font-size: 15px;
  color: var(--yue-on-paper);
  padding-left: var(--yue-s-2);
  border-left: 2px solid var(--yue-brand-500);
  line-height: 1.5;
}

body.yue-home .yue-certvault__body {
  min-width: 0;
}

body.yue-home .yue-dossier .yue-docrow-item:last-child {
  border-bottom: 0;
}

body.yue-home .yue-certvault__gate {
  font-size: 14px;
  color: var(--yue-on-paper-muted);
  margin: var(--yue-s-3) 0 0;
  max-width: 68ch;
}

/* ---------- B8 workflow: five-step custom path ---------- */
body.yue-home .yue-flowlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-4);
  counter-reset: yue-flow;
}

body.yue-home .yue-flowstep {
  display: flex;
  flex-direction: column;
  gap: var(--yue-s-2);
  padding-top: var(--yue-s-3);
  border-top: 1px solid var(--yue-hairline-dark);
}

body.yue-home .yue-flowstep__title {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

body.yue-home .yue-flowstep__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yue-text-sec);
}

/* ---------- B9 inquiryflux: deep conversion band ---------- */
body.yue-home .yue-inquiryflux {
  padding: var(--yue-s-7) 0;
  background:
    radial-gradient(ellipse 70% 120% at 12% 130%, rgba(109, 59, 209, .28), transparent 60%),
    linear-gradient(115deg, var(--yue-ink-900), var(--yue-ink-700) 55%, var(--yue-ink-600));
}

body.yue-home .yue-inquiryflux__inner {
  max-width: 68ch;
}

body.yue-home .yue-inquiryflux h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--yue-s-2);
  font-weight: 700;
}

body.yue-home .yue-inquiryflux p {
  font-size: 17px;
  color: var(--yue-text-sec);
  margin: 0 0 var(--yue-s-4);
}

/* ---------- latest notes strip (data-driven; hidden when empty) ---------- */
body.yue-home .yue-notelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yue-s-3);
}

body.yue-home .yue-notecard {
  padding: var(--yue-s-3);
  border: 1px solid var(--yue-hairline-dark);
  border-radius: var(--yue-r-sm);
}

body.yue-home .yue-notecard__title {
  font-size: 17px;
  margin: 0 0 var(--yue-s-1);
}

/* NOTE: DOM is <a><h3 class="yue-notecard__title">…</h3></a> — the <a>
   wraps the <h3>, so the anchor is the PARENT, not a descendant.
   Target the <h3> directly (it carries the visible text) and the
   hover on the wrapping anchor, otherwise the link falls back to the
   global `a { color: var(--ink) }` dark value and vanishes on ink. */
body.yue-home .yue-notecard__title {
  color: var(--yue-text-hi);
  text-decoration: none;
}

body.yue-home .yue-notecard a:hover .yue-notecard__title {
  color: var(--yue-brand-200);
}

body.yue-home .yue-notecard__meta {
  font-family: var(--yue-font-mono);
  font-size: 12px;
  color: var(--yue-text-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   MOTION — L2 reveal (MOTION 4). Markup carries only the
   data-yue-reveal hook; the class is added at runtime, so
   no-JS and reduced-motion both render fully visible.
   ========================================================= */

body.yue-home .yue-reveal {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity var(--motion-reveal) var(--yue-ease-out),
    translate var(--motion-reveal) var(--yue-ease-out);
}

body.yue-home .yue-reveal.is-visible {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  body.yue-home .yue-reveal,
  body.yue-home .yue-reveal.is-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }
  body.yue-home .yue-matcard:hover,
  body.yue-home .yue-labcard:hover,
  body.yue-home .yue-chipset-tag:hover,
  body.yue-home .yue-cta-solid:hover,
  body.yue-home .yue-cta-ghost:hover {
    transform: none;
    box-shadow: none;
  }
}

/* =========================================================
   RESPONSIVE — mobile-first; hero stays asymmetric at lg
   ========================================================= */

@media (min-width: 576px) {
  body.yue-home .yue-matgrid { grid-template-columns: repeat(2, 1fr); }
  body.yue-home .yue-matcard--lead { grid-column: span 2; }
  body.yue-home .yue-labgrid { grid-template-columns: repeat(2, 1fr); }
  body.yue-home .yue-plantband__strip { grid-template-columns: repeat(2, 1fr); }
  body.yue-home .yue-notelist { grid-template-columns: repeat(3, 1fr); }
  body.yue-home .yue-sysrow { grid-template-columns: repeat(2, 1fr); }
  body.yue-home .yue-flowlist { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body.yue-home .yue-hero-ctas .yue-cta-solid,
  body.yue-home .yue-hero-ctas .yue-cta-ghost { padding: 15px 26px; }
  body.yue-home .yue-apprail__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  body.yue-home .yue-apprail__inner .yue-cta-ghost { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  body.yue-home .yue-fluxhero { padding: var(--yue-s-8) 0 var(--yue-s-7); }
  body.yue-home .yue-fluxhero__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--yue-s-6);
  }
  body.yue-home .yue-matgrid {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-flow: row dense;
  }
  body.yue-home .yue-matcard--lead {
    grid-column: 1;
    grid-row: span 2;
  }
  body.yue-home .yue-fluxspec__grid { grid-template-columns: 5fr 7fr; gap: var(--yue-s-6); }
  body.yue-home .yue-plantband__strip { grid-template-columns: repeat(3, 1fr); }
  body.yue-home .yue-labgrid { grid-template-columns: repeat(3, 1fr); }
  body.yue-home .yue-certvault__grid { grid-template-columns: 5fr 7fr; gap: var(--yue-s-6); }
  body.yue-home .yue-flowlist { grid-template-columns: repeat(5, 1fr); gap: var(--yue-s-3); }
  body.yue-home .yue-section { padding: var(--yue-s-7) 0; }
}
