/* ==========================================================================
   Undercover — landing page
   Palette, spacing and every component live here. No colour is hard-coded
   outside :root.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #fbf9f4;
  --sand: #f4efe4;
  --stone: #c9c4b6;
  --ink: #12100e;

  /* Accents */
  --red: #b0182b;
  --green: #17624a;
  --slate: #2f2a24;

  /* Text ramp, darkest to lightest */
  --text-strong: #3f3931;
  --text: #5e574e;
  --text-soft: #7a736a;
  --text-faint: #a9a197;
  --text-ghost: #d5ccbb;

  /* Lines */
  --line: #e4dccb;
  --line-soft: #ebe3d4;
  --line-faq: #dfd8c9;
  --hairline: #c9bfa9;

  /* Card inner frames */
  --frame-neutral: #efe9dc;
  --frame-green: #dce7df;
  --frame-red: #edd6d4;
  --frame-slate: #e2ded6;
  --ring-rose: #e8cdca;
  --tint-red: #f7eeee;

  /* Channels, for the few translucent uses */
  --ink-rgb: 18, 16, 14;
  --paper-rgb: 251, 249, 244;
  --shadow-rgb: 60, 45, 30;
  --texture-hi: rgba(255, 255, 255, 0.16);
  --texture-lo: rgba(0, 0, 0, 0.05);

  --texture: repeating-linear-gradient(45deg, var(--texture-hi) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, var(--texture-lo) 0 1px, transparent 1px 4px);

  --shadow-hero: 0 26px 60px rgba(var(--shadow-rgb), 0.32);
  --shadow-screen: 0 18px 44px rgba(var(--shadow-rgb), 0.26);

  /* Rhythm */
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-y: clamp(56px, 8vw, 110px);
  --wrap: 1180px;

  /* Phone mockups: drawn at native size, then scaled down */
  --phone-w: 390px;
  --phone-h: 844px;
  --scale-hero: 0.77;
  --scale-screen: 0.75;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

summary {
  list-style: none;
  position: relative;
  padding-right: 38px;
}

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

summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--red);
  transform: rotate(45deg);
  transition: transform 220ms cubic-bezier(0.22, 0.9, 0.28, 1), background-color 160ms ease;
}

details[open] summary::after {
  transform: rotate(0deg) scale(0.78);
}

summary:hover::after {
  background: var(--ink);
}

@keyframes floatCard {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-14px);
  }
}

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

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

.section {
  padding: var(--pad-y) var(--pad-x);
}

/* The rotated square that punctuates the whole design.
   Size via --d, colour via --dc, both inheritable from the parent. */
.diamond {
  width: var(--d, 10px);
  height: var(--d, 10px);
  flex: none;
  background: var(--dc, var(--red));
  transform: rotate(45deg);
}

/* Corner placement, offsets via --cx / --cy on the positioned ancestor. */
.corner {
  position: absolute;
}

.corner--tl {
  top: var(--cy, 16px);
  left: var(--cx, 16px);
}

.corner--br {
  bottom: var(--cy, 16px);
  right: var(--cx, 16px);
}

.eyebrow {
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow--lg {
  font-size: 13px;
}

.section-title {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rules__title {
  max-width: 18ch;
}
.roles__title {
  max-width: 20ch;
}
.screens__title {
  max-width: 22ch;
}

.card-text {
  margin: 10px 0 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

/* Without this the global a:hover would paint the label the same colour
   as the button itself. */
.btn--solid:hover {
  color: var(--paper);
}

.btn--ghost {
  padding: 0 30px;
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  color: var(--ink);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.btn--light {
  min-height: 64px;
  padding: 0 40px;
  background: var(--paper);
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--stone);
  background-image: var(--texture);
  padding: clamp(28px, 5vw, 64px) var(--pad-x) clamp(40px, 6vw, 80px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 7vw, 90px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 30px);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.nav__link {
  color: var(--ink);
  text-decoration: none;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 72px);
  max-width: var(--wrap);
  margin: 0 auto;
}

.hero__copy {
  flex: 1 1 420px;
  min-width: min(300px, 100%);
  max-width: 620px;
}

.hero__title {
  margin: 18px 0 0;
  font-weight: 600;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lede {
  margin: 22px 0 0;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-strong);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin: 22px 0 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Phone mockups (decorative, aria-hidden)
   -------------------------------------------------------------------------- */

.phone {
  --scale: var(--scale-screen);
  position: relative;
  width: calc(var(--phone-w) * var(--scale));
  max-width: 100%;
  height: calc(var(--phone-h) * var(--scale));
  overflow: hidden;
}

.phone--hero {
  --scale: var(--scale-hero);
  flex: 0 1 auto;
  animation: floatCard 4.5s ease-in-out infinite alternate;
}

.phone__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--phone-w);
  height: var(--phone-h);
  transform: scale(var(--scale));
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.phone--hero .phone__frame {
  gap: 14px;
  padding: 30px 24px 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-hero), inset 0 0 0 1px var(--line), inset 0 0 0 8px var(--paper),
    inset 0 0 0 9px var(--line-soft);
}

.screen .phone__frame {
  gap: 12px;
  padding: 26px 22px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-screen), inset 0 0 0 1px var(--line), inset 0 0 0 7px var(--paper),
    inset 0 0 0 8px var(--line-soft);
}

.phone__frame--reveal {
  --cy: 14px;
  --cx: 18px;
  --dc: var(--green);
  --d: 11px;
  gap: 14px;
  padding-bottom: 34px;
}

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

.mock-badge {
  --cy: 22px;
  --cx: 22px;
  --d: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mock-badge--flip {
  transform: rotate(180deg);
}

.mock-badge__now {
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--red);
}

.mock-badge__total {
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  color: var(--text-faint);
}

.mock-pass {
  text-align: center;
  padding: 0 34px;
}

.mock-pass__label {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mock-pass__name {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.mock-word {
  --cy: 14px;
  --cx: 16px;
  --d: 11px;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--red), inset 0 0 0 5px var(--sand),
    inset 0 0 0 6px var(--ring-rose);
}

.mock-word__hint {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mock-word__value {
  margin: 0;
  font-weight: 600;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.mock-word__rule {
  width: 44px;
  height: 1px;
  background: var(--hairline);
}

.mock-note {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-faint);
  text-align: center;
}

.mock-btn {
  min-height: 64px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 17px;
  line-height: 64px;
  letter-spacing: 0.05em;
  text-align: center;
}

.mock-btn--red {
  background: var(--red);
}

.mock-btn--outline {
  min-height: 52px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 400;
  font-size: 15px;
  line-height: 50px;
  letter-spacing: normal;
}

/* Mockup 1, the speaking order -------------------------------------------- */

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-round {
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.mock-round--flip {
  transform: rotate(180deg);
}

.mock-eye {
  position: relative;
  width: 28px;
  height: 16px;
  border: 1.5px solid var(--hairline);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-eye__pupil {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hairline);
}

.mock-title {
  margin: 0;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
}

.mock-order {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mock-order__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.mock-order__item--first {
  min-height: 58px;
}

.mock-order__item:last-child {
  border-bottom: 0;
}

.mock-order__badge {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}

.mock-order__rank {
  width: 34px;
  flex: none;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--text-faint);
}

.mock-order__name {
  font-weight: 500;
  font-size: 25px;
  line-height: 1.05;
}

.mock-order__name--lead {
  font-weight: 600;
  font-size: 26px;
}

.mock-order__mirror {
  margin-left: auto;
  width: 34px;
  flex: none;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--text-ghost);
  transform: rotate(180deg);
}

.mock-order__tag {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--red);
  border-radius: 99px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.mock-sep {
  --d: 7px;
  --dc: var(--text-ghost);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-sep__line {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.mock-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.mock-hint {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* Mockup 2, the vote ------------------------------------------------------- */

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.mock-vote {
  min-height: 64px;
  padding: 8px;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500;
  font-size: 21px;
  line-height: 48px;
  text-align: center;
}

.mock-vote--picked {
  --cy: 7px;
  --cx: 9px;
  --d: 8px;
  position: relative;
  background: var(--tint-red);
  box-shadow: inset 0 0 0 2px var(--red);
  font-weight: 600;
  color: var(--red);
}

.mock-vote__check {
  position: absolute;
  bottom: 7px;
  right: 9px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
}

.mock-tension {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mock-tension__col {
  height: 100%;
  max-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 0.32;
}

.mock-tension__col .diamond {
  --d: 12px;
  margin: 4px 0;
}

.mock-tension__col .diamond--big {
  --d: 20px;
  --dc: var(--hairline);
  margin: 8px 0;
}

.mock-tension__line {
  flex: 1 1 auto;
  min-height: 0;
  width: 1px;
  background: var(--hairline);
}

/* Mockup 3, the reveal ----------------------------------------------------- */

.mock-reveal {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mock-reveal__label {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mock-reveal__band {
  width: 100%;
  padding: 22px 0;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  text-align: center;
}

.mock-reveal__role {
  margin: 0;
  font-weight: 600;
  font-size: 74px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--green);
}

.mock-reveal__note {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Section: the rules
   -------------------------------------------------------------------------- */

.rules {
  background: var(--paper);
}

.rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(34px, 4vw, 54px);
}

.rule-card {
  padding: 28px 24px 30px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 5px var(--paper),
    inset 0 0 0 6px var(--frame-neutral);
}

.rule-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
}

.rule-card__title {
  margin: 20px 0 0;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Section: the roles
   -------------------------------------------------------------------------- */

.roles {
  background: var(--sand);
}

.roles__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.roles__intro {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 34ch;
  text-wrap: pretty;
}

.roles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(34px, 4vw, 54px);
}

.role-card {
  --cy: 16px;
  --cx: 16px;
  --dc: var(--role-color);
  position: relative;
  padding: 30px 26px 32px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 5px var(--paper),
    inset 0 0 0 6px var(--role-frame);
}

.role-card--civil {
  --role-frame: var(--frame-green);
  --role-color: var(--green);
}

.role-card--undercover {
  --role-frame: var(--frame-red);
  --role-color: var(--red);
}

.role-card--white {
  --role-frame: var(--frame-slate);
  --role-color: var(--slate);
}

.role-card__title {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--role-color);
}

.role-card__text {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Section: the screens
   -------------------------------------------------------------------------- */

.screens {
  background-color: var(--stone);
  background-image: var(--texture);
}

.screens__lede {
  margin: 16px 0 0;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-strong);
  max-width: 52ch;
  text-wrap: pretty;
}

.screens__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(34px, 4vw, 54px);
}

.screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: calc(var(--phone-w) * var(--scale-screen));
  max-width: 100%;
}

.screen__caption {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-strong);
  text-wrap: pretty;
}

.screen__caption strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section: the numbers
   -------------------------------------------------------------------------- */

.stats {
  background: var(--paper);
}

.stats__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.stat__value {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.stat__text {
  margin: 12px 0 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Section: the FAQ
   -------------------------------------------------------------------------- */

.faq {
  background: var(--sand);
}

.faq__wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq__title {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq__item {
  padding: 22px 0;
  border-top: 1px solid var(--line-faq);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line-faq);
}

.faq__q {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.faq__a {
  margin: 14px 0 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Section: the closing call to action
   -------------------------------------------------------------------------- */

.cta {
  --cy: 26px;
  --cx: 26px;
  --d: 12px;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 130px) var(--pad-x);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* Red on near-black is only 2.7:1, too faint to read as a focus ring. */
.cta a:focus-visible {
  outline-color: var(--paper);
}

.cta__title {
  margin: 0 auto;
  max-width: 16ch;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta__text {
  margin: 20px auto 0;
  max-width: 46ch;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(var(--paper-rgb), 0.66);
  text-wrap: pretty;
}

.cta .btn {
  margin-top: 34px;
}

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

.site-footer {
  padding: clamp(34px, 4vw, 54px) var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__logo {
  display: block;
  height: 26px;
  width: auto;
  opacity: 0.9;
}

.site-footer__note {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Very narrow screens: shrink the mockups so they stay whole instead of
   being clipped by their own overflow.
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {
  :root {
    --scale-hero: 0.7;
    --scale-screen: 0.7;
  }
}
