/* Shared promo page (N48 Task 7). Dark page: visitors arrive from affiliate links, mostly on phones and often at
   night. Brand colour per site: --accent / --on-accent on <html> (lib.php). Display face: Archivo, pinned to
   semi-condensed and weights 600-900 (fonts/, SIL OFL, Archivo-OFL.txt); body text: the system face. */
@font-face {
  font-family: "Archivo SC";
  src: url("fonts/archivo-sc-600-900.woff2?v=12") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0f13;
  --raise: #17181e;
  --line: #2a2b34;
  --fg: #ecedf2;
  --soft: #c4c6d1;
  --muted: #9a9cab;
  --radius: 8px;
  --gap: 6px;
  --display: "Archivo SC", "Arial Narrow", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  color-scheme: dark;
  accent-color: var(--accent);
  scrollbar-color: var(--line) var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header: the brand, and the way in ---------- */
.top { border-top: 4px solid var(--accent); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 46px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font: 800 21px/1.05 var(--display); letter-spacing: .005em; }
.brand-text small {
  color: var(--muted); font-size: 13.5px; line-height: 1.3; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* the tour menu (Videos / Models / Bonus sites), through the NATS link like the tour's own menu */
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  padding: 10px 12px; border-radius: 6px; color: var(--soft); text-decoration: none;
  font: 700 14.5px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
}
.menu a:hover { color: var(--fg); background: var(--raise); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius);
  font: 800 16px/1.1 var(--display); letter-spacing: .045em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / .85);
  transition: transform .15s cubic-bezier(.2, .8, .2, 1), filter .15s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; flex: none; }
.btn-big { min-height: 56px; padding: 14px 32px; font-size: 19px; }

/* ---------- title block ---------- */
.intro { padding: var(--space-4) 0 var(--space-3); max-width: 900px; }
h1 {
  margin: 0;
  font: 900 clamp(30px, 2.2vw + 20px, 52px)/1.04 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.meta { margin-top: 12px; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.meta strong { color: var(--fg); font-weight: 600; }
.meta .model {
  color: var(--fg); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
}
.meta .model:hover { color: var(--accent); }

/* the other galleries of this scene */
.scene { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.scene span { color: var(--muted); font-size: 15px; margin-right: 4px; }
.scene a {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  font: 700 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg);
  transition: border-color .15s, background .15s;
}
.scene a:hover { border-color: var(--accent); background: var(--raise); }
.meta > span { white-space: nowrap; }
.meta > i { font-style: normal; }
.lead { margin-top: 14px; color: var(--soft); font-size: 18px; max-width: 62ch; }
.intro .btn-big { margin-top: var(--space-3); }

/* ---------- gallery: justified rows (nucosplay layout); width/height on each img reserve the space ---------- */
.gal { display: flex; flex-wrap: wrap; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.gal::after { content: ""; flex-grow: 999; }
.gal li { height: clamp(170px, 24vw, 300px); flex-grow: 1; }
.gal a { display: block; height: 100%; border-radius: 6px; overflow: hidden; background: var(--raise); }
.gal img {
  display: block; height: 100%; width: auto; min-width: 100%; max-width: none;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s;
}
.gal a:hover img { transform: scale(1.035); filter: brightness(1.06); }

/* ---------- player ---------- */
.player {
  position: relative; width: 100%; background: #000;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / .9);
}
.player > .vp, .player > .video-js { position: absolute; inset: 0; width: 100%; height: 100%; }
.player > .vp video { width: 100%; height: 100%; }
.player .vp { --vp-accent: var(--accent); }
.player .vp-quality { display: none; }   /* one clip per page: nothing to switch (vp builds the menu anyway) */
.player .video-js .vjs-big-play-button { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 80%, black); }
.player .video-js .vjs-play-progress { background: var(--accent); }

/* end of the clip: the join box over the player */
.end {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; overflow: auto;
  background: rgb(8 8 11 / .9); color: var(--fg); text-align: center; padding: var(--space-2);
}
.end[hidden] { display: none; }
.end-in { max-width: 460px; }
.end-h { font: 900 clamp(22px, 3vw, 34px)/1.05 var(--display); margin-bottom: 10px; text-wrap: balance; }
.end p { margin: 6px 0; color: var(--soft); }
.end ul { text-align: left; display: inline-block; margin: 8px 0 18px; padding-left: 20px; color: var(--soft); }
.end li::marker { color: var(--accent); }
.end-replay {
  margin-top: 6px; background: none; border: 1px solid var(--line); color: var(--soft);
  border-radius: var(--radius); padding: 8px 18px; font: inherit; font-size: 15px; cursor: pointer;
}
.end-replay:hover { border-color: var(--muted); color: var(--fg); }

/* ---------- join band ---------- */
.band {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4);
  background: var(--raise); border-radius: var(--radius);
}
.band-h { font: 900 clamp(24px, 1.4vw + 16px, 34px)/1.05 var(--display); letter-spacing: -.005em; }
.band-sub { margin-top: 6px; color: var(--soft); max-width: 52ch; }
.band .btn-big { flex: none; }
.points {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; max-width: 760px;
}
.points li { display: flex; align-items: flex-start; gap: 10px; color: var(--fg); font-size: 16px; line-height: 1.4; }
.points svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }

/* ---------- home grid, more with the model, the network: card rows ---------- */
.more, .net { margin-top: var(--space-5); }
.latest h2, .more h2, .net h2 { margin: 0 0 var(--space-3); font: 800 clamp(22px, 1vw + 16px, 30px)/1.1 var(--display); text-wrap: balance; }
.latest ul, .more ul, .net ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3) var(--space-2); }
.more ul { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.net ul { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.latest a, .more a, .net a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.latest img, .latest .noimg, .more img, .more .noimg, .net img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 25%;
  border-radius: 6px; background: var(--raise); margin-bottom: 6px;
  transition: filter .2s;
}
.net img { aspect-ratio: 480 / 296; }
.latest a:hover img, .more a:hover img, .net a:hover img { filter: brightness(1.12); }
.more-t {
  font-weight: 600; line-height: 1.35; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest a:hover .more-t, .more a:hover .more-t, .net a:hover .net-n { color: var(--accent); }
.more-m, .net-b { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.net-n { font: 800 19px/1.15 var(--display); color: var(--fg); }
.latest { margin: var(--space-2) 0 var(--space-5); }
.latest ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pager {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-4);
  color: var(--muted); font-size: 15px;
}
.pager a {
  display: inline-flex; flex-direction: row; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--fg); font-weight: 600; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-3);
  margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line);
}
.about h2 { margin: 0; font: 800 24px/1.1 var(--display); }
.about p { color: var(--soft); max-width: 66ch; }

/* ---------- footer ---------- */
.foot {
  margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px var(--space-3); }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--fg); }

/* ---------- lightbox ---------- */
#fhg-lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 64px 72px 96px; border: 0; background: transparent; color: var(--fg);
}
#fhg-lb:not([open]) { display: none; }      /* explicit: never rely on the UA rule for a closed dialog */
#fhg-lb[open] { display: grid; place-items: center; }
#fhg-lb:modal { overscroll-behavior: contain; }
#fhg-lb::backdrop { background: rgb(6 6 9 / .96); overflow: hidden; overscroll-behavior: contain; }
.lb-fig { margin: 0; display: grid; place-items: center; min-width: 0; min-height: 0; }
.lb-img {
  max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 6px;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.lb-count {
  position: absolute; top: 20px; left: 0; right: 0; text-align: center;
  font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums;
}
.lb-nav, .lb-close {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .1); color: var(--fg);
  transition: background .15s;
}
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .22); }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-close { top: 10px; right: 14px; }
.lb-cta { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; white-space: nowrap; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top .wrap { flex-wrap: wrap; }
  .menu { order: 3; width: 100%; margin: 0 0 8px -12px; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 720px) {
  .intro { padding: var(--space-3) 0 var(--space-2); }
  .points { grid-template-columns: 1fr; }
  .latest ul, .more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) 10px; }
  .net ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) 10px; }
  .more, .net { margin-top: var(--space-4); }
  .latest { margin: 8px 0 var(--space-4); }
  .pager { gap: 10px; }
  .pager a { padding: 0 14px; }
  .net-n { font-size: 17px; }
  .gal { --gap: 4px; }
  .gal li { height: 44vw; }
  .band { flex-direction: column; align-items: stretch; padding: var(--space-3) var(--space-2); }
  .band .btn-big { width: 100%; }
  .about { grid-template-columns: 1fr; gap: 10px; margin-top: var(--space-4); }
  .foot { margin-top: var(--space-4); }
  #fhg-lb { padding: 56px 8px 96px; }
  .lb-nav { top: auto; bottom: 26px; translate: none; width: 44px; height: 44px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-cta { bottom: 24px; }
}
@media (max-width: 420px) {
  .top .wrap { min-height: 64px; }
  .brand img { height: 40px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { display: none; }
  .btn-sm { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .gal img, .scene a, .latest img, .more img, .net img, .pager a { transition: none; }
  .btn:hover, .gal a:hover img { transform: none; }
}
