/* =====================================================================
   HY-C · Instrument  (references: mono, Superlative, via Refero)
   Reference lock
   - Primary: mono's architectural grid. Visible hairline grid, framed modules, 0px radius,
     uppercase tracked labels, outlined (ghost) controls, hierarchy by spacing and weight.
   - Borrowed from Superlative: functional indicator lights (small cyan marks) rather than
     decoration; engineered, instrument-panel tone on a dark field.
   - Kept from ALE: the navy-to-blue page gradient, Blinker, content, animations.
   - Signature: a dimension line under the chassis that lengthens as the chassis extends
     (S1 and S4). No figures on it, only the word LENGTH.
   - Rejected: rounded cards, soft glows, filled buttons.
   ===================================================================== */
.hy-c {
  --hair: rgba(190, 215, 255, 0.16);
  --hair-strong: rgba(190, 215, 255, 0.34);
  --signal: #6fe0ff;
}

/* blueprint grid over the ALE gradient: 12 columns + a horizontal module */
.hy-c .bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(190, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 215, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%, 100% calc(8 * var(--u));
}

/* ---------- framed section header bar ---------- */
.hy-c .hy-tag {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border-top: 1px solid var(--hair-strong); border-bottom: 1px solid var(--hair);
  padding: 10px 0; margin-bottom: max(22px, calc(2.6 * var(--u)));
  font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
}
.hy-c .hy-tag .n { color: var(--signal); }
.hy-c .hy-tag .n::before { content: "S/"; }
.hy-c .hy-tag::after { content: "OMO · LaaV"; margin-left: auto; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.22em; }
.hy-c .s4-head { right: calc(7 * var(--u)); }
.hy-c .s4-head .hy-tag { font-size: 12px; }
.hy-c .s9-grid .hy-tag, .hy-c .s8-ask .hy-tag { grid-column: 1 / -1; }

/* ---------- hero: corner registration marks + dimension line ---------- */
.hy-c .s1-stage::before, .hy-c .s1-stage::after, .hy-c .s4-stage::before, .hy-c .s4-stage::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--hair-strong); border-style: solid;
}
.hy-c .s1-stage::before, .hy-c .s4-stage::before { left: calc(3 * var(--u)); top: calc(3 * var(--u)); border-width: 1px 0 0 1px; }
.hy-c .s1-stage::after, .hy-c .s4-stage::after { right: calc(3 * var(--u)); bottom: calc(1.4 * var(--u)); border-width: 0 1px 1px 0; }
.hy-c .s1-tags { text-transform: uppercase; letter-spacing: 0.16em; font-size: max(12px, calc(1 * var(--u))); }

.hy-c .hy-dim {
  --w: calc(46% + 40% * var(--len, 0));
  position: absolute; left: 8%; bottom: 2%; width: var(--w); height: 22px;
  display: flex; align-items: center; color: var(--signal); pointer-events: none;
}
.hy-c .hy-dim .cap { width: 1px; height: 100%; background: currentColor; flex: none; }
.hy-c .hy-dim .bar { flex: 1; height: 1px; background: currentColor; position: relative; opacity: 0.85; }
.hy-c .hy-dim .bar::before, .hy-c .hy-dim .bar::after {
  content: ""; position: absolute; top: -4px; width: 0; height: 0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.hy-c .hy-dim .bar::before { left: 0; border-right: 8px solid currentColor; }
.hy-c .hy-dim .bar::after { right: 0; border-left: 8px solid currentColor; }
.hy-c .hy-dim .lbl {
  position: absolute; left: 50%; top: -16px; transform: translateX(-50%);
  font-weight: 600; font-size: 11px; letter-spacing: 0.3em; color: var(--signal);
  background: transparent; padding: 0 8px;
}
.hy-c .s4-chassis .hy-dim { bottom: -2%; }

/* ---------- type ---------- */
.hy-c .h-section { font-weight: 300; letter-spacing: -0.02em; }
.hy-c .h-section b { font-weight: 600; }
.hy-c .h-sub { text-transform: uppercase; letter-spacing: 0.14em; font-size: max(14px, calc(1.2 * var(--u))); font-weight: 600; }

/* ---------- S2: two framed modules with a boxed "vs" ---------- */
.hy-c .s2-col { border: 1px solid var(--hair); padding: calc(2 * var(--u)); }
.hy-c .s2-col .h-sub { border-bottom: 1px solid var(--hair); padding-bottom: calc(1 * var(--u)); }
.hy-c .s2-col .close { border-top-color: var(--hair-strong); }
.hy-c .s2-col.after { border-color: var(--hair-strong); }
.hy-c .s2-col.after .close { color: var(--signal); }
.hy-c .s2-vs { border: 1px solid var(--hair-strong); width: 3em; height: 3em; display: grid; place-items: center; font-size: max(16px, calc(1.4 * var(--u))); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- S3: a table of modules, media cell | text cell ---------- */
.hy-c .s3-row { border: 1px solid var(--hair); padding: 0; column-gap: 0; }
.hy-c .s3-row + .s3-row { background-image: none; margin-top: -1px; }
.hy-c .s3-media { padding: calc(2 * var(--u)); border-right: 1px solid var(--hair); }
.hy-c .s3-row.media-right .s3-media { border-right: 0; border-left: 1px solid var(--hair); }
.hy-c .s3-text { text-align: left; padding: calc(2 * var(--u)) calc(3 * var(--u)); }
.hy-c .s3-text ul { gap: 0; }
.hy-c .s3-text li { padding: calc(0.6 * var(--u)) 0; border-top: 1px solid var(--hair); }
.hy-c .s3-text li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--signal); margin-right: 12px; vertical-align: middle; }

/* ---------- S4: stages as rows; the active one gets an indicator light ---------- */
.hy-c .s4-steps { text-align: left; gap: 0; }
.hy-c .s4-steps li { border-top: 1px solid var(--hair); padding: calc(1.3 * var(--u)) 0 calc(1.3 * var(--u)) calc(1.6 * var(--u)); position: relative; }
.hy-c .s4-steps li:last-child { border-bottom: 1px solid var(--hair); }
.hy-c .s4-steps li::before { content: ""; position: absolute; left: 0; top: calc(1.3 * var(--u) + 0.55em); width: 6px; height: 6px; background: rgba(255, 255, 255, 0.3); }
.hy-c .s4-steps li.is-active::before { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hy-c .s4-steps strong { text-transform: uppercase; letter-spacing: 0.12em; font-size: max(16px, calc(1.6 * var(--u))); }

/* ---------- hubs: instrument dial (ticks around a hairline ring) ---------- */
.hy-c .hub-ring { border-color: var(--hair-strong); box-shadow: none; background: rgba(11, 16, 48, 0.6); }
.hy-c .hub-ring::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(190, 215, 255, 0.55) 0deg 0.6deg, transparent 0.6deg 7.5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.hy-c .hub-ring::after { content: ""; position: absolute; top: -9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hy-c .hub-lines line { stroke: var(--hair-strong); }
.hy-c .hub-item { border-left: 1px solid var(--hair-strong); padding-left: calc(1.2 * var(--u)); }
.hy-c .hub-item .lbl { color: var(--signal); font-weight: 600; letter-spacing: 0.22em; }

/* ---------- S7 ---------- */
.hy-c .s7-text .l4 { letter-spacing: 0.02em; }

/* ---------- S8: square markers ---------- */
.hy-c .s8-label, .hy-c .s9-label { color: #fff; letter-spacing: 0.24em; }
.hy-c .tl-dot { border-radius: 0; transform: rotate(45deg); }
.hy-c .tl-ph.is-on .tl-dot { box-shadow: 0 0 12px rgba(111, 224, 255, 0.8); }
.hy-c .tl-who { text-transform: uppercase; letter-spacing: 0.12em; font-size: max(10px, calc(0.85 * var(--u))); }

/* ---------- S9: outlined, square email button ---------- */
.hy-c .s9-mail a { display: inline-block; border: 1px solid var(--hair-strong); padding: 14px 24px; color: #fff; background-image: none; font-weight: 500; letter-spacing: 0.02em; }
.hy-c .s9-mail a::after { content: "  →"; color: var(--signal); }
.hy-c .s9-mail a:hover { background: #fff; color: #0b1030; }
.hy-c .foot-in { border-top-color: var(--hair-strong); }

/* phones and portrait screens */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .hy-c .s1-chassis, .hy-c .s4-chassis { position: relative; }
  .hy-c .hy-dim { bottom: 0; }
  .hy-c .s3-media { border-right: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--hair); }
  .hy-c .s3-text { padding: 18px 20px 22px; }
  .hy-c .s4-head { right: auto; }
  .hy-c .s4-steps li { padding: 10px 0 10px 16px; }
  .hy-c .s4-steps li::before { top: calc(10px + 0.5em); }
  .hy-c .hub-item { padding-left: 14px; }
  .hy-c .s2-col { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hy-c .hy-dim { --w: 86%; } }

/* S4: the tag sits above the heading without pushing it into the chassis */
.hy-c .s4-head .hy-tag { position: absolute; left: 0; bottom: 100%; margin-bottom: max(12px, calc(1.2 * var(--u))); }
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .hy-c .s4-head { position: relative; margin-top: 40px; } }
