@font-face {
  font-family: "Archivo";
  src: url("./assets/fonts/archivo-v25-latin-wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-v20-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --raised: #ffffff;
  --ink: #12110f;
  --muted: #5f5c56;
  --line: #dedbd4;
  --red: #c73220;
  --red-dark: #9f2518;
  --accent-ink: #f3efe6;
  --band: #12110f;
  --band-ink: #f3efe6;
  --accent-text: #9f2518;
  --focus: #c73220;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --type-masthead: clamp(3.5rem, 10.75vw, 9.25rem);
  --type-display: clamp(2.75rem, 6.2vw, 5rem);
  --type-section: clamp(2rem, 4.2vw, 3.5rem);
  --type-service: clamp(1.375rem, 2.4vw, 2rem);
  --type-proof: clamp(2.75rem, 5vw, 4.5rem);
  --type-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-micro: 0.75rem;
  --type-nano: 0.6875rem;
}

html[data-theme="swiss-dark"] {
  color-scheme: dark;
  --paper: #11100e;
  --raised: #171613;
  --ink: #f3efe6;
  --muted: #b9b3a8;
  --line: #37332c;
  --red: #c73220;
  --red-dark: #9f2518;
  --accent-ink: #f3efe6;
  --band: #171613;
  --band-ink: #f3efe6;
  --accent-text: #f3efe6;
  --focus: #c73220;
}

html[data-theme="institutional-light"] {
  color-scheme: dark;
  --paper: #4a0d0d;
  --raised: #641416;
  --ink: #f4ecdd;
  --muted: #d8c9a8;
  --line: #b78a2e;
  --red: #d8b25a;
  --red-dark: #7d1818;
  --accent-ink: #3b080a;
  --band: #2a0608;
  --band-ink: #f4ecdd;
  --accent-text: #e8d39a;
  --focus: #ffd979;
}

html[data-theme="institutional-dark"] {
  color-scheme: dark;
  --paper: #071f1c;
  --raised: #0e342f;
  --ink: #f3ead6;
  --muted: #bfd0c5;
  --line: #65998d;
  --red: #d8b45a;
  --red-dark: #0a5a52;
  --accent-ink: #0b2421;
  --band: #041412;
  --band-ink: #f3ead6;
  --accent-text: #e9d08b;
  --focus: #f0d58e;
  --teal: #68bdae;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
summary {
  color: inherit;
  font: inherit;
}

button {
  border-radius: 0;
}

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

h1,
h2,
h3,
p {
  margin-block: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--red);
  color: var(--accent-ink);
}

:target {
  scroll-margin-top: calc(var(--space-20) + var(--space-2));
}

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

#main-content:focus {
  outline: none;
}

.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: fixed;
  z-index: 200;
  top: var(--space-2);
  left: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--red);
  color: var(--accent-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(calc(-100% - var(--space-4)));
}

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

.mono-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-micro);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--raised);
  border-bottom: 1px solid var(--ink);
}

.site-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  max-width: 1280px;
  min-height: 72px;
  margin-inline: auto;
  padding-inline: var(--space-10);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-nano);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-family: "Archivo", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.brand-link__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.raven-fill,
.raven-ink-eye {
  fill: var(--ink);
}

.raven-beak {
  fill: var(--red);
}

.raven-eye {
  fill: var(--raised);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
  white-space: nowrap;
}

.nav-link,
.nav-future,
.preview-copy,
.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-link {
  min-width: 44px;
  justify-content: center;
}

.header-action {
  justify-content: center;
  padding-inline: var(--space-4);
  border: 1px solid var(--band);
  background: var(--band);
  color: var(--band-ink);
  font-weight: 500;
}

.header-action--mobile {
  display: none;
}

.mobile-nav__panel .header-action--mobile {
  display: inline-flex;
  margin-top: var(--space-3);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: var(--space-1);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: var(--space-1);
}

.nav-future,
.preview-copy {
  color: var(--muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-switcher {
  position: fixed;
  z-index: 160;
  right: var(--space-4);
  bottom: var(--space-4);
  display: none;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--raised);
}

html[data-js="true"] .theme-switcher {
  display: flex;
}

.theme-option {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.theme-option:last-child {
  border-right: 0;
}

.theme-swatch {
  width: 15px;
  height: 15px;
  border: 1px solid rgb(18 17 15 / 34%);
  border-radius: 50%;
  background: var(--swatch);
}

.theme-option[aria-pressed="true"] .theme-swatch {
  box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink);
}

.theme-option[data-theme-option="swiss-light"] { --swatch: #fbfaf7; }
.theme-option[data-theme-option="swiss-dark"] { --swatch: #11100e; }
.theme-option[data-theme-option="institutional-light"] {
  --swatch: radial-gradient(circle at 32% 28%, #e8d39a 0 18%, #6d1414 21% 100%);
}

.theme-option[data-theme-option="institutional-dark"] {
  --swatch: radial-gradient(circle at 32% 28%, #d8b45a 0 18%, #0e4b43 21% 100%);
}

.mobile-nav {
  display: none;
}

.site-field {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
}

.paper-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.site-field > :not(.paper-grid) {
  position: relative;
  z-index: 1;
}
