:root {
  --paper: #f4f2ed;
  --ink: #0b0b0b;
  --muted: rgba(11, 11, 11, 0.58);
  --hairline: rgba(11, 11, 11, 0.12);
  --edge: clamp(22px, 3.7vw, 58px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

body.home,
body.systems-page {
  min-height: 100svh;
  overflow: hidden;
}

#systems-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
.site-footer,
.home-main,
.systems-main {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: var(--edge);
  left: var(--edge);
  right: var(--edge);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 5;
}

.mark-link { display: block; line-height: 0; }
.mark {
  width: 42px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.site-nav a {
  position: relative;
  padding-bottom: 5px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12vh var(--edge);
}

.wordmark {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(58px, 7.1vw, 108px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(0.06em);
  white-space: nowrap;
}

.site-footer {
  position: fixed;
  left: var(--edge);
  right: var(--edge);
  bottom: calc(var(--edge) - 2px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  z-index: 5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted);
}

.motto { white-space: nowrap; }
.clock {
  display: flex;
  gap: 17px;
  align-items: center;
  white-space: nowrap;
}

/* Systems */
.systems-page #systems-field { display: none; }
.systems-main {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 15vh var(--edge) 14vh;
}
.systems-copy {
  width: min(840px, 69vw);
  margin-left: clamp(0px, 3vw, 42px);
}
.eyebrow {
  margin-bottom: clamp(26px, 4vh, 48px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.systems-copy h1 {
  margin: 0 0 clamp(32px, 5vh, 58px);
  max-width: 790px;
  font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.manifesto {
  max-width: 720px;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.46;
  letter-spacing: -0.018em;
}
.manifesto p { margin: 0 0 0.95em; }
.manifesto .break-line {
  margin-top: 1.15em;
  margin-bottom: 1.15em;
  font-weight: 500;
}
.systems-motto {
  margin-top: clamp(34px, 5vh, 62px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  :root { --edge: 22px; }
  .mark { width: 34px; }
  .site-nav { gap: 18px; font-size: 9.5px; }
  .home-main { padding-inline: 18px; }
  .wordmark {
    font-size: clamp(40px, 12.8vw, 66px);
    letter-spacing: 0.085em;
  }
  .site-footer {
    font-size: 8.5px;
    letter-spacing: 0.025em;
  }
  .clock { gap: 9px; }
  .clock-location { display: none; }

  body.systems-page { overflow-y: auto; }
  .systems-main {
    min-height: auto;
    padding: 150px var(--edge) 120px;
  }
  .systems-copy {
    width: 100%;
    margin-left: 0;
  }
  .eyebrow { margin-bottom: 28px; }
  .systems-copy h1 {
    font-size: clamp(46px, 12.5vw, 64px);
    line-height: 0.98;
    margin-bottom: 38px;
  }
  .manifesto {
    font-size: 18px;
    line-height: 1.52;
  }
  .systems-motto { margin-top: 46px; }
  .systems-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 var(--edge) 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #systems-field { display: none; }
}
