/* Marketing Champion · play page, Black Ice. Environment: chalk talk in the film room.
   The page opens on the same picture you clicked, full screen, then settles into a framed hero. */
body { background: var(--ice) radial-gradient(ellipse 80% 50% at 50% 0%, #141a22 0%, transparent 70%) no-repeat; }

/* faint rink diagram behind the whole page, like a coach's whiteboard */
.play { position: relative; }
.play::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 110px, var(--light) 111px 113px, transparent 114px),
    linear-gradient(90deg, transparent calc(50% - 2px), var(--goal) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(90deg, transparent calc(28% - 2px), var(--light) calc(28% - 2px) calc(28% + 2px), transparent calc(28% + 2px), transparent calc(72% - 2px), var(--light) calc(72% - 2px) calc(72% + 2px), transparent calc(72% + 2px)); }
.play > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.p-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(28px, 6vw, 64px); }
.p-hero__media { position: absolute; z-index: 0; background: #000 center / cover no-repeat;
  /* shrinks from full screen into a framed card as you scroll (--k 0 to 1) */
  inset: calc(var(--k, 0) * (var(--top) + 78px)) calc(var(--k, 0) * var(--pad)) calc(var(--k, 0) * 12vh) calc(var(--k, 0) * var(--pad));
  border-radius: calc(var(--k, 0) * 22px); opacity: calc(1 - var(--k, 0) * .35); }
.p-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,13,16,.95) 0%, rgba(11,13,16,.5) 40%, rgba(11,13,16,.15) 75%); border-radius: inherit; }
.p-hero__copy { position: relative; z-index: 1; width: 100%; }
.p-hero__copy .mono { color: var(--light); }
.p-hero h1 { margin: 14px 0 26px; font-size: clamp(56px, 13vw, 200px); line-height: .88; font-weight: 600; letter-spacing: -.045em; }
.p-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; margin: 0; }
.p-meta div { border-top: 1px solid rgba(207, 232, 245, .25); padding-top: 10px; }
.p-meta dt { color: var(--muted); margin-bottom: 4px; }
.p-meta dd { margin: 0; font-size: 15px; }

/* arrival from a card: the picture is already full screen, the words come in after it */
.from-card .p-hero__copy, .from-card .hdr { opacity: 0; transform: translateY(26px); }
.from-card.settled .p-hero__copy, .from-card.settled .hdr { opacity: 1; transform: none; transition: opacity .8s var(--ease) .15s, transform .9s var(--ease) .15s; }

/* ---------- Period nav ---------- */
.p-periods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--glass); border: 1px solid var(--glass); border-radius: 14px; overflow: hidden; margin-block: 24px 40px; position: sticky; top: calc(var(--top) + 74px); z-index: 5; padding: 0; }
.p-periods a { background: rgba(21, 25, 31, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 14px; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.p-periods a .mono { color: var(--light); font-size: 10px; }
.p-periods a:hover { background: var(--glass); }
@media (max-width: 759px) { .p-periods { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; } .p-periods a { font-size: 13px; padding: 10px; } }

/* ---------- Periods ---------- */
.p-sec { display: grid; grid-template-columns: 1fr; gap: 18px 48px; padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--glass); scroll-margin-top: 150px; }
@media (min-width: 900px) { .p-sec { grid-template-columns: 220px 1fr; } }
.p-sec__label { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .p-sec__label { position: sticky; top: 170px; align-self: start; } }
.p-sec__label .mono { color: var(--light); }
.p-sec__label b { font: 600 clamp(28px, 3vw, 40px)/1 var(--font); letter-spacing: -.02em; }
.p-sec__body { max-width: 760px; }
.p-sec h2 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.p-sec p { color: #C9D2DA; font-size: 18px; margin: 0 0 16px; }
.pull { position: relative; font-size: clamp(24px, 3vw, 34px) !important; line-height: 1.25; color: var(--text) !important; font-weight: 500; padding: 22px 26px; margin: 28px 0 !important; }
.tele { position: absolute; inset: 0; border: 3px solid var(--goal); border-radius: 50% 46% 52% 48% / 55% 50% 50% 45%; transform: rotate(-1.5deg); clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) .2s; }
.pull.is-in .tele { clip-path: inset(0 0 0 0); }

.p-steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.p-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 18px; border: 1px solid var(--glass); border-radius: 14px; background: rgba(21, 25, 31, .7); }
.p-steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--light); display: grid; place-items: center; font: 600 17px var(--mono); color: var(--light); }
.p-steps b { font-size: 18px; }
.p-steps span { color: var(--muted); font-size: 15px; }
.p-video { margin: 24px 0 0; }
.p-video video { width: 100%; border-radius: 18px; background: #000; }
.p-video figcaption { color: var(--muted); margin-top: 10px; }

/* scoreboard */
.p-score { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--glass); border: 1px solid var(--glass); border-radius: 16px; overflow: hidden; margin: 8px 0 18px; }
@media (min-width: 760px) { .p-score { grid-template-columns: repeat(4, 1fr); } }
.p-score > div { background: #0F1216; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.p-score b { font: 600 clamp(30px, 4vw, 44px)/1 var(--mono); color: var(--score); font-variant-numeric: tabular-nums; }
.p-score span { color: var(--muted); font-size: 14px; }
.p-score__main { grid-column: 1 / -1; }
.p-score__main b { font-size: clamp(64px, 10vw, 130px); text-shadow: 0 0 40px rgba(255, 176, 0, .35); }
.p-source { font-size: 14px !important; color: var(--muted) !important; }
.p-awards { padding-left: 18px; color: #C9D2DA; }
.p-awards b { color: var(--score); }
.p-shift { padding-left: 22px; display: grid; gap: 14px; color: #C9D2DA; font-size: 18px; }
.p-shift b { color: var(--text); }

footer { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .p-hero__media { inset: calc(var(--top) + 78px) var(--pad) 12vh; border-radius: 22px; } .tele { clip-path: none; } }

/* ---------- Chalk Talk template (play.html) ---------- */
.c-hero__media { background-position: center 40%; }
.c-hero h1 { font-size: clamp(48px, 9vw, 140px); }
.c-hero h1 em { display: block; font-style: normal; font-weight: 500; font-size: .42em; letter-spacing: -.02em; color: #C9D2DA; margin-top: .25em; }
.c-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1b222b, #0B0D10 70%); border: 1px solid var(--glass); }
.c-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.c-video__play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; align-content: center; gap: 16px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.c-video__btn { width: 84px; height: 84px; border-radius: 50%; background: var(--goal); display: grid; place-items: center; box-shadow: 0 0 40px rgba(224, 16, 47, .45); transition: transform .25s var(--ease); }
.c-video__btn svg { width: 30px; height: 30px; margin-left: 4px; }
.c-video__play:hover .c-video__btn { transform: scale(1.08); }
.c-video__label { display: grid; gap: 4px; text-align: center; }
.c-video__label .mono { color: var(--muted); }
.c-wait { color: var(--muted); border: 1px dashed var(--glass); border-radius: 12px; padding: 18px; }
#cCoach h3 { margin: 22px 0 6px; font-size: 20px; }
.c-sources ul { padding-left: 18px; display: grid; gap: 6px; }
.c-sources a { color: var(--light); }
.c-back { padding-block: 10px 60px; }
/* the AI play: an orchestrator over specialist agents, each with its tools */
.arch { display: grid; gap: 14px; margin-top: 18px; }
.arch__boss, .agent { background: var(--boards); border: 1px solid var(--glass); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.arch__boss { border-color: var(--light); }
.arch__boss .mono, .agent .mono { color: var(--light); font-size: 11px; }
.arch__boss p, .agent p { margin: 0; font-size: 15px; }
.arch__agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; position: relative; }
.agent__human { color: var(--score) !important; }
.tools { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.tool { display: block; }
.tool img { width: 22px; height: 22px; object-fit: contain; filter: invert(1) brightness(.95); }
.tool b { display: block; font-size: 14px; }
.tool small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.p-periods { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 759px) { .p-periods { grid-template-columns: repeat(6, minmax(96px, 1fr)); } }
.chalk .p-periods { grid-template-columns: repeat(5, 1fr); }
.draft-flag { color: var(--ice); background: var(--score); display: inline-block; padding: 4px 8px; border-radius: 4px; }
.tool a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: inherit; text-decoration: none; }
.tool a:hover b { color: var(--light); }
.tool__mono { width: 22px; height: 22px; border-radius: 5px; background: var(--glass); color: var(--light); font: 600 9px/22px var(--mono); text-align: center; font-style: normal; letter-spacing: 0; }

/* ---------- Chalk Talk v2: the tape on the film room TV, above the title ---------- */
.c-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--top) + 92px) 34px; overflow: hidden; }
.c-hero__room { position: absolute; inset: 0; background: url(../img/rooms/chalk.jpg) 30% 40% / cover no-repeat; filter: brightness(.3) saturate(.8) blur(3px); transform: scale(1.06); }
.c-hero__room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 13, 16, .2), rgba(11, 13, 16, .9) 92%); }
.c-hero__inner { position: relative; z-index: 1; width: 100%; display: grid; gap: clamp(18px, 3vw, 30px); justify-items: center; }
.c-tv { width: min(100%, 1120px, calc((100svh - var(--top) - 400px) * 1.778)); min-width: min(100%, 520px); padding: 10px; border-radius: 16px; background: linear-gradient(#20252c, #0c0e11); box-shadow: 0 0 0 1px rgba(207, 232, 245, .12), 0 40px 90px rgba(0, 0, 0, .7), 0 0 120px rgba(95, 183, 227, .12); }
.c-tv .c-video { border-radius: 8px; border: 0; background-color: #050607; background-size: cover; background-position: center; }
.c-tv .c-video__play { background: linear-gradient(to top, rgba(5, 6, 7, .75), rgba(5, 6, 7, .15) 60%); }
.c-hero__copy { width: min(100%, 1120px); display: grid; gap: 10px; }
.c-hero__copy .mono { color: var(--light); }
.c-hero h1 { margin: 0; font-size: clamp(34px, 5.4vw, 80px); line-height: .95; font-weight: 600; letter-spacing: -.04em; }
.c-hero h1 em { display: inline; font-style: normal; font-weight: 400; color: #C9D2DA; font-size: .62em; margin: 0 0 0 .2em; letter-spacing: -.02em; }
.c-call { margin: 0; color: #C9D2DA; font-size: 15px; max-width: 780px; }
.c-call__tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #0B0D10; background: var(--light); border-radius: 3px; padding: 5px 8px; margin-right: 6px; vertical-align: 2px; }
.c-call__tag.is-semi { background: var(--score); } .c-call__tag.is-hard { background: #8A96A3; }
.c-line { margin: 6px 0 0; max-width: 780px; grid-template-columns: 48px 1fr; gap: 14px; }
.c-line img { width: 48px; height: 48px; }
.c-line p { margin: 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.4; font-weight: 500; color: var(--text); }
.c-hero .p-meta { margin-top: 6px; }
@media (max-width: 759px) { .c-tv { min-width: 0; padding: 6px; } .c-hero { align-items: flex-start; } }
/* arriving from a jersey: the zoomed TV picture settles into place, then the page comes in */
.tv-fly { position: fixed; z-index: 85; left: 0; top: 0; width: 100vw; height: 100vh; background: #050607 center / cover no-repeat; border-radius: 0; transition: left .75s var(--ease), top .75s var(--ease), width .75s var(--ease), height .75s var(--ease), border-radius .75s var(--ease), opacity .35s ease; pointer-events: none; }
.tv-fly.is-set { border-radius: 8px; }
.from-tv:not(.tv-settled) .c-hero__copy, .from-tv:not(.tv-settled) .hdr, .from-tv:not(.tv-settled) .c-hero__room { opacity: 0; }
.from-tv .c-hero__copy, .from-tv .hdr, .from-tv .c-hero__room { transition: opacity .7s var(--ease); }
.from-tv.tv-settled .c-hero__copy { transition-delay: .1s; }
/* Coach's Take: the reel, then the line card */
.c-reel { margin-bottom: 8px; }
.c-reel video { width: min(100%, 380px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; }
.c-reel__wait { display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--glass); background: rgba(21, 25, 31, .7); max-width: 760px; }
.c-reel__wait b { font-size: 20px; } .c-reel__wait span { color: var(--muted); }
#coach.p-sec { grid-template-columns: 1fr; } #coach .p-sec__body { max-width: none; } #coach .p-sec__label { position: static; }
.chalk .p-periods { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 759px) { .chalk .p-periods { grid-template-columns: repeat(4, minmax(110px, 1fr)); } }
/* back to the dressing room, plain and obvious */
.c-back-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font); color: var(--text); background: rgba(21, 25, 31, .8); border: 1px solid var(--glass); border-radius: 999px; padding: 11px 18px 11px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, transform .3s var(--ease); }
.c-back-btn span { font-size: 18px; transition: transform .3s var(--ease); }
.c-back-btn:hover { border-color: var(--light); } .c-back-btn:hover span { transform: translateX(-4px); }
.c-hero__inner { justify-items: stretch; } .c-tv { justify-self: center; }
/* the section bar knows where you are: the active section lights up, a puck slides under it */
.p-periods { position: sticky; }
.p-periods a { transition: background .3s, color .3s; position: relative; }
.p-periods a.is-on { background: rgba(207, 232, 245, .14); color: var(--text); }
.p-periods a.is-on .mono { color: var(--goal); }
.p-periods__puck { position: absolute; left: 0; bottom: 3px; width: 14px; height: 5px; border-radius: 50%; background: #E9EEF2; box-shadow: 0 0 10px rgba(207, 232, 245, .9); opacity: 0; transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), opacity .3s; pointer-events: none; z-index: 2; }

/* ---------- The Chalk Talk build (16 Oct): hook, flip, the Yeses, your rink, the question ---------- */
.c-hook { margin: 6px 0 18px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; font-weight: 500; color: var(--text); max-width: 760px; text-wrap: balance; }
/* the flip: the old belief gets crossed out in red marker, the new one is said loud */
.c-flip { display: grid; gap: 14px; margin: 0 0 8px; }
.c-flip p { margin: 0 !important; }
.c-flip .mono { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.c-flip__old s { color: #8A96A3; font-size: 19px; text-decoration-color: var(--goal); text-decoration-thickness: 3px; }
.c-flip__new { font-size: clamp(22px, 2.6vw, 30px) !important; line-height: 1.2; color: var(--text) !important; font-weight: 600; letter-spacing: -.01em; }
/* why it worked: one card per Yes, three parts each */
.c-yeses { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.c-yes { position: relative; padding: 26px 26px 22px 78px; border: 1px solid var(--glass); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.c-yes__n { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--goal); color: var(--text); font-weight: 600; }
.c-yes h3 { margin: 4px 0 14px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.c-yes dl { margin: 0; display: grid; gap: 12px; }
.c-yes dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.c-yes dd { margin: 0; color: #C9D2DA; font-size: 17px; line-height: 1.45; }
.c-yes__steal dd { color: var(--text); font-weight: 600; }
.c-yes__steal dt { color: var(--goal); }
@media (max-width: 560px) { .c-yes { padding: 22px 18px 18px; } .c-yes__n { position: static; margin-bottom: 10px; } }
.c-sure { margin-top: 22px !important; font-size: 19px !important; color: var(--text) !important; font-style: italic; }
.c-rink { font-size: clamp(19px, 2vw, 22px) !important; line-height: 1.45; color: var(--text) !important; }
.c-callwhy { font-size: 18px !important; margin-bottom: 26px !important; max-width: 780px; }
/* the closing question: big, alone, centred */
.c-ask { text-align: center; padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--glass); }
.c-ask .mono { color: var(--goal); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.c-ask__q { margin: 14px auto 0; max-width: 900px; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
/* the section bar: one row, however many sections this play shows (the Chalk Talk build adds two) */
.chalk .p-periods { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 759px) { .chalk .p-periods { grid-auto-columns: minmax(118px, 1fr); } }
