/* HYPR brand components (.h-*) — lifted from docs/style-guide.html §5.
   Site-specific layout lives in site.css. */

/* Section surface: gradient + grain. Every section on the site is one of these. */
.h-surface { position: relative; isolation: isolate; background: var(--bg-aurora); overflow: hidden; }
.h-surface--reverse { background: var(--bg-aurora-reverse); }
.h-surface--ember   { background: var(--bg-ember); }
.h-surface--ink     { background: var(--hypr-ink); }
.h-surface::after { content:""; position:absolute; inset:0; z-index:-1; background-image: var(--grain); opacity:.09; mix-blend-mode: overlay; pointer-events:none; }

.h-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }

/* Type roles */
.h-hero    { font-family: var(--font-head); font-weight: 400; font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: -.015em; margin: 0; }
.h-h2      { font-family: var(--font-head); font-weight: 400; font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -.01em; margin: 0; }
.h-h3      { font-family: var(--font-head); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; margin: 0; }
.h-signal  { font-family: var(--font-signal); font-weight: 400; text-transform: uppercase; letter-spacing: var(--track-signal); font-size: var(--fs-signal); line-height: 1.05; margin: 0; }
.h-signal--xl { font-size: var(--fs-signal-xl); line-height: .95; }
.h-label   { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: var(--fs-label); line-height: 1.3; margin: 0; }
.h-lead    { font-size: var(--fs-lead); color: var(--text-soft); max-width: var(--measure); margin: 0; }
.h-body    { color: var(--text-soft); max-width: var(--measure); }
.h-emph-i  { font-style: italic; }
.h-emph-u  { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .12em; }

/* X mark (placeholder geometry — replace with /assets/brand/x-mark.svg) */
.h-x { width: 28px; height: 28px; flex: none; color: #fff; }
.h-x--lg { width: 44px; height: 44px; }

/* Split header: headline left, X + copy right (deck slides 2, 5, 6, 7, 8, 19) */
.h-split { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: start; }
.h-split__aside { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .h-split { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }

/* Hairline rule that terminates in the X (slide 2) */
.h-rule { display: flex; align-items: center; gap: var(--s-4); }
.h-rule::before { content:""; flex:1; height:1px; background: var(--line); }

/* Outlined tag (service chips) */
.h-tag { display:inline-flex; align-items:center; justify-content:center; padding: .55em 1.1em; border: 1px solid var(--line); border-radius: var(--r-tag); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: var(--fs-label); line-height:1; color: var(--text); text-decoration:none; background: transparent; }
.h-tags { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-3); max-width: 34rem; }

/* Buttons */
.h-btn { display:inline-flex; align-items:center; justify-content:center; gap:.6em; min-height: 52px; padding: 0 1.6em; border-radius: var(--r-tag); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: var(--fs-label); text-decoration:none; cursor:pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.h-btn--outline { border: 1.5px solid var(--line-solid); color: var(--text); background: transparent; }
.h-btn--outline:hover { background: #fff; color: var(--hypr-electric); }
.h-btn--solid { border: 1.5px solid #fff; background: #fff; color: var(--hypr-electric); }
.h-btn--solid:hover { background: transparent; color: #fff; }

/* Glass card */
.h-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-card); padding: clamp(1.25rem, 1rem + 1vw, 2rem); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.h-card--strong { background: var(--glass-strong); }

/* Stat card (slide 3): signal title, neon icon, short body */
.h-stat { display:grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; min-height: 13rem; }
.h-stat__icon { width: 64px; height: 64px; filter: var(--glow-icon); color:#fff; }
.h-stat p { margin: var(--s-3) 0 0; color: var(--text-soft); font-size: var(--fs-small); }

/* Outcome bar (closing strip of every service slide) */
.h-outcome { display:flex; align-items:center; gap: var(--s-5); border: 1.5px solid var(--line-solid); border-radius: var(--r-bar); padding: var(--s-4) var(--s-6); }
.h-outcome p { margin:0; font-size: var(--fs-small); color: var(--text); }
.h-outcome b { font-family: var(--font-mono); font-weight:400; text-transform: uppercase; letter-spacing: var(--track-label); margin-right: .5em; }

/* Capability list (small square bullets, deck uses tiny dots) */
.h-list { list-style:none; margin: var(--s-3) 0 0; padding:0; display:grid; gap: .5rem; }
.h-list li { position:relative; padding-left: 1.25rem; color: var(--text-soft); }
.h-list li::before { content:""; position:absolute; left:.2rem; top:.7em; width:4px; height:4px; background:#fff; border-radius:1px; }

/* Arch image: one large rounded corner that faces the copy */
.h-arch { border-radius: 0 var(--r-arch) 0 0; overflow:hidden; aspect-ratio: 4/5; background: var(--hypr-night); }
.h-arch--left { border-radius: var(--r-arch) 0 0 0; }
.h-arch img { width:100%; height:100%; object-fit: cover; }

/* Process stepper (slide 6): 8 nodes on a single line */
.h-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(8, minmax(0,1fr)); position:relative; }
.h-steps::before { content:""; position:absolute; left:0; right:0; top: 1.95rem; height:1px; background: var(--line); }
.h-steps li { position:relative; padding-right: var(--s-3); }
.h-steps .h-label { display:block; margin-bottom: var(--s-4); }
.h-steps li::after { content:""; position:absolute; left:0; top:1.6rem; width:.7rem; height:.7rem; border-radius:50%; background:#fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.h-steps p { margin: var(--s-6) 0 0; font-size: var(--fs-small); color: var(--text-soft); line-height: 1.4; }
@media (max-width: 900px) {
  .h-steps { grid-template-columns: 1fr; gap: var(--s-5); padding-left: var(--s-6); }
  .h-steps::before { left: .33rem; right:auto; top:0; bottom:0; width:1px; height:auto; }
  .h-steps li::after { left: calc(-1 * var(--s-6)); top: .15rem; }
  .h-steps .h-label { margin-bottom: var(--s-1); }
  .h-steps p { margin-top: 0; }
}

/* Case-study metric row (slides 20–22) */
.h-metric-row { display:grid; grid-template-columns: 40px repeat(3, minmax(0,1fr)); align-items: baseline; gap: var(--s-5); padding: var(--s-4) var(--s-5); }
.h-metric { font-family: var(--font-head); font-size: var(--fs-stat); line-height:1; }
.h-metric small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-soft); margin-left: .5em; vertical-align: middle; }
@media (max-width: 700px){ .h-metric-row { grid-template-columns: 32px 1fr; } .h-metric-row > :nth-child(n+3) { grid-column: 2; } }

/* Logo wall: monochrome white logos inside one glass panel */
.h-logos { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: var(--s-6); align-items:center; justify-items:center; }
.h-logos > * { opacity:.92; filter: brightness(0) invert(1); max-height: 44px; }
