html {
  background: var(--global-header-bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ui-text);
  background-color: var(--global-header-bg);
  background: linear-gradient(180deg, var(--ui-top-gradient-start, var(--global-header-bg)) 0%, var(--ui-top-gradient-mid, var(--global-header-bg)) 42%, var(--ui-top-gradient-end, var(--ui-bg, var(--global-header-bg))) 100%);
  font-family: var(--ui-font-body);
}

:root {
  --ui-bg: #f7f2ea;
  --ui-bg-soft: rgba(255, 250, 241, 0.96);
  --ui-surface: #fffaf3;
  --ui-surface-soft: rgba(255, 255, 255, 0.82);
  --ui-text: #1f2022;
  --ui-muted: #5f5f63;
  --ui-accent: #2d5ab2;
  --ui-line: rgba(31, 45, 58, 0.12);
  --ui-line-strong: rgba(31, 45, 58, 0.24);
  --ui-shadow: rgba(20, 24, 19, 0.09);
  --ui-shadow-soft: rgba(20, 24, 19, 0.05);
  --ui-font-body: "Fraunces", Georgia, "Times New Roman", serif;
  --ui-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui-font-ui: "IBM Plex Sans Condensed", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ui-top-gradient-start: var(--global-header-bg);
  --ui-top-gradient-mid: var(--global-header-bg);
  --ui-top-gradient-end: var(--ui-bg);
  --ui-shell-width: 1080px;
  --ui-shell-padding: 20px;
  --ui-shell-padding-top: 24px;
  --ui-local-nav-padding-y: 16px;
  --ui-local-nav-padding-x: 18px;
  --ui-local-nav-padding-bottom: 18px;
  --ui-local-nav-gap: 16px;
  --ui-local-nav-margin-bottom: 22px;
  --ui-local-nav-radius: 18px;
  --ui-local-nav-bg: rgba(255, 255, 255, 0.52);
  --ui-local-nav-border: rgba(0, 0, 0, 0.08);
  --ui-local-nav-shadow: 0 10px 28px var(--ui-shadow-soft);
  --ui-card-radius: 14px;
  --ui-section-radius: 24px;

  --bg: var(--ui-bg);
  --surface: var(--ui-surface);
  --surface-soft: var(--ui-surface-soft);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --accent: var(--ui-accent);
  --line: var(--ui-line);
  --shadow: var(--ui-shadow);

  --global-header-bg: #50555c;
  --global-header-text: #f8f4ec;
  --global-header-muted: rgba(248, 244, 236, 0.76);
  --global-header-chip: rgba(255, 250, 243, 0.88);
  --global-header-chip-inactive: rgba(255, 250, 243, 0.18);
  --global-header-chip-active-text: #1b2024;
  --global-header-shadow: rgba(22, 27, 31, 0.14);
  --global-header-pill-font: "IBM Plex Sans Condensed", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --global-header-pill-radius: 999px;
  --global-header-pill-padding-y: 9px;
  --global-header-pill-padding-x: 16px;
  --global-header-pill-size: 0.94rem;
  --global-header-pill-weight: 600;
  --global-header-pill-letter-spacing: 0.08em;
  --global-header-pill-spacing: 8px;
  --global-header-pill-spacing-inline: 18px;
  --global-local-nav-pill: rgba(255, 255, 255, 0.1);
  --global-local-nav-pill-active: rgba(255, 255, 255, 0.22);
  --global-local-nav-pill-shadow: rgba(255, 255, 255, 0.2);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--ui-shell-width);
  margin: 0 auto;
  padding: var(--ui-shell-padding);
}

.site-shell {
  padding-top: var(--ui-shell-padding-top);
}

.global-header {
  position: relative;
  z-index: 120;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--global-header-bg);
  border-bottom: 1px solid rgba(17, 21, 24, 0.14);
  box-shadow: 0 10px 28px var(--global-header-shadow);
}

.global-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.global-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 17px 20px 18px;
  overflow: visible;
}

.site-switcher {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: "IBM Plex Sans Condensed", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.site-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--global-header-pill-spacing) var(--global-header-pill-spacing-inline);
}

.site-links-primary {
  justify-content: flex-start;
}

.site-links-secondary {
  justify-content: flex-end;
  margin-left: auto;
}

.site-link {
  display: inline-flex;
  align-items: center;
  padding: var(--global-header-pill-padding-y) var(--global-header-pill-padding-x);
  border: 1px solid transparent;
  border-radius: var(--global-header-pill-radius);
  background: var(--global-header-chip-inactive);
  color: var(--global-header-muted);
  font-family: var(--global-header-pill-font);
  font-size: var(--global-header-pill-size);
  font-weight: var(--global-header-pill-weight);
  letter-spacing: var(--global-header-pill-letter-spacing);
  text-transform: uppercase;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.site-link:hover {
  color: var(--global-header-text);
  text-decoration: none;
  opacity: 1;
}

.site-link.is-active {
  background: var(--global-header-chip);
  color: var(--global-header-chip-active-text);
}

.site-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.site-menu {
  position: relative;
}

.site-menu summary {
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu-trigger::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.74;
}

.site-menu[open] .site-menu-trigger::after {
  transform: rotate(-135deg) translateY(-1px);
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(39, 43, 48, 0.96);
  box-shadow: 0 18px 38px rgba(11, 14, 17, 0.28);
  display: grid;
  gap: 2px;
  z-index: 260;
}

.site-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--global-header-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--global-header-pill-font);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--global-header-text);
  text-decoration: none;
}

.site-menu-link.is-active {
  background: rgba(255, 250, 243, 0.88);
  color: #1b2024;
}

.local-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-local-nav-gap);
  padding: var(--ui-local-nav-padding-y) var(--ui-local-nav-padding-x) var(--ui-local-nav-padding-bottom);
  margin-bottom: var(--ui-local-nav-margin-bottom);
  border: 1px solid var(--ui-local-nav-border);
  border-radius: var(--ui-local-nav-radius);
  background: var(--ui-local-nav-bg);
  box-shadow: var(--ui-local-nav-shadow);
}

.local-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-nav-home,
.brand {
  font-family: var(--ui-font-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.local-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--ui-font-ui);
}

.local-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: var(--global-local-nav-pill);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.local-nav-link.is-active {
  background: var(--global-local-nav-pill-active);
  color: var(--text);
  border-color: var(--global-local-nav-pill-shadow);
}

.local-nav-meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  padding: 26px 0 18px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

h3 {
  margin: 0.3rem 0 0.7rem;
  font-size: 1.12rem;
}

.lead {
  max-width: 72ch;
  font-size: 1.1rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-card-radius);
  padding: 16px;
  box-shadow: 0 10px 28px var(--ui-shadow-soft);
}

.stack {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.metric-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--ui-card-radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ui-line);
}

.metric-card strong {
  font-size: 1.3rem;
  line-height: 1.1;
}

.metric-card span {
  color: var(--muted);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-family: var(--ui-font-ui);
}

.media img,
.shot img,
.tile img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.gate {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

input[type="password"] {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.masonry {
  columns: 3 260px;
  column-gap: 16px;
}

.shot {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
}

footer {
  margin: 34px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-line);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.site-footer-links a,
.site-footer-contact a {
  color: inherit;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 860px) {
  .global-header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-shell {
    padding-top: calc(var(--ui-shell-padding-top) * 0.75);
  }

  .site-switcher {
    align-items: flex-start;
  }

  .site-links {
    width: 100%;
    gap: 10px;
  }

  .site-menu-panel {
    right: auto;
    left: 0;
    min-width: min(280px, calc(100vw - 40px));
  }

  .tile {
    grid-template-columns: 1fr;
  }

  .local-nav {
    padding: 14px;
  }

  .local-nav-link {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
