/* /welcome/ — video landing page. Navy Ink page, the same navy as the video's end frame (data-theme="dark" gives the dark tokens).
   Tokens only, from coastal-style-brand.css. */

.welcome { margin: 0; min-height: 100vh; background: var(--navy-ink); color: var(--on-deep); font-family: var(--font-sans); }
.wv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wv-main { padding: var(--space-6) var(--space-7) var(--space-8); }

/* The video: large and centred, 16:9. Kept short enough that the buttons stay on screen on a laptop. */
.wv-player { container-type: inline-size; position: relative; margin: 0 auto;
  width: min(100%, var(--content-max), max(640px, calc((100svh - 440px) * 16 / 9))); }
.wv-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-ink); overflow: hidden; }
.wv-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Start screen: the poster with a large play button, centred on the poster's divider. The whole video is the click target.
   White disc, navy triangle, soft shadow so it reads on the light poster. Gone once the video starts. */
.wv-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.wv-start[hidden] { display: none; }
.wv-start__disc { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--radius-full); background: #fff;
  box-shadow: 0 6px 24px rgba(15, 45, 63, 0.35), 0 1px 3px rgba(15, 45, 63, 0.25); transition: transform .15s ease; }
.wv-start__disc svg { width: 40px; height: 40px; fill: var(--navy-ink); margin-left: 5px; }
.wv-start:hover .wv-start__disc { transform: scale(1.05); }
/* Shown only if the browser refuses to play at all. */
.wv-start__meta { font: 600 14px/20px var(--font-sans); color: #fff; text-shadow: 0 1px 3px rgba(15, 45, 63, 0.8); }
.wv-start__meta[hidden] { display: none; }
.wv-start:focus-visible { outline: none; }
.wv-start:focus-visible .wv-start__disc { outline: 3px solid var(--accent-on-deep); outline-offset: 4px; }

/* Logo (left) and "Enter the site" (right) in a row directly above the video, lined up with its edges. */
.wv-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-4); }
.wv-logo { display: block; line-height: 0; }
.wv-logo img { width: 120px; height: auto; }
.wv-enter { color: var(--on-deep); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.wv-enter:hover { color: var(--accent-on-deep); text-decoration: underline; text-underline-offset: 4px; }
.wv-logo:focus-visible, .wv-enter:focus-visible { outline: 3px solid var(--accent-on-deep); outline-offset: 4px; }
/* Headline and subhead between the logo row and the video. Centred, Playfair headline, light sans subhead. */
.wv-head { text-align: center; margin: 0 auto var(--space-5); max-width: 860px; }
.wv-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 46px; letter-spacing: -0.005em; color: var(--on-deep); text-wrap: balance; }
.wv-title em { font-style: normal; color: var(--accent-on-deep); }
.wv-sub { margin: var(--space-3) auto 0; max-width: 760px; font-size: 18px; line-height: 28px; font-weight: 300; color: var(--on-deep); text-wrap: pretty; }
.wv-sub--cta { margin-top: var(--space-4); }

.wv-start { z-index: 1; }
.wv-tapsound, .wv-hot { z-index: 3; }

/* Only if the browser refuses sound on the first tap: the video plays muted with captions and offers sound. */
.wv-tapsound { position: absolute; top: var(--space-4); left: 50%; transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: var(--radius-full);
  background: #fff; color: var(--navy-ink); font: 600 14px/20px var(--font-sans); cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 45, 63, 0.35); }
.wv-tapsound[hidden] { display: none; }
.wv-tapsound:focus-visible { outline: 3px solid var(--accent-on-deep); outline-offset: 3px; }

/* Captions from the browser's own player (CC). Close to the burned-in look: Porcelain text on a navy bar. */
.wv-video::cue { color: var(--porcelain); background: rgba(15, 45, 63, 0.88); font-family: var(--font-sans); }

/* Clickable areas over the end frame's button and links (measured on the 1920×1080 frame). Invisible until focused. */
.wv-hot { position: absolute; display: block; border-radius: var(--radius-sm); }
.wv-hot[hidden] { display: none; }
.wv-hot--audit    { left: calc(606 / 1920 * 100%);  top: calc(436 / 1080 * 100%); width: calc(706 / 1920 * 100%); height: calc(170 / 1080 * 100%); }
.wv-hot--magazine { left: calc(356 / 1920 * 100%);  top: calc(652 / 1080 * 100%); width: calc(584 / 1920 * 100%); height: calc(144 / 1080 * 100%); }
.wv-hot--digital  { left: calc(1020 / 1920 * 100%); top: calc(652 / 1080 * 100%); width: calc(544 / 1920 * 100%); height: calc(144 / 1080 * 100%); }
.wv-hot:focus-visible { outline: 3px solid var(--accent-on-deep); outline-offset: 4px; }

/* Buttons under the video, always shown */
.wv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin: var(--space-6) auto 0; max-width: var(--content-max); }
.wv-btn { justify-content: center; }
.cs-btn--primary.wv-btn { padding: 18px var(--space-6); font-size: 14px; line-height: 18px; }
.cs-btn--on-deep.wv-btn { padding: 17px var(--space-6); }

/* Transcript and credit: centred under the buttons, credit on its own line below. */
.wv-meta { display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  margin: var(--space-6) auto 0; width: min(100%, var(--content-max)); text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.wv-meta details { width: 100%; }
.wv-meta summary { cursor: pointer; color: var(--accent-on-deep); font-weight: 600; list-style-position: inside; }
.wv-meta details[open] summary { margin-bottom: var(--space-3); }
.wv-transcript { max-width: var(--measure); margin: 0 auto; text-align: left; color: var(--on-deep); font-size: 16px; line-height: 26px; }
.wv-transcript p { margin: 0 0 var(--space-3); }
.wv-credit { white-space: nowrap; }

@media (max-width: 767px) {
  .wv-top { padding: var(--space-4) var(--space-4) 0; margin-bottom: var(--space-4); }
  .wv-main { padding: 0 0 var(--space-8); }
  .wv-player { width: 100%; }
  .wv-head { padding: 0 var(--space-4); margin-bottom: var(--space-4); text-align: left; }
  .wv-title { font-size: 28px; line-height: 34px; }
  .wv-sub { font-size: 16px; line-height: 25px; }
  .wv-actions { flex-direction: column; align-items: stretch; padding: 0 var(--space-4); }
  .wv-meta { padding: 0 var(--space-4); box-sizing: border-box; }
  .wv-start__disc { width: 72px; height: 72px; }
  .wv-start__disc svg { width: 30px; height: 30px; margin-left: 4px; }
  }
