:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --ink: #171918;
  --faint: #d3d4ce;
  --green: #13a978;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--paper); }
body { min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.wordmark { font-size: 19px; font-weight: 900; letter-spacing: -.07em; text-decoration: none; }
.wordmark span, .label { color: var(--green); }

/* Landing page */
.landing-page { overflow-x: clip; background: #070a09; }
.scroll-journey { height: 100vh; height: 100dvh; }
.scroll-stage { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #070a09; }
.background-video {
  position: absolute;
  z-index: 1;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}
.technical-scene { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; }
.grid-minor { fill: none; stroke: #dfe8e4; stroke-width: .35; opacity: .08; }
.grid-major { fill: none; stroke: #dfe8e4; stroke-width: .75; opacity: .14; }
.truss-rig {
  filter:
    drop-shadow(-1px -1px .5px rgb(255 255 255 / 42%))
    drop-shadow(2px 3px 1.5px rgb(0 0 0 / 58%))
    drop-shadow(0 0 8px rgb(19 169 120 / 80%));
}
.truss-chord, .truss-rear-chord, .truss-depth-members, .truss-side-web, .truss-ledger, .truss-web {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.truss-chord { stroke-width: 5; }
.truss-rear-chord { fill: none; stroke: #777d7a; stroke-width: 3.8; vector-effect: non-scaling-stroke; }
.truss-depth-members { fill: none; stroke: #777d7a; stroke-width: 2.6; opacity: .82; vector-effect: non-scaling-stroke; }
.truss-front-web { display: block; fill: none; stroke: var(--ink); stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.truss-side-web { display: block; fill: none; stroke: #777d7a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; vector-effect: non-scaling-stroke; }
.truss-ledger { stroke-width: 3.2; }
.truss-web { stroke-width: 3.1; }
.joint-ring { fill: var(--paper); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.joint-pin { fill: currentColor; }
.rear-joint { color: #777d7a; }
.front-joint { color: var(--ink); }
.truss-joint-map { display: none; }
.level-marks path { stroke-width: 1; stroke-dasharray: 4 8; opacity: .6; }
.level-marks text { fill: var(--ink); font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; }

.content-track {
  --wall-edge: clamp(16px, 4vh, 40px);
  --wall-edge: clamp(16px, 4dvh, 40px);
  position: absolute;
  z-index: 5;
  top: var(--wall-edge);
  right: clamp(12px, 2.5vw, 32px);
  bottom: var(--wall-edge);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.65fr) minmax(0, .75fr);
  width: auto;
  max-width: none;
  min-width: 0;
  padding: clamp(7px, 1.2vmin, 14px);
  border: clamp(4px, .45vw, 7px) solid #171b19;
  background: linear-gradient(145deg, #101613, #050807 62%, #07100d);
  box-shadow:
    0 22px 65px rgb(0 0 0 / 46%),
    0 0 0 1px rgb(218 227 223 / 38%),
    inset 0 0 45px rgb(19 169 120 / 8%);
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
}
.content-track::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background-image: radial-gradient(circle, rgb(225 255 245 / 25%) 0 1px, transparent 1.25px);
  background-size: 6px 6px;
  opacity: .34;
  pointer-events: none;
}
.wall-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.content-track[data-media-ready] .wall-media { opacity: .78; }
.wall-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(2 5 4 / 48%), rgb(2 5 4 / 26%) 48%, rgb(2 5 4 / 52%));
}
.wall-media-image,
.wall-media-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.12) brightness(.72);
}
.wall-media-image[hidden],
.wall-media-video[hidden] { display: none; }
.landing-level {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 0;
}
.level-hello { grid-column: 1 / -1; }
.panel-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(14px, 3vmin, 44px);
  border: 0;
  background: transparent;
  color: #f5faf8;
  overflow: hidden;
}
.panel-face > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.landing-level h1 { width: 100%; max-width: 100%; margin: 0; overflow-wrap: normal; word-break: normal; color: #f5faf8; font-family: "Courier New", ui-monospace, monospace; font-size: clamp(2rem, 7.4vmin, 7rem); font-weight: 900; font-variant-ligatures: none; line-height: .82; letter-spacing: -.09em; text-align: center; text-transform: uppercase; text-shadow: 0 0 18px rgb(218 255 244 / 18%); }
.landing-level p { width: 100%; max-width: 100%; margin: 0; overflow: hidden; }
.level-link { display: block; width: 100%; max-width: 100%; overflow-wrap: normal; word-break: normal; color: #f5faf8; font-family: "Courier New", ui-monospace, monospace; font-size: clamp(.9rem, 2.75vmin, 2.3rem); font-weight: 900; font-variant-ligatures: none; line-height: .92; letter-spacing: -.06em; text-align: center; text-transform: uppercase; text-decoration-color: var(--green); text-decoration-thickness: .06em; text-underline-offset: .05em; text-shadow: 0 0 12px rgb(19 169 120 / 22%); transition: opacity .2s ease, transform .2s ease; transform-origin: center; }
.level-link:focus-visible { color: #7fffd1; transform: scale(1.12); }
.content-track:has(.level-link:focus-visible) .level-link:not(:focus-visible) { opacity: .16; }
@media (hover: hover) and (pointer: fine) {
  .level-link:hover { color: #7fffd1; transform: scale(1.12); }
  .content-track:has(.level-link:hover) .level-link:not(:hover) { opacity: .16; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .landing-level h1,
  .level-link {
    --text-pixel: #f5faf8;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: radial-gradient(circle, var(--text-pixel) 0 1.45px, transparent 1.7px);
    background-size: 4px 4px;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 5px rgb(222 255 245 / 30%));
  }
  .landing-level h1 { background-size: 5px 5px; }
  .level-link:hover,
  .level-link:focus-visible { --text-pixel: #7fffd1; }
}
/* Policy pages */
.site-shell { width: min(980px, calc(100% - 36px)); margin: auto; }
.site-nav { display: flex; justify-content: space-between; align-items: center; min-height: 72px; border-bottom: 1px solid var(--ink); }
.site-nav nav, .policy-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-nav a, .policy-links a { font-size: 12px; text-decoration: none; }
.policy { max-width: 760px; padding: 70px 0 100px; }
.policy .eyebrow { color: var(--green); font: 700 11px ui-monospace, monospace; text-transform: uppercase; }
.policy h1 { margin: 16px 0 45px; font-size: clamp(3.5rem, 9vw, 7rem); line-height: .9; letter-spacing: -.075em; }
.policy h2 { margin-top: 42px; font-size: 1.5rem; letter-spacing: -.04em; }
.policy p, .policy li { line-height: 1.7; }
.policy h3 { margin-top: 28px; font-size: 1.05rem; }
.policy table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: .92rem; }
.policy th, .policy td { padding: 12px 10px; border: 1px solid var(--faint); line-height: 1.5; text-align: left; vertical-align: top; }
.policy th { background: rgb(255 255 255 / 45%); }
.notice { padding: 16px; border: 1px solid var(--ink); background: #fff8d5; }
.site-shell > footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--ink); }

/* Contact */
.contact-page { background-image: linear-gradient(rgb(23 25 24 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(23 25 24 / 7%) 1px, transparent 1px); background-size: 24px 24px; }
.contact-shell { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: clamp(18px, 5vw, 64px); }
.contact-card { width: min(900px, 100%); padding: clamp(28px, 7vw, 80px); border: 1px solid var(--ink); background: rgb(242 241 236 / 94%); box-shadow: clamp(7px, 1.2vw, 14px) clamp(7px, 1.2vw, 14px) 0 var(--ink); }
.contact-kicker { margin: 0 0 clamp(30px, 8vh, 80px); color: var(--green); font: 800 11px ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; text-transform: uppercase; }
.contact-card h1 { max-width: 760px; margin: 0 0 clamp(38px, 9vh, 88px); font-size: clamp(3.2rem, 10vw, 8rem); font-weight: 900; letter-spacing: -.08em; line-height: .82; text-transform: uppercase; }
.contact-email { display: inline-block; color: var(--ink); font-size: clamp(1.3rem, 4vw, 3.2rem); font-weight: 800; overflow-wrap: anywhere; text-decoration-color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.contact-email:hover, .contact-email:focus-visible { color: var(--green); }
.contact-home { display: block; width: max-content; margin-top: clamp(42px, 8vh, 76px); font: 700 11px ui-monospace, SFMono-Regular, monospace; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.contact-home:hover, .contact-home:focus-visible { color: var(--green); }

@media (max-width: 760px) {
  .content-track {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.5fr) repeat(3, minmax(0, .55fr));
  }
  .level-hello { grid-column: 1; }
  .landing-level h1 { font-size: clamp(1.75rem, 8vmin, 4rem); }
  .level-link { font-size: clamp(.85rem, 3vmin, 1.7rem); }
}

@media (max-width: 430px) {
  .panel-face { padding: clamp(9px, 2.2vmin, 16px); }
}

@media (orientation: portrait) {
  .truss-rig { display: none; }
  .level-link:focus-visible { transform: none; }
}

@media (orientation: landscape) {
  .content-track {
    --wall-edge: clamp(8px, 2dvh, 18px);
    right: clamp(10px, 1.5vw, 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-journey { height: 100vh; height: 100dvh; }
  .scroll-stage { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
  .background-video { transition: none; }
  .wall-media { transition: none; }
}
