:root {
  --ink: #111614;
  --ink-soft: #535a56;
  --paper: #f4f0e7;
  --paper-light: #fbfaf6;
  --sand: #dfd1b9;
  --orange: #ef5a2f;
  --orange-dark: #c94420;
  --teal: #175d6c;
  --teal-dark: #0d3f4a;
  --line: rgba(17, 22, 20, 0.16);
  --white: #fff;
  --shadow: 0 22px 70px rgba(34, 30, 20, 0.12);
  --radius-sm: 14px;
  --radius: 26px;
  --radius-lg: 42px;
  --max: 1240px;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--max));
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.08);
  font-size: 25px;
  font-weight: 750;
  transform: rotate(-12deg);
  transform-origin: center;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  position: relative;
  padding: 9px 12px;
  color: #353b38;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(23, 93, 108, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.menu-toggle,
.gallery-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.button-primary:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.button-dark {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  width: 18px;
  height: 2px;
  display: block;
  content: "";
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span {
  margin: 4px 0;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 0;
  padding: 32px 24px 42px;
  color: var(--white);
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: visibility 220ms ease, opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
}

@supports (height: 100dvh) {
  .mobile-drawer {
    height: calc(100dvh - var(--header-h));
  }
}

.mobile-drawer[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.drawer-kicker,
.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mobile-nav {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 720;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mobile-nav small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mobile-nav i {
  font-style: normal;
  font-size: 20px;
}

.drawer-contact {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.drawer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: clamp(56px, 8vw, 112px) 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: clamp(34px, 5vw, 78px);
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.feature-copy h2,
.cta-band h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(46px, 7.6vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  display: block;
  max-width: 12ch;
  margin-top: 0.08em;
  color: var(--orange);
  font-size: 0.64em;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-copy .lead,
.page-hero .lead {
  max-width: 675px;
  margin: 28px 0 0;
  color: #3e4541;
  font-size: clamp(19px, 2.15vw, 29px);
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media,
.feature-media,
.wide-media,
.archive-media,
.gallery-media {
  position: relative;
  overflow: hidden;
  background: #d7ccb8;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 0 22px 18px 0;
}

.hero-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 9px solid var(--paper-light);
  border-radius: 52% 48% 43% 57% / 42% 45% 55% 58%;
  box-shadow: var(--shadow);
  transform: rotate(0.75deg);
}

.hero-media img,
.feature-media img,
.wide-media img,
.archive-media img,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.media-natural img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-media.media-natural,
.wide-media.media-natural {
  min-height: 0;
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 18px;
  width: clamp(92px, 9vw, 122px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #d8ff43;
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(-9deg);
  text-transform: uppercase;
}

.hero-stamp span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero-stamp b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-stamp strong {
  margin: 3px 0 1px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.media-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 17px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(17, 22, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.measurement-media .media-note {
  position: static;
  inset: auto;
  padding: 13px 17px 14px;
  border-radius: 0;
  background: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}

.stat-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-height: 118px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: clamp(76px, 10vw, 144px) 0;
}

.section-tight {
  padding: clamp(58px, 8vw, 100px) 0;
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-teal {
  color: var(--white);
  background: var(--teal-dark);
}

.section-white {
  background: var(--paper-light);
}

.section-heading {
  margin-bottom: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.4fr);
  align-items: end;
  gap: 40px;
}

.section-heading h2,
.feature-copy h2,
.cta-band h2 {
  max-width: 15ch;
  font-size: clamp(40px, 6vw, 82px);
}

.section-heading > p,
.feature-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.65vw, 22px);
}

.section-dark .section-heading > p,
.section-dark .feature-copy > p,
.section-teal .section-heading > p,
.section-teal .feature-copy > p {
  color: rgba(255, 255, 255, 0.7);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
}

.feature-grid.reverse .feature-media {
  order: 2;
}

.feature-copy {
  max-width: 620px;
}

.feature-copy h2 {
  margin-bottom: 28px;
}

.feature-copy p {
  margin: 0 0 18px;
}

.feature-copy .button {
  margin-top: 12px;
}

.feature-media {
  min-height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-media img {
  position: absolute;
  inset: 0;
}

.feature-media.media-natural img,
.wide-media.media-natural img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.image-pair {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.image-pair figure {
  margin: 0;
}

.image-pair .feature-media {
  aspect-ratio: 3 / 2;
  min-height: 0;
  border-radius: var(--radius);
}

figcaption {
  padding-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.metric {
  margin: 24px 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric strong {
  color: var(--orange);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.cards-4,
.cards-3 {
  display: grid;
  gap: 18px;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.rule-card,
.measure-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.section-dark .info-card,
.section-dark .rule-card,
.section-teal .info-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.card-number {
  display: block;
  margin-bottom: 54px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.info-card h3,
.rule-card h3,
.archive-copy h3 {
  margin: 0 0 13px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.info-card p,
.rule-card p,
.archive-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.section-dark .info-card p,
.section-dark .rule-card p,
.section-teal .info-card p {
  color: rgba(255, 255, 255, 0.68);
}

.diagram-wrap {
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f7f1e4;
  box-shadow: var(--shadow);
}

.diagram-wrap img {
  width: 100%;
  height: auto;
}

.quote {
  margin: 30px 0;
  padding: 24px 0 24px 26px;
  border-left: 4px solid var(--orange);
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.45;
}

.section-dark .quote,
.section-teal .quote {
  color: var(--white);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.archive-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.archive-card.wide {
  grid-column: span 8;
}

.archive-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #e8dfd0;
}

.archive-card.portrait .archive-media {
  aspect-ratio: 4 / 5;
}

.archive-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive-card.logo-card .archive-media {
  aspect-ratio: 1;
  background: #f5f1e8;
}

.archive-card.logo-card .archive-media img {
  object-fit: contain;
  padding: 2.5%;
}

.archive-subhead {
  grid-column: 1 / -1;
  padding: clamp(40px, 7vw, 84px) 0 8px;
}

.archive-subhead h3 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.archive-copy {
  padding: 25px 26px 29px;
}

.archive-copy .card-kicker {
  margin-bottom: 8px;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 22px;
  transition: color 180ms ease, background 180ms ease;
}

.gallery-button:hover {
  color: var(--ink);
  background: var(--white);
}

.gallery-track {
  width: 100%;
  margin-top: 42px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31vw);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(255, 255, 255, 0.16);
}

.gallery-card {
  margin: 0 0 24px;
  scroll-snap-align: start;
}

.gallery-media {
  height: min(68vh, 680px);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #080b0a;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-card.landscape {
  grid-column: span 2;
}

.gallery-card.landscape .gallery-media {
  min-width: min(76vw, 920px);
}

.section-dark .gallery-card figcaption,
.section-teal .gallery-card figcaption {
  color: rgba(255, 255, 255, 0.68);
}

.section-dark .gallery-card figcaption strong,
.section-teal .gallery-card figcaption strong {
  color: var(--white);
}

.gallery-card figcaption .card-kicker {
  display: block;
  margin: 0 0 7px;
}

.cta-band {
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 42px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--teal);
}

.cta-band h2 {
  margin-bottom: 20px;
}

.cta-band p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.page-hero {
  padding: clamp(64px, 9vw, 124px) 0 clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  align-items: end;
  gap: 48px;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(48px, 7.4vw, 100px);
}

.hero-facts {
  display: grid;
  border-top: 1px solid var(--line);
}

.hero-fact {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.hero-fact strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-fact span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1.68fr);
  gap: clamp(34px, 5vw, 76px);
}

.content-label {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}

.content-label .eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.content-label::after {
  width: 70px;
  height: 3px;
  margin-top: 18px;
  display: block;
  content: "";
  border-radius: 99px;
  background: var(--orange);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 0 0 25px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.prose h3 {
  margin: 44px 0 16px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.prose p {
  margin: 0 0 20px;
  color: #414844;
  font-size: clamp(17px, 1.6vw, 21px);
}

.section-dark .prose p,
.section-dark .prose li,
.section-teal .prose p,
.section-teal .prose li {
  color: rgba(255, 255, 255, 0.74);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25em;
}

.prose li {
  margin: 10px 0;
  padding-left: 8px;
}

.prose .button {
  margin-top: 18px;
}

.wide-media {
  min-height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.wide-media img {
  position: absolute;
  inset: 0;
}

.steps {
  list-style: none;
  counter-reset: steps;
  padding: 0 !important;
}

.steps li {
  counter-increment: steps;
  position: relative;
  margin: 0 !important;
  padding: 22px 0 22px 72px !important;
  border-top: 1px solid var(--line);
}

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

.steps li::before {
  position: absolute;
  top: 20px;
  left: 0;
  content: counter(steps, decimal-leading-zero);
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.rule-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 120px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.toc p {
  margin: 0 0 15px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.toc a:hover {
  color: var(--orange-dark);
}

.rules-stack {
  counter-reset: rules;
}

.rules-section {
  position: relative;
  padding: 0 0 58px 82px;
  counter-increment: rules;
}

.rules-section::before {
  position: absolute;
  top: 3px;
  left: 0;
  content: counter(rules, decimal-leading-zero);
  color: var(--orange);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.rules-section h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.rules-section ul {
  margin: 0;
  padding-left: 1.15em;
}

.rules-section li {
  margin: 9px 0;
  padding-left: 8px;
  color: #414844;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.04em;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

.measure-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.measure-card {
  min-height: 160px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.measure-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.measure-card strong {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.site-footer {
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 58px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}


.footer-contact {
  margin: 50px 0;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-contact a:not(.button) {
  color: var(--white);
  font-size: clamp(19px, 2.6vw, 31px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-youtube-button,
.footer-facebook-button {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.not-found {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 70px 24px;
}

.not-found-inner {
  max-width: 760px;
  text-align: center;
}

.not-found-code {
  color: var(--orange);
  font-size: clamp(90px, 24vw, 220px);
  font-weight: 850;
  line-height: 0.76;
  letter-spacing: -0.09em;
}

.not-found h1 {
  margin: 34px 0 16px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.not-found p {
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 19px;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:nth-child(3) {
    border-right: 0;
  }

  .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    padding-left: 0;
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .measure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 76px;
  }

  body {
    font-size: 16px;
  }

  .header-inner,
  .shell,
  .footer-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .feature-grid,
  .page-hero-grid,
  .content-grid,
  .section-heading,
  .rule-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(46px, 15vw, 78px);
  }

  .hero-media {
    min-height: 0;
  }

  .feature-grid.reverse .feature-media {
    order: initial;
  }

  .feature-media {
    min-height: 440px;
  }

  .section-heading {
    gap: 18px;
  }

  .content-label,
  .toc {
    position: static;
  }

  .content-label {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .content-label::after {
    margin-top: 0;
  }

  .archive-card,
  .archive-card.wide {
    grid-column: span 6;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: start;
  }

  .gallery-track {
    grid-auto-columns: minmax(270px, 76vw);
  }

  .gallery-card.landscape .gallery-media {
    min-width: 84vw;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-copy .lead,
  .page-hero .lead {
    font-size: 18px;
  }

  .hero-media {
    min-height: 0;
    border-width: 6px;
  }

  .hero-visual {
    padding: 0 16px 14px 0;
  }

  .hero-stamp {
    right: 8px;
    bottom: 12px;
    width: 88px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(3),
  .stat:nth-child(5) {
    padding-left: 0;
  }

  .cards-4,
  .image-pair,
  .measure-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .rule-card {
    min-height: 235px;
  }

  .feature-media:not(.media-natural),
  .wide-media:not(.media-natural) {
    min-height: 350px;
  }

  .media-natural {
    min-height: 0;
  }

  .diagram-wrap {
    margin-inline: -8px;
    padding: 8px;
    border-radius: 22px;
    overflow-x: auto;
  }

  .diagram-wrap img {
    min-width: 720px;
  }

  .archive-card,
  .archive-card.wide {
    grid-column: 1 / -1;
  }

  .rule-layout {
    gap: 54px;
  }

  .rules-section {
    padding: 0 0 48px 0;
  }

  .rules-section::before {
    position: static;
    display: block;
    margin-bottom: 12px;
  }

  .footer-contact,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Footer contact + social composition — 2026-08-18 v2 */
.footer-contact{margin:58px 0 48px;padding:44px 0 48px;display:block}
.footer-contact p{margin:0 0 14px;color:rgba(255,255,255,.52);font-size:13px;font-weight:650;letter-spacing:.075em;text-transform:uppercase}
.footer-contact a.footer-email:not(.button){display:inline-block;color:var(--white);font-size:clamp(30px,4.2vw,48px);line-height:1.06;font-weight:780;letter-spacing:-.05em;text-decoration-thickness:1px;text-underline-offset:8px;text-decoration-color:rgba(255,255,255,.38)}
.footer-actions{margin-top:38px;display:flex;align-items:center;justify-content:flex-start;gap:12px 22px;flex-wrap:wrap}
.footer-actions>.button:first-child{min-height:46px;padding:9px 20px;border-radius:15px;color:var(--ink);border-color:var(--white);background:var(--white);font-size:13px;font-weight:780}
.footer-actions>.footer-youtube-button,.footer-actions>.footer-facebook-button{min-height:0;padding:7px 0;border:0;border-radius:0;color:rgba(255,255,255,.72);background:transparent;font-size:13px;font-weight:680;text-decoration:none}
.footer-actions>.footer-youtube-button:hover,.footer-actions>.footer-facebook-button:hover{color:var(--white);background:transparent}
@media(max-width:560px){
.footer-contact{margin:48px 0 40px;padding:38px 0 42px}
.footer-contact p{margin-bottom:13px;font-size:11px}
.footer-contact a.footer-email:not(.button){font-size:clamp(26px,7.7vw,32px);overflow-wrap:anywhere}
.footer-actions{width:100%;margin-top:38px;display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;column-gap:28px;row-gap:19px}
.footer-actions>.button:first-child{grid-column:1 / -1;justify-self:start;flex:none;width:auto;min-height:44px;padding:9px 18px;border-radius:14px}
.footer-actions>.footer-youtube-button,.footer-actions>.footer-facebook-button{flex:none;width:auto;min-width:0;padding:6px 0}
}

/* Contact architecture — 2026-08-18 v3 */
.header-contact-ball{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 25px;
  margin-left:12px;
  border:0;
  border-radius:58% 42% 58% 42% / 50% 50% 50% 50%;
  background:var(--orange);
  color:var(--ink);
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transform:rotate(-1.5deg);
}
.header-contact-ball span{margin-left:7px;font-size:.9em}
.header-contact-ball:hover{transform:rotate(0deg) translateY(-1px)}

.footer-contact{text-align:center}
.footer-contact a.footer-email:not(.button){
  font-size:clamp(28px,4vw,44px);
  letter-spacing:-.045em;
}
.footer-actions{
  justify-content:center;
  margin-top:34px;
  gap:30px;
}
.footer-actions>.footer-youtube-button,
.footer-actions>.footer-facebook-button{
  color:rgba(255,255,255,.68);
}

@media(max-width:560px){
  .header-contact-ball{
    margin:18px 0 4px;
    min-height:44px;
    padding:10px 23px;
  }
  .footer-contact{text-align:center}
  .footer-contact a.footer-email:not(.button){
    font-size:clamp(25px,7.2vw,30px);
  }
  .footer-actions{
    display:flex;
    width:100%;
    justify-content:center;
    align-items:center;
    gap:28px;
    margin-top:30px;
  }
  .footer-actions>.footer-youtube-button,
  .footer-actions>.footer-facebook-button{
    flex:0 0 auto;
    width:auto;
  }
}

/* Header contact ball — actual header structure */
.header-actions .header-contact-ball{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:9px 21px;margin-right:8px;
  border-radius:58% 42% 58% 42% / 50% 50% 50% 50%;
  background:var(--orange);color:var(--ink);
  font-size:12px;font-weight:800;line-height:1;text-decoration:none;
  white-space:nowrap;transform:rotate(-1.2deg);
}
.header-actions .header-contact-ball span,
.drawer-contact-ball span{margin-left:6px}
.drawer-contact-ball{
  display:none;
}
@media(max-width:900px){
  .header-actions .header-contact-ball{display:none}
  .drawer-contact-ball{
    display:inline-flex;align-items:center;justify-content:center;
    align-self:flex-start;
    min-height:48px;padding:11px 25px;margin:24px 0 6px;
    border-radius:58% 42% 58% 42% / 50% 50% 50% 50%;
    background:var(--orange);color:var(--ink);
    font-size:13px;font-weight:800;line-height:1;text-decoration:none;
    transform:rotate(-1.2deg);
  }
}

/* Footer social parity — YouTube = Facebook */
.footer-actions > a.footer-youtube-button.button,
.footer-actions > a.footer-facebook-button,
.footer-actions > a.footer-facebook-button.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:0;
  padding:6px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:rgba(255,255,255,.68);
  font:inherit;
  font-size:13px;
  font-weight:680;
  line-height:1.2;
  text-decoration:none;
}
.footer-actions > a.footer-youtube-button.button:hover,
.footer-actions > a.footer-facebook-button:hover,
.footer-actions > a.footer-facebook-button.button:hover {
  background:transparent;
  color:var(--white);
  transform:none;
}
@media(max-width:560px){
  .footer-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:nowrap;
    gap:30px;
  }
}

/* Definitive footer social links: no generic .button inheritance */
.footer-actions > .footer-social-link{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;min-width:0;min-height:0;padding:6px 0;
 border:0;border-radius:0;background:transparent;box-shadow:none;
 color:rgba(255,255,255,.68);font-size:13px;font-weight:680;
 line-height:1.2;text-decoration:none;
}
.footer-actions > .footer-social-link:hover{background:transparent;color:var(--white);transform:none}

/* Final social refinement — quieter secondary links */
.footer-actions > .footer-social-link{
  color:rgba(255,255,255,.58);
  font-weight:600;
}
.footer-actions > .footer-social-link:hover{
  color:rgba(255,255,255,.86);
}


/* Footer social links — single common visual rule */
.footer-actions > a.footer-social-link,
.footer-actions > a.footer-social-link:link,
.footer-actions > a.footer-social-link:visited,
.footer-actions > a.footer-social-link:hover,
.footer-actions > a.footer-social-link:focus,
.footer-actions > a.footer-social-link:focus-visible,
.footer-actions > a.footer-social-link:active {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:0;
  padding:6px 0;
  border:0;
  border-bottom:0;
  border-radius:0;
  outline:0;
  box-shadow:none;
  background:transparent;
  background-image:none;
  color:rgba(255,255,255,.58);
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  text-decoration-line:none;
  text-decoration-color:transparent;
  text-decoration-thickness:0;
}
.footer-actions > a.footer-social-link:hover {
  color:rgba(255,255,255,.86);
}

/* Final mobile contact architecture — visible in header, no duplicate in drawer */
@media (max-width:900px){
  .header-actions .header-contact-ball{
    display:inline-flex;
    min-height:0;
    padding:0 0 2px;
    margin:0 14px 0 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--ink);
    font-size:16px;
    font-weight:500;
    line-height:1.15;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:5px;
    transform:none;
  }
  .header-actions .header-contact-ball:hover{
    transform:none;
  }
  .drawer-contact-ball{
    display:none !important;
  }
}
