/* =========================================================
   FrameWeave — technical polish layer
   Loaded after styles.css. Layout, copy, and interaction stay intact;
   this file only deepens the visual system: ambient light, glass
   surfaces, instrument-like metadata and restrained motion.
   ========================================================= */

:root {
  --tech-cyan: #6fd3ff;
  --tech-cyan-line: rgba(111, 211, 255, 0.2);
  --tech-cyan-soft: rgba(111, 211, 255, 0.07);
  --tech-gold-line: rgba(244, 199, 106, 0.24);
  --tech-surface: rgba(9, 14, 21, 0.72);
}

/* ---------- ambient field ---------- */

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 82% -8%, rgba(92, 200, 255, 0.075), transparent 64%),
    radial-gradient(900px 680px at -12% 34%, rgba(244, 199, 106, 0.035), transparent 66%),
    linear-gradient(180deg, #07090d 0%, #06080b 48%, #07090d 100%);
  background-attachment: fixed;
}

.hero-glow {
  opacity: 0.95;
  filter: saturate(1.1) blur(2px);
}

.hero-grid-lines {
  opacity: 0.9;
  background-size: 64px 64px, 64px 64px, 8px 8px, 8px 8px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 54%, transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 54%, transparent 94%);
}

.hero-glow,
.hero-grid-lines {
  will-change: opacity;
}

/* ---------- header: darker glass, one precise light seam ---------- */

.site-header::before {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.58));
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 255, 0.24) 42%, rgba(244, 199, 106, 0.18) 58%, transparent);
  opacity: 0.55;
}

.header-cta,
.header-sponsor {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-cta:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 24px rgba(92, 200, 255, 0.16);
}

/* ---------- hero: instrument rail + telemetry ---------- */

.hero-copy {
  position: relative;
}

@media (min-width: 1200px) {
  .hero-copy::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 38px;
    left: -24px;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), rgba(111, 211, 255, 0.35) 36%, transparent 92%);
    opacity: 0.55;
  }

  .hero-copy::after {
    content: "FW / SIGNAL";
    position: absolute;
    bottom: 34px;
    left: -35px;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.22em;
    color: rgba(111, 211, 255, 0.55);
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
  }
}

.hero h1 {
  text-shadow: 0 0 70px rgba(244, 199, 106, 0.065);
}

.h1-accent {
  text-shadow: 0 0 36px rgba(244, 199, 106, 0.22);
}

.eyebrow-mark {
  box-shadow: 0 0 18px rgba(92, 200, 255, 0.4);
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 520px);
  margin: 25px 0 0;
  padding: 0;
  border-top: 1px solid var(--tech-cyan-line);
  border-left: 1px solid var(--tech-cyan-line);
  list-style: none;
}

.hero-telemetry li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px 8px;
  border-right: 1px solid var(--tech-cyan-line);
  border-bottom: 1px solid var(--tech-cyan-line);
  background: linear-gradient(180deg, rgba(111, 211, 255, 0.035), transparent);
}

.hero-telemetry span {
  display: flex;
  gap: 5px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-telemetry em {
  color: var(--gold);
  font-style: normal;
}

.hero-telemetry strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- image frame: scan sweep and subtle glass edge ---------- */

.hero-frame {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
}

.hero-frame-inner {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 38px rgba(92, 200, 255, 0.045);
}

.hero-frame-inner::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -65%;
  right: 0;
  left: 0;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(111, 211, 255, 0.035) 42%,
    rgba(225, 245, 255, 0.16) 50%,
    rgba(111, 211, 255, 0.035) 58%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: heroScan 8s linear infinite;
}

@keyframes heroScan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(300%);
  }
}

.mini-editor {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.mini-live {
  box-shadow: 0 0 14px rgba(244, 199, 106, 0.08);
}

.hero-vertical {
  opacity: 0.72;
  text-shadow: 0 0 18px rgba(111, 211, 255, 0.18);
}

/* ---------- section geometry ---------- */

.section-head {
  position: relative;
  border-top-color: var(--tech-cyan-line);
}

.section-head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.8;
}

.section-head-main h2 {
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.025);
}

.section-kicker {
  color: var(--tech-cyan);
}

.ticker {
  border-top-color: rgba(111, 211, 255, 0.12);
  border-bottom-color: rgba(111, 211, 255, 0.12);
  background: linear-gradient(90deg, rgba(92, 200, 255, 0.025), rgba(244, 199, 106, 0.018), transparent);
}

.ticker-track span {
  color: var(--ink-soft);
}

/* ---------- cards and gallery: restrained glass, precise edge light ---------- */

.card {
  background-color: var(--tech-surface);
  background-image:
    linear-gradient(145deg, rgba(111, 211, 255, 0.045), transparent 36%, rgba(244, 199, 106, 0.025)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.12);
}

.card:hover {
  border-color: rgba(111, 211, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 80px rgba(0, 0, 0, 0.2);
}

.shot {
  border-color: rgba(111, 211, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 50px rgba(0, 0, 0, 0.14);
}

.shot:hover {
  border-color: rgba(111, 211, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.3);
}

.shot-index {
  box-shadow: 0 0 18px rgba(244, 199, 106, 0.08);
}

.principle,
.status-col,
.build-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* ---------- controls ---------- */

.btn-primary {
  background: linear-gradient(180deg, #f2eee5, #d7d1c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 34px rgba(0, 0, 0, 0.24);
}

.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px rgba(244, 199, 106, 0.18);
}

.btn-ghost {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- footer ---------- */

.site-footer {
  border-top-color: var(--tech-cyan-line);
  background:
    radial-gradient(800px 280px at 18% 0%, rgba(92, 200, 255, 0.045), transparent 70%),
    var(--bg-deep);
}

.footer-brand-row img {
  box-shadow: 0 0 22px rgba(92, 200, 255, 0.12);
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-frame-inner::after {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame-inner::after {
    animation: none;
    opacity: 0.35;
  }
}

/* =========================================================
   Aurora + liquid glass material pass
   Adapted from the workspace material package at
   G:\Workspace\_dsh_theme: drifting multi-blob aurora, inner
   highlight rims, translucent glass panels and a fine grain.
   ========================================================= */

body {
  background-color: #070b16;
  background-image:
    radial-gradient(1500px 920px at 78% -18%, rgba(66, 133, 244, 0.18), transparent 62%),
    radial-gradient(1200px 860px at -12% 112%, rgba(147, 92, 246, 0.15), transparent 64%),
    linear-gradient(160deg, #080d1b 0%, #0a1022 48%, #070b15 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Layer A: the aurora itself. Only transform/opacity animate, so the
   background stays on the compositor instead of forcing constant repaints. */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -9%;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 23% 18%, rgba(77, 107, 254, 0.5), transparent 63%),
    radial-gradient(40% 36% at 81% 71%, rgba(123, 108, 255, 0.4), transparent 63%),
    radial-gradient(34% 30% at 78% 17%, rgba(56, 189, 248, 0.27), transparent 61%),
    radial-gradient(30% 28% at 28% 84%, rgba(126, 166, 255, 0.2), transparent 67%),
    radial-gradient(32% 28% at 91% 47%, rgba(100, 140, 255, 0.16), transparent 63%),
    radial-gradient(28% 26% at 8% 52%, rgba(80, 120, 240, 0.15), transparent 65%),
    radial-gradient(30% 28% at 53% 92%, rgba(167, 120, 255, 0.18), transparent 63%);
  filter: saturate(1.15);
  will-change: transform, opacity;
  animation:
    fwAuroraDriftA 12s cubic-bezier(0.22, 1, 0.36, 1) infinite,
    fwAuroraBreathe 9s ease-in-out infinite;
}

/* Layer B: a much softer reverse drift. It keeps the light moving without
   turning the page into a screensaver. */
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -7%;
  pointer-events: none;
  background:
    radial-gradient(70% 62% at 50% 52%, rgba(70, 105, 190, 0.12), transparent 82%),
    radial-gradient(42% 38% at 68% 26%, rgba(77, 107, 254, 0.08), transparent 70%),
    radial-gradient(38% 34% at 30% 78%, rgba(123, 108, 255, 0.07), transparent 70%);
  will-change: transform, opacity;
  animation:
    fwAuroraDriftB 16s cubic-bezier(0.22, 1, 0.36, 1) infinite,
    fwAuroraBreathe 12s ease-in-out infinite reverse;
}

@keyframes fwAuroraDriftA {
  0%   { transform: translate3d(0%, -1.6%, 0) rotate(-1deg); }
  25%  { transform: translate3d(1.8%, 0%, 0) rotate(0deg); }
  50%  { transform: translate3d(0%, 1.6%, 0) rotate(1deg); }
  75%  { transform: translate3d(-1.8%, 0%, 0) rotate(0deg); }
  100% { transform: translate3d(0%, -1.6%, 0) rotate(-1deg); }
}

@keyframes fwAuroraDriftB {
  0%   { transform: translate3d(0%, 2%, 0) rotate(1.2deg); }
  25%  { transform: translate3d(-2.2%, 0%, 0) rotate(0deg); }
  50%  { transform: translate3d(0%, -2%, 0) rotate(-1.2deg); }
  75%  { transform: translate3d(2.2%, 0%, 0) rotate(0deg); }
  100% { transform: translate3d(0%, 2%, 0) rotate(1.2deg); }
}

@keyframes fwAuroraBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.78; }
}

/* The aurora must not wash out the film frame or the copy. */
.hero-frame-inner,
.hero-copy {
  position: relative;
  z-index: 2;
}

/* ---------- liquid glass surfaces ---------- */

.site-header::before {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.72), rgba(8, 12, 24, 0.44));
  border-bottom-color: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-cta,
.header-sponsor,
.btn,
.link-button,
.header-sponsor {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border-color: rgba(244, 199, 106, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 26px rgba(2, 6, 18, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-cta {
  background: linear-gradient(180deg, #f4f0e8, #d7d1c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(2, 6, 18, 0.24);
}

.btn-primary {
  background: linear-gradient(180deg, #f4f0e8, #d7d1c4);
  border-radius: 12px;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-telemetry {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 14px 36px rgba(2, 6, 18, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-telemetry li {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
}

.mini-editor {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.72), rgba(8, 13, 25, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 26px 70px rgba(2, 6, 18, 0.38);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.card,
.shot,
.download-card,
.status-col,
.build-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022) 38%, rgba(8, 13, 25, 0.34)),
    linear-gradient(160deg, rgba(12, 20, 38, 0.55), rgba(6, 10, 20, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 24px 60px rgba(2, 6, 18, 0.26);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.card::before {
  border-radius: 18px 18px 0 0;
}

.shot {
  overflow: hidden;
}

.shot img {
  border-radius: 17px;
}

.shot:hover,
.card:hover {
  border-color: rgba(154, 190, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 28px 72px rgba(2, 6, 18, 0.34);
}

.download-card {
  border-radius: 16px;
}

.page-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.site-footer {
  background:
    radial-gradient(900px 320px at 18% 0%, rgba(77, 107, 254, 0.12), transparent 72%),
    radial-gradient(620px 260px at 88% 100%, rgba(123, 108, 255, 0.06), transparent 72%),
    rgba(5, 9, 18, 0.82);
  border-top-color: rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.h1-accent {
  background: linear-gradient(145deg, #ffe7ae 0%, #f4c76a 42%, #c99b45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(244, 199, 106, 0.16));
}

@media (max-width: 760px) {
  .card,
  .shot,
  .download-card,
  .status-col,
  .build-card,
  .mini-editor {
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* =========================================================
   Cool modern pass
   The aurora is cool; the cards should not fall back into warm
   gold/cream luxury styling. Keep gold for the brand accent and
   sponsor, but move cards, labels and microcopy to ice blue/white.
   ========================================================= */

:root {
  --ink: #f3f7ff;
  --ink-soft: #d3def2;
  --muted: #9bacc7;
  --faint: #7689a8;
  --line: rgba(172, 202, 255, 0.13);
  --line-strong: rgba(172, 202, 255, 0.24);
}

.section-kicker span {
  color: var(--tech-cyan);
  text-shadow: 0 0 18px rgba(111, 211, 255, 0.22);
}

.section-head::before {
  background: linear-gradient(90deg, rgba(111, 211, 255, 0.8), transparent);
}

.hero-telemetry em {
  color: var(--tech-cyan);
}

.card,
.shot,
.download-card,
.status-col,
.build-card {
  border-color: rgba(180, 210, 255, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 34%, rgba(8, 14, 28, 0.26)),
    linear-gradient(155deg, rgba(20, 32, 60, 0.5), rgba(7, 12, 24, 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(2, 7, 18, 0.24);
}

.card::before {
  border-radius: 16px 16px 0 0;
  background: radial-gradient(620px 260px at 18% 0%, rgba(190, 225, 255, 0.11), transparent 70%);
}

.card:hover,
.shot:hover {
  border-color: rgba(170, 210, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 64px rgba(2, 7, 18, 0.3);
}

.card-head h3 {
  font-family: var(--sans);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.card-index {
  color: var(--tech-cyan);
  text-shadow: 0 0 16px rgba(111, 211, 255, 0.18);
}

.card-copy {
  color: #a8b9d4;
}

.tag-list li {
  padding: 3px 9px;
  border-color: rgba(180, 210, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #9fb4d4;
}

.card-caption {
  border-top-color: rgba(180, 210, 255, 0.1);
  color: #7387a6;
}

.shot-index {
  border-color: rgba(111, 211, 255, 0.3);
  background: rgba(8, 16, 32, 0.58);
  color: var(--tech-cyan);
}

.shot-caption strong {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.shot-caption small {
  color: #9aacc8;
}

.download-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.download-card p {
  color: #a8b9d4;
}

.shot img {
  border-radius: 15px;
}

.shot {
  border-radius: 16px;
}

.site-footer {
  color: #dce6f7;
}

@media (max-width: 760px) {
  .card,
  .shot,
  .download-card {
    border-radius: 14px;
  }

  .shot img {
    border-radius: 13px;
  }
}

/* =========================================================
   Balanced performance pass
   Keep the signature aurora motion, header glass, scan sweep and
   ticker. Drop only the expensive parts: large-area backdrop blur,
   the second full-screen aurora layer, full-screen blend modes and
   the decorative SVG paint animation.
   ========================================================= */

body {
  background-attachment: scroll !important;
}

body::before {
  animation:
    fwAuroraDriftA 19s cubic-bezier(0.22, 1, 0.36, 1) infinite,
    fwAuroraBreathe 14s ease-in-out infinite !important;
  filter: none !important;
  will-change: transform;
  opacity: 0.94 !important;
}

body::after {
  display: none !important;
}

/* Large surfaces keep the glass gradient and inner rim, but do not
   re-blur the moving aurora every frame. */
.card,
.shot,
.download-card,
.status-col,
.build-card,
.mini-editor,
.site-footer,
.btn-ghost,
.header-sponsor {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Small header strip + telemetry: keep real glass where it reads most. */
.site-header::before {
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.82), rgba(7, 11, 22, 0.62)) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

.hero-telemetry {
  background: linear-gradient(145deg, rgba(16, 27, 50, 0.68), rgba(8, 14, 28, 0.56)) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

.hero-glow {
  filter: none !important;
  will-change: auto !important;
}

.hero-frame {
  filter: none !important;
}

.hero-frame-inner figcaption {
  mix-blend-mode: normal !important;
}

.hero-frame-inner::after {
  animation: heroScan 16s linear infinite !important;
  mix-blend-mode: normal !important;
  opacity: 0.14 !important;
}

.grain {
  mix-blend-mode: normal !important;
  opacity: 0.022 !important;
}

.card,
.shot,
.download-card,
.status-col,
.build-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 34%, rgba(8, 14, 28, 0.34)),
    linear-gradient(155deg, rgba(18, 29, 55, 0.64), rgba(6, 11, 23, 0.5)) !important;
}

.site-footer {
  background:
    radial-gradient(900px 320px at 18% 0%, rgba(77, 107, 254, 0.1), transparent 72%),
    rgba(5, 9, 18, 0.94) !important;
}

/* The dashed thread is decorative; keep the line but stop its constant
   stroke repaint. Everything else keeps its motion. */
.thread path {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero-frame-inner::after {
    animation: none !important;
  }
}

/* =========================================================
   Review fixes: mobile menu, right rail, print/capture
   ========================================================= */

/* The full-screen nav must fully cover the page; at <=760 it was
   translucent with its blur disabled, so hero text showed through. */
/* Keep the vertical rail fully inside the viewport instead of clipping
   its right edge. It is hidden below 1220px by the base layout. */
.hero-vertical {
  right: -26px;
}

/* Reveal elements are driven by IntersectionObserver. Print and
   full-page capture tools do not scroll, so force them visible. */
@media print {
  body {
    --ink: #111;
    --ink-soft: #333;
    --muted: #444;
    --faint: #555;
    --line: #ccc;
    --line-strong: #999;
    background: #fff !important;
    color: #111 !important;
  }

  .reveal,
  .hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  body::before,
  body::after,
  .site-header,
  .scroll-progress,
  .grain,
  .hero-glow,
  .hero-grid-lines,
  .ticker,
  .scroll-cue,
  .hero-vertical,
  .footer-watermark {
    display: none !important;
  }

  .hero,
  .section,
  .page-section,
  .site-footer,
  .card,
  .shot,
  .download-card,
  .status-col,
  .build-card,
  .quote,
  .panel,
  .mini-editor {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    border-color: #ccc !important;
  }

  .tag-list li,
  .build-pending {
    background: #fff !important;
    border-color: #ccc !important;
    color: #333 !important;
  }

  .h1-accent {
    color: #8a5d00 !important;
    background: none !important;
    -webkit-text-fill-color: #8a5d00 !important;
  }

  .section-kicker span,
  .card-index,
  .shot-index {
    color: #0b6e8a !important;
  }

  .card,
  .shot,
  .download-card,
  .status-col,
  .build-card {
    break-inside: avoid;
  }

  a {
    color: #0645ad !important;
  }

  @page {
    margin: 12mm;
  }
}

.build-pending {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(180, 210, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 14, 28, 0.52);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
}

.build-pending code {
  color: var(--tech-cyan);
}

/* The build command block is intentionally absent until the repository
   is public; use one column instead of leaving an empty code panel. */
.build-card--pending {
  grid-template-columns: minmax(0, 1fr);
}

.build-card--pending .build-code {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.build-card--pending .build-pending {
  max-width: 760px;
}

/* 404 pages are short error views; avoid downloading the full CJK subsets
   just to render a handful of characters. */
body.error-page,
body.error-page * {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif !important;
}

/* =========================================================
   Readability pass
   Decorative mono microtype can stay small; labels and explanatory
   copy that visitors actually read get a 10-13px floor.
   ========================================================= */

.status-note,
.footer-note {
  font-size: 12px;
  line-height: 1.75;
}

.tag-list li {
  padding: 4px 10px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.shot-caption small {
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.card-caption {
  font-size: 10px;
  line-height: 1.55;
}

.card-index,
.shot-index,
.shot-zoom {
  font-size: 9px;
}

.download-card p {
  font-size: 13px;
}

@media (max-width: 760px) {
  .status-note,
  .footer-note {
    font-size: 12.5px;
  }

  .tag-list li {
    font-size: 11px;
  }

  .shot-caption small {
    font-size: 11px;
  }
}

.ai-boundary {
  max-width: 68ch;
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid rgba(111, 211, 255, 0.55);
  background: rgba(8, 16, 32, 0.45);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
