/* ==========================================================================
   Nisaba — nisaba.wynter.ai
   Black page, cream comic panels, brand purple used sparingly.
   ========================================================================== */

:root {
  --ink: #08080a;
  --ink-2: #101013;
  --ink-3: #17171b;
  --line: #26262c;

  --paper: #f2ece0;
  --paper-edge: #000;

  --purple: #7928db;
  --purple-bright: #a06bf0;

  --fg: #edecf0;
  --fg-dim: #a2a0ab;
  --fg-faint: #6f6d78;

  --display: 'Archivo Black', system-ui, sans-serif;
  --comic: 'Bangers', 'Archivo Black', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --stack: clamp(4.5rem, 11vw, 9rem);
  --max: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint halftone wash so the black never reads as flat #000. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

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

/* ── Buttons ──────────────────────────────────────────────────────────────
   Same treatment as the app: inset top highlight, hairline border, vertical
   gradient, and a shadow that tightens on press. */

.btn {
  --btn-face: var(--purple);
  --btn-glow: rgb(121 40 219 / 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgb(0 0 0 / 0.55);
  border-radius: 10px;
  white-space: nowrap;
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn-face) 100%, white 14%),
    var(--btn-face)
  );
  box-shadow:
    inset 0 1px 0 0 rgb(255 255 255 / 0.22),
    inset 0 -1px 0 0 rgb(0 0 0 / 0.28),
    0 1px 2px rgb(0 0 0 / 0.45),
    0 6px 16px -8px var(--btn-glow);
  transition:
    box-shadow 140ms ease,
    background-image 140ms ease,
    transform 90ms ease;
}

.btn:hover {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn-face) 100%, white 22%),
    color-mix(in srgb, var(--btn-face) 100%, white 6%)
  );
  box-shadow:
    inset 0 1px 0 0 rgb(255 255 255 / 0.28),
    inset 0 -1px 0 0 rgb(0 0 0 / 0.28),
    0 2px 4px rgb(0 0 0 / 0.45),
    0 10px 24px -10px var(--btn-glow);
}

.btn:active {
  transform: translateY(1px);
  background-image: linear-gradient(
    180deg,
    var(--btn-face),
    color-mix(in srgb, var(--btn-face) 100%, black 10%)
  );
  box-shadow:
    inset 0 2px 4px rgb(0 0 0 / 0.35),
    inset 0 1px 0 0 rgb(255 255 255 / 0.06),
    0 1px 1px rgb(0 0 0 / 0.4);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 0.9rem 1.7rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--ghost {
  --btn-face: var(--ink-3);
  --btn-glow: transparent;
  color: var(--fg);
  border-color: rgb(255 255 255 / 0.09);
}

.btn--ghost:hover {
  color: #fff;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
  padding: clamp(2rem, 5vw, 3.25rem) var(--gutter) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.masthead__brand {
  position: relative;
  display: block;
}

/* The logo asset is keyed transparent, so it can carry a real glow. */
.masthead__brand img {
  height: clamp(58px, 9vw, 96px);
  width: auto;
  filter: drop-shadow(0 8px 34px rgb(121 40 219 / 0.45));
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.masthead__nav a {
  position: relative;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  transition: color 140ms ease;
}

.masthead__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--purple-bright);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.masthead__nav a:hover {
  color: var(--fg);
}

.masthead__nav a:hover::after {
  transform: scaleX(1);
}

.masthead__cta {
  --btn-face: var(--purple);
  --btn-glow: rgb(121 40 219 / 0.55);
  margin-left: clamp(0.25rem, 2vw, 0.75rem);
  color: #fff !important;
  border: 1px solid rgb(0 0 0 / 0.55);
  border-radius: 9px;
  padding: 0.5rem 1.05rem !important;
  font-weight: 600;
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn-face) 100%, white 14%),
    var(--btn-face)
  );
  box-shadow:
    inset 0 1px 0 0 rgb(255 255 255 / 0.22),
    inset 0 -1px 0 0 rgb(0 0 0 / 0.28),
    0 1px 2px rgb(0 0 0 / 0.45),
    0 6px 16px -8px var(--btn-glow);
  transition:
    box-shadow 140ms ease,
    background-image 140ms ease,
    transform 90ms ease;
}

.masthead__cta::after {
  display: none;
}

.masthead__cta:hover {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn-face) 100%, white 22%),
    color-mix(in srgb, var(--btn-face) 100%, white 6%)
  );
  box-shadow:
    inset 0 1px 0 0 rgb(255 255 255 / 0.28),
    0 2px 4px rgb(0 0 0 / 0.45),
    0 10px 24px -10px var(--btn-glow);
}

.masthead__cta:active {
  transform: translateY(1px);
}

.badge-v1 {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: var(--purple);
  color: #fff;
  letter-spacing: 0.06em;
}

/* ── Comic panels ─────────────────────────────────────────────────────── */

.panel {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--paper-edge);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--purple);
  overflow: hidden;
}

.panel img {
  /* Sources ship on white or cream; multiply flattens both onto one paper tone. */
  mix-blend-mode: multiply;
  width: 100%;
}

.panel figcaption {
  font-family: var(--comic);
  letter-spacing: 0.035em;
  font-size: 1.0625rem;
  color: #17161a;
  background: var(--paper);
  border-top: 3px solid var(--paper-edge);
  padding: 0.45rem 0.9rem 0.3rem;
}

.panel--tilt-l {
  rotate: -1.1deg;
}

.panel--tilt-r {
  rotate: 1.1deg;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) var(--stack);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 5.25rem);
  margin-bottom: 1.4rem;
}

.ink-purple {
  color: var(--purple-bright);
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.9);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 34rem;
}

.lede strong {
  color: var(--fg);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.cta--center {
  justify-content: center;
}

.wink {
  margin-top: 2.25rem;
  padding: 0.9rem 1.1rem;
  border: 2px dashed var(--line);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--fg-dim);
  max-width: 34rem;
}

.wink__tag {
  display: block;
  font-family: var(--comic);
  letter-spacing: 0.05em;
  color: var(--purple-bright);
  font-size: 1rem;
}

.wink em {
  color: var(--fg);
  font-style: italic;
}

.panel--hero {
  rotate: 1.2deg;
}

/* ── Section furniture ────────────────────────────────────────────────── */

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.kicker {
  font-family: var(--comic);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--purple-bright);
  margin-bottom: 0.6rem;
}

.section-head h2,
.strip__copy h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.section-sub {
  margin-top: 1rem;
  color: var(--fg-dim);
}

/* ── Problem strip ────────────────────────────────────────────────────── */

.strip {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .strip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.strip__copy p {
  color: var(--fg-dim);
  margin-top: 1.1rem;
}

.strip__copy em {
  color: var(--fg);
  font-style: italic;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--fg-dim);
  font-size: 0.9375rem;
}

.checks li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-family: var(--comic);
  font-size: 1rem;
  color: #fff;
  background: var(--purple);
  border: 2px solid #000;
  border-radius: 50%;
}

/* ── Caper panels ─────────────────────────────────────────────────────── */

.caper {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
}

.panels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.panel-card h3 {
  font-size: 1.5rem;
  margin: 1.4rem 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  background: var(--purple);
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1rem;
  box-shadow: 3px 3px 0 #000;
}

.panel-card p {
  color: var(--fg-dim);
  font-size: 0.9375rem;
}

.panel-card:nth-child(odd) .panel {
  rotate: -0.9deg;
}

.panel-card:nth-child(even) .panel {
  rotate: 0.9deg;
}

.fineprint {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--fg-faint);
  font-size: 0.875rem;
  max-width: 40rem;
  margin-inline: auto;
}

.fineprint em {
  color: var(--fg-dim);
}

/* ── Audit ──────────────────────────────────────────────────────────── */

.audit {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
}

.audit__steps {
  list-style: none;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  counter-reset: step;
}

.audit__steps li {
  position: relative;
  padding-top: 1.25rem;
  border-top: 3px solid var(--purple);
}

.audit__num {
  position: absolute;
  top: -1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--purple);
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 #000;
}

.audit__steps h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.6rem;
}

.audit__steps p {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.shot--audit {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.audit__sample {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 70px -50px var(--purple);
}

.audit__sample-head {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
  background: var(--ink-3);
}

.audit__sample pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}

.audit__sample code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--fg-dim);
  white-space: pre;
}

.status__note--center {
  text-align: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: 0.9375rem;
  color: var(--fg-dim);
}

.status__note {
  margin-top: 1rem;
  color: var(--fg-faint);
  font-size: 0.8125rem;
}

/* ── App showcase ─────────────────────────────────────────────────────── */

.showcase {
  padding: 0 var(--gutter) var(--stack);
}

.shot {
  max-width: 1160px;
  margin-inline: auto;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 40px 90px -40px rgb(121 40 219 / 0.55),
    0 20px 60px -30px rgb(0 0 0 / 0.9);
}

.shot__caption {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--fg-faint);
  font-size: 0.9375rem;
}

.shot--second {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ── Status ───────────────────────────────────────────────────────────── */

.status {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
}

.status__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.status__col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  background: var(--ink-2);
}

.status__col--done {
  border-color: color-mix(in srgb, var(--purple) 45%, transparent);
  box-shadow: 0 20px 50px -44px var(--purple);
}

.status__col h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.status__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.status__col li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status__col--done li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-bright);
  font-weight: 700;
}

.status__col:not(.status__col--done) li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.6em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-faint);
}

/* ── Library cards ────────────────────────────────────────────────────── */

.library {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.cards li {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.cards li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--purple) 60%, transparent);
  box-shadow: 0 14px 34px -22px var(--purple);
}

.cards b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.cards span {
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Trust ────────────────────────────────────────────────────────────── */

.trust {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.trust__item {
  border-top: 3px solid var(--purple);
  padding-top: 1.25rem;
}

.trust__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.trust__item p {
  color: var(--fg-dim);
  font-size: 0.9375rem;
}

/* ── Docs ─────────────────────────────────────────────────────────────── */

.docs {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
}

.docs__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.docs__groupname {
  font-family: var(--comic);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--purple-bright);
  margin-bottom: 0.9rem;
}

.docs details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-2);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 140ms ease;
}

.docs details[open],
.docs details:hover {
  border-color: color-mix(in srgb, var(--purple) 55%, transparent);
}

.docs summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.docs summary::-webkit-details-marker {
  display: none;
}

.docs summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  color: var(--fg-faint);
  transition: transform 160ms ease;
}

.docs details[open] summary::after {
  transform: rotate(45deg);
  color: var(--purple-bright);
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 9px var(--purple);
}

.docs details p {
  padding: 0 1rem 0.9rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.docs details p + p {
  padding-top: 0.5rem;
  margin-top: -0.4rem;
}

.docs details b {
  color: var(--fg);
}

.docs details em {
  color: var(--fg);
  font-style: italic;
}

/* ── Download ─────────────────────────────────────────────────────────── */

.download {
  max-width: 44rem;
  margin-inline: auto;
  padding: 0 var(--gutter) var(--stack);
  text-align: center;
}

.download__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  border: 2px solid var(--line);
}

.download h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.download > p {
  color: var(--fg-dim);
}

.download__note {
  margin-top: 1.75rem;
  color: var(--fg-faint);
  font-size: 0.875rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

@media (min-width: 720px) {
  .footer {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.footer img {
  height: 40px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer p {
  color: var(--fg-faint);
  font-size: 0.875rem;
  max-width: 26rem;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer nav a {
  color: var(--fg-dim);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--fg);
}

.footer__made {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.footer__made span {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.footer__made img {
  height: 26px;
  width: auto;
  margin: 0;
  transition: opacity 140ms ease;
}

.footer__made a:hover img {
  opacity: 0.75;
}

.footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  max-width: none;
}

.footer__legal a {
  color: var(--fg-dim);
}

/* ── Scroll reveals ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(28px);
      }
    }

    .panel,
    .strip__copy,
    .section-head,
    .panel-card,
    .cards li,
    .trust__item,
    .docs__group,
    .shot,
    .download {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* Rotation plus the offset shadow overhangs the gutter on narrow screens. */
@media (max-width: 700px) {
  .panel,
  .panel--hero,
  .panel--tilt-l,
  .panel--tilt-r,
  .panel-card:nth-child(odd) .panel,
  .panel-card:nth-child(even) .panel {
    rotate: 0deg;
    box-shadow: 6px 6px 0 var(--purple);
  }
}
