/* Shared HUD foundation: design tokens, page panel and masthead.
   Loaded by every page in the set; page-specific rules live alongside it. */
/* Bebas Neue - SIL Open Font License 1.1, self-hosted so the page stays offline-safe */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Oswald - SIL Open Font License 1.1, self-hosted; the condensed display cut
   used for the Projekte wordmark and the project index numbers */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page-bg: #121418;
  --page-gradient:
    radial-gradient(120% 55% at 78% 14%, rgba(19, 74, 116, 0.45) 0%, rgba(19, 74, 116, 0) 60%),
    linear-gradient(180deg, var(--panel-top) 0%, #04101f 45%, var(--panel-bottom) 100%);
  --panel-top: #071426;
  --panel-bottom: #010610;
  --panel-edge: #16273a;

  --pink: #ee1e6c;
  --cyan: #1ec3cc;
  --gold: #f7b02a;
  --white: #f5f6f5;
  --text: #b9c2ce;
  --muted: #7d8797;
  --rule: #33445a;
  --rule-soft: #23364b;

  --font-display: 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  --font-condensed: 'Oswald', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-prose: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

  --panel-width: 1070px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--page-bg);
  background-image: var(--page-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--gold);
  color: #05121f;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.panel {
  width: min(var(--panel-width), 100%);
  min-height: 100vh;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  display: flex;
  align-items: center;
  height: 68px;
  padding-right: 20px;
  border-bottom: 1px solid var(--panel-edge);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  padding: 14px 22px;
  color: var(--white);
  text-decoration: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)),
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)),
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)),
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}

.brand_mark {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.72;
  letter-spacing: -0.02em;
}

.brand_mark b {
  color: var(--pink);
  font-weight: 400;
}

.brand_mark i {
  margin-left: -0.16em;
  color: var(--cyan);
  font-style: normal;
}

.brand_text {
  display: grid;
  gap: 5px;
}

.brand_text b {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.brand_text small {
  color: var(--cyan);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.mainnav {
  display: flex;
  gap: 30px;
  margin-left: clamp(20px, 9vw, 95px);
}

.mainnav a {
  position: relative;
  padding: 24px 0;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.mainnav a:hover,
.mainnav a:focus-visible {
  color: var(--white);
}

.mainnav .is-current {
  color: var(--pink);
}

.mainnav .is-current::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--pink);
}

.mainnav .is-contact {
  color: var(--gold);
}

.nav_toggle {
  display: none;
  margin-left: auto;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav_toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--cyan);
}

.sys_signal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0 auto;
  padding: 11px 15px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--cyan);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.sys_bars {
  width: 16px;
  height: 10px;
  fill: var(--cyan);
}

.sys_signal b {
  color: #dfe8ee;
  font-weight: 400;
}

/* --------------------------------------------------------- masthead: small */

@media (max-width: 1069px) {
  .masthead {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px 10px 0;
  }

  .sys_signal {
    display: none;
  }

  .nav_toggle {
    display: block;
  }

  .mainnav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin: 8px 0 0;
    padding: 8px 16px 4px;
    border-top: 1px solid var(--panel-edge);
  }

  .mainnav.is-open {
    display: flex;
  }

  .mainnav a {
    padding: 12px 0;
  }

  .mainnav .is-current::after {
    right: auto;
    bottom: 8px;
    width: 46px;
  }
}

/* ------------------------------------------------------------------ footer */

.siteend {
  position: relative;
  padding: 34px 27px 20px;
  border-top: 1px solid var(--panel-edge);
}

/* the same dim diagonal hatch the section frames carry, as a top-right tick */
.siteend_hatch {
  position: absolute;
  top: 16px;
  right: 27px;
  width: 66px;
  height: 12px;
  background: repeating-linear-gradient(108deg, transparent 0 4px, #6d7c90 4px 6px);
  pointer-events: none;
}

.siteend_prompt {
  margin: 0 0 26px;
  color: #c3c8d1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.siteend_prompt .pink {
  color: var(--pink);
}

.siteend_prompt .cyan {
  color: var(--cyan);
}

.siteend_prompt .gold {
  color: var(--gold);
}

.foot_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 316px;
  gap: 10px 26px;
  align-items: start;
}

.foot_col {
  --accent: var(--pink);
}

.foot_col--cyan {
  --accent: var(--cyan);
}

.foot_col--gold {
  --accent: var(--gold);
}

.foot_title {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.21em;
}

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

.foot_list li {
  padding: 5px 0;
}

.foot_list a {
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.foot_list a:hover,
.foot_list a:focus-visible {
  color: var(--white);
}

.foot_note {
  margin: 0 0 9px;
  color: #aab3c0;
  font-size: 11px;
  line-height: 1.7;
}

/* ------------------------------------------------------------ cookie panel */

/* Same 1px chamfered HUD outline as the cards: the outer element is the
   stroke colour and the inner body paints the fill back over it. */
.cookies {
  --accent: var(--gold);
  background: #3a4a5f;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.cookies_body {
  position: relative;
  margin: 1px;
  padding: 18px 16px 20px;
  background: #050e1c;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.cookies_head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.cookies_icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.cookies_icon .crumb {
  fill: var(--accent);
  stroke: none;
}

.cookies_head b {
  color: var(--white);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.21em;
}

.cookies_count {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.cookies_text {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--rule-soft);
  color: #aab3c0;
  font-size: 11px;
  line-height: 1.85;
}

.cookies_dot {
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------- colophon */

.siteend_bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.13em;
}

.siteend_built {
  color: #4d5b6d;
}

/* ----------------------------------------------------------- footer: small */

@media (max-width: 1069px) {
  .siteend {
    padding: 28px 20px 18px;
  }

  .siteend_hatch {
    display: none;
  }

  .foot_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .cookies {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .siteend {
    padding: 24px 14px 16px;
  }

  .foot_grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
