/* Homepage hero: team photo shown whole (not cropped or altered), blended into the navy hero.
   Wide screens: text panel on the left, photo on the right. Narrow screens: text panel above, photo below. */
.hero { height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; background: #06142a; }
.hero .hero-shade, .hero::after { display: none !important; }
.hero .hero-inner.hero-glass { position: relative; order: 1; max-width: none !important; margin: 0 !important; border-radius: 0; padding: 22px 38px 20px !important; display: grid; grid-template-columns: 1fr auto; gap: 6px 32px; align-items: end; }
.hero .hero-inner .kicker { grid-column: 1 / -1; }
.hero .hero-inner h1 { grid-column: 1; margin: 0; }
.hero .hero-inner .lede { grid-column: 1; max-width: 760px; margin: 6px 0 0; }
.hero .hero-inner .hero-actions { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
.hero-team { order: 2; display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .hero .hero-inner.hero-glass { display: block; padding: 18px 18px 18px !important; }
  .hero .hero-inner h1 { font-size: 2.4rem !important; }
  .hero .hero-inner .hero-actions { margin-top: 12px; flex-wrap: wrap; }
}

@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: minmax(360px, 30%) 1fr; align-items: stretch; }
  .hero .hero-inner.hero-glass { grid-column: 1; grid-row: 1; order: 0; align-self: center; display: block; margin: 0 0 0 22px !important; padding: 22px 24px 24px !important; border-radius: 16px; max-width: 420px !important; z-index: 2; }
  .hero .hero-inner h1 { font-size: 3.1rem !important; }
  .hero .hero-inner .lede { margin-top: 12px; }
  .hero .hero-inner .hero-actions { margin-top: 14px; flex-wrap: wrap; }
  .hero-team { grid-column: 2; grid-row: 1; order: 0; width: 100%; height: auto; align-self: start;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%); mask-image: linear-gradient(90deg, transparent 0, #000 6%); }
  .hero::after { display: block !important; content: ""; position: absolute; top: 0; bottom: 0; left: 30%; width: 3px; background: linear-gradient(180deg, transparent, rgba(25,211,240,.45), transparent); z-index: 1; pointer-events: none; }
}

/* ===== More tech + visible glass ===== */
.hero-photo { display: contents; }
.hero-tags { display: none; }
@media (min-width: 1000px) {
  .hero-photo { display: block; position: relative; grid-column: 2; grid-row: 1; align-self: start; }
  .hero-photo .hero-team { grid-column: auto; width: 100%; }
  /* instrument-style corner brackets */
  .hero-photo::before { content: ""; position: absolute; inset: 14px 14px 14px 14px; pointer-events: none; z-index: 2;
    --c: #19d3f0; --w: 2px; --l: 30px;
    background:
      linear-gradient(var(--c),var(--c)) top left / var(--l) var(--w) no-repeat, linear-gradient(var(--c),var(--c)) top left / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c),var(--c)) top right / var(--l) var(--w) no-repeat, linear-gradient(var(--c),var(--c)) top right / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c),var(--c)) bottom left / var(--l) var(--w) no-repeat, linear-gradient(var(--c),var(--c)) bottom left / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c),var(--c)) bottom right / var(--l) var(--w) no-repeat, linear-gradient(var(--c),var(--c)) bottom right / var(--w) var(--l) no-repeat;
    filter: drop-shadow(0 0 5px rgba(25,211,240,.7)); opacity: .9; }
  /* glass panel overlaps the faded edge of the photo so the blur is visible */
  .hero .hero-inner.hero-glass { margin-right: -64px !important; max-width: none !important; width: calc(100% + 42px); background: rgba(10,24,46,.46) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(120,220,255,.35) !important; box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18), 0 0 28px rgba(25,211,240,.12); }
  .hero-team { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
  .hero-tags { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 600 .68rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(150,225,245,.85); flex-wrap: wrap; }
  .hero-tags i { width: 4px; height: 4px; border-radius: 50%; background: #19d3f0; box-shadow: 0 0 6px #19d3f0; }
  /* faint circuit grid in the navy behind the text */
  .hero { background-image: linear-gradient(rgba(25,211,240,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(25,211,240,.06) 1px, transparent 1px); background-size: 28px 28px; background-color: #06142a; }
}

/* heartbeat line: wide desktop only, so it never crosses the labels on narrower screens */
@media (min-width: 1300px) {
  /* ECG trace that runs out of the panel across the photo, glowing */
  .hero::before { display: block !important; content: ""; position: absolute; left: 0; bottom: 34px; width: 62%; height: 70px; z-index: 4; pointer-events: none; min-width: 0; opacity: 1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 70' preserveAspectRatio='none'><path d='M0 38 H190 L206 38 L216 10 L230 62 L242 28 L252 38 H430 L444 38 L454 18 L466 54 L476 38 H800' fill='none' stroke='%2319d3f0' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 6px rgba(25,211,240,.85)); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); }
}

/* keep hyphenated words in the hero intro line together */
.nw { white-space: nowrap; }

/* avoid a single word alone on the last line of the hero intro */
.hero .lede { text-wrap: pretty; }
