/* Jua La Afrika. Tokens and rules follow DESIGN.md. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0b0a08;
  --bg-raised: #15130f;
  --bg-sunken: #070605;
  --line: #2b2721;
  --text: #f4f1ea;
  --text-muted: #aba598;
  --accent: #f2b02a;
  --btn-bg: #f2b02a;
  --btn-bg-hover: #ffcb57;
  --btn-text: #15110a;
  --error: #ff8a7a;
  --header-bg: rgb(11 10 8 / 0.92);

  --gold-a: #ffe08a;
  --gold-b: #f5b324;
  --gold-c: #c9820a;
  --silver-a: #ffffff;
  --silver-b: #b9b6ae;
  --wave-a: #8e8b84;
  --wave-b: #3a3935;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
  --header-h: 72px;
  --pad: 24px;
  --section: 96px;
  --max: 1320px;

  /* z-index scale */
  --z-header: 50;
  --z-skip: 70;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f2f1ee;
  --bg-raised: #ffffff;
  --bg-sunken: #e7e5e0;
  --line: #d3d0c8;
  --text: #14130f;
  --text-muted: #55524a;
  --accent: #8a5a00;
  --btn-bg: #14130f;
  --btn-bg-hover: #2a2823;
  --btn-text: #ffcb57;
  --error: #b3261e;
  --header-bg: rgb(242 241 238 / 0.94);

  --gold-a: #e9a91c;
  --gold-b: #c98a0c;
  --gold-c: #9a6406;
  --silver-a: #2a2823;
  --silver-b: #0f0e0c;
  --wave-a: #4a4842;
  --wave-b: #14130f;
}

@media (min-width: 1024px) {
  :root {
    --pad: 48px;
    --section: 152px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -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;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgb(242 176 42 / 0.2);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.only-light,
:root[data-theme="light"] .only-dark {
  display: none;
}

:root[data-theme="light"] .only-light {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Type ---------- */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.h4 {
  font-size: 1.25rem;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn .icon {
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.icon-btn__moon,
:root[data-theme="light"] .icon-btn__sun {
  display: none;
}

:root[data-theme="light"] .icon-btn__moon {
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-solid {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header.is-solid {
    backdrop-filter: blur(12px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: block;
  flex: none;
}

.brand__logo {
  display: block;
  height: 46px;
  width: auto;
  aspect-ratio: 1024 / 272;
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  gap: 36px;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] {
  color: var(--accent);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .site-header__actions {
    margin-left: 16px;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .site-header__menu {
    display: none;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--pad) 32px;
  border: 0;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: contain;
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu::backdrop {
  background: var(--bg);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.mobile-menu__list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.75rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.mobile-menu .btn {
  margin-top: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 48px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__label {
  margin-bottom: 24px;
}

@media (max-width: 479px) {
  .hero__label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
}

.hero__title {
  font-size: clamp(2.375rem, 1.2rem + 3.6vw, 4.25rem);
  font-weight: 650;
  font-stretch: 114%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__visual {
  justify-self: center;
  width: min(100%, 520px);
}

.sun {
  position: relative;
  aspect-ratio: 700 / 660;
}

.sun__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sun__disc {
  position: absolute;
  left: 34%;
  top: 25.4545%;
  width: 62%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-raised);
}

.sun__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 100%;
  transform: scale(1.22);
  transform-origin: 55% 100%;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 0;
  }

  /* sized against the copy column so the headline always sets in two lines */
  .hero__title {
    font-size: clamp(2.75rem, 5.1vw - 5px, 4.25rem);
  }

  .hero__visual {
    justify-self: end;
    width: min(122%, 780px);
    margin-right: -7%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}

.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: 56px;
}

@media (min-width: 1024px) {
  .section__head {
    margin-bottom: 80px;
  }
}

/* ---------- Sectors ---------- */
.sectors {
  border-top: 1px solid var(--line);
}

.tabs {
  display: grid;
  gap: 28px;
}

.tabs__list {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  position: relative;
  flex: none;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.tabs__tab:hover {
  color: var(--text);
}

.tabs__tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.panel {
  display: grid;
  gap: 28px;
}

.panel__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#panel-betting .panel__media img {
  object-position: 30% 80%;
}

#panel-mining .panel__media img {
  object-position: 40% 60%;
}

.panel__body {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel__body .h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel__icon {
  color: var(--accent);
}

.panel__icon .icon {
  width: 32px;
  height: 32px;
}

.panel__body p {
  max-width: 52ch;
  color: var(--text-muted);
}

.panel__list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.panel__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.panel__list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-5px);
}

@media (min-width: 1024px) {
  .tabs {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }

  .tabs__list {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .tabs__tab {
    min-height: 0;
    padding: 18px 0 18px 28px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    font-stretch: 112%;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-align: left;
    transition: color 0.25s var(--ease), transform 0.35s var(--ease);
  }

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

  .tabs__tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease);
  }

  .tabs__tab[aria-selected="true"] {
    border-color: var(--line);
  }

  .tabs__tab[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .panel {
    gap: 36px;
  }

  .panel__media {
    aspect-ratio: 16 / 9;
  }

  .panel__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 16px 56px;
  }

  .panel__body .h3,
  .panel__body p {
    grid-column: 1;
  }

  .panel__list {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
  }
}

/* ---------- Approach ---------- */
.approach {
  padding-bottom: 0;
}

.approach__intro {
  display: grid;
  gap: 32px;
  max-width: 980px;
}

.statement {
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.125rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-wrap: pretty;
}

.statement span {
  color: var(--accent);
  font-weight: 500;
}

.band {
  margin-top: 72px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-raised);
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principles {
  display: grid;
  gap: 40px;
  padding-block: 64px 0;
}

.principle {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--accent);
}

.principle p {
  color: var(--text-muted);
  max-width: 40ch;
}

@media (min-width: 768px) {
  .band {
    aspect-ratio: 21 / 9;
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 48px;
  }
}

@media (min-width: 1024px) {
  .band {
    margin-top: 104px;
  }

  .principles {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 72px 24px;
    padding-top: 96px;
  }

  .principle:nth-child(1) {
    grid-column: 1 / span 5;
  }

  .principle:nth-child(2) {
    grid-column: 7 / span 5;
  }

  .principle:nth-child(3) {
    grid-column: 2 / span 5;
  }

  .principle:nth-child(4) {
    grid-column: 8 / span 5;
  }
}

/* ---------- Our name ---------- */
.name__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.name__mark {
  width: min(100%, 420px);
  justify-self: center;
}

.name__mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.name__copy {
  display: grid;
  gap: 24px;
}

.creed {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.creed__row {
  display: grid;
  gap: 4px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.creed dt {
  font-size: 1.125rem;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--accent);
}

.creed dd {
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .creed__row {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .name__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 96px;
  }

  .name__mark {
    width: 100%;
    max-width: 500px;
  }
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  gap: 56px;
}

.contact__copy {
  display: grid;
  gap: 24px;
  align-content: start;
}

.contact__direct {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact__direct-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact__direct .link {
  justify-self: start;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 24px;
}

.form__row {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field__opt {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  color: var(--text);
  transition: border-color 0.25s var(--ease);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--text-muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.field__help {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field__error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.form__foot {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.form__status {
  max-width: 56ch;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: var(--error);
}

.form__status a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 96px;
  }

  .contact__copy {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 72px 40px;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: 48px;
}

.site-footer__brand img {
  width: 220px;
}

.site-footer__nav {
  display: grid;
  gap: 18px;
  align-content: start;
}

.site-footer__nav ul {
  display: grid;
  gap: 4px;
}

.site-footer__nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__legal {
  display: grid;
  gap: 8px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 24px;
  }

  .site-footer__legal {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entry: establishes reading order on load */
  .js .hero__copy > * {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.9s var(--ease) forwards;
  }

  .js .hero__copy > :nth-child(1) {
    animation-delay: 0.1s;
  }

  .js .hero__copy > :nth-child(2) {
    animation-delay: 0.2s;
  }

  .js .hero__copy > :nth-child(3) {
    animation-delay: 0.32s;
  }

  .js .hero__copy > :nth-child(4) {
    animation-delay: 0.44s;
  }

  .js .sun__crescent {
    transform-box: fill-box;
    transform-origin: center;
  }

  .js .sun__disc,
  .js .sun__crescent {
    opacity: 0;
    animation: sunrise 1.3s var(--ease) 0.25s forwards;
  }

  .js .sun__ray,
  .js .name__mark.is-in .mark__ray {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: ray 0.8s var(--ease) forwards;
    animation-delay: calc(0.7s + var(--i) * 0.06s);
  }

  .js .name__mark .mark__ray {
    opacity: 0;
  }

  .js .name__mark.is-in .mark__ray {
    animation-delay: calc(0.2s + var(--i) * 0.07s);
  }

  /* Scroll reveal: content arrives as it is reached */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Tab change: confirms the new sector */
  .js .panel.is-entering {
    animation: fade 0.5s var(--ease);
  }

  .js .panel.is-entering .panel__media img {
    animation: settle 0.9s var(--ease);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sunrise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ray {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes settle {
  from {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
