/* The hero and its live piece: the Interview room cycling five rounds.
   Everything here is scoped to .hero. Colours come from base.css. */
.hero { position: relative; text-align: center; padding: 78px 24px 0; }
.hero h1 { position: relative; margin: 0; font-family: var(--display); font-weight: 680; font-size: 88px; line-height: 1; letter-spacing: -.045em; }
.hero h1 span { background: linear-gradient(100deg, var(--ink) 10%, var(--accent-text) 60%, var(--cyan) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { position: relative; margin: 22px 0 0; font-size: 21px; color: var(--ink-2); letter-spacing: -.01em; }
.hero .ctas { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .fine { position: relative; margin: 18px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.hero .fine-2 { margin-top: 5px; }
.hero .aurora { position: absolute; left: 50%; top: 330px; width: 1600px; height: 1000px; transform: translateX(-50%); pointer-events: none; opacity: var(--au-op); }
/* No blur filter here: some graphics cards draw a large blurred layer in tiles and show the tiles' edges. The gradients fade by themselves. */
.hero .au { position: absolute; border-radius: 50%; }
.hero .au1 { left: 100px; top: 140px; width: 760px; height: 560px; background: radial-gradient(closest-side, var(--au-a), color-mix(in srgb, var(--au-a) 35%, transparent) 45%, transparent); animation: drift1 14s ease-in-out infinite alternate; }
.hero .au2 { left: 520px; top: 40px; width: 640px; height: 420px; background: radial-gradient(closest-side, var(--au-b), color-mix(in srgb, var(--au-b) 35%, transparent) 45%, transparent); animation: drift2 17s ease-in-out infinite alternate; }
.hero .au3 { left: 820px; top: 140px; width: 720px; height: 560px; background: radial-gradient(closest-side, var(--au-c), color-mix(in srgb, var(--au-c) 35%, transparent) 45%, transparent); animation: drift3 12s ease-in-out infinite alternate; }
.hero .au4 { left: 300px; top: 560px; width: 1000px; height: 420px; background: radial-gradient(closest-side, var(--au-d), color-mix(in srgb, var(--au-d) 35%, transparent) 45%, transparent); animation: drift2 19s ease-in-out infinite alternate-reverse; }
@keyframes drift1 {from { transform: translate(-30px, 10px) scale(1); opacity: .85; } to { transform: translate(40px, -20px) scale(1.12); opacity: 1; } }
@keyframes drift2 {from { transform: translate(20px, 0) scale(1.05); opacity: 1; } to { transform: translate(-40px, 30px) scale(.92); opacity: .75; } }
@keyframes drift3 {from { transform: translate(30px, -10px) scale(.95); opacity: .8; } to { transform: translate(-30px, 20px) scale(1.1); opacity: 1; } }
.hero .stage { position: relative; max-width: 1240px; margin: 56px auto 0; }
.hero .win { position: relative; text-align: left; color: var(--text); background: var(--base); border-radius: 18px; overflow: hidden; box-shadow: var(--win-shadow), inset 0 1px 0 var(--win-rim); font-size: 13.5px; }
.hero .win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--win-rim); }
.hero .titlebar { height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }
.hero .dots { display: flex; gap: 8px; }
.hero .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--rim); }
.hero .tb-title { display: none; }
.hero .phases { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.hero .ph { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; transition: background .35s, color .35s; }
.hero .ph .d { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: none; }
.hero .ph.done .d { display: block; }
.hero .ph.done { color: var(--text); }
.hero .ph.on { color: #fff; font-weight: 600; background: linear-gradient(100deg, var(--accent), var(--accent-deep)); box-shadow: 0 4px 14px -6px rgba(91,79,255,.8); }
.hero .panes { display: grid; grid-template-columns: 286px 1fr 336px; gap: 8px; padding: 0 8px 8px; height: 560px; }
.hero .pane { background: var(--panel); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; overflow: hidden; position: relative; }
.hero .pane-q { padding: 20px 20px; line-height: 1.55; }
.hero .pane-q p { margin: 0 0 12px; color: var(--text); }
.hero .q-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.hero .pill-easy { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); padding: 3px 9px; border-radius: 7px; }
.hero .pill-easy::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero .q-title { margin: 12px 0 12px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.hero code { font-size: 12.5px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); padding: 1px 5px; border-radius: 5px; }
.hero .caps { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 8px; font-weight: 600; }
.hero .ex { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); border-radius: 9px; padding: 11px 13px; font-size: 13px; line-height: 1.65; }
.hero .note { font-size: 12.5px; color: var(--text-2) !important; margin-top: 8px !important; }
.hero .dim { color: var(--text-3); }
.hero .dim2 { color: var(--text-2); }
.hero .small { font-size: 12.5px; }
.hero .pane-q .small { line-height: 1.8; }
.hero .pane-ed { display: flex; flex-direction: column; }
.hero .ed-head { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; box-shadow: inset 0 -1px 0 var(--line); }
.hero .tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.hero .py { width: 9px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, #3B77D8 50%, #F5C84B 50%); }
.hero .ed-pos { margin-left: auto; }
.hero .code { flex: 1; padding: 14px 0; font-size: 14.5px; line-height: 27px; }
.hero .ln { display: flex; height: 27px; white-space: pre; }
.hero .ln .n { width: 52px; padding-right: 18px; text-align: right; color: var(--text-3); flex: none; }
.hero .ln.cur { background: var(--cur-line); }
.hero .ln.cur .n { color: var(--text); }
.hero .kw { color: var(--k-kw); }
.hero .fn { color: var(--k-fn); }
.hero .num { color: var(--k-num); }
.hero .bi { color: var(--k-bi); }
.hero .caret { display: inline-block; width: 2px; height: 18px; margin-bottom: -4px; background: var(--accent-text); animation: blink 1s steps(1) infinite; }
@keyframes blink {50% { opacity: 0; } }
.hero .composer { align-self: center; display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 14px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0,0,0,.5); }
.hero .reply { width: 270px; height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.hero .run, .hero .end { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 9px; font-weight: 600; }
.hero .run { color: #fff; background: linear-gradient(100deg, var(--accent), var(--accent-deep)); }
.hero .run svg { width: 11px; height: 11px; }
.hero .end { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent); }
.hero .end svg { width: 15px; height: 15px; }
.hero .status { height: 46px; display: flex; align-items: center; padding: 0 16px; box-shadow: inset 0 1px 0 var(--line); font-size: 13px; }
.hero .st-pass { display: none; align-items: center; gap: 10px; }
.hero .status.pass .st-idle { display: none; }
.hero .status.pass .st-pass { display: flex; animation: rise .5s ease-out; }
@keyframes rise {from { opacity: 0; transform: translateY(4px); } }
.hero .tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green); position: relative; }
.hero .tick::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border: solid var(--panel); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.hero .sep { width: 1px; height: 16px; background: var(--rim); }
.hero .b2 { width: 9px; }
.hero .b22 { width: 108px; }
.hero .pane-sam { display: flex; flex-direction: column; align-items: center; padding: 18px 20px 0; }
.hero .clock { align-self: stretch; display: flex; flex-direction: column; }
.hero .mono-num { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .clock-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.hero .clock-bar i { display: block; height: 100%; width: 2%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.hero .orb-btn { position: relative; width: 176px; height: 176px; margin: -2px 0 -14px; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.hero .orb-btn canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .sam-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hero .sam-role { font-size: 12.5px; margin-top: 2px; }
.hero .state-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.hero .state-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero .state-pill.listen { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.hero .state-pill.listen i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {50% { opacity: .35; } }
.hero .sam-line { margin: 14px 0 0; min-height: 56px; text-align: center; font-size: 18.5px; line-height: 1.38; font-weight: 500; letter-spacing: -.012em; text-wrap: balance; transition: opacity .3s; }
.hero .sam-line.swap { opacity: 0; }
.hero .transcript { align-self: stretch; margin: 14px -20px 0; padding: 12px 18px 0; box-shadow: inset 0 1px 0 var(--line); flex: 1; min-height: 0; overflow: hidden; }
.hero .tr-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.hero .tr-head svg { width: 12px; height: 12px; color: var(--text-3); }
.hero .tr { margin-bottom: 11px; line-height: 1.42; }
.hero .tr.new { animation: rise .45s ease-out; }
.hero .tr .who { font-weight: 600; font-size: 12.5px; }
.hero .tr .who.sam { color: var(--accent-text); }
.hero .tr .t { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-left: 6px; }
.hero .tr p { margin: 2px 0 0; font-size: 13px; }
.hero .tr.ran { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.hero .tr.ran .t { margin-left: auto; }
.hero .ptr text { font-size: 22px; stroke: none; }
.hero .wave { height: 96px; display: flex; align-items: center; gap: 4px; }
.hero .wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--accent)); min-height: 4px; }
@media (max-width: 1300px) {
  .hero .stage { margin-left: 24px; margin-right: 24px; }
  .hero .panes { grid-template-columns: 260px 1fr 320px; }
}
@media (max-width: 1060px) {
  .hero .panes { grid-template-columns: 1fr 320px; }
  .hero .pane-q { display: none; }
}
@media (max-width: 640px) {
  .hero .wide-only { display: none; }
  .hero { padding: 52px 18px 0; }
  .hero h1 { font-size: 54px; letter-spacing: -.045em; line-height: 1.02; }
  .hero h1 span { display: block; }
  .hero .sub { font-size: 17px; margin-top: 16px; }
  .hero .ctas { flex-direction: column; gap: 10px; margin-top: 26px; padding: 0 10px; }
  .hero .fine { font-size: 12px; }
  .hero .aurora { top: 380px; width: 900px; height: 900px; }
  .hero .au1 { left: 120px; top: 60px; width: 420px; height: 420px; }
  .hero .au2 { left: 300px; top: 140px; width: 380px; height: 420px; }
  .hero .au3 { left: 400px; top: 40px; width: 360px; height: 360px; }
  .hero .au4 { left: 160px; top: 520px; width: 600px; height: 300px; }
  .hero .stage { margin: 40px 0 0; }
  .hero .win { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .hero .win::after, .hero .titlebar { display: none; }
  .hero .panes { display: flex; flex-direction: column; height: auto; gap: 14px; padding: 0; }
  .hero .pane { border-radius: 24px; box-shadow: var(--win-shadow), inset 0 0 0 1px var(--line), inset 0 1px 0 var(--win-rim); }
  .hero .pane-sam { order: 1; padding: 22px 22px 6px; }
  .hero .pane-ed { order: 2; }
  .hero .orb-btn { width: 196px; height: 196px; margin: -2px 0 -14px; }
  .hero .sam-line { font-size: 21px; min-height: 58px; }
  .hero .mono-num { font-size: 36px; }
  .hero .transcript { margin: 16px -22px 0; padding: 14px 22px 4px; }
  .hero .tr p { font-size: 14px; }
  .hero .ed-head { height: 50px; padding: 0 14px; }
  .hero .ed-pos { display: none; }
  .hero .code { padding: 10px 0; font-size: 13px; line-height: 25px; }
  .hero .ln { height: 25px; }
  .hero .ln .n { width: 38px; padding-right: 14px; }
  .hero .composer { display: none; }
  .hero .status { padding: 0 16px; height: 48px; }
  .hero .st-pass .sep, .hero .st-pass .b2, .hero .st-pass .hm:first-of-type { display: none; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .hero .ph { padding: 0 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .au, .hero .state-pill i, .hero .caret { animation: none !important; }
  .hero .tr, .hero .st-pass { animation: none !important; }
}
.hero .transcript { display: flex; flex-direction: column; }
.hero .tr-list { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); }
.hero .tr:last-child { margin-bottom: 14px; }
.hero .win::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 2; pointer-events: none; background: var(--edge-light); }
.hero .stage::after { content: ""; position: absolute; left: 8%; right: 8%; top: -90px; height: 180px; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, var(--au-b), transparent 70%); filter: blur(30px); }
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero .fine-2 { display: none; }
  .hero .ctas { margin-top: 22px; }
  .hero .stage { margin-top: 32px; }
  .hero .orb-btn { width: 184px; height: 184px; }
  .hero .win::before { display: none; }
  .hero .tr-list { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) {
  .hero .st-pass > :not(.tick):not(b) { display: none !important; }
  .hero .st-pass b { white-space: nowrap; }
  .hero .code { font-size: 12.5px; }
  .hero .ln .n { width: 34px; padding-right: 12px; }
}
.hero .wash { position: absolute; left: 50%; top: -120px; width: 1900px; height: 900px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(45% 38% at 50% 78%, color-mix(in srgb, var(--au-a) 100%, transparent), transparent 72%), radial-gradient(30% 30% at 32% 62%, color-mix(in srgb, var(--au-d) 70%, transparent), transparent 70%), radial-gradient(30% 30% at 70% 60%, color-mix(in srgb, var(--au-c) 66%, transparent), transparent 70%); animation: washb 16s ease-in-out infinite alternate; }
@keyframes washb {from { opacity: .75; } to { opacity: 1; } }
.hero > h1, .hero > .sub, .hero > .ctas, .hero > .fine { z-index: 1; }
.hero .rounds { position: relative; z-index: 3; display: flex; width: max-content; margin: 0 auto 16px; padding: 3px; gap: 2px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 78%, transparent); box-shadow: inset 0 0 0 1px var(--rim), 0 10px 30px -14px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hero .rd { height: 32px; padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .4s, color .4s, box-shadow .4s; }
.hero .rd.on { color: var(--text); font-weight: 600; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rim), 0 2px 8px -3px rgba(0,0,0,.35); }
.hero .rd.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: linear-gradient(135deg, var(--accent-text), var(--cyan)); }
.hero .phases.fade { animation: phfade .5s ease-out; }
@keyframes phfade {from { opacity: 0; } }
.hero .phases { min-height: 36px; }
.hero .pane-q, .hero .pane-mid { position: relative; padding: 0; }
.hero .rv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.hero .rv.is-on { opacity: 1; visibility: visible; transition: opacity .55s ease .1s, visibility 0s; }
.hero .pane-q .rv { padding: 20px; }
.hero .pane-mid .rv { display: flex; flex-direction: column; }
.hero .tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.hero .q-title.big { font-size: 23px; }
.hero .reqs { margin: 0; padding: 0; list-style: none; }
.hero .reqs li { position: relative; padding-left: 16px; margin-bottom: 7px; }
.hero .reqs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
.hero .schema { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin-bottom: 8px; border-radius: 9px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.hero .schema b { color: var(--k-kw); font-weight: 600; }
.hero .schema span { color: var(--text-2); }
.hero .story { padding: 12px 14px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); }
.hero .mid-board { background: var(--board); }
.hero .mid-board::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 20px 20px; pointer-events: none; }
.hero .tools { position: relative; align-self: center; margin-top: 12px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.hero .tl { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); }
.hero .tl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero .tl.on { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.hero .tsep { width: 1px; height: 18px; background: var(--rim); margin: 0 4px; }
.hero .hld { position: relative; flex: 1; min-height: 0; width: 100%; padding: 8px 18px 0; }
.hero .hld path { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero .hld path.hot { stroke: var(--accent-text); }
.hero .bt { font-family: "Bradley Hand", "Chalkboard SE", "Marker Felt", cursive; font-size: 15px; fill: var(--chalk); opacity: 0; }
.hero .bt.lbl { font-size: 13px; fill: var(--text-3); }
.hero .bt.hot { fill: var(--accent-text); }
.hero .zoom { position: relative; align-self: flex-start; margin: 0 0 14px 14px; display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13px; }
.hero .mid-talk { padding: 18px 26px 0; }
.hero .notes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .notes .caps { margin: 0 6px 0 0; }
.hero .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--text-3); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); transition: color .4s, background .4s, box-shadow .4s; }
.hero .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rim); transition: background .4s; }
.hero .chip.lit { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.hero .chip.lit::before { background: var(--green); }
.hero .said { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.hero .said-who { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.hero .said-who .who { font-weight: 600; color: var(--text-2); }
.hero .said-who .hm { font-size: 12px; }
.hero .said p { margin: 0; font-size: 25px; line-height: 1.38; font-weight: 500; letter-spacing: -.015em; text-wrap: pretty; }
.hero .said .was { color: var(--text-3); }
.hero .said .now { color: var(--text); }
.hero .wave.big { height: 64px; gap: 3px; margin-bottom: 14px; }
.hero .wave.big i { border-radius: 2px; min-height: 3px; }
.hero .mid-talk .composer { margin-bottom: 14px; }
@media (max-width: 640px) {
  .hero .rounds { width: auto; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; justify-content: space-between; border-radius: 14px; }
  .hero .rounds::-webkit-scrollbar { display: none; }
  .hero .rd { height: 44px; padding: 0 12px; font-size: 14px; border-radius: 11px; flex: none; }
  .hero .rd.on::before { display: none; }
  .hero .pane-mid { height: 400px; }
  .hero .pane-q { display: none; }
  .hero .tools { display: none; }
  .hero .hld { padding: 14px 6px 0; }
  .hero .mid-talk { padding: 18px 18px 0; }
  .hero .said p { font-size: 20px; }
  .hero .chip { height: 30px; padding: 0 11px; }
  .hero .notes .caps { display: none; }
}
@media (max-width: 1060px) and (min-width: 641px) {
  .hero .pane-q { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wash, .hero .phases.fade { animation: none !important; }
  .hero .rv, .hero .rv.is-on { transition: none; }
}
@media (max-width: 640px) {
  .hero .pane-mid { order: 2; }
  .hero .win[data-round="coding"] .pane-mid { height: 290px; }
  .hero .win[data-round="system-design"] .pane-mid { height: 330px; }
  .hero .win[data-round="behavioural"] .pane-mid { height: 380px; }
  .hero .pane-mid { transition: height .5s ease; }
}
.instant .hero .rv, .instant .hero .rv.is-on { transition: none !important; }
@media (max-width: 640px) {
  .hero .rd { padding: 0 10px; font-size: 13.5px; }
  .hero .zoom { display: none; }
  .hero .hld { padding: 10px 4px 10px; }
  .hero .bt { font-size: 19px; }
  .hero .bt.lbl { font-size: 16px; }
}
@media (max-width: 640px) {
  .hero .notes { gap: 6px; flex-wrap: nowrap; }
  .hero .chip { height: 30px; padding: 0 9px; font-size: 12px; gap: 5px; }
  .hero .said { justify-content: flex-start; padding-top: 18px; }
  .hero .said p { font-size: 19px; }
  .hero .win[data-round="behavioural"] .pane-mid { height: 400px; }
}
.hero .rd.on { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero .said { justify-content: flex-start; padding-top: 34px; }
.hero { padding-top: 46px; }
.hero h1 { font-size: 80px; }
.hero .sub { margin-top: 16px; }
.hero .ctas { margin-top: 26px; }
.hero .fine { margin-top: 14px; }
.hero .stage { margin-top: 30px; }
.hero .rounds { margin-bottom: 12px; }
.hero .wash { top: -40px; height: 820px; }
.hero .ph-now { display: none; }
.hero .titlebar { transition: height .45s ease; }
.hero .phases { transition: opacity .35s ease; }
.hero .win[data-round="behavioural"] .titlebar { height: 34px; }
.hero .win[data-round="behavioural"] .phases { opacity: 0; pointer-events: none; }
.hero .phases.numbered .ph { gap: 7px; }
.hero .phases.numbered .ph.on { background: none; box-shadow: none; color: var(--text); }
.hero .phases.numbered .ph + .ph::before { content: ""; width: 14px; height: 1px; background: var(--rim); margin-right: 6px; }
.hero .nm { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-family: var(--mono); color: var(--text-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rim); }
.hero .ph.on .nm { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: none; }
.hero .ph.done .nm { color: var(--green); }
.hero .pill-med { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); padding: 3px 9px; border-radius: 7px; }
.hero .bt.lbl.hot { fill: var(--accent-text); }
.hero .hld path.faint { stroke: var(--text-3); stroke-width: 1.6; }
.hero .pane-mid .rv.mid-ai { display: grid; grid-template-columns: 136px 1fr; }
.hero .files { padding: 12px 8px; box-shadow: inset -1px 0 0 var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.hero .files .caps { margin: 0 6px 8px; }
.hero .fl { height: 26px; display: flex; align-items: center; padding: 0 8px 0 22px; border-radius: 7px; white-space: nowrap; }
.hero .fl.dir { padding-left: 6px; color: var(--text); }
.hero .fl.dir::before { content: "⌄"; margin-right: 6px; color: var(--text-3); transform: translateY(-3px); }
.hero .fl.top { padding-left: 8px; }
.hero .fl.on { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.hero .ai-main { display: flex; flex-direction: column; min-width: 0; }
.hero .ed-head.slim { height: 40px; gap: 18px; padding: 0 16px; }
.hero .tab-u { align-self: stretch; display: flex; align-items: center; font-size: 13px; box-shadow: inset 0 -2px 0 var(--accent); }
.hero .mid-ai .code { flex: none; font-size: 13px; line-height: 23px; padding: 8px 0; }
.hero .mid-ai .ln { height: 23px; }
.hero .mid-ai .ln .n { width: 44px; padding-right: 14px; }
.hero .assist { flex: 1; min-height: 0; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 var(--line); background: color-mix(in srgb, var(--raised) 55%, var(--panel)); }
.hero .as-head { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 16px; flex: none; }
.hero .as-head b { font-size: 13.5px; }
.hero .spark { width: 16px; height: 16px; color: var(--accent-text); }
.hero .spark svg { width: 100%; height: 100%; }
.hero .as-seg { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; }
.hero .as-seg span { padding: 3px 10px; border-radius: 6px; color: var(--text-2); }
.hero .as-seg .on { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rim); }
.hero .as-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 0 16px 14px; font-size: 13px; line-height: 1.45; }
.hero .ask { align-self: flex-end; max-width: 78%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.hero .ans { margin: 0; }
.hero .snip { position: relative; padding: 10px 12px; border-radius: 10px; background: var(--base); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 1.6; color: var(--text); }
.hero .snip div { animation: rise .3s ease-out; }
.hero .copy { position: absolute; right: 8px; top: 7px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 12px; color: var(--text-2); }
.hero .copy svg { width: 13px; height: 13px; }
@media (max-width: 640px) {
  .hero { padding: 26px 16px 0; }
  .hero h1 { font-size: 46px; }
  .hero .sub { font-size: 16px; margin-top: 12px; }
  .hero .ctas { flex-direction: row; gap: 10px; margin-top: 20px; padding: 0; }
  .hero .fine { margin-top: 12px; }
  .hero .stage { margin-top: 20px; }
  .hero .rounds-wrap { position: relative; margin-bottom: 10px; }
  .hero .rounds { margin: 0; width: 100%; justify-content: flex-start; }
  .hero .rounds.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .hero .rounds.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
  .hero .rounds.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
  .hero .rd { padding: 0 14px; font-size: 14px; }
  .hero .win { background: var(--base); border-radius: 24px; box-shadow: var(--win-shadow), inset 0 0 0 1px var(--line), inset 0 1px 0 var(--win-rim); overflow: hidden; padding: 0 8px 8px; }
  .hero .titlebar { display: flex; justify-content: center; height: 40px; padding: 0; }
  .hero .titlebar .dots, .hero .titlebar .phases { display: none; }
  .hero .ph-now { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hero .win[data-round="behavioural"] .titlebar { height: 8px; }
  .hero .win[data-round="behavioural"] .ph-now { display: none; }
  .hero .panes { gap: 8px; }
  .hero .pane { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
  .hero .pane-sam { order: 1; display: grid; padding: 12px 16px 14px; align-items: center; column-gap: 12px; grid-template-columns: 50px 1fr auto; grid-template-areas: "orb name clock" "orb pill clock" "line line line"; }
  .hero .orb-btn { grid-area: orb; width: 70px; height: 70px; margin: -10px; }
  .hero .sam-name { grid-area: name; align-self: end; font-size: 16px; }
  .hero .state-pill { grid-area: pill; align-self: start; justify-self: start; margin-top: 4px; }
  .hero .clock { grid-area: clock; align-self: center; align-items: flex-end; }
  .hero .clock .small, .hero .clock-bar, .hero .sam-role, .hero .transcript { display: none; }
  .hero .mono-num { font-size: 24px; }
  .hero .sam-line { grid-area: line; text-align: left; font-size: 17px; line-height: 1.38; min-height: 47px; margin: 12px 0 0; text-wrap: pretty; }
  .hero .pane-mid { order: 2; }
  .hero .win[data-round="coding"] .pane-mid { height: 300px; }
  .hero .win[data-round="system-design"] .pane-mid, .hero .win[data-round="ml-system-design"] .pane-mid { height: 320px; }
  .hero .win[data-round="ai-assisted"] .pane-mid { height: 380px; }
  .hero .win[data-round="behavioural"] .pane-mid { height: 340px; }
  .hero .bt.lbl { font-size: 18px; }
  .hero .pane-mid .rv.mid-ai { display: flex; flex-direction: column; }
  .hero .files { display: flex; gap: 6px; padding: 10px 12px; box-shadow: inset 0 -1px 0 var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); flex: none; }
  .hero .files .caps, .hero .fl.dir, .hero .fl.top { display: none; }
  .hero .fl { height: 28px; padding: 0 10px; flex: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; }
  .hero .ed-head.slim { display: none; }
  .hero .mid-ai .code { font-size: 12px; line-height: 22px; max-height: 104px; overflow: hidden; padding: 6px 0; }
  .hero .mid-ai .ln { height: 22px; }
  .hero .mid-ai .ln .n { width: 34px; padding-right: 10px; }
  .hero .as-body { padding: 0 14px 12px; }
  .hero .said { padding-top: 22px; }
}
.hero .fine-2 { margin-top: 5px; }
.hero .mid-ai .code { max-height: 146px; overflow: hidden; padding-bottom: 0; }
.hero .as-body { justify-content: flex-start; padding-top: 2px; }
@media (max-width: 640px) {
  .hero { padding-top: 20px; }
  .hero h1 { font-size: 44px; }
  .hero .mid-ai .code { max-height: 78px; }
  .hero .as-body { justify-content: flex-end; }
  .hero .bt { font-size: 17px; }
  .hero .bt.lbl { font-size: 17px; }
  .hero .win[data-round="system-design"] .pane-mid { height: 300px; }
  .hero .win[data-round="ml-system-design"] .pane-mid { height: 260px; }
  .hero .win[data-round="ai-assisted"] .pane-mid { height: 370px; }
  .hero .sam-line { min-height: 0; }
}
.hero .wash::after { content: ""; position: absolute; inset: 0; background: var(--wash-glow); }

/* The glow is clipped to the page width so nothing scrolls sideways. */
.hero-glow { position: absolute; left: 0; right: 0; top: -140px; height: 1900px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hero-glow-in { position: absolute; left: 0; right: 0; top: 140px; height: 0; }
/* light: a halo right behind the headline, so the glow reads */
.hero .wash::before { content: ""; position: absolute; inset: 0; background: var(--head-glow); }
/* phone: the hand-drawn board's labels stay at 12px or more (phone-only drawing for ML) */
.hero .hld.phone-only { display: none; }
@media (max-width: 640px) {
  .hero .hld.phone-only { display: block; }
  .hero .hld.laptop-only { display: none; }
  .hero .hld.phone-only .bt { font-size: 16px; }
  .hero .hld.phone-only .bt.lbl { font-size: 15px; }
  .hero .win[data-round="ml-system-design"] .pane-mid { height: 290px; }
}
@media (max-width: 640px) {
  .hero .ctas .btn.primary { flex: 1.6; }
  .hero .ctas .btn.off { flex: 1; }
  .hero .ctas .btn { padding-inline: 10px; font-size: 14px; } /* both store buttons fit on a phone */
}
@media (max-width: 640px) {
  .hero .hld:not(.phone-only) .bt, .hero .hld:not(.phone-only) .bt.lbl { font-size: 17.6px; }
}

/* The wash is a box of soft gradients. Fade the box itself at all four sides, so no gradient that reaches a side ends in a straight line. */
.hero .wash {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
