/*
 * Page-specific styles for /products/ubridge.
 *
 * First product-detail page; most rules here are detail-page-specific
 * and would be extracted to style.css if a second product page uses
 * the same chrome (.product-nav, .way, .compat-card, .dl-card, .req,
 * .hcard, etc). For now, contained.
 *
 * Shared chrome (page-head, crumbs, footer, nav, btn variants) lives
 * in /style.css.
 */

/* ============================================================
 * HERO — UBRIDGE tint + 3-cell meta. Chrome is shared (`.phero-*` in
 * public/style.css, via +productHero — refs #444); the visual is
 * the animated bridge scene below.
 * ============================================================ */
.phero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 75% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
}
.phero h2 { max-width: 20ch; }
.phero .lede { max-width: 50ch; }
.phero-meta { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
  .phero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}
@media (max-width: 760px) {
  .phero-meta { grid-template-columns: 1fr; }
}

/* ============================================================
 * BRIDGE VISUAL — animated network/discovery scene in the hero
 * ============================================================ */

.bridge-vis {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 18px;
  border: 0.5px solid var(--line-strong);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #131318 0%, #0a0a0c 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bridge-vis .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.bridge-vis .scan {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 30%,
    color-mix(in oklab, var(--accent) 10%, transparent) 31%,
    transparent 33%,
    transparent 50%,
    color-mix(in oklab, var(--accent) 6%, transparent) 51%,
    transparent 53%,
    transparent 70%,
    color-mix(in oklab, var(--accent) 4%, transparent) 71%,
    transparent 73%
  );
  animation: ubridge-scan 4s ease-in-out infinite;
}
@keyframes ubridge-scan {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}

.bridge-vis .head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  z-index: 5;
}
.bridge-vis .head .pname {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--fg);
}
.bridge-vis .head .leds {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bridge-vis .head .led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.bridge-vis .head .led.on {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.bridge-vis .head .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: ubridge-pulse 1.8s ease-in-out infinite;
}
.bridge-vis .head .ip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-left: 8px;
}

.bridge-vis .stage {
  position: absolute;
  inset: 46px 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 3;
}
/* Mobile-only connector between vertically-stacked devices (hidden on
   desktop, which uses the horizontal SVG curves + .proto-pills). */
.bconn { display: none; }

@media (max-width: 560px) {
  /* The horizontal 3-node scene is too cramped on phones; stack it. Drop the
     fixed aspect box, let the stage flow vertically, hide the horizontal
     curves/pills, and show the vertical .bconn connectors that carry the
     protocol labels between nodes. */
  .bridge-vis { aspect-ratio: auto; }
  .bridge-vis .lines-svg,
  .bridge-vis .proto-pills { display: none; }
  .bridge-vis .stage {
    position: static;
    inset: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 58px 20px 28px;
  }
  .bridge-vis .device { width: 100%; }
  .bconn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
  }
  .bconn::before,
  .bconn::after {
    content: "";
    width: 1px;
    height: 14px;
    background: color-mix(in oklab, var(--accent) 55%, transparent);
  }
  .bconn-lbl {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.65);
    border: 0.5px solid color-mix(in oklab, var(--accent) 50%, transparent);
    padding: 3px 8px;
    border-radius: 999px;
  }
}

.device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.device .dlbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
}
.device .dlbl b {
  color: var(--fg);
  font-weight: 500;
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

/* phone */
.dev-phone {
  width: 64px;
  height: 108px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #1a1a22, #0e0e14);
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(0, 0, 0, 0.4);
}
.dev-phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.dev-phone .screen {
  position: absolute;
  inset: 13px 5px 8px 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #060608, #0a0a0c);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 5px 4px;
  gap: 3px;
}
.dev-phone .screen .row {
  height: 6px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.dev-phone .screen .row.lit {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  width: 70%;
}
.dev-phone .screen .pad {
  flex: 1;
  margin-top: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, rgba(200, 255, 58, 0.18) 0 2px, transparent 2px 4px);
}

/* bridge box (centre, accent) */
.dev-bridge {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 14%, #0e0e14), #0a0a0c);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 0 30px color-mix(in oklab, var(--accent) 30%, transparent),
    0 14px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  animation: ubridge-hover 4s ease-in-out infinite;
}
@keyframes ubridge-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.dev-bridge .ub {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--accent);
}
.dev-bridge .blink {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ubridge-blink 1.4s ease-in-out infinite;
}
@keyframes ubridge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.dev-bridge .pins {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.dev-bridge .pins span {
  width: 5px;
  height: 5px;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 0 0 1px 1px;
}
.dev-bridge .ringo {
  position: absolute;
  inset: -12px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  animation: ubridge-ringo 2.4s ease-out infinite;
}
.dev-bridge .ringo.r2 { animation-delay: 0.8s; inset: -22px; }
.dev-bridge .ringo.r3 { animation-delay: 1.6s; inset: -32px; }
@keyframes ubridge-ringo {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* laptop */
.dev-lap {
  width: 128px;
  height: 88px;
  position: relative;
}
.dev-lap .scr {
  width: 100%;
  height: 78px;
  border-radius: 7px 7px 3px 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #1a1a22, #0e0e14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 5px 6px 0 6px;
  gap: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.4);
}
.dev-lap .scr .bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  width: 80%;
}
.dev-lap .scr .bar.lit {
  background: var(--accent);
  width: 55%;
  box-shadow: 0 0 6px var(--accent);
}
.dev-lap .scr .arr {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  flex: 1;
  margin-top: 3px;
}
.dev-lap .scr .arr span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
}
.dev-lap .scr .arr span.on {
  background: var(--accent);
  opacity: 0.65;
}
.dev-lap .base {
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -3px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #1a1a22, #0a0a0c);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top: 0;
}
.dev-lap .base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* connection lines + animated packets */
.lines-svg {
  position: absolute;
  inset: 46px 0 60px;
  width: 100%;
  height: calc(100% - 106px);
  pointer-events: none;
  z-index: 1;
}
.lines-svg .conn {
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 5 4;
  animation: ubridge-dash 1.6s linear infinite;
  filter: drop-shadow(0 0 4px color-mix(in oklab, var(--accent) 60%, transparent));
}
@keyframes ubridge-dash { to { stroke-dashoffset: -18; } }
.lines-svg .ghost {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  fill: none;
}
.lines-svg .pkt {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.bridge-vis .footer-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  background: rgba(0, 0, 0, 0.3);
}
.bridge-vis .footer-lbl .ok { color: var(--accent); }

/* protocol pills above the stage */
.proto-pills {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-around;
  padding: 0 60px;
  pointer-events: none;
  z-index: 4;
}
.proto-pill {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  border: 0.5px solid color-mix(in oklab, var(--accent) 50%, transparent);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transform: translateY(-50px);
}

/* @media-reduce: tame the animations */
@media (prefers-reduced-motion: reduce) {
  .bridge-vis .head .pulse-dot,
  .bridge-vis .scan,
  .dev-bridge,
  .dev-bridge .blink,
  .dev-bridge .ringo,
  .lines-svg .conn { animation: none !important; }
}

/* ============================================================
 * Section heading variant for the detail-page sections
 *
 * Note: the homepage's `.sec-head` is a different shape (h2 + right
 * meta). Here `.sec-head .l` wraps a mono index + h2. The selector
 * is scoped under .section to avoid colliding with the homepage's
 * `.sec-head h2`.
 * ============================================================ */

.section .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section .sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  text-wrap: balance;
  max-width: none;
}
.section .sec-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section .sec-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  max-width: 30ch;
}

/* ============================================================
 * HOW IT WORKS — two "ways" columns with numbered steps
 * ============================================================ */

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1000px) {
  .ways { grid-template-columns: 1fr; }
}
.way {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.way:hover { border-color: var(--line-strong); }
.way.featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 9%, var(--card)), var(--card));
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
}
.way .way-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.way .way-head .l {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.way .way-head .ovr {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.way .way-head h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.way .way-head h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.way > p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 50ch;
}
.way .steps {
  display: flex;
  flex-direction: column;
  border-top: 0.5px dashed var(--line);
}
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 0.5px dashed var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0.5px solid color-mix(in oklab, var(--accent) 35%, var(--line));
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.step .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step .body h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.3;
}
.step .body h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.step .body p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 42ch;
}
.step .body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}
.step .body a:hover {
  opacity: 0.75;
}
.step .body code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* App-icon glyph for the way header */
.app-glyph {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  border: 0.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.app-glyph.has-logo {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.app-glyph.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* signal-flow strip at the bottom of each way */
.signal {
  position: relative;
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 0.5px solid var(--line);
  overflow: hidden;
}
.signal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 40%, transparent), transparent);
}
.signal .node {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  z-index: 2;
}
.signal .node.acc {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 50%, transparent);
}
.signal .pulse-line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--accent);
  width: 8px;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent);
  animation: ubridge-flow 2s linear infinite;
}
@keyframes ubridge-flow {
  0% { left: 14px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 22px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .signal .pulse-line { animation: none; }
}

/* ============================================================
 * COMPATIBILITY cards (3-up in a 12-col grid)
 * ============================================================ */

.compat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .compat { grid-template-columns: repeat(2, 1fr); }
}
.compat-card {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.compat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.compat-card .ix {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
}
.compat-card .ix .ok { color: var(--accent); }
.compat-card h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.compat-card h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.compat-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.compat-card p.kind {
  color: var(--fg-faint);
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: -4px;
}
.compat-card .pf {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 0.5px dashed var(--line);
}
.compat-card .pf span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  padding: 3px 8px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
}
.compat .span-3 { grid-column: span 3; }
.compat .span-4 { grid-column: span 4; }
.compat .span-6 { grid-column: span 6; }
.compat .span-8 { grid-column: span 8; }
@media (max-width: 900px) {
  .compat .span-3,
  .compat .span-4,
  .compat .span-6,
  .compat .span-8 { grid-column: span 2; }
}

/* ============================================================
 * REQUIREMENTS grid (4-up)
 * ============================================================ */

.req-grid { gap: 0; }
.req-grid .req:nth-child(4n) { border-right: 0; }
.req-grid .req:nth-last-child(-n+4) { border-bottom: 0; }
@media (max-width: 900px) {
  .req-grid .req:nth-child(odd) { border-right: 0.5px solid var(--line); }
}

/* ============================================================
 * HELP grid (3-up)
 * ============================================================ */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr; }
}
.hcard {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease;
  color: inherit;
}
.hcard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hcard .kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hcard h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.hcard h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hcard p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}
.hcard .more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
 * `.section` reuses the homepage's wrapper styling from style.css
 * (padding 96px, bottom border). Nothing else needed here.
 * ============================================================ */
