/* frontier — mirrors the induction labs aesthetic; lowercase branding throughout */

:root {
  --bg: #f1eee8;
  --ink: #201d1a;
  --ink-soft: #4a453f;
  --ink-faint: #8a837a;
  --pill-bg: rgba(255, 255, 255, 0.55);
  --pill-border: rgba(255, 255, 255, 0.4);
  --panel-bg: #0b0b0f;
  --yc: #f26625;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper grain over everything, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.30;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.53 0 0 0 0 0.49 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1004px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.site-head a { pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 41px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(32, 29, 26, 0.05);
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  transition: background 0.15s ease;
}

.pill:hover { background: rgba(255, 255, 255, 0.8); }

.site-nav { display: flex; gap: 8px; }

.brand .mark { width: 22px; height: 22px; mix-blend-mode: multiply; }
.brand .wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: flex-end;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(32, 29, 26, 0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: 13px 13px;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-bottom: 5svh;
}

h1 {
  font-size: clamp(19px, 12px + 0.7vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lede {
  margin-top: 10px;
  max-width: 46ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.yc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.15s ease;
}

.yc:hover { opacity: 0.6; }
.yc svg { width: 16px; height: 16px; display: block; }

/* ---------- sections ---------- */

.latest { padding-top: 80px; }
.about  { padding-top: 160px; }
.careers { padding: 120px 0 144px; }

.label {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.panel {
  background: var(--panel-bg);
  border-radius: 10px;
  border: 1px solid rgba(32, 29, 26, 0.12);
  overflow: hidden;
  line-height: 0;
}

.panel img {
  display: block;
  width: 100%;
  height: auto;
}

.item-title {
  margin-top: 18px;
  font-size: clamp(17px, 12px + 0.6vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.byline {
  margin-top: 4px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 14px;
  color: var(--ink-faint);
}

.big {
  max-width: 24ch;
  font-size: clamp(24px, 14px + 1.5vw, 33px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.prose p {
  max-width: 62ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.prose p + p { margin-top: 18px; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

.prose a:hover { opacity: 0.6; }

section[id] { scroll-margin-top: 96px; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(32, 29, 26, 0.1);
  padding: 40px 0 44px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.foot-links { display: flex; gap: 22px; }

.foot-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  transition: opacity 0.15s ease;
}

.foot-links a:hover { opacity: 0.6; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .site-head { top: 16px; left: 16px; right: 16px; }

  .about { padding-top: 110px; }
  .careers { padding: 88px 0 104px; }
  .foot-row { flex-direction: column; gap: 12px; }
}

/* ---------- focus & motion ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
