/* ==========================================================================
   sections.css — Hero & U1 64-LQFP chip, 01 Profile & Title Block,
                  02 Project Datasheets, 03 BOM Stack, 04 SMD Cert Reel,
                  05 Field Log Events, 06 J1 Gold-Finger Edge Connector
   ========================================================================== */

/* ============ HERO ============ */
section[id],
#uartTerm {
  scroll-margin-top: 86px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--s6) + 14px) 0 var(--s7);
  border-bottom: 1px solid var(--silk-faint);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s6);
  align-items: center;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--gold-hi);
  padding: 4px 10px;
  border: 1px solid var(--silk-faint);
  background: var(--bg-card);
  border-radius: 2px;
  margin-bottom: var(--s3);
}

.hero-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led-ok);
  box-shadow: 0 0 8px var(--led-ok);
  animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.name {
  font-family: var(--f-stencil);
  font-size: clamp(2.4rem, 8vw, 6.75rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

.name span {
  display: block;
  overflow: hidden;
}

.name span i {
  font-style: normal;
  display: inline-block;
}

html.crt-zoom .name span i {
  animation: heroTitleIn 0.65s steps(16, end) backwards;
}

.name span:nth-child(1) i { animation-delay: 0.05s; }
.name span:nth-child(2) i { animation-delay: 0.14s; }
.name span:nth-child(3) i { animation-delay: 0.23s; }

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(42%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.name .outline i {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  text-stroke: 2px var(--gold);
  filter: drop-shadow(0 0 12px rgba(230, 194, 116, 0.22));
}

.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  color: var(--silk);
  margin-bottom: var(--s5);
}

.roles u {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  text-decoration: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* U1 LQFP-64 Processor Chip */
.hero-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.chip {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  display: block;
  margin: 22px 0;
}

.chip-fanout {
  position: absolute;
  inset: -44px;
  width: calc(100% + 88px);
  height: calc(100% + 88px);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.cf-under {
  fill: none;
  stroke: var(--trace-under);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cf-copper {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
  transition: opacity 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.cf-copper.is-active {
  stroke: var(--led-ok);
  stroke-width: 2.6;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--led-ok));
}

.cf-via-ring {
  fill: var(--gold);
  stroke: var(--bg-deep);
  stroke-width: 1.4;
  opacity: 0.7;
  transition: fill 0.2s ease, opacity 0.2s ease;
}

.cf-via-ring.is-active {
  fill: var(--led-ok);
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--led-ok));
}

.cf-via-hole {
  fill: var(--bg-deep);
}

.chip-pins {
  position: absolute;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: auto;
}

.chip-pins.top,
.chip-pins.bottom {
  left: 38px;
  right: 38px;
  height: 22px;
}

.chip-pins.top { top: 4px; }
.chip-pins.bottom { bottom: 4px; }

.chip-pins.left,
.chip-pins.right {
  top: 38px;
  bottom: 38px;
  width: 22px;
  flex-direction: column;
}

.chip-pins.left { left: 4px; }
.chip-pins.right { right: 4px; }

.chip-pin {
  position: relative;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold), var(--gold-lo));
  border: 1px solid #121514;
  border-radius: 1.5px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.chip-pin::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.chip-pins.top .chip-pin,
.chip-pins.bottom .chip-pin {
  width: 12px;
  height: 100%;
}

.chip-pins.left .chip-pin,
.chip-pins.right .chip-pin {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--gold-lo));
}

.chip-pin:hover,
.chip-pin:focus-visible,
.chip-pin.is-hot {
  filter: brightness(1.3);
  box-shadow: 0 0 10px var(--gold-hi), 0 0 4px #fff;
}

.chip-pin.is-scan {
  filter: brightness(1.25);
  box-shadow: 0 0 8px var(--led-ok);
}

.chip-body {
  position: absolute;
  inset: 26px;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18px 18px, #2b3230 0 6px, #0b0d0c 7px 9px, transparent 10px),
    linear-gradient(145deg, #1d2220 0%, #111413 60%, #0c0e0d 100%);
  border: 2px solid var(--ic-edge);
  border-radius: 6px;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ic-ink);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 22px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ic-dim);
  letter-spacing: 0.08em;
}

.chip-head b {
  color: var(--gold);
  font-weight: 500;
}

.chip-die-wrap {
  position: relative;
  margin: var(--s2) auto;
  width: 68%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: #0c0f0e;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  box-shadow:
    0 0 0 4px rgba(230, 194, 116, 0.08),
    inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.chip-die {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
  filter: contrast(1.04);
}

.chip-die-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--gold-hi);
  border-style: solid;
  pointer-events: none;
}

.chip-die-corner.tl { top: 3px; left: 3px; border-width: 2px 0 0 2px; }
.chip-die-corner.tr { top: 3px; right: 3px; border-width: 2px 2px 0 0; }
.chip-die-corner.bl { bottom: 3px; left: 3px; border-width: 0 0 2px 2px; }
.chip-die-corner.br { bottom: 3px; right: 3px; border-width: 0 2px 2px 0; }

.chip-readout {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #0a0c0b;
  border: 1px solid var(--ic-edge);
  border-radius: 3px;
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.chip-readout-pin {
  color: var(--gold-hi);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip-readout-sig {
  color: var(--led-ok);
  text-align: right;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-ref {
  color: var(--silk-dim);
  text-align: center;
}

/* Spec Strip below Hero */
.spec-strip {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--silk-faint);
  background: var(--bg-card);
  border-radius: 3px;
}

.spec-item {
  padding: var(--s3);
  border-right: 1px solid var(--silk-faint);
}

.spec-item:last-child {
  border-right: none;
}

.spec-item dt {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.spec-item dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silk);
}

/* ============ GENERIC SECTION SHELL ============ */
.sec {
  position: relative;
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--silk-faint);
}

.sec-head {
  display: flex;
   flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s6);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--silk);
}

.sec-head .idx {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: #121514;
  background: var(--gold);
  padding: 3px 9px;
  border-radius: 2px;
}

.sec-head h2 {
  font-family: var(--f-disp);
  font-size: clamp(1.75rem, 4.5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.sec-head .ref {
  margin-left: auto;
  color: var(--silk-dim);
}

/* ============ 01 PROFILE & TITLE BLOCK ============ */
.profile-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s6);
  align-items: start;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-size: 1.05rem;
  color: var(--silk);
}

.bio .lede {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-hi);
}

/* Engineering Schematic Title Block */
.tblock {
  border: 1.5px solid var(--silk);
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.tblock-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1.5px solid var(--silk);
  cursor: pointer;
}

.tblock-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

.tblock-media:hover img {
  transform: scale(1.03);
}

.tblock-badge {
  position: absolute;
  bottom: var(--s2);
  left: var(--s2);
  background: var(--ic);
  color: var(--gold-hi);
  border: 1px solid var(--gold);
  padding: 4px 8px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  border-radius: 2px;
}

.tblock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.tblock-cell {
  padding: 12px 16px;
  border-bottom: 1px solid var(--silk-faint);
  border-right: 1px solid var(--silk-faint);
}

.tblock-cell.wide {
  grid-column: 1 / -1;
  border-right: none;
}

.tblock-cell:nth-child(2n) {
  border-right: none;
}

.tblock-k {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
}

.tblock-v {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--silk);
}

/* ============ 02 PROJECTS (IC DATASHEETS) ============ */
.ds-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.ds-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: var(--ic);
  color: var(--ic-ink);
  border: 1.5px solid var(--ic-edge);
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.ds-tab::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ic-edge);
}

.ds-tab:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ds-tab[aria-selected="true"] {
  background: var(--ic-elev);
  border-color: var(--gold-hi);
  box-shadow: 0 6px 0 #0a0c0b;
}

.ds-tab[aria-selected="true"]::before {
  background: var(--led-ok);
  box-shadow: 0 0 8px var(--led-ok);
}

.ds-tab-ref {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--gold);
}

.ds-tab-name {
  font-family: var(--f-disp);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.ds-tab-kind {
  font-size: 0.74rem;
  color: var(--ic-dim);
  line-height: 1.25;
}

/* Active Datasheet Viewer */
.ds-sheet {
  background: var(--ic);
  color: var(--ic-ink);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: dsSwitchIn 0.33s steps(8, end);
}

@keyframes dsSwitchIn {
  0% {
    opacity: 0.4;
    transform: translateY(6px) scale(0.995);
    filter: brightness(1.35);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

.ds-schem-flow {
  stroke-dasharray: 7 7;
  animation: schemFlow 1.25s steps(30, end) infinite;
}

@keyframes schemFlow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

.ds-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--ic-elev);
  border-bottom: 1.5px solid var(--ic-edge);
}

.ds-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-partline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--gold);
}

.ds-role {
  padding: 2px 8px;
  background: rgba(91, 227, 139, 0.12);
  border: 1px solid rgba(91, 227, 139, 0.5);
  border-radius: 2px;
  color: var(--led-ok);
}

.ds-rev {
  padding: 2px 8px;
  background: rgba(230, 194, 116, 0.14);
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-hi);
}

.ds-title {
  font-family: var(--f-disp);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.ds-body {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  border-top: 1px solid var(--ic-edge);
}

.ds-spec {
  padding: var(--s4);
  border-right: 1px solid var(--ic-edge);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.ds-sec-h {
  font-family: var(--f-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--s2);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--ic-edge);
}

.ds-summary {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ic-ink);
}

.ds-feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-feat-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  font-size: 0.94rem;
  color: #d5ded8;
  line-height: 1.5;
}

.ds-feat-num {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--gold);
  padding-top: 2px;
}

.ds-bom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.ds-bom-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #0e1110;
  border: 1px solid var(--ic-edge);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ic-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ds-bom-chip b {
  color: var(--gold);
  font-weight: 500;
}

.bom-ic-sm {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--ic-edge);
}

.bom-ic-sm svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ds-bom-chip:hover {
  border-color: var(--gold-hi);
  background: rgba(230, 194, 116, 0.14);
}

/* Right Side Visual / Oscilloscope / Schematic */
.ds-visual {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
  background: #0d100f;
}

.ds-stage {
  position: relative;
  height: 340px;
  background:
    linear-gradient(rgba(91, 227, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 227, 139, 0.05) 1px, transparent 1px),
    #080a09;
  background-size: 20px 20px;
  border: 1px solid var(--ic-edge);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.ds-stage.is-contain img {
  object-fit: contain;
  padding: var(--s2);
}

.ds-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 10px;
  background: rgba(19, 22, 21, 0.9);
  color: var(--gold-hi);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.ds-thumbs {
  display: flex;
  align-items: center;
  gap: var(--s2);
  overflow-x: auto;
  padding-bottom: 2px;
}

.ds-thumb {
  width: 64px;
  height: 46px;
  border-radius: 2px;
  border: 1.5px solid var(--ic-edge);
  background: #050606;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ds-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-thumb.is-active,
.ds-thumb:hover {
  opacity: 1;
  border-color: var(--gold-hi);
}

.ds-schematic {
  width: 100%;
  height: 100%;
  padding: var(--s3);
}

/* ============ 03 STACK (BILL OF MATERIALS) ============ */
.bom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.bom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.bom-pill {
  padding: 7px 14px;
  background: var(--ic);
  color: var(--ic-dim);
  border: 1px solid var(--ic-edge);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.bom-pill:hover {
  color: var(--ic-ink);
  border-color: var(--gold);
}

.bom-pill[aria-pressed="true"] {
  background: var(--gold);
  color: #121514;
  border-color: #121514;
  font-weight: 500;
}

.bom-search {
  min-width: 280px;
  padding: 7px 12px;
  background: var(--ic);
  color: var(--ic-ink);
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.bom-search::placeholder {
  color: var(--ic-dim);
}

.bom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s2);
}

.bom-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px 14px;
  background: var(--ic);
  color: var(--ic-ink);
  border: 1px solid var(--ic-edge);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bom-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-hi);
}

.bom-card.is-pinged {
  border-color: var(--led-ok);
  box-shadow: 0 0 0 2px var(--led-ok), 0 12px 24px rgba(0, 0, 0, 0.45);
}

.bom-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
}

.bom-ref {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

.bom-cat {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--ic-dim);
  text-transform: uppercase;
}

.bom-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
}

.bom-ic {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid var(--ic-edge);
  background: #1a1f1d;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.bom-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bom-ic-txt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.bom-name {
  font-family: var(--f-disp);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.bom-used {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px dashed var(--ic-edge);
}

.bom-used-lbl {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--ic-dim);
}

.bom-proj-link {
  padding: 2px 6px;
  background: rgba(230, 194, 116, 0.14);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--gold-hi);
  cursor: pointer;
}

.bom-proj-link:hover {
  background: var(--gold);
  color: #111;
}

/* ============ 04 CERTIFICATIONS (SMD INSPECTION REEL) ============ */
.reel {
  background: #0e1110;
  border: 2px solid var(--ic-edge);
  border-radius: 4px;
  padding: var(--s2) var(--s3);
  position: relative;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.sprocket-strip {
  height: 18px;
  background-image: radial-gradient(circle, var(--bg) 5px, transparent 6px);
  background-size: 32px 18px;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.reel-pockets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
}

.pocket {
  background: var(--ic);
  color: var(--ic-ink);
  border: 1.5px solid var(--ic-edge);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pocket:hover {
  border-color: var(--gold-hi);
  transform: translateY(-2px);
}

.pocket-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ic-elev);
  border-bottom: 1px solid var(--ic-edge);
  font-family: var(--f-mono);
  font-size: 0.7rem;
}

.pocket-id {
  color: var(--gold);
}

.pocket-stamp {
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(91, 227, 139, 0.15);
  color: var(--led-ok);
  border: 1px solid var(--led-ok);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.pocket-img {
  position: relative;
  height: 200px;
  background: #070908;
  border-bottom: 1px solid var(--ic-edge);
  cursor: zoom-in;
  overflow: hidden;
}

.pocket-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}

.pocket:hover .pocket-img img {
  transform: scale(1.03);
}

.pocket-body {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
}

.pocket-date {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ic-dim);
}

.pocket-title {
  font-family: var(--f-disp);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.pocket-issuer {
  font-size: 0.86rem;
  color: var(--ic-dim);
}

.pocket-foot {
  padding: 10px var(--s3);
  border-top: 1px dashed var(--ic-edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

.pocket-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #0b0d0c;
  border: 1px solid var(--ic-edge);
  border-radius: 2px;
  color: var(--gold-hi);
  cursor: pointer;
}

.pocket-code:hover {
  border-color: var(--gold);
}

.pocket-verify {
  color: var(--led-ok);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 05 EVENTS (FIELD TEST LOG) ============ */
.flog {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: relative;
}

.flog-item {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--bg-card);
  border: 1.5px solid var(--silk-faint);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  align-items: center;
}

.flog-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
}

.flog-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-hi);
}

.flog-role {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--ic);
  color: var(--led-ok);
  border: 1px solid var(--led-ok);
  border-radius: 2px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.flog-loc {
  font-family: var(--f-sans);
  font-size: 0.84rem;
  color: var(--silk-dim);
}

.flog-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.flog-title {
  font-family: var(--f-disp);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.flog-desc {
  font-size: 0.96rem;
  color: var(--silk);
  line-height: 1.55;
}

.flog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.flog-tag {
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--silk-faint);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--silk-dim);
}

.flog-media {
   position: relative;
  height: 176px;
  border-radius: 3px;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  background: var(--ic);
  cursor: zoom-in;
}

.flog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}

.flog-media:hover img {
  transform: scale(1.04);
}

.flog-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(19, 22, 21, 0.88);
  color: var(--gold-hi);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
}

/* ============ 06 CONTACT (J1 GOLD-FINGER EDGE CONNECTOR) ============ */
.edge-conn {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.edge-finger {
  background: var(--ic);
  color: var(--ic-ink);
  border: 1.5px solid var(--ic-edge);
  border-radius: 4px 4px 2px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.edge-finger:hover {
  transform: translateY(-3px);
  border-color: var(--gold-hi);
}

.edge-finger-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.edge-pin-id {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--gold);
}

.edge-chan {
  font-family: var(--f-disp);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.edge-val {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ic-dim);
  word-break: break-all;
}

.edge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}

.edge-btn {
  padding: 6px 11px;
  background: var(--ic-elev);
  color: var(--ic-ink);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.edge-btn:hover {
  background: var(--gold);
  color: #111;
}

.edge-finger-pad {
  height: 36px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 18px,
    #101312 18px 24px
  );
  border-top: 2px solid var(--gold-hi);
}

/* ============ FOOTER — MOTHERBOARD GOLD-FINGER EDGE CARD ============ */
.foot {
  position: relative;
  z-index: 10;
  background: var(--bg-deep);
  border-top: 2px solid var(--silk-faint);
  padding-top: 56px;
  overflow: hidden;
}

.foot-pcb {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr auto;
  align-items: start;
  gap: var(--s5);
  padding-bottom: var(--s5);
}

.foot-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-silk-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.foot-name {
  font-family: var(--f-stencil);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--silk);
  line-height: 1.05;
}

.foot-roles {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--led-ok);
  letter-spacing: 0.04em;
}

.foot-copy-line {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--silk-dim);
  margin-top: 4px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.foot-col-h {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.foot-pad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foot-pad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(13, 18, 16, 0.85);
  border: 1px solid var(--silk-faint);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.71rem;
  color: var(--silk);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.foot-pad b {
  color: var(--gold-hi);
  font-size: 0.64rem;
  font-weight: 600;
}

.foot-pad:hover {
  border-color: var(--gold-hi);
  background: rgba(230, 194, 116, 0.14);
  transform: translateY(-1px);
}

.foot-act {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Bottom Bevelled PCIe Gold-Finger Edge Connector Comb */
.foot-edge {
  border-top: 1px dashed var(--silk-faint);
  background: rgba(5, 14, 10, 0.65);
  padding-top: 10px;
}

.foot-edge-ruler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--silk-dim);
  padding-bottom: 8px;
}

.foot-edge-slot {
  display: grid;
  grid-template-columns: 1fr 28px 3.4fr;
  align-items: stretch;
  height: 34px;
  padding-inline: clamp(28px, 5vw, 72px);
  border-bottom: 4px solid #8a6b28;
}

.foot-fingers {
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-hi) 0 4px,
      var(--gold) 4px 12px,
      var(--gold-lo) 12px 14px,
      #091410 14px 20px
    );
  border-top: 2px solid var(--gold-hi);
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.25);
}

.foot-key-notch {
  background: #040907;
  border-inline: 2px solid var(--gold-lo);
  border-top: 2px solid var(--gold-lo);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.9);
}

/* ============ RESPONSIVE BREAKPOINTS ============ */
@media (max-width: 1080px) {
  .ds-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-body {
    grid-template-columns: 1fr;
  }
  .ds-spec {
    border-right: none;
    border-bottom: 1px solid var(--ic-edge);
  }
  .reel-pockets {
    grid-template-columns: repeat(2, 1fr);
  }
  .flog-item {
    grid-template-columns: 170px 1fr;
  }
  .flog-media {
    grid-column: 1 / -1;
    height: 220px;
  }
  .edge-conn {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-pcb {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .foot-act {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-item:nth-child(2) {
    border-right: none;
  }
  .spec-item:nth-child(1),
  .spec-item:nth-child(2) {
    border-bottom: 1px solid var(--silk-faint);
  }
  .ds-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .bom-search {
    min-width: 0;
    width: 100%;
  }
  .reel-pockets,
  .flog-item,
  .edge-conn {
    grid-template-columns: 1fr;
  }
  .foot-edge-ruler span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .chip {
    width: min(80vw, 320px);
    margin: 26px 0 12px;
  }
  .chip-fanout {
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
  }
  .chip-body {
    inset: 20px;
    padding: 8px;
  }
  .chip-pins.top,
  .chip-pins.bottom {
    left: 28px;
    right: 28px;
    height: 16px;
  }
  .chip-pins.left,
  .chip-pins.right {
    top: 28px;
    bottom: 28px;
    width: 16px;
  }
  .chip-readout {
    padding: 5px 8px;
    font-size: 0.6rem;
    gap: 6px;
  }
  .ds-stage {
    height: 220px;
  }
  .ds-top,
  .ds-spec,
  .ds-visual {
    padding: var(--s3);
  }
  .spec-strip,
  .ds-tabs,
  .tblock-grid {
    grid-template-columns: 1fr;
  }
  .spec-item {
    border-right: none;
    border-bottom: 1px solid var(--silk-faint);
    padding: 10px 14px;
  }
  .spec-item:last-child {
    border-bottom: none;
  }
  .tblock-media {
    height: clamp(160px, 45vw, 210px);
  }
  .flog-item {
    padding: var(--s3);
    gap: var(--s3);
  }
  .flog-media {
    height: clamp(170px, 48vw, 210px);
  }
  .pocket-img {
    height: clamp(170px, 48vw, 200px);
  }
  .foot-act .tact {
    width: 100%;
  }
  .foot-edge-slot {
    height: 26px;
    padding-inline: 16px;
  }
}

@media (max-width: 400px) {
  .hero-meta {
    gap: 6px;
  }
  .hero-badge {
    font-size: 0.62rem;
    padding: 3px 6px;
  }
  .roles {
    font-size: 0.74rem;
    gap: 6px;
  }
  .chip {
    width: min(76vw, 270px);
    margin: 8px 0;
  }
  .chip-fanout {
    inset: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
  }
  .chip-body {
    inset: 16px;
    padding: 6px;
  }
  .chip-pins.top,
  .chip-pins.bottom {
    left: 22px;
    right: 22px;
    height: 13px;
  }
  .chip-pins.left,
  .chip-pins.right {
    top: 22px;
    bottom: 22px;
    width: 13px;
  }
  .chip-readout {
    font-size: 0.55rem;
    padding: 4px 6px;
  }
  .sec-head {
    gap: 8px;
    padding-bottom: 8px;
  }
  .sec-head .idx {
    font-size: 0.72rem;
    padding: 2px 6px;
  }
  .sec-head h2 {
    font-size: 1.55rem;
  }
  .sec-head .ref {
    display: none;
  }
  .bom-pill {
    padding: 5px 10px;
    font-size: 0.68rem;
  }
  .pocket-bar,
  .pocket-foot {
    padding: 6px 10px;
  }
  .foot-pad {
    padding: 4px 7px;
    font-size: 0.66rem;
  }
  .foot-edge-ruler span:last-child {
    display: none;
  }
}

