/* ==========================================================================
   Kinesis Tools
   Tokens first; change colours and type here.
   To use a self-hosted typeface, add an @font-face rule and put its name at
   the front of --font.
   ========================================================================== */

:root {
  --bg: #0c111d;
  --bg-raised: #121a2b;
  --bg-inset: #080c15;
  --line: #222c44;
  --line-strong: #35425f;
  --text: #e9edf7;
  --muted: #9ba7c2;
  --accent: #5b8cff;
  --accent-fill: #3463e6;
  --ok: #56d6a0;
  --warn: #f2b866;

  --font: "Segoe UI Variable Display", "Segoe UI Variable", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-small: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */

h1 {
  max-width: 16ch;
  text-wrap: balance;
  font-size: clamp(2.6rem, 5vw + 0.8rem, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
  line-height: 1.5;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.15s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: #2b56d2; }

.button--quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.button--quiet:hover { background: var(--bg-raised); border-color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 17, 29, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark { display: block; }

.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.975rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-raised); }

.nav-toggle {
  display: none;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 40rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.5rem; border-radius: var(--radius-small); font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(91, 140, 255, 0.14), transparent 70%),
    var(--bg);
}
.hero .lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2rem; }

/* Review round illustration */

.review {
  margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.review-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.review-title { font-weight: 600; }
.review-count { color: var(--muted); }

.review-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.viewer { padding: 1.1rem; border-right: 1px solid var(--line); }

.viewer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-small);
  overflow: hidden;
  background-color: var(--bg-inset);
}
/* Four "shots"; the picture cuts when the playhead crosses a clip boundary. */
.viewer-frame[data-shot="0"] {
  background-image:
    radial-gradient(circle at 70% 62%, #ffd9a0 0 5%, transparent 5.5%),
    linear-gradient(to top, #0b1020 0 30%, transparent 30%),
    linear-gradient(to top, #f08a5d, #5a4a8a 45%, #141c38);
}
.viewer-frame[data-shot="1"] {
  background-image:
    radial-gradient(ellipse at 38% 110%, #1b2440 0 46%, transparent 46.5%),
    radial-gradient(circle at 38% 42%, #c8d3ee 0 9%, transparent 9.5%),
    linear-gradient(120deg, #24335c, #3d5aa8);
}
.viewer-frame[data-shot="2"] {
  background-image:
    linear-gradient(to right, transparent 0 58%, #0a0f1c 58% 100%),
    repeating-linear-gradient(to right, #1a2644 0 9%, #213056 9% 18%),
    linear-gradient(#182341, #182341);
}
.viewer-frame[data-shot="3"] {
  background-image:
    linear-gradient(#e9edf7, #e9edf7),
    linear-gradient(#5b8cff, #5b8cff),
    linear-gradient(#0a0f1c, #0a0f1c);
  background-size: 34% 5%, 20% 2.5%, 100% 100%;
  background-position: 50% 46%, 50% 58%, 0 0;
  background-repeat: no-repeat;
}

.safe-area {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

.burnin {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.transport {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.play-toggle {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.play-toggle:hover { background: var(--line); }
.play-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.7rem;
  height: 0.8rem;
  background: var(--text);
  clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}
.play-toggle.is-playing::before {
  clip-path: polygon(0 0, 35% 0, 35% 100%, 65% 100%, 65% 0, 100% 0, 100% 100%, 0 100%);
}

.track {
  position: relative;
  flex: 1;
  display: flex;
  gap: 3px;
  height: 1.75rem;
}
.clip { border-radius: 4px; background: #1d2a4a; border: 1px solid #2b3a61; }

.pin {
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 2px var(--bg-raised);
}
.pin--resolved { background: var(--ok); }

.playhead {
  position: absolute;
  top: -8px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.duration {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.notes { display: flex; flex-direction: column; }
.notes li + li { border-top: 1px solid var(--line); }
.notes li { flex: 1; display: flex; }

.note {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  align-content: center;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.note:hover { background: rgba(255, 255, 255, 0.03); }
.note.is-active { background: rgba(91, 140, 255, 0.1); border-left-color: var(--accent); }
.note:focus-visible { outline-offset: -3px; }

.note-time {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.note-state { font-size: 0.8rem; color: var(--warn); }
.note--resolved .note-state { color: var(--ok); }
.note-text { grid-column: 1 / -1; font-size: 0.95rem; line-height: 1.4; }

.review figcaption {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 52rem) {
  .review-body { grid-template-columns: 1fr; }
  .viewer { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-count { display: none; }
  .duration { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section--band {
  background: var(--bg-inset);
  border-block: 1px solid var(--line);
}

.section-head p {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
}

.footnote, .plain-list {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.plain-list li + li { margin-top: 0.5rem; }

/* ---------- Status labels ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.status--available { color: var(--ok); }
.status--available::before { background: var(--ok); border-color: var(--ok); }
.status--development { color: var(--warn); }
.status--development::before {
  border-color: var(--warn);
  background: linear-gradient(to right, var(--warn) 50%, transparent 50%);
}

.status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.status-key .status { margin-right: 0.4rem; }

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.2s;
}
.product:hover { border-color: var(--line-strong); }

.product--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(40rem 20rem at 100% 0, rgba(91, 140, 255, 0.12), transparent 70%),
    var(--bg-raised);
}
.product--featured > * { flex: 1; min-width: 0; }
.product--featured h3 { font-size: clamp(1.6rem, 2vw + 1rem, 2.1rem); letter-spacing: -0.02em; }

.product-text h3 { margin-top: 0.9rem; }
.product-text p:not(.status) {
  max-width: 30rem;
  margin-top: 0.6rem;
  color: var(--muted);
}
.product-text .text-link { display: inline-block; margin-top: 1.1rem; }

.product-art {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-inset);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 52rem) {
  .products { grid-template-columns: 1fr; }
  .product--featured { flex-direction: column; align-items: stretch; }
}

/* Card drawings */

.art-versions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.25rem;
}
.art-versions li + li { border-top: 1px solid var(--line); }
.art-versions .is-current span { color: var(--text); font-weight: 600; }
.tag { font-style: normal; font-size: 0.8rem; }
.tag--changes { color: var(--warn); }
.tag--approved { color: var(--ok); }

.art-stamp { position: relative; padding: 0 0 1.5rem 0; }
.art-stamp-frame {
  height: 7.5rem;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, #3a4a74 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 50% 120%, #3a4a74 0 42%, transparent 42.5%),
    #18213a;
}
.art-stamp-card {
  position: absolute;
  left: 0.75rem;
  bottom: 0;
  width: min(11rem, 70%);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg-inset);
}
.art-stamp-card div { display: flex; align-items: center; gap: 0.6rem; }
.art-stamp-card div + div { margin-top: 0.3rem; }
.art-stamp-card dt { width: 2.6rem; font-size: 0.75rem; }
.art-stamp-card dd { flex: 1; height: 0.45rem; border-radius: 2px; background: var(--line-strong); }
.art-stamp-card div:first-child dd { background: var(--text); }

.art-credits {
  height: 8.5rem;
  overflow: hidden;
  text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
.art-credits p { display: flex; justify-content: center; align-items: center; gap: 0.7rem; padding: 0.3rem 0; }
.art-credits span { flex: 1; text-align: right; font-size: 0.8rem; }
.art-credits b { flex: 1; display: block; }
.art-credits b::before {
  content: "";
  display: block;
  width: 60%;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--text);
}
.art-credits p:nth-child(even) b::before { width: 45%; }

.art-shotlist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.25rem;
}
.art-shotlist li + li { border-top: 1px solid var(--line); }
.art-shotlist i {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
}
.art-shotlist .is-done i { background: var(--accent); border-color: var(--accent); }
.art-shotlist .is-done span { text-decoration: line-through; }
.art-shotlist span { flex: 1; }
.art-shotlist b {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.art-pipeline { display: flex; align-items: center; padding-block: 1.6rem; }
.art-pipeline li {
  position: relative;
  flex: 1;
  padding-top: 1.3rem;
  font-size: 0.8rem;
  text-align: center;
}
.art-pipeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: var(--line-strong);
  z-index: 1;
}
.art-pipeline li + li::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}
.art-pipeline .is-current { color: var(--text); font-weight: 600; }
.art-pipeline .is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.25); }

/* ---------- Approach / About ---------- */

.principles > div { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.principles > div:first-child { padding-top: 0; border-top: 0; }
.principles dt { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.principles dd { max-width: 34rem; margin-top: 0.4rem; color: var(--muted); }

.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--muted); }
.prose p:first-child { color: var(--text); font-size: 1.2rem; line-height: 1.5; }

/* ---------- Contact ---------- */

.section--contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50rem 22rem at 10% 110%, rgba(91, 140, 255, 0.13), transparent 70%),
    var(--bg);
}
.section--contact h2 { max-width: 20ch; }
.section--contact .lede { margin-top: 1.25rem; }

.contact-address {
  margin-block: 2rem 1.5rem;
  font-size: clamp(1.35rem, 3.4vw + 0.5rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.contact-address a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.contact-address a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { max-width: none; font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; letter-spacing: -0.01em; }
.legal p, .legal li { margin-top: 0.9rem; color: var(--muted); }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--accent); }

.review-notice {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--warn);
  border-radius: var(--radius-small);
  background: rgba(242, 184, 102, 0.08);
}
.review-notice p { margin: 0; color: var(--text); }
.review-notice strong { color: var(--warn); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
