/* =============================================================================
   IntelliBOM · intellibom.ca · Scenario 2 · Ethereal Glass
   sections.css — hero / viewport / stats / sec-head
   Pairs with styles.css (shell) and blocks.css (features/compare/toc/footer).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. HERO
   ---------------------------------------------------------------------------*/
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--pad-x) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(40px, 5vw, 56px);
  align-items: start;
}
.hero__left {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  align-content: start;
}
.hero__right {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(52px, 7.6vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--white);
}
.hero__line { display: block; }
.hero__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(96deg, var(--emerald) 0%, var(--emerald-2) 50%, var(--emerald) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: shimmer 9s linear infinite;
  padding-right: 0.02em;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__sub {
  margin: 0;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.65;
  color: var(--steel-2);
  max-width: 54ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* -----------------------------------------------------------------------------
   2. VIEWPORT (video in CAD chrome)
   ---------------------------------------------------------------------------*/
.viewport { margin: 0; padding: 0; }
.viewport__chrome {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--void-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -20px rgba(16, 185, 129, 0.22);
}
.viewport__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* CAD L-corner markers */
.viewport__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  border: 0 solid var(--emerald);
  filter: drop-shadow(0 0 6px var(--emerald-glow));
}
.viewport__corner--tl { top: 16px;    left: 16px;  border-top-width: 1.5px;    border-left-width: 1.5px;  }
.viewport__corner--tr { top: 16px;    right: 16px; border-top-width: 1.5px;    border-right-width: 1.5px; }
.viewport__corner--bl { bottom: 16px; left: 16px;  border-bottom-width: 1.5px; border-left-width: 1.5px;  }
.viewport__corner--br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Axis gizmo (top-left) */
.viewport__gizmo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  z-index: 3;
}
.gizmo__line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 22px;
  transform-origin: 0 50%;
}
.gizmo__line--x { background: linear-gradient(to right, #ef4444, transparent); transform: rotate(0deg); }
.gizmo__line--y { background: linear-gradient(to right, #22c55e, transparent); transform: rotate(-70deg); }
.gizmo__line--z { background: linear-gradient(to right, #3b82f6, transparent); transform: rotate(-140deg); }
.gizmo__axis {
  position: absolute;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 9px;
  color: var(--white);
  border-radius: 50%;
}
.gizmo__axis--x { top: 22px; left: 52px; background: #ef4444; }
.gizmo__axis--y { top: -6px; left: 28px; background: #22c55e; }
.gizmo__axis--z { top: 44px; left: 2px;  background: #3b82f6; }

/* Scale ruler */
.viewport__ruler {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 22px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.15em;
}
.viewport__ruler .unit { color: var(--emerald); }

/* Caption */
.viewport__caption {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.viewport__caption .dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: blink 2.4s var(--ease) infinite;
}
.viewport__caption .sep { color: var(--steel-3); }
@keyframes blink {
  0%, 60%, 100% { opacity: 1; }
  75%           { opacity: 0.3; }
}

/* -----------------------------------------------------------------------------
   3. STATS STRIP
   ---------------------------------------------------------------------------*/
.stats {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 8px 0 0;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 24px;
  align-items: end;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(22px);
          backdrop-filter: blur(22px);
}
.stats__item { display: grid; gap: 6px; }
.stats__item dt {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--steel-2);
}
.stats__item dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stats__item small {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--steel-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stats__sep {
  display: block;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}

/* -----------------------------------------------------------------------------
   4. SECTION HEADERS
   eyebrow rebuilt S402: leading emerald rule + visible mono caption + counter
   ---------------------------------------------------------------------------*/
.sec-head {
  display: grid;
  gap: 18px;
  margin: 0 0 64px;
  max-width: 760px;
}
.sec-head .bom-label {
  /* override the default tiny grey eyebrow with a visible, anchored caption */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 56px;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--steel);
  width: fit-content;
}
.sec-head .bom-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--emerald), transparent);
  transform-origin: left center;
  animation: rule-extend 1.2s var(--ease-glass) both;
}
@keyframes rule-extend {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.sec-head__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
  text-wrap: balance;
}
.sec-head__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: -0.015em;
}
.sec-head__sub {
  margin: 4px 0 0;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.65;
  color: var(--steel-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   5. HERO RESPONSIVE (overrides base grid at narrow viewports)
   Keep in sections.css so it wins the cascade over the base .hero rule above.
   ---------------------------------------------------------------------------*/
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    row-gap: clamp(32px, 5vw, 48px);
  }
  .hero__left  { grid-column: 1; grid-row: 1; }
  .hero__right { grid-column: 1; grid-row: 2; }
  .stats       { grid-column: 1; grid-row: 3; }
  .data-ticker { grid-column: 1; grid-row: 4; }
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px 20px;
  }
  .stats__sep { display: none; }
}
