/* Lareira Digital 2026 design. Pages not yet redesigned keep using site.css. */

:root {
  /* Fixed in both themes. */
  --dark: #0b0e13;
  --dark-hover: #1c222b;
  --tile-hover: #161b24;
  --muted-dark: #515b6b;
  --paper: #f4f6f9;
  --white: #ffffff;

  /* Themed values. */
  --ink: #f4f6f9;
  --ink-2: #e4e8ee;
  --ink-3: #c5ccd8;
  --body-1: #d4dae4;
  --hover: #ffffff;
  --bg-page: #0b0e13;
  --bg-alt: #11151c;
  --bg-band: #0b0e13;
  --band-gradient-rgb: 11, 14, 19;
  --numeral-dim: #2a313c;
  --numeral-band: #f4f6f9;
  --numeral-band-opacity: 0.9;
  --label: #8e99ab;
  --logo-mark: #f4f6f9;

  --rule: rgba(244, 246, 249, 0.14);
  --rule-strong: rgba(244, 246, 249, 0.2);
  --focus: #f4f6f9;
  --qr-tile: var(--bg-alt);

  /* Header button and the Stonn button. */
  --btn-bg: #f4f6f9;
  --btn-text: #0b0e13;
  --btn-hover: #ffffff;
  --btn-outline: rgba(244, 246, 249, 0.4);
  --btn-outline-text: #f4f6f9;

  /* Call to action block and its button. */
  --cta-bg: #f4f6f9;
  --cta-text: #0b0e13;
  --cta-muted: #515b6b;
  --cta-btn-bg: #0b0e13;
  --cta-btn-text: #f4f6f9;
  --cta-btn-hover: #1c222b;

  --display: "Source Sans 3", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --gutter: clamp(20px, 3.3vw, 48px);
  --section: clamp(80px, 12vw, 160px);
  --sub-section: clamp(48px, 6vw, 96px);
  --col-gap: clamp(32px, 5vw, 96px);
}

:root[data-theme="duotone"] {
  --ink: #d8cdb8;
  --ink-2: #cfc6b4;
  --ink-3: #b0a898;
  --body-1: #cfc6b4;
  --hover: #ede6d6;
  --label: #9c9a8a;
  --bg-band: #33331c;
  --numeral-band: #b5a765;
  --numeral-band-opacity: 0.95;
  --logo-mark: #b5a765;
}

:root[data-theme="light"] {
  --bg-page: #f4f6f9;
  --bg-alt: #e6e9ef;
  --tile-hover: #dce0e7;
  --ink: #0b0e13;
  --ink-2: #1c222b;
  --ink-3: #2f3744;
  --body-1: #1c222b;
  --hover: #000000;
  --label: #515b6b;
  --band-gradient-rgb: 244, 246, 249;
  --numeral-dim: #d3d8e0;
  --numeral-band: #0b0e13;
  --logo-mark: #0b0e13;
  --rule: rgba(11, 14, 19, 0.14);
  --rule-strong: rgba(11, 14, 19, 0.2);
  --focus: #0b0e13;
  /* The QR images are light modules on transparent, so their tile stays dark. */
  --qr-tile: #11151c;
  --btn-bg: #0b0e13;
  --btn-text: #f4f6f9;
  --btn-hover: #1c222b;
  --btn-outline: rgba(11, 14, 19, 0.4);
  --btn-outline-text: #0b0e13;
  --cta-bg: #0b0e13;
  --cta-text: #f4f6f9;
  --cta-muted: #c5ccd8;
  --cta-btn-bg: #f4f6f9;
  --cta-btn-text: #0b0e13;
  --cta-btn-hover: #ffffff;
}

/* Dark text sits on the photos here, so they fade back much further. */
[data-theme="light"] .band__photo,
[data-theme="light"] .landing__photo {
  opacity: 0.28;
}

/* In mono the photos keep sitting directly on their section background. */
[data-theme="duotone"] .band,
[data-theme="duotone"] .landing {
  background: var(--bg-band);
}

[data-theme="duotone"] .band__photo,
[data-theme="duotone"] .landing__photo {
  mix-blend-mode: luminosity;
}

.theme-switching * {
  transition: none !important;
}

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

html {
  background: var(--bg-page);
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

/* Layout */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.tone-base {
  --bg: var(--bg-page);
  background: var(--bg);
}

.tone-alt {
  --bg: var(--bg-alt);
  background: var(--bg);
}

.intro {
  padding-block: var(--section) clamp(64px, 8vw, 112px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--col-gap);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 64px);
}

/* Type */

.eyebrow,
.list-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.eyebrow {
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: var(--sub-section);
  max-width: 14ch;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.numeral {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--numeral-dim);
}

.facts {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  color: var(--label);
}

.prose {
  max-width: 640px;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-2);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  height: 72px;
  padding-inline: var(--gutter);
  background: linear-gradient(180deg, rgba(var(--band-gradient-rgb), 0.9), rgba(var(--band-gradient-rgb), 0));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.header--landing {
  position: relative;
  z-index: 3;
  background: none;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark__mark {
  display: block;
  height: 18px;
  aspect-ratio: 124 / 136;
  background: var(--logo-mark);
  mask: url("../images/logo-mark.png") center / contain no-repeat;
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  padding: 6px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.header--landing .nav a {
  border-bottom: 1px solid transparent;
}

.header--landing .nav a:hover {
  border-bottom-color: var(--ink);
}

.header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  white-space: nowrap;
}

.lang {
  font-size: 11px;
}

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

.lang a[aria-current="true"] {
  font-weight: 500;
}

.theme {
  font-size: 11px;
  text-transform: uppercase;
}

.theme button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.theme button:hover,
[data-theme="mono"] .theme button[value="mono"],
[data-theme="duotone"] .theme button[value="duotone"],
[data-theme="light"] .theme button[value="light"] {
  color: var(--ink);
}

.cta-small {
  padding: 9px 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
}

.cta-small:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
}

.header--landing .cta-small {
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--btn-outline);
  color: var(--btn-outline-text);
}

.header--landing .cta-small:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* Mobile menu. Class names are shared with js/nav.js. */

.hamburger {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 150ms ease, opacity 150ms ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.67px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.67px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding-inline: var(--gutter);
  background: var(--bg-page);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

/* Landing */

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.landing__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
}

.landing__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--band-gradient-rgb), 0.55) 0%,
    rgba(var(--band-gradient-rgb), 0.25) 40%,
    rgba(var(--band-gradient-rgb), 0.85) 100%
  );
}

.landing .footer {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: 120px var(--gutter) 64px;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.hero__foot p {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--body-1);
}

.hero__scroll {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Shared intro */

.page-title {
  margin-bottom: 48px;
  max-width: 11ch;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.page-lead {
  margin-left: auto;
  max-width: 560px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-3);
}

/* Services */

.index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.index__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.index__item .numeral {
  font-size: clamp(72px, 9vw, 140px);
}

.index__title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.2;
}

.index__text {
  font-size: 15px;
  color: var(--label);
  transition: color 150ms ease;
}

.index__item:hover .numeral,
.index__item:hover .index__text {
  color: var(--hover);
}

.chapter {
  scroll-margin-top: 72px;
}

.band {
  position: relative;
  height: clamp(360px, 60vh, 640px);
  overflow: hidden;
}

.band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.5;
}

.band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--band-gradient-rgb), 0.1) 0%,
    rgba(var(--band-gradient-rgb), 0) 40%,
    var(--bg) 100%
  );
}

.band__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

.band__numeral {
  font-family: var(--display);
  font-size: clamp(96px, 14vw, 220px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.75;
  color: var(--numeral-band);
  opacity: var(--numeral-band-opacity);
}

.band__title {
  margin-bottom: 8px;
  max-width: 14ch;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.chapter__body {
  padding-block: var(--sub-section) clamp(80px, 10vw, 144px);
}

.chapter__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.chapter__lead {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
}

.chapter__engagement {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
}

.chapter__tools {
  font-size: 15px;
  line-height: 1.6;
  color: var(--label);
}

.chapter__lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-content: start;
  gap: 40px;
  padding-top: clamp(0px, 2vw, 24px);
}

.list-title {
  margin-bottom: 20px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plain-list li {
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}

.phase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phase__length {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.phase h3 {
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.phase__text,
.principle p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
}

.phase__outcome {
  font-size: 15px;
  line-height: 1.5;
  color: var(--label);
}

/* About */

.about-title {
  max-width: 18ch;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.about-body {
  padding-bottom: var(--section);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  line-height: 1.55;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle .numeral {
  font-size: clamp(56px, 6vw, 96px);
}

.principle h3 {
  margin-top: 8px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.band__content--between {
  justify-content: space-between;
}

.band__place {
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.band__coords {
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.office__body {
  padding-block: clamp(40px, 5vw, 72px) clamp(80px, 10vw, 144px);
}

.office__body .prose {
  line-height: 1.5;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px);
}

.team figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
  filter: grayscale(1) contrast(1.05);
}

.team__name {
  font-size: 18px;
  font-weight: 500;
}

.team__role {
  margin-top: 4px;
  font-size: 14px;
  color: var(--label);
}

/* Work */

.case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-bottom: var(--section);
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 200px;
  padding: 24px;
  background: var(--bg-alt);
}

.case-card:hover {
  background: var(--tile-hover);
}

.case-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--label);
}

.case-card__client {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.case-card__sector {
  display: block;
  font-size: 14px;
  color: var(--label);
}

.band--work {
  height: clamp(320px, 55vh, 600px);
}

.band--work .band__photo {
  opacity: 0.45;
}

.band__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(16px, 2.5vw, 32px);
}

.band__numeral--work {
  font-size: clamp(80px, 12vw, 180px);
}

.band__client {
  margin-bottom: 6px;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.band__coords--upper {
  text-transform: uppercase;
  white-space: nowrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 680px;
}

.list-title--tight {
  margin-bottom: 12px;
}

.block-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.nowrap {
  white-space: nowrap;
}

/* Products */

.band__product {
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 5vw, 80px) clamp(32px, 4vw, 64px);
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool__labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}

.tool h3 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tool p {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
}

.tool__link {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.tool__note {
  align-self: flex-start;
  font-size: 15px;
  color: var(--label);
}

/* Legal */

.legal {
  max-width: 880px;
}

.legal section {
  margin-top: 56px;
}

.legal h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.legal p + p,
.legal ul + p {
  margin-top: 16px;
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.grant + .grant {
  margin-top: 48px;
}

.grant h3 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--label);
}

.grant__banner {
  display: block;
  width: 100%;
  height: auto;
}

/* Call to action and footer */

.cta {
  padding-block: var(--section);
  background: var(--cta-bg);
  color: var(--cta-text);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--col-gap);
}

.cta h2 {
  max-width: 12ch;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.cta__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cta__side p {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cta-muted);
}

.cta :focus-visible {
  outline-color: var(--cta-text);
}

.button {
  padding: 16px 24px;
  background: var(--cta-btn-bg);
  color: var(--cta-btn-text);
  font-size: 16px;
  font-weight: 500;
}

.button:hover {
  background: var(--cta-btn-hover);
  color: var(--cta-btn-text);
}

.button--light {
  padding: 14px 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
}

.button--light:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
}

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 40px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--label);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__place {
  color: var(--ink-3);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-3);
}

.footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__social svg {
  flex: none;
}

.footer__qr {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

.footer__qr a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer__tile {
  display: block;
  width: 116px;
  height: 116px;
  padding: 8px;
  background: var(--qr-tile);
}

.footer__tile img {
  display: block;
  width: 100px;
  height: 100px;
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__sep {
  color: var(--label);
}

/* Chinese: system fonts, and spacing tuned for Latin text does not apply. */

:root:lang(zh) {
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC";
  --display: "Source Sans 3", var(--cjk), system-ui, sans-serif;
  --text: "Hanken Grotesk", var(--cjk), system-ui, sans-serif;
  --mono: "IBM Plex Mono", var(--cjk), monospace;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) .case-card__client {
  letter-spacing: 0;
}

:lang(zh) h1,
:lang(zh) h2 {
  line-height: 1.15;
}

:lang(zh) .hero h1,
:lang(zh) .page-title,
:lang(zh) .section-title,
:lang(zh) .cta h2 {
  max-width: 10em;
}

:lang(zh) .about-title {
  max-width: 13em;
}

:lang(zh) .eyebrow,
:lang(zh) .list-title,
:lang(zh) .footer__title,
:lang(zh) .phase__length,
:lang(zh) .tool__labels,
:lang(zh) .nav {
  letter-spacing: 0.04em;
}

:lang(zh) p,
:lang(zh) li {
  line-height: 1.7;
}

/* Chinese can break between any two characters; prefer the punctuation. */
:lang(zh) h1,
:lang(zh) h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Responsive */

/* Equal footer columns are narrower than the two QR tiles in these ranges. */
@media (min-width: 970px) and (max-width: 1299px) {
  .footer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
  }
}

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

@media (max-width: 1060px) {
  .header,
  .header--landing {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 760px) {
  .split,
  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The language switch moves into the menu when the header runs out of room. */
.mobile-nav .lang,
.mobile-nav .theme {
  display: none;
  font-family: var(--mono);
  color: var(--ink-3);
}

.mobile-nav .theme {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.mobile-nav .lang a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.mobile-nav .lang a[aria-current="true"] {
  color: var(--ink);
}

@media (max-width: 720px) {
  .header__end .lang,
  .header__end .theme {
    display: none;
  }

  .mobile-nav .lang,
  .mobile-nav .theme {
    display: block;
  }
}

/* Translated sector labels can be longer than a phone is wide. */
@media (max-width: 420px) {
  .band__coords--upper {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .header__end .cta-small {
    display: none;
  }
}
