/* Gunkata website. Colours and cuts come from branding/GUIDE.md: 45-degree corner cuts, right-hand ends leaning
   1 in 10, cyan for the brand, the red-orange diamond for the beat and nothing else.
   Media rule: every video (and every picture in a layout) sits alone in a .media box that sets its size; the media
   fills that box absolutely. Browser extensions that add a badge beside a video, or wrap it, cannot move the layout.
   Grid items that hold media are placed by named areas, never by source order or child index. */
:root {
  --ink: #0B0D12; --tile: #12161F; --tile-2: #1A1F2B; --line: #2A3242;
  --cyan: #2BE4FF; --cyan-side: #14B4DA; --cyan-shadow: #0C86AA; --beat: #FF5A24;
  --bone: #F3F7FA; --text: #C5D0DA; --muted: #9AA6B5;
  --cut: 14px;
  --lane: 34px;                 /* where the lane runs, from the left edge of the page column */
  --gutter: 84px;               /* text starts this far in, clear of the lane */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, video, svg { max-width: 100%; }
img, video { display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 70ch; }
strong { color: var(--bone); font-weight: 650; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 15px; color: var(--muted); }
.lede { font-size: 20px; line-height: 1.55; }
.cutbox { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* lettering: headings are the brand's own capitals, drawn as paths */
.lt { display: block; height: 1em; width: auto; color: var(--bone); }
.lt .beat { fill: var(--beat); }

/* the media box */
.media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); }
.media > video, .media > img, .media > picture, .media > a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* an extension that wraps the video in a box of its own: let that box fill ours too */
.media > :not(video):not(img):not(a):has(video) { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.media > :not(video):not(img):not(a):has(video) > video { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.top .brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- hero: the trailer, edge to edge */
.hero { position: relative; }
.trailer { position: relative; max-width: 1680px; margin: 0 auto; }
.trailer .media { aspect-ratio: auto; height: min(78vh, 56.25vw); min-height: 220px; background: #000; }
.trailer .media video { object-fit: cover; }
.trailer-media { position: relative; }
.yt-fallback { display: block; }
.yt-fallback img { width: 100%; height: min(78vh, 56.25vw); object-fit: cover; }
.yt-box { position: absolute !important; inset: 0; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 13, 18, 0), rgba(11, 13, 18, .72) 62%, var(--ink)); }
.trailer-controls { position: absolute; right: 24px; top: 20px; z-index: 3; display: flex; gap: 10px; }
.tc { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 15px; font-weight: 650; line-height: 1;
  color: var(--bone); background: rgba(11, 13, 18, .78); border: 2px solid rgba(243, 247, 250, .55); padding: 10px 14px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-height: 44px; }
.tc:hover { border-color: var(--cyan); color: var(--cyan); }
.tc[hidden] { display: none; }
.tc .i-play, .tc.paused .i-pause, .tc .i-on, .tc.on .i-off { display: none; }
.tc.paused .i-play, .tc.on .i-on { display: block; }
.tc.sound.on { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.hero-text { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "pitch get"; gap: 40px; align-items: end; margin-top: -170px; }
.pitch { grid-area: pitch; padding-left: var(--gutter); position: relative; }
.get { grid-area: get; }
.hero h1 { margin: 0 0 22px; font-size: 62px; line-height: 1; position: relative; }
.hero h1 .lt { height: auto; width: min(100%, 520px); filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .6)); }
.hero h1::before { content: ""; position: absolute; left: calc(var(--lane) - var(--gutter) - 10px); top: 6px; width: 22px; height: 22px;
  background: var(--cyan); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.hero .lede { color: var(--bone); max-width: 46ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 14px; }
.btn { display: inline-block; text-decoration: none; font-weight: 650; font-size: 17px; line-height: 1; color: var(--ink); background: var(--cyan);
  padding: 17px 26px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.btn:hover { background: var(--bone); color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--bone); outline-offset: -6px; }
.btn.ghost { background: var(--cyan-shadow); padding: 2px; color: var(--bone); }
.btn.ghost span { display: block; background: var(--ink); padding: 15px 24px;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px)); }
.btn.ghost:hover { background: var(--cyan); color: var(--cyan); }
.facts-band { list-style: none; margin-top: 40px; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-band li { padding: 16px 18px 16px 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.facts-band li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts-band strong { display: block; }
.trailer-note { margin-top: 12px; }

/* ---------------------------------------------------------------- the lane and sections */
.lane { position: relative; }
.lane::before { content: ""; position: absolute; left: calc(28px + var(--lane)); top: 0; bottom: 0; width: 2px; background: var(--line); }
section { position: relative; }
.lane > section { padding: 92px 0 12px var(--gutter); }
h2 { margin: 0 0 26px; font-size: 30px; line-height: 1; position: relative; }
.lane > section > h2::before { content: ""; position: absolute; left: calc(var(--lane) - var(--gutter) - 10px); top: 4px; width: 22px; height: 22px;
  background: var(--beat); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
h3 { margin: 0 0 10px; color: var(--bone); font-size: 20px; font-weight: 650; line-height: 1.3; }

/* ---------------------------------------------------------------- the poster wall and its panels */
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; margin-top: 34px; }
.tile { min-width: 0; }
.poster { display: block; text-decoration: none; color: var(--text); cursor: pointer; }
.poster .frame { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--tile);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: transform .25s var(--ease), clip-path .25s var(--ease); }
.poster .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.poster .name { display: block; margin-top: 12px; color: var(--bone); font-weight: 650; font-size: 17px; line-height: 1.25; }
.poster .by { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.badge { position: absolute; left: 0; top: 14px; background: var(--cyan); color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1;
  padding: 6px 12px 6px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.poster:hover .frame img { filter: brightness(1.1); }
.poster:focus-visible { outline: none; }
.poster:focus-visible .frame { outline: 3px solid var(--cyan); outline-offset: -3px; }
/* the open poster: lifted, its corner cut, and a cyan bar under it pointing at its panel */
.poster[aria-expanded="true"] .frame { transform: translateY(-6px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); box-shadow: inset 0 0 0 3px var(--cyan); }
.poster[aria-expanded="true"] .frame::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--cyan); pointer-events: none; }
.poster[aria-expanded="true"] .name { color: var(--cyan); }
.wall.js .tile { position: relative; }
.wall.js .poster[aria-expanded="true"]::after { content: ""; position: absolute; left: calc(50% - 12px); bottom: -27px; width: 24px; height: 14px;
  background: var(--tile); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.panels { margin-top: 44px; display: grid; gap: 28px; }
.panel { min-width: 0; }
.panel-body { display: grid; gap: 14px 22px; padding: 28px 30px 30px; background: var(--tile);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "text clip clip" "text still still2";
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.p-text { grid-area: text; min-width: 0; }
.p-clip { grid-area: clip; margin: 0; min-width: 0; }
.p-still { grid-area: still; margin: 0; min-width: 0; }
.p-still2 { grid-area: still2; margin: 0; min-width: 0; }
.panel h3 { font-size: 28px; margin-bottom: 8px; }
.panel h3:focus { outline: none; }
.p-song { font-size: 15px; color: var(--muted); }
.p-line { color: var(--bone); }
.p-id { font-size: 16px; }
.facts { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px 34px; margin: 0 0 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--bone); font-weight: 650; }
.facts .f-wide { grid-column: 1 / -1; }
.facts .f-wide dd { font-weight: 400; }
.int::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--cyan); }
.int-moderate::before { background: var(--cyan-side); }
.int-light::before { background: var(--muted); }
.p-close { font: inherit; font-size: 15px; font-weight: 650; color: var(--bone); background: var(--tile-2); border: 2px solid var(--line); padding: 9px 16px; cursor: pointer; min-height: 44px; }
.p-close:hover { border-color: var(--cyan); color: var(--cyan); }
.p-close[hidden] { display: none; }
.after-wall { margin-top: 26px; }

/* With JavaScript the panels live in the wall: each closed one is hidden, the open one spans the row under its poster
   and grows from nothing (grid rows 0fr to 1fr), with its opacity. */
.wall.js .panel { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .42s var(--ease), opacity .3s var(--ease), margin .42s var(--ease); margin: -26px 0 0; }
.wall.js .panel[hidden] { display: none; }
.wall.js .panel.open { grid-template-rows: 1fr; opacity: 1; margin: 0; }
.wall.js .panel-in { overflow: hidden; min-height: 0; }
.panels.moved { display: none; }

/* ---------------------------------------------------------------- weapons */
.guns { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.guns figure { margin: 0; }
.guns .media { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.guns figcaption { margin-top: 12px; }
.w-name { color: var(--bone); font-weight: 700; font-size: 19px; }
.w-kind { color: var(--muted); font-size: 14px; margin-left: 6px; }
.w-line { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text); }

/* ---------------------------------------------------------------- how it works */
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--tile); padding: 22px 24px 10px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.steps li::before { content: counter(step); display: block; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--cyan);
  width: 30px; height: 30px; line-height: 30px; text-align: center; margin-bottom: 14px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.steps p { font-size: 16px; }
.kit { margin-top: 40px; max-width: 860px; }
ul.plain { margin: 0 0 1em; padding: 0; list-style: none; }
ul.plain li { padding-left: 26px; position: relative; margin-bottom: 8px; max-width: 72ch; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---------------------------------------------------------------- make your own */
.prompt { background: var(--tile); margin: 22px 0 22px; max-width: 880px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.prompt .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px 10px 24px; background: var(--tile-2); font-size: 15px; color: var(--muted); }
.prompt pre { margin: 0; padding: 22px 24px 26px; white-space: pre-wrap; word-break: break-word; font: 15.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--bone); }
.prompt pre b { color: var(--cyan); font-weight: 400; }
.copy { font: inherit; font-weight: 650; color: var(--ink); background: var(--cyan); border: 0; padding: 8px 16px; cursor: pointer; min-height: 40px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.copy:hover { background: var(--bone); }
.copy:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
ol.loop { margin: 0 0 30px; padding-left: 22px; max-width: 72ch; }
ol.loop li { margin-bottom: 8px; padding-left: 4px; }
ol.loop li::marker { color: var(--cyan); font-weight: 700; }
.guides-h { margin-top: 10px; }
.guides { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; max-width: 980px; }
.guides li { padding: 12px 0 12px; border-top: 1px solid var(--line); font-size: 16px; }
.guides a { font-weight: 650; }

/* ---------------------------------------------------------------- what to know */
.know { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 1040px; }
.know > div { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.know dt { color: var(--bone); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.know dd { margin: 0 0 10px; font-size: 16px; max-width: 60ch; }

/* ---------------------------------------------------------------- note, questions, footer */
.note { max-width: 760px; }
.note p { font-size: 19px; line-height: 1.65; color: var(--bone); }
.note .sign { color: var(--cyan); font-weight: 600; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; color: var(--bone); font-size: 19px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 12px; height: 12px; background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform .15s; }
.faq details[open] summary::after { transform: scale(1.3); }
.faq details p { margin-bottom: 18px; }
footer { margin-top: 90px; border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 60px; font-size: 15px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer img { height: 30px; width: auto; margin-bottom: 16px; }
footer .f-h { margin: 0 0 10px; color: var(--bone); font-size: 15px; font-weight: 650; line-height: 1.4; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer p { max-width: 54ch; }

/* ---------------------------------------------------------------- smaller windows */
@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --lane: 10px; --gutter: 38px; }
  .hero-text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "get"; gap: 26px; margin-top: -60px; }
  .pitch { padding-left: var(--gutter); }
  .get { padding-left: var(--gutter); }
  .facts-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-band li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-band li { border-top: 1px solid var(--line); }
  .facts-band li:nth-child(-n+2) { border-top: 0; }
  .steps, .guns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .panel-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "clip clip" "still still2"; }
  .know, .guides { grid-template-columns: minmax(0, 1fr); }
  footer .cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  :root { --lane: 4px; --gutter: 26px; }
  .lane::before { left: calc(18px + var(--lane)); }
  .lane > section { padding-top: 64px; }
  h2 { font-size: 22px; }
  .lane > section > h2::before, .hero h1::before { width: 16px; height: 16px; left: calc(var(--lane) - var(--gutter) - 7px); top: 3px; }
  .hero h1 { font-size: 40px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 15px; }
  .top nav .opt { display: none; }
  .top .brand img { height: 28px; }
  .trailer .media, .yt-fallback img { height: 56.25vw; min-height: 0; }
  .trailer::after { height: 30%; }
  .trailer-controls { right: 10px; top: auto; bottom: -56px; }
  .tc { padding: 9px 12px; font-size: 14px; }
  .hero-text { margin-top: 70px; }
  .lede { font-size: 18px; }
  .facts-band { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .facts-band li, .facts-band li + li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-band li:first-child { border-top: 0; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .poster .name { font-size: 14px; margin-top: 8px; }
  .poster .by { display: none; }
  .badge { font-size: 11px; padding: 4px 8px 4px 6px; top: 8px; }
  .wall.js .poster[aria-expanded="true"]::after { bottom: -19px; }
  .wall.js .panel { margin-top: -18px; }
  .panel-body { padding: 20px 16px 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "clip" "still" "still2"; }
  .panel h3 { font-size: 24px; }
  .guns { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; text-align: center; }
  .faq summary { font-size: 17px; }
  .note p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster .frame, .wall.js .panel, .faq summary::after { transition: none !important; }
}
