/* ================= Events page ================= */

/* ---- hero: the staged siege from above, faded into the page at the bottom ---- */
.ehero { position: relative; isolation: isolate; min-height: clamp(560px, 88svh, 820px); display: flex; align-items: center; padding: calc(var(--nav-h) + 56px) 0 clamp(64px, 9vw, 110px); }
.ehero .cine { z-index: -1; background-color: transparent; filter: brightness(.7) saturate(1.1) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
.ehero > .wrap { width: 100%; }
.ehero__copy { max-width: 820px; color: var(--cream); text-shadow: 0 1px 2px rgba(10, 16, 18, .75), 0 4px 30px rgba(10, 16, 18, .7); }
.ehero .eyebrow { color: var(--mustard); }
.ehero .title { color: var(--cream); }
.ehero .title em { color: var(--mustard); }
.ehero .lede { color: var(--cream); font-weight: 500; max-width: 46ch; }
.ehero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; text-shadow: none; }
.ehero .btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 243, 205, .6); }
.ehero .cine__pause { right: var(--gutter); bottom: 34px; }

/* ---- proof strip ---- */
.proof-sec { margin-top: calc(clamp(24px, 4vw, 48px) * -1); position: relative; z-index: 1; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.proof > div { background: var(--surface); padding: 26px 28px; display: grid; gap: 8px; align-content: start; }
.proof b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof b small { font-size: .45em; color: var(--accent-text); margin-left: 4px; }
.proof span { color: var(--muted); font-size: 15px; }
.proof__note { margin-top: 12px; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---- lap markers: the seven steps as a race track ---- */
.laps { --lap: 0; list-style: none; margin: 40px 0 0; padding: 0; position: relative; max-width: 900px; }
.laps::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--text) 26%, transparent) 0 12px, transparent 12px 22px); }
.laps::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: var(--mustard); transform-origin: 50% 0; transform: scaleY(var(--lap)); }
.lap { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px clamp(16px, 3vw, 30px); padding-bottom: 30px; }
.lap:last-child { padding-bottom: 0; }
.lap__n { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 26px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--ease); }
.lap.is-done .lap__n { background: var(--mustard); color: var(--char); box-shadow: none; transform: rotate(-4deg); }
.lap__body { padding-top: 6px; }
.lap__body h3 { font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; }
.lap__body h3 small { font-family: var(--f-mono); font-stretch: 100%; font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-left: 10px; vertical-align: middle; }
.lap__body p { margin-top: 6px; color: var(--muted); max-width: 62ch; }
.lap__body code { font-family: var(--f-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--nest); }

/* the rehearsal: the step to remember */
.lap--hot .lap__body { padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: var(--mustard); color: var(--char); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--mustard) 80%, transparent); }
.lap--hot .lap__body p { color: color-mix(in srgb, var(--char) 86%, transparent); }
.lap--hot .lap__body b { color: var(--char); }
.lap--hot .lap__n { background: var(--char); color: var(--mustard); box-shadow: 0 0 0 4px var(--bg); }
:root[data-theme="dark"] .lap--hot .lap__n { background: var(--cream); color: var(--char); }
.lap--hot.is-done .lap__n { background: var(--char); color: var(--mustard); transform: rotate(-4deg); }
:root[data-theme="dark"] .lap--hot.is-done .lap__n { background: var(--cream); color: var(--char); }
.lap__tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--char); color: var(--mustard); }
.lap--hot .lap__body { position: relative; overflow: hidden; }
.lap__big { position: absolute; right: clamp(16px, 4vw, 40px); top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(64px, 11vw, 140px); line-height: 1; letter-spacing: -.05em; color: color-mix(in srgb, var(--char) 14%, transparent); pointer-events: none; }
.lap--hot { grid-template-columns: 56px minmax(0, 1fr); }
.lap--hot .lap__big { right: 14px; }
@media (max-width: 640px) { .lap__big { display: none; } .laps::before, .laps::after { left: 23px; } .lap { grid-template-columns: 48px minmax(0, 1fr); } .lap__n { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; } }

/* the finish line */
.lap--end .lap__body::after { content: ''; display: block; margin-top: 18px; width: 168px; height: 14px; border-radius: 3px; opacity: .6;
  background: conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 14px 14px; }

.quote__alt { margin: 0; font-size: 15px; color: var(--muted); }
.quote__alt a { color: var(--accent-text); font-weight: 600; }

@media (min-width: 641px) { .lap--hot .lap__body { padding-right: clamp(150px, 20vw, 260px); } }
.lap__big { color: color-mix(in srgb, var(--char) 20%, transparent); }

.lap__big { font-size: clamp(56px, 8vw, 104px); }
@media (min-width: 641px) { .lap--hot .lap__body { padding-right: clamp(190px, 22vw, 300px); } }
