/* =============================================================================
   Blackrock Drill & Blast · css/sections/cta.css · the closing run of the home page
     1. about + hiring teasers (parts/about-teaser.html bone, parts/hiring-teaser.html dark): .teaser, no script
     2. the contact band (parts/cta.html, also on the inner pages): fullscreen blast plate, dark scrim, amber
        corner brackets. The plate parallaxes slightly on desktop (scrub, js/sections/faq.js); static under
        reduced motion. Its photo-placeholder tag sits in the HUD layer (the plate is under the scrim).
   (The teasers live here because parts/head.html links no file of their own.)
   ============================================================================= */

/* ---------- 1. teasers: eyebrow + H2 left, the line + link right ---------- */
.teaser { padding-block: clamp(64px, 8vw, 128px); }
.teaser__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(40px, 6vw, 120px); }
.teaser__head { display: grid; gap: 14px; }
.teaser__title { max-width: 16ch; }
.teaser__body { display: grid; justify-items: start; gap: 26px; padding-bottom: .4em; }
.teaser__lead { max-width: 46ch; }
.teaser__lead .tag-ph { vertical-align: .2em; margin-left: 4px; }
.teaser--about .tag-ph { color: var(--ink-text); border-color: var(--amber-deep); }   /* amber on bone is too faint at 10px */
.teaser--about .teaser__title { max-width: none; }
.teaser--hiring { --bg: var(--ink-1); border-top: 1px solid var(--line); }
.teaser--hiring .teaser__title { max-width: 20ch; font-size: clamp(36px, 4.4vw, 72px); }
@media (max-width: 900px) {
  .teaser__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .teaser__body { padding-bottom: 0; gap: 22px; }
}

/* ---------- 2. contact band ---------- */
.cta { --fg: var(--bone); --fg-2: var(--stone); --fg-3: var(--muted); --bg: var(--ink-0); --accent: var(--amber);
  position: relative; isolation: isolate; display: grid; place-items: center; min-height: max(560px, 100svh); overflow: clip; color: var(--fg); background: var(--ink-0); }
.cta__plate { position: absolute; inset: -9% 0; z-index: -3; }
.cta__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.cta__scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 52%, rgba(15, 17, 19, .55) 0%, rgba(15, 17, 19, .22) 70%, transparent 100%),
    linear-gradient(180deg, rgba(15, 17, 19, .78) 0%, rgba(15, 17, 19, .3) 32%, rgba(15, 17, 19, .34) 60%, rgba(15, 17, 19, .88) 100%); }
.cta__frame { position: absolute; inset: var(--cta-inset, clamp(16px, 2.6vw, 40px)); z-index: -1; pointer-events: none; }
.cta__frame.brackets::after { --b: var(--amber); --l: clamp(28px, 3vw, 48px); }
.cta__hud { position: absolute; padding: 18px 20px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cta__hud--tl { top: 0; left: 0; color: var(--amber); }
.cta__hud--tr { top: 0; right: 0; }
.cta__hud--bl { bottom: 0; left: 0; }
.cta__hud--br { bottom: 0; right: 0; }
.cta__inner { display: grid; justify-items: center; gap: 24px; padding-block: clamp(110px, 14vh, 180px); text-align: center; }
.cta__title { font-size: calc(var(--t-hero) * .8); line-height: .88; letter-spacing: -.005em; max-width: 12ch; text-wrap: balance; }
.cta__line { display: grid; justify-items: center; gap: 2px; max-width: 60ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--stone); }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; }
.cta__line a { color: var(--bone); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--amber) 55%, transparent); text-underline-offset: 3px; transition: color .2s; }
.cta__line a:hover { color: var(--amber); }
.cta__sep { margin: 0 .7em; color: var(--muted); }
/* photo tag: a direct child of the section, placed where it sat inside the
   frame (frame inset + 20/18 px); z -1 keeps it above the scrim and under the copy */
.cta { --cta-inset: clamp(16px, 2.6vw, 40px); }
.cta__ph { z-index: -1; left: auto; right: calc(var(--cta-inset) + 20px); bottom: calc(var(--cta-inset) + 18px); }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.cta .btn--ghost { --bg: rgba(15, 17, 19, 1); }
.cta__note { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 750px) {
  .cta__plate { inset: 0; }
  .cta__plate img { object-position: 38% 50%; }
  .cta__hud--tr, .cta__hud--br { display: none; }
  .cta__hud { padding: 14px 14px; font-size: 11px; }
  .cta__inner { gap: 20px; }
  .cta__line { gap: 4px; font-size: 16px; }
  .cta__row { flex-direction: column; align-items: center; gap: 4px; }
  .cta__sep { display: none; }
  .cta__ph { right: auto; left: calc(var(--cta-inset) + 14px); bottom: calc(var(--cta-inset) + 42px); max-width: calc(100% - 2 * var(--cta-inset) - 28px); }
  .cta__btns { flex-direction: column; align-self: stretch; width: 100%; }
  .cta__btns .btn { width: 100%; }
}
