/* ============================================================
   ndw.css  -  National Dance Week St. Louis
   Black and white like the logo, with one accent color.
   To try another accent, change --accent (and --accent-light) below.
   ============================================================ */
:root {
  --accent: #C8102E;          /* the red */
  --accent-dark: #9E0C24;
  --accent-light: #FF8A93;    /* the accent on a dark photo */
  --ink: #111111;
  --gray: #444444;
  --muted: #666666;
  --line: #DDDDDD;
  --soft: #F5F5F5;
  --head: 'Archivo', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --wide: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); font-weight: 900; text-transform: uppercase; line-height: 1; margin: 0; }
p { margin: 0 0 1em; }
.inner { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ---------- header ---------- */
.topline { height: 6px; background: var(--accent); }
.site-head .inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.site-head .logo img { height: 70px; width: auto; display: block; }
.site-nav { flex: 1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 28px; }
.site-nav a { font: 800 13px var(--head); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a.on { border-bottom-color: var(--accent); }
.navbtn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); font: 800 13px var(--head); letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
@media (max-width: 900px) {
  .navbtn { display: block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-head .inner { flex-wrap: wrap; }
  .site-head .logo img { height: 56px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 800 14px var(--head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 16px 26px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-align: center; }
.btn:hover { background: #333; color: #fff; }
.btn.red { background: var(--accent); border-color: var(--accent); }
.btn.red:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.white { background: #fff; border-color: #fff; color: var(--ink); }
.btn.white:hover { background: #eee; color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.line.onphoto { color: #fff; border-color: #fff; }
.btn.line.onphoto:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font: 800 13px var(--head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.bar { width: 56px; height: 4px; background: var(--accent); margin-bottom: 14px; }

/* ---------- photo hero ---------- */
.hero { position: relative; background: #111 center / cover no-repeat; color: #fff; min-height: 600px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.05) 80%); }
.hero .inner { position: relative; width: 100%; padding-top: 70px; padding-bottom: 70px; }
.hero .copy { max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.hero .kicker { font: 800 15px var(--head); letter-spacing: .5em; text-transform: uppercase; color: var(--accent-light); }
.hero h1 { font-size: clamp(52px, 8vw, 92px); line-height: .92; letter-spacing: -.01em; }
.hero p { font-size: 20px; color: #E6E6E6; margin: 0; }
.hero .when { display: flex; flex-wrap: wrap; }
.hero .when span { padding: 14px 20px; font: 800 20px var(--head); letter-spacing: .06em; text-transform: uppercase; }
.hero .when .date { background: var(--accent); font-weight: 900; }
.hero .when .where { background: rgba(255,255,255,.12); }
.hero.short { min-height: 300px; }
.hero.short h1 { font-size: clamp(44px, 6vw, 72px); }
.hero.short .kicker { font-size: 14px; letter-spacing: .4em; }
.hero { position: relative; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
  z-index: 1;
}
.hero .hero-content { position: relative; z-index: 2; } /* whatever wraps the headline/date/button */
@media (max-width: 700px) { .hero { min-height: 520px; } .hero::before { background: rgba(0,0,0,.6); } .hero p { font-size: 18px; } }

/* ---------- the announcement band ---------- */
.announce { background: var(--accent); color: #fff; }
.announce + .announce { border-top: 1px solid rgba(255,255,255,.35); }
.announce .inner { display: flex; align-items: center; gap: 32px; padding-top: 30px; padding-bottom: 30px; }
.announce .tag { flex: none; font: 900 14px var(--head); letter-spacing: .3em; text-transform: uppercase; border: 2px solid #fff; padding: 8px 12px; }
.announce .what { flex: 1; }
.announce h2 { font-size: 30px; letter-spacing: .02em; }
.announce p { margin: 6px 0 0; color: #fff; }
.announce a.btn { flex: none; }
@media (max-width: 800px) { .announce .inner { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section h2 { font-size: 36px; }
.section.alt { background: var(--soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: 1fr; gap: 32px; } }
.lead { font-size: 18px; color: #333; }
.prose p, .prose li { color: #333; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.note { font-size: 14px; color: var(--muted); }

/* photo strips and galleries */
.photostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photostrip a, .gallery a { display: block; overflow: hidden; background: var(--soft); }
.photostrip img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .3s; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .3s; }
.photostrip a:hover img, .gallery a:hover img { transform: scale(1.04); }
.ph { background: repeating-linear-gradient(135deg, #ECECEC 0 14px, #E4E4E4 14px 28px); color: #555; display: flex; align-items: center; justify-content: center; text-align: center; font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; min-height: 190px; }

/* the facts strip (The Day) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.cap { font: 800 12px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fact { font: 900 22px var(--head); text-transform: uppercase; margin-top: 6px; line-height: 1.15; }
.fact.red { color: var(--accent); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(2) { border-right: 0; } .facts > div { border-bottom: 1px solid var(--line); } }

/* the companies list */
.companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.companies li { padding: 14px 0; border-bottom: 1px solid #E2E2E2; }
.companies .nm { font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: baseline; line-height: 1.35; }
.companies .site { font-size: 14px; color: #555; word-break: break-all; }
.star { width: 14px; height: 14px; flex: none; fill: var(--accent); }
@media (max-width: 900px) { .companies { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .companies { grid-template-columns: 1fr; } }

/* sponsors */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.sponsors .sp { border: 1px solid var(--line); min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; font-weight: 600; }
.sponsors .sp img { max-height: 90px; width: auto; }

/* ---------- forms ---------- */
.formwrap { max-width: 880px; margin: 0 auto; padding: 44px 24px 70px; }
.formwrap h1 { font-size: clamp(40px, 6vw, 60px); line-height: .95; }
.kick { font: 800 14px var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.steps { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 8px; font: 800 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.steps li::before { content: ""; height: 6px; background: #E2E2E2; }
.steps li.done::before, .steps li.now::before { background: var(--accent); }
.steps li.now { color: var(--ink); }
@media (max-width: 600px) { .steps li span { display: none; } }
.card { border: 2px solid var(--ink); padding: 34px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 600px) { .card { padding: 22px 18px; } }
.step { display: flex; flex-direction: column; gap: 20px; }
.step[hidden] { display: none; }
.step h2 { font-size: 30px; }
.fl { display: flex; flex-direction: column; gap: 6px; font: 600 14px var(--body); }
.fl input, .fl select, .fl textarea { font: 400 16px var(--body); padding: 13px 14px; border: 2px solid #CFCFCF; border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: none; border-color: var(--ink); }
.fl .req { color: var(--accent); }
.fl.bad input, .fl.bad select { border-color: var(--accent); }
.hint { font: 400 13px var(--body); color: #555; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .g2, .g3 { grid-template-columns: 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice label { display: flex; gap: 10px; align-items: center; border: 2px solid #CFCFCF; padding: 12px 16px; font-weight: 600; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.infobox { border-left: 4px solid var(--accent); padding: 12px 16px; font-size: 14px; line-height: 1.55; background: var(--soft); }
.waiver { background: var(--soft); padding: 16px; font-size: 13px; line-height: 1.6; color: #333; max-height: 170px; overflow: auto; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts label { cursor: pointer; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: inline-block; font: 800 15px var(--head); letter-spacing: .06em; padding: 12px 18px; border: 2px solid var(--ink); }
.amounts input:checked + span { background: var(--ink); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.formnav { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #E2E2E2; }
.formnav .btn[hidden] { display: none; }
.msg { border: 2px solid var(--accent); padding: 14px 18px; font-weight: 600; }
.msg.ok { border-color: #1B7A3A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.classpick { display: flex; flex-direction: column; gap: 10px; }
.classpick label { border: 2px solid #CFCFCF; padding: 16px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.classpick label:has(input:checked) { border-color: var(--ink); }
.classpick input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.classpick b { font-size: 17px; display: block; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #fff; margin-top: 0; }
.site-foot .inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.site-foot b { font: 900 22px var(--head); text-transform: uppercase; display: block; margin-bottom: 6px; }
.site-foot .small { font-size: 14px; color: #CFCFCF; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--accent-light); }

/* ---------- year bar (Past Years, Photos) ---------- */
.yearbar { background: #111; border-top: 1px solid #2a2a2a; position: sticky; top: 0; z-index: 5; }
.yearbar .inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 0; padding-bottom: 0; }
.yearbar .inner::-webkit-scrollbar { display: none; }
.yearbar a { flex: 0 0 auto; color: #bbb; text-decoration: none; font: 800 15px var(--head); letter-spacing: .1em; padding: 16px 14px; border-bottom: 3px solid transparent; }
.yearbar a:hover { color: #fff; }
.yearbar a.on { color: #fff; border-bottom-color: var(--accent); }
.hero .sub { font-size: 18px; color: #ddd; }
.hero .sub b { color: #fff; }
.cap.red { color: var(--accent); }

/* ---------- Past Years: one row per year ---------- */
.pyr { display: grid; grid-template-columns: 150px minmax(0, 380px) minmax(0, 1fr); gap: 36px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.pyr:first-of-type { border-top: 2px solid var(--ink); }
.pyr-year { font: 900 64px/0.9 var(--head); color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: -.02em; }
.pyr-pic img, .pyr-pic .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); min-height: 0; }
.pyr-body h2 { font-size: 30px; margin: 8px 0 14px; line-height: 1.05; }
.pyr-body p { margin: 0 0 20px; color: #333; }
.pyr-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.pyr-links .btn { padding: 14px 20px; }
.pyr-links .n { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: .04em; padding: 2px 8px; margin-left: 8px; }
@media (max-width: 960px) {
  .pyr { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .pyr-year { grid-column: 1 / -1; font-size: 52px; }
}
@media (max-width: 600px) {
  .pyr { grid-template-columns: 1fr; padding: 32px 0; }
  .pyr-year { font-size: 44px; }
}

/* ---------- Photos: rows of pictures at their own shape (nothing cropped) ---------- */
.photohead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.jg { display: flex; flex-wrap: wrap; gap: 8px; }
.jg a { display: block; flex-grow: calc(var(--r, 1.5) * 100); flex-basis: calc(var(--r, 1.5) * 260px); overflow: hidden; background: var(--soft); }
.jg img { display: block; width: 100%; aspect-ratio: var(--r, 1.5); object-fit: cover; transition: transform .4s, opacity .2s; }
.jg a:hover img { transform: scale(1.03); }
.jg::after { content: ""; flex-grow: 1000000; }   /* keeps the last row from stretching */
@media (max-width: 600px) { .jg { gap: 4px; } .jg a { flex-basis: calc(var(--r, 1.5) * 150px); } }
.yearnav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.yearnav .btn { padding: 12px 20px; }

/* the full-screen viewer */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 94vw; max-height: calc(100vh - 110px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 12px 16px 12px 22px; color: #ccc; font: 700 14px var(--head); letter-spacing: .1em; }
.lb-credit { flex: 1; font-weight: 400; letter-spacing: 0; font-family: var(--body); color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
#lbclose { font-size: 40px; line-height: 1; padding: 0 6px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 64px; padding: 10px 18px; opacity: .8; }
.lb-arrow:hover { opacity: 1; }
.lb-arrow.prev { left: 4px; } .lb-arrow.next { right: 4px; }
@media (max-width: 600px) { .lb-arrow { font-size: 44px; padding: 6px 8px; bottom: 14px; top: auto; transform: none; } }

/* ---------- About: committee band ---------- */
.section.soft { background: var(--soft); }
.cmband { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.cmband .prose { max-width: 720px; }

/* ---------- Committee page ---------- */
.cmyear { font-size: 26px; margin: 40px 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cmfeat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.cmfeat h3 { font-size: 30px; margin: 0 0 6px; }
.cmpic { aspect-ratio: 1; background: #111; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cmpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmini { color: #fff; font: 900 64px var(--head); letter-spacing: .02em; }
.cmpic.sm { width: 64px; flex: 0 0 64px; }
.cmpic.sm .cmini { font-size: 22px; }
.cmrole { display: block; color: var(--accent); font: 700 13px var(--head); letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 12px; }
.cmcard .cmrole { margin: 3px 0 0; font-size: 11px; }
.cmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: 12px; }
.cmcard { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmcard b { display: block; font-size: 18px; }
.cmorg { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.cmback { margin-top: 40px; }
@media (max-width: 700px) {
  .cmfeat { grid-template-columns: 1fr; gap: 20px; }
  .cmfeat .cmpic { max-width: 260px; }
}

/* ---------- Sponsors: levels ---------- */
.tierhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin: 48px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.tierhead h3 { font-size: 24px; margin: 0; }
.tierhead > span { font: 800 15px var(--head); letter-spacing: .1em; color: var(--accent); }
.stars { color: var(--accent); letter-spacing: .05em; margin-right: 6px; font-size: .9em; }
.sponsors .sp { position: relative; flex-direction: column; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.sp:hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.sponsors .sp img { max-width: 100%; max-height: 90px; object-fit: contain; }
.splabel { font: 700 11px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.spname { font: 800 18px var(--head); line-height: 1.2; }
.spnames { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.spnames li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.spnames a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.section.dark { background: #0a0a0a; color: #fff; }
.section.dark h2 { color: #fff; }
.section.dark .prose p { color: #ccc; }
.section.dark .prose a { color: #fff; }
.giveamts { display: flex; flex-wrap: wrap; gap: 10px; }
.giveamts .btn { min-width: 88px; justify-content: center; text-align: center; }

/* sponsor logo cards (as on the old site: a big card for the presenting sponsor, then 3 across) */
.sponsors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sponsors .sp { min-height: 190px; padding: 22px; border: 1px solid #eee; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.sponsors .sp img { max-height: 130px; max-width: 92%; }
.sponsors .sp.top { grid-column: 1 / -1; min-height: 260px; }
.sponsors .sp.top img { max-height: 200px; max-width: 80%; }
a.sp:hover { border-color: #ddd; box-shadow: 0 10px 26px rgba(0,0,0,.16); transform: translateY(-2px); }
.sponsors .sp { transition: box-shadow .2s, transform .2s; }
@media (max-width: 700px) {
  .sponsors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sponsors .sp { min-height: 130px; padding: 14px; }
  .sponsors .sp img { max-height: 90px; }
  .sponsors .sp.top { min-height: 170px; }
  .sponsors .sp.top img { max-height: 130px; }
}

/* ---------- home: the slideshow behind the headline ---------- */
.hero { overflow: hidden; }
.hero .slides { position: absolute; inset: 0; z-index: 0; background: #111; }
.hero .slide { position: absolute; inset: 0; background: #111 center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide.zoom { animation: ndwZoom calc(var(--each, 6500ms) + 1800ms) ease-out forwards; }
.hero .slide.zoom.alt { animation-name: ndwZoomAlt; }
@keyframes ndwZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes ndwZoomAlt { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }
.hero.calm .slide.zoom { animation: none; }
.hero::before { z-index: 1; }
.hero .inner { z-index: 2; }
/* thin bars at the bottom right: which photo, and how long until the next */
.slidebars { position: absolute; z-index: 3; right: max(24px, calc((100% - var(--wide)) / 2 + 24px)); bottom: 26px; display: flex; gap: 6px; }
.slidebars button { width: 38px; height: 22px; padding: 9px 0; background: none; border: 0; cursor: pointer; }
.slidebars button::before { content: ""; display: block; height: 3px; background: rgba(255,255,255,.35); }
.slidebars i { display: block; height: 3px; margin-top: -3px; width: 0; background: #fff; }
.slidebars button.done i { width: 100%; }
.slidebars button.on i { background: var(--accent); animation: ndwFill var(--each, 6500ms) linear forwards; }
@keyframes ndwFill { from { width: 0; } to { width: 100%; } }
@media (max-width: 700px) { .slidebars { right: 16px; bottom: 14px; } .slidebars button { width: 26px; } }
.photostrip img { object-position: center 30%; }

/* ---------- photo behind the heading on the inside pages ---------- */
.hero.hasbg { overflow: hidden; background-color: #0a0a0a; }
.hero .herobg { position: absolute; inset: -40px; z-index: 0; background: #111 center 35% / cover no-repeat;
  filter: blur(7px) saturate(.85) brightness(.9); transform: scale(1.06); animation: ndwBgIn 1.4s ease-out both; }
.hero .herobg.sharp { inset: 0; filter: saturate(.95); transform: none; }
@keyframes ndwBgIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; } }
.hero .herobg.sharp { animation-name: ndwBgInSharp; }
@keyframes ndwBgInSharp { from { opacity: 0; } to { opacity: 1; } }
.hero.hasbg::before { z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.66) 45%, rgba(0,0,0,.3) 100%); }
.hero.hasbg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(200,16,46,.30) 0%, rgba(200,16,46,0) 55%); }
.hero.hasbg .inner { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero .herobg { animation: none; } }
@media (max-width: 700px) { .hero.hasbg::before { background: rgba(0,0,0,.66); } }
