@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

img { -webkit-touch-callout: none; -webkit-user-drag: none; }

:root {

  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --panel:     #121218;
  --panel-2:   #16161d;
  --line:      #26262f;
  --ink:       #f3f3ec;
  --muted:     #9a9aa6;
  --faint:     #5c5c68;

  --acid:      #ccff00;
  --magenta:   #ff2e6e;
  --cyan:      #00e6e6;
  --violet:    #8a5cff;
  --orange:    #ff5a1f;

  --on-accent: #0a0a05;

  --font-display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --font-ui:      "Barlow Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-kicker: clamp(11px, .7vw + 8px, 14px);
  --fs-body:   clamp(15px, .5vw + 13px, 18px);

  --fs-hero-big:  clamp(48px, min(27vw, 22vh), 320px);
  --fs-hero-sub:  clamp(22px, min(9vw, 8vh), 130px);

  --pad-x: clamp(18px, 5vw, 96px);
  --radius: 18px;

  --stroke: clamp(1.6px, .2vw, 2.6px);

  --ease:  cubic-bezier(.16, 1, .3, 1);
  --snap:  cubic-bezier(.2, .9, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

html { background-color: #000; }

* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
:focus-visible {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 400;
  background: var(--acid);
  color: var(--on-accent);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { transform: translate(-50%, 0); }

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.stage__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise-url);
  opacity: .10;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.stage__viewport {
  position: absolute;
  inset: 0;
}

body.home {
  background: #efece4 url('backgrounds/bg-cream.jpg') center / cover no-repeat fixed;
}
.home .stage { background: none; }

.hub {
  --edge:     clamp(16px, 3vw, 28px);
  --pad-top:  max(var(--edge), env(safe-area-inset-top));
  --pad-bot:  max(var(--edge), env(safe-area-inset-bottom));
  --logo-w:   min(76vw, 460px, 52svh);
  --corner-w: clamp(44px, calc(var(--logo-w) * .22), 100px);
  position: absolute;
  inset: 0;
}
.hub__intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5svh, 36px);
  padding: var(--pad-top) var(--pad-x) var(--pad-bot);
}
.hub__brand { width: var(--logo-w); aspect-ratio: 710 / 604; }
.hub__logo  { width: 100%; }
.hub__title { margin: 0; }
.hub__logo-img { display: block; width: 100%; height: auto; }
.hub__menu .menu-btn__img { width: var(--corner-w); height: auto; }

.hub__intro { transition: visibility 0s; }
.hub.is-open .hub__intro { visibility: hidden; transition: visibility 0s linear .6s; }

body[data-motion="ready"] .hub__title     { animation: hubZoomIn 1.6s var(--ease) both; }
body[data-motion="ready"] .hub__menu-wrap { animation: hubFadeIn .8s .6s var(--ease) both; }
@keyframes hubZoomIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes hubFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: -6px;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.menu-btn__img {
  display: block;
  height: clamp(32px, 3.9vw, 48px);
  width: auto;
}
.menu-btn:hover { transform: translateY(-1px); }

:root {
  --noise-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body[data-motion="ready"] .hub__logo-img,
  body[data-motion="ready"] .hub__menu-wrap { animation: none; opacity: 1; transform: none; }
  .hub.is-open .hub__intro { transition-delay: 0s; }
}
