@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paper: the white page */
  --paper: #ffffff;
  --ink: #0b0b0f;
  --t-low: #595d64;
  --t-faint: #6c7077;
  --t-quiet: #8b8e95;
  --t-trace: #c5c7cb;
  --sig-trace: #e3e4e6;
  --fill: rgba(11, 11, 15, 0.045);
  --prime-hi: #27272d;

  /* the black window (Fey floor) */
  --floor-top: #0e0e13;
  --floor: #0b0b0f;
  --floor-end: #08080a;
  --d-hi: #ffffff;
  --d-mid: #e6e6e6;
  --d-low: #969da3;
  --d-faint: #868f97;
  --d-label: #74767c;
  --d-fill: rgba(255, 255, 255, 0.05);
  --cast: 0 1px 0 rgba(0, 0, 0, 0.85);
  --danger: #e8697f;
  --danger-edge: rgba(216, 79, 104, 0.5);
  --focus-dark: rgba(255, 255, 171, 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.64, 0, 0.78, 0);
  --t-in: 120ms;
  --t-out: 420ms;
  --t-press: 90ms;
  --t-move: 380ms;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 1280px;
  --font: "Geist", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 88px; /* focus and anchors land clear of the floating nav */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }


.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-out) var(--ease), color var(--t-out) var(--ease), transform var(--t-press) ease-out;
}
.btn:hover { transition-duration: var(--t-in), var(--t-in), var(--t-press); }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 999px; }

.btn--prime { background: var(--ink); color: var(--paper); font-weight: 600; }
.btn--prime:hover { background: var(--prime-hi); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  padding: 0 9px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  box-shadow: inset 0 0 0 0.5px rgba(11, 11, 15, 0), 0 0 0 rgba(11, 11, 15, 0);
  transition:
    background-color var(--t-move) var(--ease),
    box-shadow var(--t-move) var(--ease),
    -webkit-backdrop-filter var(--t-move) var(--ease),
    backdrop-filter var(--t-move) var(--ease);
}

.nav.is-lifted .nav__bar {
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 0.5px rgba(11, 11, 15, 0.1), 2px 6px 18px rgba(11, 11, 15, 0.07);
}

.nav.is-dark .nav__bar {
  background: rgba(13, 13, 17, 0.8);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.08), 3px 10px 24px rgba(0, 0, 0, 0.4);
  color: var(--d-hi);
}

.brand { display: inline-flex; align-items: center; gap: 9px; border-radius: 6px; }
.brand__mark { width: 22px; height: 22px; fill: currentColor; flex: none; }
.brand__word { font-size: 16px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.brand__word span { color: var(--t-quiet); transition: color var(--t-move) var(--ease); }
.nav.is-dark .brand__word span { color: var(--d-label); }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t-low);
  transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--fill); transition-duration: var(--t-in); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav.is-dark .nav__links a { color: var(--d-low); }
.nav.is-dark .nav__links a:hover { color: var(--d-hi); background: var(--d-fill); }
.nav.is-dark .nav__links a[aria-current="true"] { color: var(--d-hi); }

.nav__lang { display: flex; gap: 2px; margin-left: -14px; }
.nav__lang a {
  padding: 7px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--t-quiet);
  transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease);
}
.nav__lang a:hover { color: var(--ink); background: var(--fill); transition-duration: var(--t-in); }
.nav__lang a[aria-current="true"] { color: var(--ink); }
.nav.is-dark .nav__lang a { color: var(--d-label); }
.nav.is-dark .nav__lang a:hover { color: var(--d-hi); background: var(--d-fill); }
.nav.is-dark .nav__lang a[aria-current="true"] { color: var(--d-hi); }

.nav .btn--prime { transition: background-color var(--t-move) var(--ease), color var(--t-move) var(--ease), transform var(--t-press) ease-out; }
.nav.is-dark .btn--prime { background: #f4f4f5; color: #121216; }
.nav.is-dark .btn--prime:hover { background: #ffffff; }
.nav.is-dark :focus-visible { outline-color: var(--focus-dark); }

/* drawing over a trace: strokes rest drawn; a section's own js arms and plays them */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dotted { stroke-dasharray: 0.01 3.2 !important; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__lang { margin-left: auto; margin-right: -6px; }
  .nav__bar { width: 100%; justify-content: space-between; gap: 12px; }
}

/* with no JS the nav never turns to glass, so it carries its own surface */
html:not(.js) .nav__bar { background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 0.5px rgba(11, 11, 15, 0.1), 2px 6px 18px rgba(11, 11, 15, 0.07); }


/* ---------- user settings ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-lifted .nav__bar { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-dark .nav__bar { background: #111113; }
}

@media (prefers-contrast: more) {
  :root { --t-low: #3f4249; --t-faint: #4c5057; --t-quiet: #5f636a; --t-trace: #8f9298; --d-low: #b8bec3; --d-faint: #a6aeb5; --d-label: #9a9ca2; }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}
