/* =====================================================================
   OAKCLICK HERO: flat black field, one headline, one front-desk panel, trade strip
   (render-blocking: first viewport only). Spec: DESIGN.md, "Hero".
   Shared with subpages: .hero-title, .hero-sub, .hero-ctas, .hero-eyebrow (page heroes).
   Homepage-only rules are scoped to .hero.
   ===================================================================== */
.hero { position: relative; overflow: clip; isolation: isolate; background: var(--c-black); }
.hero-eyebrow { color: var(--c-muted-ink) !important; }
.hero-title { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--track-display); margin: 0 0 var(--sp-5); max-width: 12ch; }
.hero-title .it { font-size: 1.1em; letter-spacing: -.02em; color: var(--c-loud-ink); }
.hero-sub { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; margin-bottom: var(--sp-6); color: var(--c-muted-ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- homepage hero: copy left, panel right; the headline holds one line from about 1180 px up ---------- */
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 33vw, 468px); column-gap: clamp(40px, 4.4vw, 64px); row-gap: var(--sp-7); align-items: center; min-height: min(calc(100svh - var(--hdr-h) - 112px), 720px); padding-block: clamp(40px, 5vw, 72px); }
.hero .hero-title { max-width: none; line-height: 1.04; text-wrap: balance; margin-bottom: var(--sp-5); }
.hero .hero-title .it { font-size: 1.04em; }
.hero .hero-sub { max-width: 46ch; margin-bottom: var(--sp-7); text-wrap: pretty; }
.hero .btn-ghost { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- front-desk panel: one dark card, a title bar with the lockup, three steps on one connector ---------- */
.hp { position: relative; margin: 0; width: 100%; }
.hp-card { position: relative; overflow: hidden; border: 1px solid var(--c-line-ink); border-radius: var(--r-lg); background: var(--c-char); box-shadow: var(--shadow-dark); color: var(--c-on-ink); font: 400 15px/1.45 var(--font-body); }
.hp-card p { margin: 0; }
.hp-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 20px; border-bottom: 1px solid var(--c-line-ink); }
.hp-brand { display: inline-flex; align-items: center; gap: 9px; }
.hp-mark { width: 22px; height: 22px; overflow: visible; }
.hp-mark path { fill: var(--c-on-ink); }
.hp-mark rect { fill: var(--c-loud); }
.hp-wm { width: 92px; height: 10px; color: var(--c-on-ink); }
.hp-app { padding-left: 12px; border-left: 1px solid var(--c-line-ink); font: 500 13px/20px var(--font-body); color: var(--c-muted-ink); }
.hp-open { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted-ink); }
.hp-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-loud); }

.hp-body { padding: 18px 20px 20px; }
.hp-biz { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px !important; font-size: 13px; color: var(--c-muted-ink); }
.hp-biz b { font: 600 1rem/1.3 var(--font-display); letter-spacing: -.01em; color: var(--c-on-ink); }
.hp-steps { margin: 0; padding: 0; list-style: none; }
.hp-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; margin: 0 -12px; padding: 14px 12px; border-radius: var(--r-md); }
/* the lit row: a faint raised field and a gold ring on its tile (opacity only) */
.hp-step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(245, 246, 248, .045); opacity: 0; transition: opacity 500ms var(--ease-out); }
.hp-step.is-lit::before { opacity: 1; }
.hp-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line-ink); border-radius: 10px; background: var(--c-black); color: var(--c-loud); }
.hp-ic svg { width: 20px; height: 20px; }
.hp-ic::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid var(--c-loud); border-radius: 14px; opacity: 0; transform: scale(.94); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.hp-step.is-lit .hp-ic::after { opacity: 1; transform: none; }
/* connector from this tile to the next; the gold fill is drawn (finished state) unless the loop is running */
.hp-ln { position: absolute; left: 31px; top: 60px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--c-line-ink); }
.hp-ln::after { content: ""; position: absolute; inset: 0; background: var(--c-loud); transform-origin: 50% 0; }
.hp-tx { position: relative; min-width: 0; }
.hp-t { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; margin-bottom: 2px !important; }
.hp-t b { font: 600 1rem/1.35 var(--font-body); color: var(--c-on-ink); }
.hp-t span { margin-left: auto; font: 500 13px/1.35 var(--font-body); color: var(--c-muted-ink); font-variant-numeric: tabular-nums; }
.hp-d { font-size: 14px; color: var(--c-muted-ink); }
.hp-bubble { width: fit-content; max-width: min(100%, 36ch); margin-top: 10px !important; padding: 9px 12px 10px; border: 1px solid var(--c-line-ink); border-radius: 12px 12px 12px 4px; background: var(--c-ink-2); font-size: 14px; line-height: 1.45; }
.hp-from { display: block; margin-bottom: 2px; font: 600 11px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted-ink); }
.hp-msg { display: block; min-height: 2.9em; color: var(--c-on-ink); }
.hp-week { display: flex; gap: 6px; margin: 8px 0 8px !important; }
.hp-week i { flex: 1; display: grid; place-items: center; height: 28px; border-radius: 6px; background: rgba(245, 246, 248, .06); font: 600 12px/1 var(--font-body); font-style: normal; color: var(--c-muted-ink); }
.hp-week i.on { background: var(--c-loud); color: var(--c-on-loud); }

/* the loop (app.js, motion allowed only): one step lit at a time, connectors draw as the call moves on, the business changes between cycles */
.hp.is-looping .hp-ln::after { transform: scaleY(0); transition: transform 700ms var(--ease-in-out); }
.hp.is-looping .hp-step.is-done .hp-ln::after { transform: none; }
.hp.is-reset .hp-ln::after { transition: none; }
.hp.is-looping .hp-body { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.hp.is-looping .hp-body.is-out { opacity: 0; transform: translateY(6px); transition-duration: 240ms; transition-timing-function: var(--ease-exit); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hp { justify-self: start; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-grid { row-gap: var(--sp-6); padding-block: var(--sp-6) var(--sp-7); }
  .hero-title { font-size: clamp(2.6rem, 1.2rem + 7.6vw, 3.4rem); }
  .hero .hero-sub { margin-bottom: var(--sp-6); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hp-bar { padding: 14px 16px; gap: 10px; }
  .hp-app { padding-left: 10px; }
  .hp-body { padding: 14px 16px 16px; }
  .hp-step { column-gap: 12px; margin: 0 -8px; padding: 12px 8px; }
  .hp-ln { left: 27px; top: 56px; }
}

/* ---------- logo strip pinned to the foot of the hero ---------- */
.hero-logos { position: relative; z-index: 1; border-top: 1px solid var(--c-line-ink); }
.logos-in { display: flex; align-items: center; gap: var(--sp-6); }
.tape-label { flex: none; margin: 0; padding: 24px 0; max-width: 180px; font: 500 .8125rem/1.35 var(--font-body); color: var(--c-muted-ink); }
.tape { position: relative; overflow: hidden; flex: 1; min-width: 0; padding: 24px 0; }
.tape:focus-visible { outline-offset: -4px; }
.tape-track { display: flex; width: max-content; }
/* the trade strip no longer loops sideways: it is one row (css/oakclick.css, round 4) */
.tape-list { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }
.tape:hover .tape-track, .tape:focus-within .tape-track, .tape:focus-visible .tape-track { animation-play-state: paused; }
html:not(.js) .tape { overflow-x: auto; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.125rem; color: var(--c-muted-ink); }
.light .logo { color: var(--c-muted); }
.logo svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 640px) { .logos-in { gap: var(--sp-4); } .tape-label { max-width: 104px; } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none !important; }
  .tape { overflow-x: auto; }
  .tape-list[aria-hidden="true"] { display: none; }
}

/* ---------- entrance: one sequence on first load, about 1.2 s end to end ---------- */
.hero-title .ln { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .04em; }
.hero-title .ln > span { display: block; }
html.js-motion .hero-title .ln > span { animation: fadeUp 800ms var(--ease-out) both; animation-delay: calc(80ms + var(--l, 0) * 90ms); }
html.js-motion .hero-eyebrow, html.js-motion .hero-sub, html.js-motion .hero-ctas { animation: fadeUp 700ms var(--ease-out) both; }
html.js-motion .hero-sub { animation-delay: 320ms; } html.js-motion .hero-ctas { animation-delay: 420ms; }
html.js-motion .primary-nav li { animation: fadeUp 500ms cubic-bezier(.28, 0, .49, 1) both; animation-delay: calc(200ms + var(--i, 0) * 30ms); }
/* homepage timing: headline 0 to 800 ms, copy and buttons follow, the panel rises at 240 ms and its rows settle by about 1.2 s */
html.js-motion .hero .hero-title .ln > span { animation-duration: 800ms; animation-delay: 60ms; }
html.js-motion .hero .hero-sub { animation-duration: 600ms; animation-delay: 180ms; }
html.js-motion .hero .hero-ctas { animation-duration: 600ms; animation-delay: 260ms; }
html.js-motion .hp-card { animation: hpIn 700ms var(--ease-out) 240ms both; }
html.js-motion .hp-bar, html.js-motion .hp-biz, html.js-motion .hp-step { animation: fadeUp 500ms var(--ease-out) both; }
html.js-motion .hp-bar { animation-delay: 420ms; }
html.js-motion .hp-biz { animation-delay: 480ms; }
html.js-motion .hp-step:nth-child(1) { animation-delay: 540ms; }
html.js-motion .hp-step:nth-child(2) { animation-delay: 610ms; }
html.js-motion .hp-step:nth-child(3) { animation-delay: 680ms; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hpIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
