/* ─────────────────────────────────────────────────────────
   Delve Risk — home.css  (homepage-only styles)
   Loaded after global.css on index.html.
───────────────────────────────────────────────────────── */

/* ─── HERO ─── */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 140px 24px 120px; text-align: center; overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }
.hero-media .ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 0; align-items: flex-end; justify-content: flex-end; }
.hero-media .ph-note { text-align: right; max-width: 380px; padding: 28px; }
.hero-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--parallax .hero-media { will-change: transform; transform-origin: 50% 0; }
.hero--parallax .hero-inner { will-change: transform; }
.hero-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse at center, rgba(6,19,24,.35) 0%, rgba(6,19,24,.82) 72%, var(--blue-deep) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 1060px; }
/* dark radial halo behind the text (same recipe as the delvein.com hero) */
.hero-inner::before { content: ''; position: absolute; top: -80px; right: -220px; bottom: -200px; left: -220px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 35%, transparent 70%);
  opacity: 0; animation: hero-halo-in .9s .4s forwards; }
@keyframes hero-halo-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-inner::before { animation: none; opacity: 1; } }
.hero-headline { font-size: clamp(30px, 4.8vw, 58px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.12; margin-bottom: 22px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.86); line-height: 1.7; max-width: 640px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cue { margin-top: 30px; font-size: 13px; color: rgba(255,255,255,.62); }
.hero-cue a { color: var(--yellow-light); text-decoration: none; font-weight: 600; white-space: nowrap; }
.hero-cue a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── SOLUTIONS SEQUENCE ───
   Default (mobile / tablet / reduced motion / no JS): a plain stacked list.
   JS adds .seq--pinned on desktop, which switches to a sticky stage that
   cross-fades one solution at a time as you scroll. */
.seq { padding: 0; border-top: 1px solid var(--border); }
.seq-stage { padding: 96px 24px 72px; }
.seq-head { max-width: 1180px; margin: 0 auto 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.seq-head .section-title { margin-bottom: 0; max-width: 640px; }
.seq-rail { display: none; align-items: center; gap: 20px; }
.seq-count { font-size: 13px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.seq-count b { font-size: 22px; color: var(--yellow-light); font-weight: 800; }
.seq-dots { display: flex; gap: 8px; }
.seq-dot { width: 34px; height: 4px; border: none; border-radius: 2px; background: rgba(255,255,255,.14); cursor: pointer; padding: 0; transition: background .3s; }
.seq-dot.is-active { background: var(--yellow-light); }

.seq-items { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; }
.seq-item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.seq-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-light); margin-bottom: 16px; }
.seq-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 16px; }
.seq-body { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }
.seq-visual { width: 100%; }
.photo--compass img { object-position: 59% 50%; }
.seq-bgs { display: none; }
@media (max-width: 1024px) { .seq-item { grid-template-columns: 1fr; gap: 28px; } }

/* pinned desktop mode */
.seq--pinned .seq-track { height: calc(100vh + 330vh); }
.seq--pinned .seq-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 96px 24px; }
.seq--pinned .seq-head { width: 100%; margin-bottom: 28px; }
.seq--pinned .seq-rail { display: flex; position: absolute; top: 0; left: 0; z-index: 2; }
.seq--pinned .seq-items { position: relative; flex: none; width: 100%; height: min(500px, calc(100vh - 340px)); display: block; }
/* The outgoing text clears fast, then the incoming text fades in after it, so two headlines are never on screen at once. */
.seq--pinned .seq-item { position: absolute; top: 52px; right: 0; bottom: 0; left: 0; grid-template-rows: minmax(0, 1fr); opacity: 0; visibility: hidden; transform: translateY(28px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.seq--pinned .seq-item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .2s, transform .4s ease .2s, visibility 0s linear 0s; }
.seq--pinned .seq-item.is-past { transform: translateY(-28px); }
.seq--pinned .seq-visual { height: 100%; display: flex; align-items: center; }
.seq--pinned .seq-visual .ph, .seq--pinned .seq-visual .photo { height: 100%; max-height: 52vh; aspect-ratio: auto; }

/* slides flagged .seq-item--bg: the image is the full-bleed backdrop of the pinned stage;
   their inline image (.seq-visual--stacked) is only used when the section is stacked on small screens */
.seq--pinned .seq-bgs { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; }
/* Backgrounds cross-fade without dipping to black: the incoming image fades in on top (z-index 1) while the
   outgoing one stays fully opaque underneath, and only drops out once the fade has finished. */
.seq--pinned .seq-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 0s linear .6s, visibility 0s linear .6s; }
.seq--pinned .seq-bg.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s linear 0s; }
.seq--pinned .seq-bg img { width: 100%; height: 100%; object-fit: cover; }
.seq--pinned .seq-bg::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(6,19,24,.7) 0%, rgba(6,19,24,.45) 40%, rgba(6,19,24,.1) 100%),
              linear-gradient(180deg, rgba(6,19,24,.65) 0%, transparent 26%, transparent 70%, rgba(6,19,24,.75) 100%); }
/* soft dark halo behind the text block (heading, counter, copy, button), under the text and over the image */
.seq--pinned .seq-stage::after { content: ''; position: absolute; z-index: 0; pointer-events: none; top: -8%; bottom: -8%; left: calc(50% - 820px); width: 1060px; max-width: 100%;
  background: radial-gradient(ellipse at center, rgba(2,10,14,.9) 0%, rgba(2,10,14,.7) 45%, transparent 74%); }
.seq--pinned .seq-head, .seq--pinned .seq-items { position: relative; z-index: 1; }
.seq--pinned .seq-visual--stacked { display: none; }
.seq--pinned .seq-item--bg { grid-template-columns: minmax(0, 600px) 1fr; }
.seq--pinned .seq-item--bg .seq-text { align-self: start; }
.seq--pinned .seq-item--bg .seq-title { font-size: clamp(24px, 2.8vw, 36px); }
.seq--pinned .seq-item--bg .seq-body { font-size: 17px; color: rgba(255,255,255,.8); max-width: 500px; }

/* ─── SHOWCASE (dashboard) ─── */
.showcase-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.showcase-copy .section-title { text-align: left; }
.showcase-copy .section-body { margin-bottom: 28px; }
.showcase-visual { position: relative; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: rgba(10,30,36,.92); border: 1px solid var(--border-hover); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); animation: chip-float 6s ease-in-out infinite alternate; z-index: 2; }
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: #9BC53D; flex-shrink: 0; }
.chip-a { top: -16px; right: 8%; }
.chip-b { bottom: 20%; left: -22px; animation-delay: -2s; }
.chip-c { bottom: -16px; right: 14%; animation-delay: -4s; }
@keyframes chip-float { to { transform: translateY(-10px); } }
@media (max-width: 960px) { .showcase-grid { grid-template-columns: 1fr; gap: 48px; } .chip-b { left: 8px; } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

/* ─── WHO WE ARE ─── */
.who-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.who-copy .section-title { text-align: left; }
.who-copy .section-body { margin-bottom: 36px; }
.pillar-list { display: flex; flex-direction: column; gap: 26px; }
.pillar-row { display: flex; gap: 18px; align-items: flex-start; }
.pillar-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(249,169,67,.12); color: var(--yellow-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-row h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; margin-bottom: 6px; }
.pillar-row p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ─── INDUSTRIES ─── */
.industry-card { padding: 0; overflow: hidden; }
.industry-card .ph { border-radius: 0; border: none; border-bottom: 1px dashed rgba(249,169,67,.4); }
.industry-card .photo { border-radius: 0; border: none; }
.industry-card-content { padding: 26px 30px 30px; }
.industry-head-cta { margin-top: 28px; }

/* ─── CLOSER ─── */
.closer { position: relative; text-align: center; overflow: hidden; padding: 120px 0; }
.closer::before { content: ''; position: absolute; top: 50%; left: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(249,169,67,.12), transparent 68%); pointer-events: none; }
.closer .container { position: relative; z-index: 1; max-width: 720px; }
.closer .section-title { margin-bottom: 18px; }
.closer .section-body { margin-bottom: 32px; }

/* ─── SOLUTION FINDER (fit assessment) ───
   Hidden in the markup; home.js builds and reveals it, so without JS the section isn't there. */
.finder { border-top: 1px solid var(--border); }
.finder [hidden] { display: none !important; }
.finder-card { position: relative; max-width: 860px; margin: 0 auto; padding: 38px 42px 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.finder-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.finder-step-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.finder-step-label b { color: var(--yellow-light); }
.finder-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.finder-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--yellow-mid), var(--yellow-light)); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.finder-panel { animation: finder-in .4s cubic-bezier(.16,1,.3,1); }
@keyframes finder-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.finder-topic { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-light); margin-bottom: 10px; }
.finder-panel h3 { font-size: clamp(18px, 2.2vw, 23px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: 10px; outline: none; }
.finder-hint { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; max-width: 640px; }
.finder-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.finder-opts--one { grid-template-columns: 1fr; }
.finder-opt { position: relative; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-align: left; color: var(--white); padding: 17px 20px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.finder-opt small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.finder-opt:hover { border-color: rgba(249,169,67,.55); background-color: rgba(249,169,67,.07); transform: translateY(-2px); }
.finder-opt[aria-pressed="true"] { border-color: var(--yellow-light); background-color: rgba(249,169,67,.12); }
.finder-opts--multi .finder-opt { padding-left: 50px; }
.finder-opts--multi .finder-opt::before { content: ''; position: absolute; left: 20px; top: 19px; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.35); }
.finder-opts--multi .finder-opt[aria-pressed="true"]::before { background: var(--yellow-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23061318' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--yellow-light); }
.finder-opt:focus-visible, .finder-link:focus-visible { outline: 2px solid var(--yellow-light); outline-offset: 2px; }
.finder-nav { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.finder-link { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: none; padding: 6px 0; cursor: pointer; }
.finder-link:hover { color: var(--white); }
.finder-note { font-size: 12px; color: var(--text-dim); margin-top: 22px; }
.finder-intro-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 4px 0 28px; }
.finder-intro-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.finder-intro-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-light); margin-top: 7px; }

/* result */
.finder-result .eyebrow { margin-bottom: 10px; }
.fit-top { padding: 26px 28px; border-radius: 18px; background: rgba(249,169,67,.06); border: 1px solid rgba(249,169,67,.28); margin-bottom: 18px; }
.fit-top h3 { margin-bottom: 12px; }
.fit-top p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; max-width: 640px; }
.fit-why-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.fit-why { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.fit-why li { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.5; padding-left: 18px; position: relative; }
.fit-why li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-light); }
.fit-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fit-others-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 26px 0 12px; }
.fit-row { display: grid; grid-template-columns: 1fr 120px; gap: 6px 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.fit-row a { font-size: 15px; font-weight: 700; color: var(--white); text-decoration: none; }
.fit-row a:hover { color: var(--yellow-light); }
.fit-row small { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 3px; }
.fit-meter { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.fit-meter span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.fit-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--yellow-mid), var(--yellow-light)); transition: width .8s cubic-bezier(.16,1,.3,1); }
.fit-result-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.fit-result-foot a { font-size: 13px; font-weight: 700; color: var(--yellow-light); text-decoration: none; }
.fit-result-foot a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .finder-card { padding: 26px 20px 28px; }
  .finder-opts, .finder-intro-list { grid-template-columns: 1fr; }
  .fit-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .finder-panel { animation: none; } .finder-bar i, .fit-meter i { transition: none; } .finder-opt:hover { transform: none; } }
