/* Flyingkiwi design tokens and primitives. Loaded by every page before its own stylesheet. */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin.woff2?v=a30ddcd34970) 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: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext.woff2?v=3911b66d9f2e) 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;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-latin.woff2?v=684ad5b531f8) 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;
}

:root {
  color-scheme: dark;

  /* Surfaces: the approved dark scale, one warm accent. */
  --bg: #181818;
  --bg-deep: #131209;
  --surface: #1f1f1f;
  --surface-raised: #272727;
  --surface-high: #313131;
  --ink: #f4f2f0;
  --ink-soft: #c9c6c0;
  --muted: #a3a19b;
  --faint: #8f8c85;
  --brand: #9bce6b;
  --brand-ink: #151d0c;
  --brand-soft: rgba(155, 206, 107, 0.12);
  --brand-line: rgba(155, 206, 107, 0.38);
  --warn: #e3b25f;
  --danger: #f08a78;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type: one family for the interface, one mono for code and data. */
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;   /* 12 / 16 */
  --text-sm: 0.875rem;  /* 14 / 20 */
  --text-base: 1rem;    /* 16 / 24 */
  --text-lg: 1.125rem;  /* 18 / 28 */
  --text-xl: 1.25rem;   /* 20 / 28 */
  --text-2xl: 1.5rem;   /* 24 / 32 */
  --text-3xl: 1.875rem; /* 30 / 36 */
  --text-4xl: 2.25rem;  /* 36 / 40 */
  --text-5xl: 3rem;     /* 48 / 1 */
  --text-6xl: 3.75rem;  /* 60 / 1 */
  --display: clamp(2.25rem, 4.4vw, 3.75rem);

  /* Spacing: a closed scale, 0 through 96px. */
  --s-0: 0;
  --s-2: 2px;
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-64: 64px;
  --s-80: 80px;
  --s-96: 96px;

  /* Radius: Tailwind steps. Nested shapes use inner = outer - gap. */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Depth: tinted, one light source from above. */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -16px rgba(0, 0, 0, 0.65);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 28px 72px -28px rgba(0, 0, 0, 0.8);
  --shadow-brand: 0 10px 32px -14px rgba(155, 206, 107, 0.32);

  /* Motion: custom curves with weight, never a browser default. */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 200ms;
  --dur-2: 300ms;
  --dur-3: 500ms;
  --dur-4: 700ms;
  --dur-5: 900ms;

  --measure: 65ch;
  --page-max: 1120px;
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain: fixed, pointer transparent, never above native dialogs. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background-image: url(/assets/grain.svg?v=6aa10c92f77e);
  background-size: 180px 180px;
  opacity: 0.045;
}

img,
svg,
video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

ul, ol { margin: 0; padding-left: 1.25em; }
li { margin: 0.35em 0; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
a:hover { color: #b4e18a; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
button, a, textarea, input { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand); color: var(--brand-ink); }

html {
  scrollbar-color: var(--surface-high) var(--bg);
  scrollbar-width: thin;
}

[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: var(--s-16);
  left: var(--s-16);
  z-index: 500;
  transform: translateY(calc(-100% - 32px));
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-12) var(--s-16);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease);
}
.skip:focus { transform: translateY(0); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.04em;
  text-decoration: none;
  min-height: 44px;
}
.brand img { width: 28px; height: 28px; }
.brand:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  min-height: 44px;
  padding: var(--s-8) var(--s-16);
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:hover { background: var(--surface-raised); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover { background: #a8d97b; border-color: #a8d97b; color: var(--brand-ink); box-shadow: var(--shadow-brand); }
.btn-sm { min-height: 36px; padding: 6px var(--s-12); font-size: var(--text-sm); }

/* Island navigation: one floating glass pill, shared by the content pages. */
.site-nav {
  position: fixed;
  top: var(--s-16);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(100% - 24px, 1040px);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  min-height: 60px;
  padding: 6px 6px 6px var(--s-16);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-1);
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease),
    box-shadow var(--dur-3) var(--ease);
}
.site-nav[data-scrolled] .site-nav-inner {
  background: rgba(24, 24, 24, 0.9);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}
.nav-links { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-12);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="location"] { color: var(--brand); background: var(--brand-soft); }
.nav-cta { margin-left: var(--s-8); }

/* Two-line hamburger that rotates into a true X. */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.menu-toggle:hover { background: var(--surface-raised); }
.menu-toggle .bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-3) var(--ease);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Full screen glass menu. It stays inert until [data-open] is set. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-80) var(--s-24) max(var(--s-40), env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(19, 18, 9, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  backdrop-filter: blur(28px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease), visibility 0s linear var(--dur-3);
}
/* While it fades out, a closed menu must not take taps meant for the page under it (on a phone the composer's pickers
   sit where the menu's footer links are). */
.menu:not([data-open]) { pointer-events: none; }
.menu[data-open] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-3) var(--ease), visibility 0s;
}
.menu-nav { display: flex; flex-direction: column; gap: var(--s-4); max-width: 720px; margin: 0 auto; width: 100%; }
.menu-nav a,
.menu-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  min-height: 64px;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
  text-decoration: none;
}
.menu-nav a::after,
.menu-nav button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.menu-nav a:hover::after,
.menu-nav a:focus-visible::after,
.menu-nav button:hover::after,
.menu-nav button:focus-visible::after { opacity: 1; transform: none; }
.menu-nav a[aria-current] { color: var(--brand); }
.menu[data-open] .menu-nav > * {
  animation: menu-item-in var(--dur-4) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.menu-foot {
  margin: var(--s-40) auto 0;
  width: 100%;
  max-width: 720px;
  color: var(--muted);
  font-size: var(--text-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-24);
}
.menu-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.menu-foot a:hover { color: var(--ink); }

@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveals. Elements are only hidden once JavaScript has claimed the page. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity var(--dur-5) var(--ease-out), transform var(--dur-5) var(--ease-out),
    filter var(--dur-5) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="left"] { transform: translateX(-16px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* Tagline: one word at a time, tinted then lit as it crosses the trigger line. */
.tagline { font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.tagline .w {
  display: inline-block;
  color: var(--ink);
  opacity: 0.3;
  transition: opacity var(--dur-4) var(--ease), color var(--dur-4) var(--ease), transform var(--dur-4) var(--ease);
}
.tagline .w.on { opacity: 1; }
.tagline .w.hot { color: var(--brand); opacity: 1; }

@media (max-width: 899px) {
  .site-nav { top: 10px; width: min(100% - 20px, 1040px); }
  .site-nav-inner { min-height: 56px; padding-left: var(--s-12); }
  html.js .nav-links { display: none; }
  html.js .nav-cta { display: none; }
  html.js .menu-toggle { display: grid; margin-left: auto; }
  html:not(.js) .site-nav-inner { flex-wrap: wrap; row-gap: 2px; border-radius: var(--r-lg); padding: 8px 12px; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 0; }
  html:not(.js) .nav-links a { padding: 0 var(--s-8); font-size: var(--text-xs); }
  html:not(.js) .nav-cta { display: none; }
}

@media (max-height: 560px) {
  .menu { justify-content: flex-start; padding-top: var(--s-64); }
  .menu-nav a, .menu-nav button { min-height: 52px; font-size: var(--text-xl); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .tagline .w { opacity: 1; }
}
