/* Windowlight Stories: landing site. Colours come from channel/brand.json (injected as :root vars). */
:root {
  --bg: #fbf6ef;
  --paper: #ffffff;
  --ink: #2b3040;
  --ink-soft: #5d6474;
  --line: #ebe1d4;
  --accent: #b5734f;
  --accent-ink: #ffffff;
  --cream: #f6e3cf;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── nav ── */
.nav { position: absolute; inset: 0 0 auto; z-index: 3; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.solid { position: static; border-bottom: 1px solid var(--line); background: var(--bg); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mark { width: 26px; height: 36px; }
.logo .mark svg { width: 100%; height: 100%; display: block; }
.logo .name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 420px) { .logo .name { font-size: 17px; } .logo .mark { width: 22px; height: 30px; } .nav-links .btn-small { padding: 8px 12px; } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--accent); }
@media (max-width: 640px) { .nav-links .text-link { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #a3653f; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn .yt { width: 18px; height: 18px; }

/* ── hero ── */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; color: var(--ink); background: #e9eef0; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* soft halo behind the headline */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 36% at 50% 27%, rgba(255,255,255,.6), rgba(255,255,255,0) 72%);
  transition: opacity 1s ease;
}
.hero.is-dark { color: #f7f4ff; }
.hero.is-dark::after { background: radial-gradient(ellipse 62% 36% at 50% 27%, rgba(20,22,60,.45), rgba(20,22,60,0) 72%); }
.hero, .hero .nav { transition: color 1.2s ease; }
.hero-copy {
  position: absolute; z-index: 2; left: 0; right: 0; top: max(96px, 12%); text-align: center; padding: 0 var(--gutter);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; opacity: .85; padding-left: .42em; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.9vw, 66px); line-height: 1.06;
  letter-spacing: -.02em; margin: 16px auto 0; max-width: 17em;
}
.hero .lede { margin: 16px auto 0; max-width: 34em; font-size: clamp(16px, 1.6vw, 19px); opacity: .9; }
.hero .cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .credit {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 18px; font-size: 12px; opacity: .7;
  display: flex; align-items: center; gap: 8px;
}
.hero .credit .dot { width: 7px; height: 7px; border-radius: 50%; background: #e2564b; box-shadow: 0 0 0 4px rgba(226,86,75,.18); }
@media (max-width: 640px) { .hero-copy { top: 88px; } .hero .credit { left: var(--gutter); right: auto; } }

/* ── sections ── */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.015em; margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.media { position: relative; border-radius: 18px; overflow: hidden; background: var(--cream); box-shadow: 0 24px 60px rgba(43,48,64,.14); aspect-ratio: 16 / 9; }
.media img, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media .soon {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; color: var(--ink);
}
.featured h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; margin-top: 12px; }
.meta { margin-top: 8px; font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; }
.featured p.summary { margin-top: 18px; font-size: 18px; }
.actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.how { background: var(--paper); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 600; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin-top: 6px; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(43,48,64,.12); }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

.subscribe { text-align: center; }
.subscribe .mark { width: 44px; height: 60px; margin: 0 auto 18px; }
.subscribe .mark svg { width: 100%; height: 100%; display: block; }
.subscribe p { margin: 14px auto 28px; max-width: 32em; color: var(--ink-soft); }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; }

/* ── story page ── */
.story-head { padding: clamp(48px, 7vw, 88px) 0 32px; text-align: center; }
.story-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.02em; margin-top: 14px; }
.story-head .meta { font-size: 15px; margin-top: 12px; }
.story-video { margin: 0 auto; }
/* editorial: the opening line large on the left, the rest on the right, aligned with the video */
.story-body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px);
  padding: clamp(44px, 6vw, 80px) 0 8px; align-items: start;
}
.story-body .lead {
  font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.7vw, 34px); line-height: 1.3; letter-spacing: -.01em;
  padding-top: 4px; border-top: 2px solid var(--accent); padding-top: 22px;
}
.story-body .rest p { font-size: 18.5px; line-height: 1.75; color: #3c4252; }
.story-body .rest p + p { margin-top: 1.1em; }
@media (max-width: 760px) { .story-body { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.shot figure { margin: 0; }
.shot img { border-radius: 12px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--cream); }
.shot figcaption { margin-top: 12px; }
.shot .n { font-family: var(--serif); color: var(--accent); font-weight: 600; font-size: 14px; }
.shot h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-top: 2px; }
.shot p { margin-top: 4px; color: var(--ink-soft); font-size: 15px; }
.credits { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); display: grid; gap: 6px; }
.back { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; color: var(--accent); }

/* ── lightbox ── */
.shot-link { display: block; text-decoration: none; color: inherit; cursor: zoom-in; }
.shot-link img { transition: transform .25s ease, box-shadow .25s ease; }
.shot-link:hover img, .shot-link:focus-visible img { transform: scale(1.015); box-shadow: 0 16px 36px rgba(43,48,64,.18); }
.shot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 14px; }
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  background: rgba(20, 22, 35, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease; padding: 24px 0;
}
.lightbox.on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lb-img {
  max-width: min(100%, 1600px); max-height: calc(100vh - 190px); width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); opacity: 0; transform: scale(.985); transition: opacity .25s ease, transform .25s ease;
}
.lb-img.ready { opacity: 1; transform: none; }
.lb-cap { margin-top: 18px; text-align: center; color: #f3ede4; max-width: 46em; padding: 0 12px; display: grid; gap: 2px; }
.lb-n { font-family: var(--serif); color: #e2a77f; font-weight: 600; font-size: 14px; }
.lb-title { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.lb-text { color: #c9c3ba; font-size: 15px; }
.lb-count { position: absolute; left: 24px; top: 20px; color: #bdb6ab; font-size: 13px; letter-spacing: .12em; }
.lightbox button {
  border: 0; cursor: pointer; color: #f3ede4; background: rgba(255,255,255,.08); border-radius: 50%;
  width: 48px; height: 48px; font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background .15s ease;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.18); outline: none; }
.lb-prev, .lb-next { justify-self: center; font-size: 34px; padding-bottom: 4px; }
.lb-close { position: absolute; right: 20px; top: 14px; font-size: 18px; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 56px 12px 24px; }
  .lb-prev, .lb-next { position: absolute; bottom: 22px; }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }
  .lb-img { max-height: calc(100vh - 260px); }
  .lb-cap { margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-img, .shot-link img { transition: none; } }

/* ── follow along ── */
.video-note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.play {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums; transition: background .15s ease, color .15s ease;
}
.play:hover, .play:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.lb-play {
  justify-self: center; margin-top: 12px; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.lb-play:hover, .lb-play:focus-visible { background: #a3653f; outline: none; }

/* ── about ── */
.story-head .lede { margin: 18px auto 0; max-width: 36em; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); }
.still { margin: 8px 0 0; }
.still figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.still figcaption a { color: var(--accent); font-weight: 600; text-decoration: none; }
.about .story-body { padding-bottom: clamp(64px, 9vw, 112px); }
.prose { max-width: 38em; margin-bottom: 0; }
.prose p:not(.kicker) { font-size: 18px; color: #3c4252; }
.about .subscribe { padding-top: 0; }
