/* =====================================================================
   INSYS Electrical — shared base styles
   Paper / green / blue · Instrument Serif + Space Grotesk + JetBrains Mono
   ===================================================================== */

:root {
  --ink: #0a1834;
  --ink-2: #1a2a52;
  --paper: #f3efe6;
  --paper-2: #ebe5d6;
  --line: #d6cfbe;
  /* Green is the primary accent across the whole site. The --blue* names are
     kept so existing var(--blue) references resolve to green; they ARE green. */
  --green: #1d8c4f;
  --green-deep: #14663a;
  --green-soft: #cfe7d8;
  --blue: var(--green);
  --blue-deep: var(--green-deep);
  --blue-soft: var(--green-soft);
  /* Secondary accent is now blue (pairs with the green primary). The --orange*
     names are kept so existing var(--orange) references resolve to blue. */
  --orange: #2b82f6;
  --orange-soft: #d2e3fc;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: "Space Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-size: 16px; line-height: 1.45; }

.serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.ital { font-style: italic; }
a { color: inherit; }

/* paper noise overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 50%, transparent 0, rgba(10,24,52,0.04) 100%);
  background-size: 240px 240px, auto;
  mix-blend-mode: multiply;
}
.grid-bg {
  background-image:
    linear-gradient(rgba(10,24,52,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,24,52,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ======================== TOP TICKER ======================== */
.ticker {
  background: var(--ink); color: var(--paper);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0; display: flex; overflow: hidden;
  border-bottom: 1px solid var(--ink-2);
}
.ticker-track { display: flex; gap: 56px; white-space: nowrap; animation: tick 50s linear infinite; padding-left: 56px; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker .dot { color: var(--orange); margin: 0 24px; }
.ticker .live::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-right: 8px; animation: pulse 1.5s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ======================== NAV ======================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,239,230,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { max-width: 1440px; margin: 0 auto; padding: 22px 44px; display: flex; align-items: center; gap: 40px; }
.logo {
  display: inline-flex; align-items: center; gap: 0;
  font-weight: 700; font-size: 42px; letter-spacing: -0.025em;
  text-decoration: none; line-height: 1;
  position: relative;
}
/* ---- animated DNA double helix mark (diagonal, like the brand logo) ---- */
:root { --dna-green: #1d8c4f; --dna-blue: #2b7cf6; }
.logo-mark {
  width: 67px; height: 36px; position: relative; flex: none;
  display: block; overflow: hidden;
  /* compact diagonal window — shows ~one S-twist of the helix, tilted like the brand mark */
  transform: rotate(-35deg);
  transform-origin: center;
  /* negative right margin pulls the helix's right edge UNDER the leading "i"
     of "insys" so the strand visually threads behind the lettering. */
  margin: 0 -22px 0 -4px;
  z-index: 0;
}
.logo > span:not(.logo-mark) {
  position: relative;
  z-index: 1;
  /* The "insys." text sits IN FRONT of the helix; the leading "i" occludes the
     helix's tail so it reads as DNA blending into the lettering. */
}
.dna-svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* scroll the helix by exactly one wavelength (44 user units) for a seamless, continuously-rotating-looking twist */
.dna-scroll { animation: dnaScroll 3.2s linear infinite; }
@keyframes dnaScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-44px); }
}
@media (prefers-reduced-motion: reduce) {
  .dna-scroll, .dna-rung { animation: none; }
}
.dna-i .dna-scroll-v { animation: dnaScrollV 3.6s linear infinite; transform-box: fill-box; }
@keyframes dnaScrollV {
  from { transform: translateY(0); }
  to   { transform: translateY(-32px); }   /* one full wavelength */
}
@media (prefers-reduced-motion: reduce) {
  .dna-i .dna-scroll-v { animation: none; }
}

.nav-links { display: flex; gap: 34px; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.85; transition: opacity .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-spacer { flex: 1; }
.nav-cta { background: var(--ink); color: var(--paper); border: none; padding: 13px 24px; border-radius: 999px; font: 500 16px "Space Grotesk", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: background .2s; text-decoration: none; flex: none; white-space: nowrap; }
.nav-cta:hover { background: var(--blue); }
.nav-cta .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }

/* ======================== BUTTONS ======================== */
.btn-primary { background: var(--blue); color: white; padding: 14px 24px; border: none; border-radius: 999px; font: 500 15px "Space Grotesk", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all .2s; box-shadow: 0 8px 24px -8px rgba(29,140,79,.45); text-decoration: none; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(29,140,79,.6); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 12px 22px; border-radius: 999px; font: 500 15px "Space Grotesk", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all .2s; text-decoration: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.arrow { transition: transform .2s; }
.btn-primary:hover .arrow, .btn-ghost:hover .arrow { transform: translateX(3px); }

/* ======================== SECTION FRAME ======================== */
section.band { padding: 80px 36px; position: relative; }
.container { max-width: 1320px; margin: 0 auto; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin: 16px 0 0; letter-spacing: -0.015em; max-width: 720px; }
.section-head h2 .ital { font-style: italic; color: var(--blue); }
.section-head p { max-width: 380px; color: var(--ink-2); font-size: 16px; margin: 0; }

/* ======================== PAGE HEADERS (interior pages) ======================== */
.page-header { padding: 72px 36px 48px; max-width: 1440px; margin: 0 auto; }
.page-header h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.02em; margin: 18px 0 16px; max-width: 1000px; }
.page-header h1 .ital { font-style: italic; color: var(--orange); }
.page-header h1 .stroke { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.page-header p.lede { font-size: 20px; line-height: 1.4; max-width: 620px; color: var(--ink-2); margin: 0 0 16px; }
.page-header .breadcrumb { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 26px; }
.page-header .breadcrumb a { color: var(--blue); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--orange); }
.page-header .breadcrumb .sep { margin: 0 8px; opacity: 0.4; }

/* ======================== BIG CTA ======================== */
.cta { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding: 0 36px; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(29,140,79,0.38), transparent 50%); }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(43,130,246,0.28), transparent 50%); }
.cta .container { position: relative; z-index: 1; padding: 96px 0; }
.cta h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(56px, 8vw, 120px); line-height: 0.95; margin: 0 0 28px; max-width: 1100px; letter-spacing: -0.02em; }
.cta h2 .ital { font-style: italic; color: var(--orange); }
.cta h2 .stroke { -webkit-text-stroke: 1.5px var(--paper); color: transparent; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta .btn-primary { background: var(--orange); }
.cta .btn-primary:hover { background: white; color: var(--ink); }
.cta .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ======================== FOOTER ======================== */
footer.site-footer { background: var(--ink); color: var(--paper); padding: 64px 36px 28px; border-top: 1px solid var(--ink-2); }
.foot-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin: 0 0 16px; }
.foot-grid p, .foot-grid a { font-size: 14px; color: rgba(243,239,230,0.85); text-decoration: none; line-height: 1.6; display: block; }
.foot-grid a:hover { color: var(--orange); }
.foot-brand h4 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 28px; margin: 12px 0 16px; }
.foot-brand h4 .ital { font-style: italic; color: var(--orange); }
.foot-bottom { max-width: 1320px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--ink-2); display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; opacity: 0.5; }

/* ======================== IMAGE PLACEHOLDERS ========================
   Drop-in slots for photos the user will supply.
   Two ways to use:
   1. <div class="img-slot" data-label="Workshop interior" style="aspect-ratio: 4/3"></div>
   2. <img src="assets/img/<file>.jpg" alt="..." class="img-fill"> — replaces the slot when added
   ==================================================================== */
.img-slot {
  position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; min-height: 200px;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(10,24,52,0.04) 12px, rgba(10,24,52,0.04) 13px);
}
.img-slot::before {
  content: attr(data-label);
  position: absolute; top: 14px; left: 16px; right: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); opacity: 0.7;
}
.img-slot::after {
  content: "↳ photo slot";
  position: absolute; bottom: 14px; left: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
}
.img-slot.dark { background: var(--ink); border-color: var(--ink-2);
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(243,239,230,0.04) 12px, rgba(243,239,230,0.04) 13px);
}
.img-slot.dark::before { color: rgba(243,239,230,0.7); }
.img-slot.dark::after { color: var(--orange); }

.img-slot .corner { position: absolute; top: 14px; right: 16px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--ink-2); opacity: 0.6; }
.img-slot.dark .corner { color: rgba(243,239,230,0.6); }

/* an actual image that fills a slot (use this once user drops a real file) */
.img-fill { display: block; width: 100%; height: 100%; object-fit: cover; }

/* white chip that holds a brand/client logo (logos are white-bg JPGs) */
.logo-chip { background: #fff; border-radius: 5px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; overflow: hidden; }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* logo placeholders for brand pages */
.logo-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px dashed var(--line); border-radius: 5px;
  min-height: 80px; padding: 16px 24px;
  font-family: "Instrument Serif", serif; font-size: 22px; color: var(--ink); letter-spacing: -0.01em;
  position: relative;
}
.logo-slot::after {
  content: "↳ logo"; position: absolute; bottom: 6px; right: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.1em; color: var(--orange); opacity: 0.7;
}

/* ======================== BRAND DETAIL PAGES ======================== */
.bp-hero { max-width: 1320px; margin: 0 auto; padding: 44px 36px 36px; display: grid; grid-template-columns: 1.55fr 0.9fr; gap: 56px; align-items: start; }
.bp-crumb { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 28px; }
.bp-crumb a { color: var(--blue); text-decoration: none; }
.bp-crumb a:hover { color: var(--orange); }
.bp-crumb .sep { margin: 0 8px; opacity: 0.4; }
.bp-cat { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.bp-cat::before { content: ""; width: 28px; height: 1px; background: var(--ink-2); }
.bp-name { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(64px, 8vw, 118px); line-height: 0.92; letter-spacing: -0.02em; margin: 16px 0 6px; }
.bp-name .ital { font-style: italic; color: var(--blue); }
.bp-tag { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.bp-summary { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 22px 0 24px; max-width: 600px; }
.bp-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.bp-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.bp-logo { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 34px; min-height: 150px; }
.bp-logo img { max-width: 100%; max-height: 90px; object-fit: contain; display: block; }
.spec-card { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 8px 24px 16px; }
.spec-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(243,239,230,0.14); }
.spec-card .row:last-child { border-bottom: none; }
.spec-card .k { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.spec-card .v { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 500; text-align: right; }
.spec-card .v .country { color: var(--orange); }
.spec-card .v.stock { display: inline-flex; align-items: center; gap: 7px; }
.spec-card .v.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.5s ease-in-out infinite; }

/* why band */
.why-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 36px; }
.why-inner { max-width: 1320px; margin: 0 auto; }
.why-lead { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.015em; max-width: 920px; margin: 14px 0 36px; }
.why-lead .ital { font-style: italic; color: var(--blue); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-pt { padding-top: 22px; border-top: 1px solid var(--ink); }
.why-pt .n { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--orange); }
.why-pt h4 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 24px; line-height: 1.1; margin: 10px 0 8px; }
.why-pt p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* products */
.prod-band { padding: 72px 36px; max-width: 1320px; margin: 0 auto; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 40px; }
.prod-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(10,24,52,0.2); border-color: var(--ink); }
.prod-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod-idx { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--orange); }
.prod-cat { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.prod-name { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 25px; line-height: 1.05; letter-spacing: -0.01em; margin: 5px 0 3px; }
.prod-desc { font-size: 13px; line-height: 1.3; color: var(--ink-2); margin: 0 0 8px; }
.prod-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.prod-specs span { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.prod-use { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.prod-use::before { content: "↳ "; color: var(--orange); }

/* product image zone */
.prod-photo { position: relative; height: 178px; border-radius: 5px; overflow: hidden; margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); flex-shrink: 0; }
.prod-photo-img { position: absolute; inset: 0; z-index: 2; background-size: cover; background-position: center; background-repeat: no-repeat; }
.prod-photo-logo { position: absolute; inset: 0; z-index: 1; box-sizing: border-box; padding: 30px; background-color: var(--paper); background-repeat: no-repeat; background-position: center; background-origin: content-box; background-size: contain; }
.prod-photo-imgel { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; background: var(--paper); filter: drop-shadow(0 1px 1px rgba(10,24,52,0.16)) drop-shadow(0 0 1px rgba(10,24,52,0.35)); }
.prod-photo-rep { position: absolute; left: 8px; bottom: 8px; z-index: 3; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); background: rgba(10,24,52,0.72); padding: 3px 7px; border-radius: 4px; }
.prod-photo-ph { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px;
  background-image: repeating-linear-gradient(135deg, rgba(10,24,52,0.05) 0 9px, transparent 9px 18px); }
.prod-photo-ph .ph-tag { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.prod-photo-ph .ph-name { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-2); max-width: 92%; }

/* product resources & documentation */
.prod-res { display: none; flex-direction: column; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.prod-card:hover .prod-res { display: flex; }
.prod-res-label { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); opacity: 0.72; }
.prod-res a { font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.32; color: var(--orange); text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; width: fit-content; }
.prod-res a::before { content: "\2192"; color: var(--green); flex-shrink: 0; }
.prod-res a:hover { color: var(--ink); }
.prod-res a:hover::before { color: var(--ink); }
.prod-res a::before { content: "\2192"; color: var(--green); flex-shrink: 0; }
.prod-res a:hover { color: var(--ink); }
.prod-res a:hover::before { color: var(--ink); }
.prod-res-none { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-2); opacity: 0.6; }

/* applications + related */
.apps-band { background: var(--ink); color: var(--paper); padding: 64px 36px; }
.apps-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.apps-inner h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.015em; margin: 14px 0 0; }
.apps-inner h3 .ital { font-style: italic; color: var(--orange); }
.apps-inner .eyebrow { color: var(--orange); }
.apps-inner .eyebrow::before { background: var(--orange); }
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.app-chips span { font-family: "Space Grotesk", sans-serif; font-size: 14px; color: var(--paper); border: 1px solid rgba(243,239,230,0.22); border-radius: 999px; padding: 9px 16px; }
.app-chips span::before { content: "◆ "; color: var(--orange); font-size: 9px; vertical-align: middle; }

.related-band { padding: 64px 36px 76px; max-width: 1320px; margin: 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.rel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: all .2s; }
.rel-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 32px -16px rgba(10,24,52,0.2); }
.rel-card .rc-cat { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rel-card .rc-name { font-family: "Instrument Serif", serif; font-size: 26px; line-height: 1; }
.rel-card .rc-go { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }
.rel-card:hover .rc-go { color: var(--orange); }

/* brand catalogue card link */
.brand-link.cardlink { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.brand-card.featured .brand-link.cardlink { border-color: rgba(243,239,230,0.18); }

/* ======================== MOBILE NAV (hamburger) ======================== */
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 1.5px solid var(--ink);
    border-radius: 5px; cursor: pointer; flex: none; padding: 0;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -20px rgba(10,24,52,0.25);
    padding: 4px 20px 14px;
    transform: scaleY(0); transform-origin: top; opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav.menu-open .nav-links { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav .nav-links a { padding: 14px 4px; font-size: 17px; border-top: 1px solid var(--line); opacity: 1; }
  .nav .nav-links a:first-child { border-top: 0; }
  .nav .nav-links a::after { display: none; }
}
@media (max-width: 480px) {
  .nav-row { gap: 10px; }
  .logo { font-size: 32px; }
  .nav-cta { padding: 10px 14px; font-size: 13px; }
}

/* ======================== RESPONSIVE BASE ======================== */
@media (max-width: 900px) {
  .nav-row { padding: 12px 20px; gap: 16px; }
  section.band { padding: 56px 20px; }
  .page-header { padding: 48px 20px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 6px; padding: 24px 0 0; }
  .bp-hero { grid-template-columns: 1fr; padding: 36px 20px; gap: 32px; }
  .bp-aside { position: static; }
  .why-band, .apps-band, .related-band, .prod-band { padding-left: 20px; padding-right: 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .apps-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================================
   DARK MODE — opt-in via <html data-theme="dark">
   Inverts the paper/ink relationship while keeping the green + blue
   accents. Sections that were always-dark (ticker, brands, cta, footer,
   configurator) deepen further so they still read as "darker than page".
   ===================================================================== */
:root {
  /* default ease across the site — used for hover/focus transitions */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
  --motion: 1;   /* multiplier — Tweaks panel scales this */
}

html { transition: background-color .45s var(--ease), color .45s var(--ease); }
body { transition: background-color .45s var(--ease), color .45s var(--ease); }

[data-theme="dark"] {
  --ink: #ede5d0;
  --ink-2: #a99e83;
  --paper: #0c1525;
  --paper-2: #131e36;
  --line: rgba(237,229,208,0.13);
  --green-soft: #163b29;
  --orange-soft: #1a2e4f;
}

/* always-dark sections deepen so they're still darker than the page */
[data-theme="dark"] .ticker,
[data-theme="dark"] .brands,
[data-theme="dark"] .cta,
[data-theme="dark"] footer.site-footer,
[data-theme="dark"] .configurator,
[data-theme="dark"] .apps-band { background: #060c1a; color: #ede5d0; }

/* nav glass */
[data-theme="dark"] .nav { background: rgba(12,21,37,0.78); border-bottom-color: var(--line); }

/* nav CTA inverts so it pops on a dark page */
[data-theme="dark"] .nav-cta { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .nav-cta:hover { background: var(--green); color: #fff; }

/* buttons */
[data-theme="dark"] .btn-ghost { border-color: var(--ink); color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* paper noise overlay needs lightening so it doesn't double-darken */
[data-theme="dark"] body::before {
  background-image: radial-gradient(circle at 50% 50%, transparent 0, rgba(237,229,208,0.04) 100%);
  mix-blend-mode: screen;
}

/* keep brand & client tiles WHITE — the logos are white-bg JPGs */
[data-theme="dark"] .trust-board,
[data-theme="dark"] .client-cell,
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .logo-chip,
[data-theme="dark"] .bp-logo { background: var(--paper); }
[data-theme="dark"] .trust-board { border-color: rgba(237,229,208,0.12); }

/* surfaces that read as elevated paper */
[data-theme="dark"] .product-card,
[data-theme="dark"] .floor-readout,
[data-theme="dark"] .floor-stage,
[data-theme="dark"] .prod-card,
[data-theme="dark"] .rel-card,
[data-theme="dark"] .spec-card { background: var(--paper-2); border-color: var(--line); }
[data-theme="dark"] .spec-card .row { border-bottom-color: rgba(237,229,208,0.10); }

/* checked/glow detail surfaces */
[data-theme="dark"] .why-band { background: #0a1322; }

/* dotted/dashed grid overlays read better as light-on-dark */
[data-theme="dark"] .floor-stage::before {
  background-image: linear-gradient(rgba(237,229,208,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(237,229,208,0.06) 1px, transparent 1px);
  opacity: 0.35;
}

/* page-header.stroke / hero h1 .stroke colors are tied to --ink — they
   already pick that up because they use var(--ink). Good. */

/* details/FAQ on faq.band */
[data-theme="dark"] details.faq-item { border-color: var(--ink); }
[data-theme="dark"] details.faq-item p { color: var(--ink-2); }

/* image slot ticks */
[data-theme="dark"] .img-slot {
  background: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(237,229,208,0.05) 12px, rgba(237,229,208,0.05) 13px);
  border-color: var(--line);
}

/* reduced-motion respects user preference AND the Tweaks `motion: off` flag */
@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* brand-page FAQ (scoped — index.html has its own inline faq styles) */
.bp-faq { padding: 8px 36px 76px; max-width: 1320px; margin: 0 auto; }
.bp-faq .faq-list { display: flex; flex-direction: column; }
.bp-faq details.faq-item { border-top: 1px solid var(--ink); padding: 20px 0; cursor: pointer; }
.bp-faq details.faq-item:last-of-type { border-bottom: 1px solid var(--ink); }
.bp-faq details.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: "Instrument Serif", serif; font-size: 24px; letter-spacing: -0.01em; }
.bp-faq details.faq-item summary::-webkit-details-marker { display: none; }
.bp-faq details.faq-item summary::after { content: "+"; font-family: "JetBrains Mono", monospace; font-size: 22px; color: var(--orange); flex-shrink: 0; transition: transform .42s var(--ease-smooth, ease); }
.bp-faq details.faq-item[open] summary::after { transform: rotate(45deg); }
.bp-faq details.faq-item p { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 680px; }
@media (max-width: 900px) { .bp-faq { padding-left: 20px; padding-right: 20px; } .bp-faq details.faq-item summary { font-size: 20px; } }

/* expandable part-number list on product cards — opens on card hover (see nav.js), click on touch */
.prod-skus { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.prod-skus summary { list-style: none; cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-skus summary::before { content: "\21B3 "; color: var(--orange); }
.prod-skus summary::-webkit-details-marker { display: none; }
.prod-skus summary::after { content: "+"; color: var(--orange); font-size: 16px; transition: transform .3s; margin-left: auto; }
.prod-skus[open] summary::after { transform: rotate(45deg); }
.prod-skus ul { margin: 12px 0 0; padding: 12px; list-style: none; display: flex; flex-direction: column; gap: 7px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; }
.prod-skus[open] ul { animation: skuReveal .32s ease; }
@keyframes skuReveal { from { opacity: 0; transform: translateY(-5px); } }
.prod-skus li { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.45; color: var(--ink); }
.prod-skus li::before { content: "\2192  "; color: var(--green); }
.prod-skus-note { display: block; margin-top: 9px; font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-2); opacity: 0.7; }

/* =====================================================================
   SHARED LIVE-DIAGRAM UTILITIES
   The animation vocabulary used by the homepage figs (control panel,
   factory floor) — exposed site-wide so every page's "fig_" diagrams
   blink, flow and ping with the same pulse.
   ===================================================================== */
@keyframes inGlow { 0%, 100% { opacity: 0.42; } 50% { opacity: 1; } }
@keyframes inFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -32; } }
@keyframes inPing { 0% { transform: scale(0.4); opacity: 0.85; } 70% { opacity: 0.18; } 100% { transform: scale(2.6); opacity: 0; } }
.gl  { animation: inGlow 2s   ease-in-out infinite; }
.gl2 { animation: inGlow 2.7s ease-in-out infinite 0.5s; }
.gl3 { animation: inGlow 3.3s ease-in-out infinite 1.1s; }
.gl-fast { animation: inGlow 0.9s steps(2, jump-none) infinite; }
.gl-fast.d { animation-delay: 0.45s; }
.fl  { stroke-dasharray: 6 4; animation: inFlow 2.4s linear infinite; }
.fl2 { stroke-dasharray: 6 4; animation: inFlow 3.4s linear infinite; }
.fl-slow { stroke-dasharray: 4 5; animation: inFlow 5.2s linear infinite; }
.ping { transform-origin: center; transform-box: fill-box; animation: inPing 3.4s cubic-bezier(0.16, 0.84, 0.44, 1) infinite; }

/* live telemetry strip on brand pages (drawn by assets/livewire.js) */
.bp-livewire { max-width: 1320px; margin: -8px auto 0; padding: 0 36px 8px; }
.bp-livewire .lw-frame { border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); padding: 12px 18px 10px; position: relative; overflow: hidden; }
.bp-livewire .lw-meta { display: flex; justify-content: space-between; align-items: center; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.bp-livewire .lw-meta .lw-live { color: var(--green); }
.bp-livewire .lw-meta .lw-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; animation: pulse 1.5s ease-in-out infinite; }
.bp-livewire canvas { display: block; width: 100%; height: 64px; }
@media (max-width: 900px) { .bp-livewire { padding: 0 20px 8px; } }

/* panel-sim — animated instrument bench on brand pages (assets/panelsim.js) */
.bp-panelsim { max-width: 1320px; margin: -8px auto 0; padding: 0 36px 8px; }
.bp-panelsim .ps-frame { border: 1px solid var(--line); border-radius: 6px; background: var(--ink); padding: 13px 18px 16px; position: relative; overflow: hidden; }
.bp-panelsim .ps-meta { display: flex; justify-content: space-between; align-items: center; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,239,230,0.55); margin-bottom: 12px; }
.bp-panelsim .ps-meta .ps-live { color: #35c97d; }
.bp-panelsim .ps-meta .ps-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #35c97d; margin-right: 7px; vertical-align: middle; animation: pulse 1.5s ease-in-out infinite; }
.bp-panelsim .ps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ps-col { display: flex; flex-direction: column; min-width: 0; }
.ps-col .ps-inst { flex: 1; }
.ps-tap { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,239,230,0.62); border: 1px dashed rgba(243,239,230,0.22); border-radius: 5px; padding: 5px 9px; white-space: nowrap; overflow: hidden; }
.ps-tap .ps-tap-t { color: rgba(243,239,230,0.35); flex: none; }
.ps-tap.in .ps-tap-name::before { content: "●"; color: #3fe08a; margin-right: 6px; font-size: 7px; vertical-align: 1px; }
.ps-tap.out-tap .ps-tap-name::before { content: "●"; color: #6aa9ff; margin-right: 6px; font-size: 7px; vertical-align: 1px; }
.ps-wire { width: 2px; height: 15px; margin: 0 auto; flex: none; opacity: 0.8; background: repeating-linear-gradient(180deg, #3fe08a 0, #3fe08a 4px, transparent 4px, transparent 8px); animation: psFlowY 0.8s linear infinite; }
.ps-wire.out { background: repeating-linear-gradient(180deg, #6aa9ff 0, #6aa9ff 4px, transparent 4px, transparent 8px); }
.ps-wire.ps-busdrop { height: 13px; margin-top: 0; }
@keyframes psFlowY { to { background-position: 0 8px; } }
.ps-bus { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,239,230,0.5); margin-top: -10px; }
.ps-bus .ps-busline { flex: 1; height: 2px; opacity: 0.55; background: repeating-linear-gradient(90deg, #6aa9ff 0, #6aa9ff 6px, transparent 6px, transparent 12px); animation: psFlowX 0.9s linear infinite; }
@keyframes psFlowX { to { background-position: 12px 0; } }
.bp-panelsim .ps-legend { display: flex; gap: 18px; justify-content: flex-end; margin-top: 10px; font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,230,0.45); }
.bp-panelsim .ps-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; }
.bp-panelsim .ps-legend .lg-in::before { background: #3fe08a; }
.bp-panelsim .ps-legend .lg-out::before { background: #6aa9ff; }
.bp-panelsim .ps-legend .lg-bus::before { background: repeating-linear-gradient(90deg, #6aa9ff 0, #6aa9ff 4px, transparent 4px, transparent 8px); }
.ps-inst { background: #101e3e; border: 1px solid rgba(243,239,230,0.12); border-radius: 8px; padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ps-inst .ps-inst-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-family: "JetBrains Mono", monospace; }
.ps-inst .ps-model { font-size: 10px; letter-spacing: 0.1em; color: rgba(243,239,230,0.85); white-space: nowrap; }
.ps-inst .ps-role { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,239,230,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-inst .ps-win { background: #04101f; border-radius: 5px; padding: 7px 10px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(243,239,230,0.06); display: flex; flex-direction: column; gap: 2px; flex: 1; justify-content: center; }
.ps-inst .ps-disp { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 21px; line-height: 1.15; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; justify-content: space-between; align-items: baseline; }
.ps-inst .ps-disp .ps-unit { font-size: 10px; letter-spacing: 0.12em; opacity: 0.55; font-weight: 400; }
.ps-inst .ps-disp.pv { color: #3fe08a; text-shadow: 0 0 9px rgba(63,224,138,0.45); }
.ps-inst .ps-disp.sv { color: #e0a52a; text-shadow: 0 0 9px rgba(224,165,42,0.4); font-size: 13px; }
.ps-inst .ps-disp.bl { color: #6aa9ff; text-shadow: 0 0 9px rgba(106,169,255,0.45); }
.ps-inst .ps-disp.sm { font-size: 13px; }
.bp-panelsim .ps-leds { display: flex; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,230,0.45); }
.bp-panelsim .ps-led { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bp-panelsim .ps-led::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(243,239,230,0.16); flex: none; }
.bp-panelsim .ps-led.on { color: rgba(243,239,230,0.8); }
.bp-panelsim .ps-led.on::before { background: #3fe08a; box-shadow: 0 0 6px rgba(63,224,138,0.8); }
.bp-panelsim .ps-led.on.amber::before { background: #e0a52a; box-shadow: 0 0 6px rgba(224,165,42,0.8); }
.bp-panelsim .ps-led.on.blue::before { background: #6aa9ff; box-shadow: 0 0 6px rgba(106,169,255,0.8); }
@media (max-width: 1100px) { .bp-panelsim .ps-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .bp-panelsim { padding: 0 20px 8px; } }
@media (max-width: 640px) { .bp-panelsim .ps-row { grid-template-columns: repeat(2, 1fr); } .ps-col:last-child { grid-column: 1 / -1; } .ps-wire.ps-busdrop { display: none; } .ps-bus { margin-top: 0; } }

/* ps-loop — detailed application circuit diagrams (panelsim.js) */
.bp-panelsim .ps-stage { display: block; }
.ps-loop-wrap + .ps-loop-wrap { margin-top: 16px; border-top: 1px solid rgba(243,239,230,0.1); padding-top: 14px; }
.ps-loop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,239,230,0.6); margin: 0 0 10px; }
.ps-loop-head .ps-loop-tag { border: 1px solid rgba(63,224,138,0.4); border-radius: 99px; padding: 2px 10px; color: #3fe08a; white-space: nowrap; flex: none; }
.ps-loop { display: grid; grid-template-columns: minmax(0, 1.05fr) 58px minmax(0, 1.2fr) 58px minmax(0, 1.05fr); gap: 8px 0; }
.ps-loop .ps-proc { grid-column: 1; grid-row: 1 / 4; }
.ps-loop .ps-ctrl { grid-column: 3; grid-row: 1 / 4; }
.ps-loop .ps-win-in { grid-column: 2; grid-row: 1 / 4; }
.ps-loop.two .ps-proc, .ps-loop.two .ps-ctrl, .ps-loop.two .ps-win-in { grid-row: 1 / 3; }
.ps-loop .r1 { grid-row: 1; } .ps-loop .r2 { grid-row: 2; } .ps-loop .r3 { grid-row: 3; }
.ps-loop .c4 { grid-column: 4; } .ps-loop .c5 { grid-column: 5; }
.ps-hwire { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 5px; min-width: 0; }
.ps-hwire .ps-hlbl { font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(243,239,230,0.45); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-hwire .ps-hln { display: flex; align-items: center; }
.ps-hwire .ps-hln .ps-hbar { flex: 1; height: 2px; opacity: 0.8; background: repeating-linear-gradient(90deg, #3fe08a 0, #3fe08a 4px, transparent 4px, transparent 8px); animation: psFlowX8 0.7s linear infinite; }
.ps-hwire .ps-hln::after { content: "▸"; font-size: 9px; line-height: 1; color: #3fe08a; }
.ps-hwire.outw .ps-hln .ps-hbar { background: repeating-linear-gradient(90deg, #6aa9ff 0, #6aa9ff 4px, transparent 4px, transparent 8px); }
.ps-hwire.outw .ps-hln::after { color: #6aa9ff; }
@keyframes psFlowX8 { to { background-position: 8px 0; } }
.ps-outcard { background: #101e3e; border: 1px solid rgba(243,239,230,0.12); border-radius: 8px; padding: 8px 11px 9px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ps-outcard .oc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(243,239,230,0.85); white-space: nowrap; }
.ps-outcard .oc-term { font-size: 8.5px; color: rgba(243,239,230,0.35); }
.ps-outcard .oc-sub { font-size: 11px; line-height: 1.35; color: rgba(243,239,230,0.55); }
.ps-heat { height: 8px; border-radius: 3px; background: rgba(243,239,230,0.08); position: relative; overflow: hidden; }
.ps-heat .ps-heatfill { position: absolute; inset: 0; background: linear-gradient(90deg, #e0a52a, #ff7a3d, #e0a52a); opacity: 0; transition: opacity 0.35s; }
.ps-heat.hot .ps-heatfill { opacity: 0.9; }
.ps-heatrow { display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,239,230,0.4); }
.ps-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ps-zone { font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.04em; border: 1px solid rgba(243,239,230,0.14); border-radius: 4px; padding: 4px 2px; text-align: center; color: rgba(243,239,230,0.5); white-space: nowrap; }
.ps-zone.act { border-color: #3fe08a; color: #3fe08a; }
.ps-zone.alm { border-color: #e0a52a; color: #e0a52a; }
.ps-return { grid-column: 1 / 6; grid-row: 4; display: flex; align-items: flex-start; padding: 0 26px; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: #e0a52a; }
.ps-return .rc { width: 14px; height: 17px; border-bottom: 2px dashed rgba(224,165,42,0.55); flex: none; }
.ps-return .rc.l { border-left: 2px dashed rgba(224,165,42,0.55); border-bottom-left-radius: 7px; }
.ps-return .rc.r { border-right: 2px dashed rgba(224,165,42,0.55); border-bottom-right-radius: 7px; }
.ps-return .rl { flex: 1; height: 17px; border-bottom: 2px dashed rgba(224,165,42,0.55); }
.ps-return .rlab { align-self: flex-end; transform: translateY(50%); background: var(--ink); padding: 0 8px; white-space: nowrap; opacity: 0.85; }
.ps-cap { grid-column: 1 / 6; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 11.5px; line-height: 1.4; color: rgba(243,239,230,0.55); }
.ps-cap span b { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 9px; color: #3fe08a; margin-right: 6px; letter-spacing: 0.08em; }
@media (max-width: 880px) {
  .ps-loop { grid-template-columns: 1fr; gap: 6px; }
  .ps-loop .ps-proc, .ps-loop .ps-ctrl, .ps-loop .ps-win-in, .ps-loop .r1, .ps-loop .r2, .ps-loop .r3, .ps-loop.two .ps-proc, .ps-loop.two .ps-ctrl, .ps-loop.two .ps-win-in { grid-column: 1; grid-row: auto; }
  .ps-hwire { flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 2px 0; }
  .ps-hwire .ps-hln { width: 2px; height: 18px; flex: none; }
  .ps-hwire .ps-hln .ps-hbar { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, #3fe08a 0, #3fe08a 4px, transparent 4px, transparent 8px); animation: psFlowY 0.7s linear infinite; }
  .ps-hwire.outw .ps-hln .ps-hbar { background: repeating-linear-gradient(180deg, #6aa9ff 0, #6aa9ff 4px, transparent 4px, transparent 8px); }
  .ps-hwire .ps-hln::after { content: ""; }
  .ps-return { display: none; }
  .ps-cap { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gl, .gl2, .gl3, .gl-fast, .fl, .fl2, .fl-slow, .ping, .ps-wire, .ps-bus .ps-busline, .ps-hwire .ps-hln .ps-hbar { animation: none !important; }
}


/* ============ CRAFT LAYER — engineering-print finish ============ */
/* photography: ink duotone by default, colour on intent (hover) */
.img-fill, .ind-img, img[src*="img/industries/"], img[src*="img/hero/"], img[src*="img/about/"], img[src*="img/projects/"] { filter: grayscale(1) sepia(0.16) saturate(0.9) contrast(1.06) brightness(1.03); transition: filter .45s var(--ease); }
:is(a, article, figure):hover :is(.img-fill, .ind-img, img[src*="img/industries/"], img[src*="img/hero/"], img[src*="img/about/"], img[src*="img/projects/"]) { filter: none; }
/* colored italics live at the top and bottom of a page; mid-page headings keep the serif contrast but stay ink */
.section-head h2 .ital, .why-lead .ital, .apps-inner h3 .ital { color: inherit; }
/* drawing title block — sits on the bottom edge of a figure frame */
.drg-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--paper); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); z-index: 3; }
.drg-strip > span { padding: 7px 12px; border-right: 1px solid var(--line); white-space: nowrap; display: inline-flex; gap: 7px; align-items: baseline; }
.drg-strip > span:last-child { border-right: 0; margin-left: auto; }
.drg-strip b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .drg-strip { display: none; } }
/* inspection stamp — use sparingly */
.stamp { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep); border: 2px solid currentColor; border-radius: 4px; padding: 9px 14px; transform: rotate(-3deg); opacity: 0.75; align-self: center; }
