:root {
  --color-gunmetal: #0E1114;
  --color-wet-asphalt: #1A1F24;
  --color-armour-plate: #2E363D;
  --color-pale-grey: #D6DBDF;
  --color-muted-grey: #8A949C;
  --color-signal-orange: #FF5A1F;
  --color-acid-yellow: #D7FF3C;
  --color-deep-black: #080A0C;
  --color-focus-ring: #FF5A1F;

  --font-heading: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --text-display-size: clamp(36px, 5vw, 56px);
  --text-display-line-height: 1.05;
  --text-display-weight: 700;
  --text-display-tracking: -0.02em;

  --text-h1-size: clamp(28px, 4vw, 40px);
  --text-h1-line-height: 1.1;
  --text-h1-weight: 700;
  --text-h1-tracking: -0.01em;

  --text-h2-size: clamp(26px, 3vw, 32px);
  --text-h2-line-height: 1.15;
  --text-h2-weight: 600;
  --text-h2-tracking: 0;

  --text-h3-size: clamp(22px, 2.5vw, 24px);
  --text-h3-line-height: 1.2;
  --text-h3-weight: 600;
  --text-h3-tracking: 0;

  --text-h4-size: 20px;
  --text-h4-line-height: 1.25;
  --text-h4-weight: 600;
  --text-h4-tracking: 0;

  --text-body-large-size: 18px;
  --text-body-large-line-height: 1.6;
  --text-body-large-weight: 400;
  --text-body-large-tracking: 0;

  --text-body-size: 16px;
  --text-body-line-height: 1.6;
  --text-body-weight: 400;
  --text-body-tracking: 0;

  --text-small-size: 14px;
  --text-small-line-height: 1.5;
  --text-small-weight: 400;
  --text-small-tracking: 0;

  --text-label-size: 12px;
  --text-label-line-height: 1.4;
  --text-label-weight: 600;
  --text-label-tracking: 0.08em;

  --text-coordinate-size: 11px;
  --text-coordinate-line-height: 1.4;
  --text-coordinate-weight: 500;
  --text-coordinate-tracking: 0.12em;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --container-max: 1200px;
  --container-full-bleed-max: 1440px;
  --container-padding-mobile: 24px;
  --container-padding-desktop: 48px;

  --section-gap-desktop: 96px;
  --section-gap-mobile: 64px;
  --block-gap-desktop: 32px;
  --block-gap-mobile: 24px;

  --border-thickness: 1px;
  --border-color: var(--color-armour-plate);

  --clip-panel: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --clip-button: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --clip-tag: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);

  --focus-outline-width: 2px;
  --focus-outline-offset: 2px;
  --focus-outline-color: var(--color-signal-orange);

  --touch-target-min: 44px;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-gunmetal);
  color: var(--color-pale-grey);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-tracking);
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
  object-position: center;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: inherit;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
}

a {
  color: var(--color-pale-grey);
  text-decoration: none;
  cursor: pointer;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-pale-grey);
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h1-tracking);
  margin-block-end: var(--space-lg);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-tracking);
  margin-block-end: var(--space-md);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
  margin-block-end: var(--space-sm);
}

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--text-h4-weight);
  letter-spacing: var(--text-h4-tracking);
  margin-block-end: var(--space-sm);
}

p {
  margin: 0;
  margin-block-end: var(--space-md);
  overflow-wrap: anywhere;
  hyphens: auto;
}

p:last-child {
  margin-block-end: 0;
}

ul,
ol {
  margin: 0;
  padding-inline-start: var(--space-lg);
  margin-block-end: var(--space-md);
}

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

li {
  margin: 0;
  padding: 0;
}

blockquote {
  margin: 0;
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-lg);
  border-inline-start: var(--border-thickness) solid var(--color-armour-plate);
  color: var(--color-muted-grey);
  overflow-wrap: anywhere;
  hyphens: auto;
}

blockquote:last-child {
  margin-block-end: 0;
}

figure {
  margin: 0;
  margin-block-end: var(--space-md);
}

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: var(--text-coordinate-size);
  line-height: var(--text-coordinate-line-height);
  font-weight: var(--text-coordinate-weight);
  letter-spacing: var(--text-coordinate-tracking);
  text-transform: uppercase;
  color: var(--color-muted-grey);
  margin-block-start: var(--space-xs);
}

hr {
  border: none;
  border-block-start: var(--border-thickness) solid var(--color-armour-plate);
  margin: var(--space-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border-thickness) solid var(--color-armour-plate);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  overflow-wrap: anywhere;
  hyphens: auto;
}

th,
td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-block-end: var(--border-thickness) solid var(--color-armour-plate);
  vertical-align: top;
}

th {
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-pale-grey);
  background-color: var(--color-wet-asphalt);
}

tr:last-child td,
tr:last-child th {
  border-block-end: none;
}

code,
pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
  hyphens: none;
}

pre {
  background-color: var(--color-deep-black);
  border: var(--border-thickness) solid var(--color-armour-plate);
  padding: var(--space-md);
  overflow-x: auto;
  max-width: 100%;
  margin-block-end: var(--space-md);
}

pre:last-child {
  margin-block-end: 0;
}

code {
  background-color: var(--color-wet-asphalt);
  padding: var(--space-2xs) var(--space-xs);
  border: var(--border-thickness) solid var(--color-armour-plate);
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
}

.container-full-bleed {
  width: 100%;
  max-width: var(--container-full-bleed-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
}

.surface-panel {
  background-color: var(--color-wet-asphalt);
  border: var(--border-thickness) solid var(--color-armour-plate);
  clip-path: var(--clip-panel);
  padding: var(--space-lg);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.surface-panel > :last-child {
  margin-block-end: 0;
}

.surface-deep {
  background-color: var(--color-deep-black);
  border: var(--border-thickness) solid var(--color-armour-plate);
  clip-path: var(--clip-panel);
  padding: var(--space-lg);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.surface-deep > :last-child {
  margin-block-end: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  border: var(--border-thickness) solid var(--color-armour-plate);
  clip-path: var(--clip-button);
  cursor: pointer;
  text-align: center;
  transition: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.btn-primary {
  background-color: var(--color-signal-orange);
  color: var(--color-gunmetal);
  border-color: var(--color-signal-orange);
}

.btn-primary:hover {
  background-color: var(--color-pale-grey);
  border-color: var(--color-pale-grey);
  color: var(--color-gunmetal);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-pale-grey);
  border-color: var(--color-armour-plate);
}

.btn-secondary:hover {
  background-color: var(--color-wet-asphalt);
  border-color: var(--color-pale-grey);
  color: var(--color-pale-grey);
}

.btn:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.label {
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-pale-grey);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.coordinate {
  font-size: var(--text-coordinate-size);
  line-height: var(--text-coordinate-line-height);
  font-weight: var(--text-coordinate-weight);
  letter-spacing: var(--text-coordinate-tracking);
  text-transform: uppercase;
  color: var(--color-muted-grey);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-pale-grey);
  background-color: var(--color-wet-asphalt);
  border: var(--border-thickness) solid var(--color-armour-plate);
  clip-path: var(--clip-tag);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.tag-live {
  color: var(--color-acid-yellow);
  border-color: var(--color-acid-yellow);
}

.tag-inactive {
  color: var(--color-muted-grey);
  border-color: var(--color-muted-grey);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-live {
  background-color: var(--color-acid-yellow);
}

.status-dot-inactive {
  background-color: transparent;
  border: var(--border-thickness) solid var(--color-muted-grey);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--text-coordinate-size);
  line-height: 1;
  font-weight: var(--text-coordinate-weight);
  letter-spacing: var(--text-coordinate-tracking);
  text-transform: uppercase;
}

.status-badge-live {
  background-color: var(--color-acid-yellow);
  color: var(--color-gunmetal);
}

.status-badge-inactive {
  background-color: transparent;
  border: var(--border-thickness) solid var(--color-muted-grey);
  color: var(--color-muted-grey);
}

.crosshair {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-muted-grey);
}

.crosshair svg {
  width: 100%;
  height: 100%;
  display: block;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: var(--border-thickness) solid var(--color-armour-plate);
  clip-path: var(--clip-panel);
  background-color: var(--color-wet-asphalt);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-gunmetal);
  opacity: 0.2;
  pointer-events: none;
}

.image-frame-16-9 {
  aspect-ratio: 16 / 9;
}

.image-frame-4-3 {
  aspect-ratio: 4 / 3;
}

.image-frame-1-1 {
  aspect-ratio: 1 / 1;
}

.image-frame-1-1 img {
  object-position: center;
}

.image-frame-1-1 img.portrait-mobile-crop {
  object-position: center 30%;
}

.divider {
  border: none;
  border-block-start: var(--border-thickness) solid var(--color-armour-plate);
  margin: var(--space-lg) 0;
}

.divider-with-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: none;
  margin: var(--space-lg) 0;
}

.divider-with-label::before {
  content: '';
  flex: 1;
  border-block-start: var(--border-thickness) solid var(--color-armour-plate);
}

.divider-with-label .coordinate {
  flex-shrink: 0;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  min-width: 0;
}

.flex-row > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.flex-col > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-width: 0;
}

.flex-center > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-width: 0;
}

.flex-between > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  background-color: var(--color-signal-orange);
  color: var(--color-gunmetal);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  clip-path: var(--clip-button);
  border: var(--border-thickness) solid var(--color-signal-orange);
}

.skip-link:focus {
  top: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }

  .container-full-bleed {
    padding-inline: var(--container-padding-desktop);
  }
}

@media (max-width: 767px) {
  .surface-panel,
  .surface-deep {
    padding: var(--space-md);
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}