@font-face {
  font-family: 'Space Grotesk';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
/* Only the admin asks for bold; public pages never download it. */
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* The designer's palette. Variable names are shared with admin.css. */
:root {
  --bg: #07080C; /* night */
  --bg-1: #12141B; /* surfaces, cards */
  --bg-2: #171920; /* a surface you point at */
  --line: #1E2028; /* borders, dividers */
  --line-2: #2A2C35;
  --line-3: #3C3F4A;
  --ink: #E9E7E1; /* text and stars */
  --ink-2: #8A8A92; /* secondary text */
  --ink-3: #7C7C84; /* quiet text that still reads (AA on the night) */
  /* Pale gold: only the hero at the centre of the mark, the logo's spark, the primary button. */
  --amber: #E8C77A;
  --amber-2: #F1D89C;
  --open: #8A8A92; /* an empty place */
  --danger: #FF8A8A;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--sans); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.link { color: var(--ink); border-bottom: 1px solid var(--line-3); transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

.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: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- small marks ---------- */

/* An empty place: a ring waiting for someone. It fills when you point at its role. */
.place {
  flex: none;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--open);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.spark { width: 28px; height: 28px; fill: var(--amber); }

.logo { height: 22px; width: auto; aspect-ratio: 310 / 39; color: var(--ink); }
.logo-spark { fill: var(--amber); }
.logo-tech { fill: #ABABAB; }

.mini-mark { width: 34px; height: 34px; overflow: visible; }
.mini-mark path { fill: none; stroke: var(--ink); stroke-opacity: .4; stroke-width: .035; stroke-linejoin: round; }
.mini-mark .m-dot { fill: var(--ink); }
.mini-mark .m-inner { fill: var(--ink-2); }
.mini-mark .m-hero { fill: var(--amber); }

/* A field of faint stars (src/views/stars.js). */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky circle { fill: var(--ink); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-amber { background: var(--amber); color: var(--bg); }
.btn-amber:hover { background: var(--amber-2); }
.btn-ghost { border-color: var(--line-3); color: var(--ink); background: rgba(7, 8, 12, .4); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { border-color: rgba(255, 138, 138, .35); color: var(--danger); background: none; }
.btn-danger:hover { background: rgba(255, 138, 138, .1); border-color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; }

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

/* Without JS the header scrolls away with the page: it could never get its background
   back after leaving the hero, and would sit transparent over the text. */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.js .site-header { position: fixed; }
.site-header.is-scrolled {
  background: rgba(7, 8, 12, .84);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; padding: 6px 0; color: var(--ink); transition: opacity .35s var(--ease), visibility .35s; }
.site-header.is-brand-hidden .brand { opacity: 0; visibility: hidden; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .nav-roles { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.count {
  min-width: 22px; height: 22px; padding: 0 7px;
  display: inline-grid; place-items: center;
  border-radius: 11px; background: var(--line-2); color: var(--ink);
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums;
}

/* ---------- type ---------- */

.title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.display {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
}
.lede { margin: 20px 0 0; max-width: 32em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }

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

/* Centred, quiet: the stars, the mark among them, the wordmark, one line, one button. */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 56px;
}
.hero-text { display: grid; justify-items: center; margin-top: clamp(20px, 4.5vh, 48px); }
.hero-wordmark { display: flex; }
.hero-text .logo { height: min(5.4vh, 54px, 9.4vw); min-height: 30px; }
.hero-title {
  margin: 14px 0 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink-2);
}
.hero-sub { margin: 18px 0 0; max-width: 26em; font-size: 17px; line-height: 1.5; color: var(--ink); }
.hero-text > .btn { margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* The mark, revealed by its lines: people are stars until a line reaches them. */
/* svh, not vh: on iOS vh is the viewport without browser bars, and the button fell below the fold. */
.constellation { position: relative; width: min(390px, 42vh, 76vw); width: min(390px, 36svh, 76vw); aspect-ratio: 1; }
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.c-trace { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: .0075; stroke-linejoin: round; stroke-linecap: round; }
.c-tip { display: none; }
.c-dot { fill: var(--ink); }
.c-inner { fill: var(--ink-2); }
.c-hero { fill: var(--amber); }
.c-empty { fill: none; stroke: var(--open); stroke-width: .008; stroke-dasharray: .03 .03; }
.c-link { stroke: var(--ink); stroke-opacity: .2; stroke-width: .006; stroke-dasharray: .018 .03; }
.c-place { fill: var(--bg); stroke: var(--open); stroke-width: .008; }

@media (prefers-reduced-motion: no-preference) {
  /* One pass of the pen: eight lines, eight people, then the hero. */
  .constellation { --start: .45s; --seg: .25s; --done: calc(var(--start) + var(--seg) * 8); }
  .c-trace {
    stroke-dasharray: 1 2; stroke-dashoffset: 1;
    animation: trace calc(var(--seg) * 8) cubic-bezier(.45, .05, .55, .95) var(--start) forwards;
  }
  .c-tip {
    display: block; fill: none; stroke: var(--ink); stroke-width: .013; stroke-linecap: round;
    stroke-dasharray: .05 3; stroke-dashoffset: .05; opacity: 0;
    animation: tip calc(var(--seg) * 8) cubic-bezier(.45, .05, .55, .95) var(--start) forwards,
      tip-fade calc(var(--seg) * 8 + .35s) linear var(--start) forwards;
  }
  .c-dot {
    --s0: .2;
    transform-box: fill-box; transform-origin: center;
    animation: wake .9s var(--ease) calc(var(--start) + var(--k) * var(--seg)) both,
      twinkle var(--tw) ease-in-out calc(var(--start) + var(--k) * var(--seg) + .9s) infinite;
  }
  .c-inner { --s0: .36; }
  .c-hero, .c-halo, .c-place { transform-box: fill-box; transform-origin: center; }
  .c-hero { animation: hero-in 1s var(--ease) var(--done) both; }
  /* Endless motion is opacity only: on SVG a transform or a dash offset costs a layout every frame. */
  .c-halo { animation: halo-in 1.8s var(--ease) var(--done) both, glow 5s ease-in-out calc(var(--done) + 1.8s) infinite; }
  .c-empty { animation: appear 1.4s ease-out var(--done) both, wait 4.5s ease-in-out calc(var(--done) + 1.4s) infinite; }
  .c-place { animation: place-in .9s var(--ease) calc(var(--done) + .5s + var(--p) * .22s) both; }
  .c-link { animation: appear 1s ease-out calc(var(--done) + .5s + var(--p) * .22s) both; }

  .sky .tw { animation: twinkle var(--t) ease-in-out var(--d) infinite; }
  .g-dot { animation: twinkle var(--tw, 3.5s) ease-in-out var(--dl, 0s) infinite; }
}
/* Off screen, nothing needs to move. */
.is-paused *, .is-paused *::before { animation-play-state: paused !important; }

@keyframes trace {
  0% { stroke-dashoffset: 1; }
  12.5% { stroke-dashoffset: .875; }
  25% { stroke-dashoffset: .75; }
  37.5% { stroke-dashoffset: .625; }
  50% { stroke-dashoffset: .5; }
  62.5% { stroke-dashoffset: .375; }
  75% { stroke-dashoffset: .25; }
  87.5% { stroke-dashoffset: .125; }
  100% { stroke-dashoffset: 0; }
}
/* The bright tip of the pen, always at the end of the drawn line. */
@keyframes tip {
  0% { stroke-dashoffset: .05; }
  12.5% { stroke-dashoffset: -.075; }
  25% { stroke-dashoffset: -.2; }
  37.5% { stroke-dashoffset: -.325; }
  50% { stroke-dashoffset: -.45; }
  62.5% { stroke-dashoffset: -.575; }
  75% { stroke-dashoffset: -.7; }
  87.5% { stroke-dashoffset: -.825; }
  100% { stroke-dashoffset: -.95; }
}
@keyframes tip-fade { 0% { opacity: 0; } 4% { opacity: .9; } 88% { opacity: .9; } 100% { opacity: 0; } }
@keyframes wake { from { transform: scale(var(--s0)); fill-opacity: .45; } to { transform: scale(1); fill-opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hero-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes halo-in { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes appear { from { opacity: 0; } }
@keyframes place-in { from { opacity: 0; transform: scale(0); } }

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

.section { padding: clamp(88px, 11vw, 144px) 0 0; }
.section-tight, .page-hero + .section { padding-top: 8px; }
main > .section:last-child { padding-bottom: clamp(88px, 11vw, 144px); }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 40px); }
.head-note { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); font-size: 16px; }
.head-note .place { width: 11px; height: 11px; }

/* ---------- roles ---------- */

.roles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.roles li { display: flex; }
.role {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-1);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.role .place { width: 16px; height: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.role-title { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
.role-summary { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.role-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.role-facts span { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.role:hover, .role:focus-visible { border-color: var(--line-3); background: var(--bg-2); }
.role:hover .place, .role:focus-visible .place {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 0 0 5px rgba(233, 231, 225, .07), 0 0 16px rgba(233, 231, 225, .35);
}
.roles-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 22px 0 0; color: var(--ink-2); font-size: 16px; }
.roles-more span:only-child { margin-left: auto; }

/* No open roles: the whole constellation, every place taken, and a dashed ring for the next. */
.quiet {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; gap: 28px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4.4vw, 56px);
  border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1);
}
.quiet-visual { width: 100%; max-width: 240px; aspect-ratio: 1; }
.quiet-body { display: grid; gap: 14px; justify-items: start; }
.quiet p { margin: 0; }
.quiet .quiet-status { color: var(--ink); font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.quiet .quiet-text { max-width: 30em; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.quiet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 12px; font-size: 16px; }

.waiting { width: 100%; height: 100%; overflow: visible; }
.w-lines { fill: none; stroke: rgba(233, 231, 225, .26); stroke-width: .011; stroke-linejoin: round; }
.w-dot { fill: var(--ink); }
.w-inner { fill: #8A8A92; }
.w-hero { fill: var(--amber); }
.w-link { stroke: var(--open); stroke-width: .011; stroke-dasharray: .035 .045; opacity: .8; }
.w-place { fill: var(--bg-1); stroke: var(--open); stroke-width: .013; stroke-dasharray: .045 .04; }
@media (prefers-reduced-motion: no-preference) {
  .w-dot { animation: twinkle var(--tw) ease-in-out var(--dl) infinite; }
  .w-place { animation: wait 4.5s ease-in-out infinite; }
}
@keyframes wait { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- the idea and the growing mark ---------- */

.idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26em); align-items: end; gap: 28px clamp(40px, 6vw, 96px); }
.statement { grid-column: 1 / -1; margin: 0; max-width: 13em; text-wrap: balance; font-size: clamp(38px, 5.6vw, 80px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.idea-more { grid-column: 2; margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }

.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(72px, 9vw, 128px); }
/* The heading and the mark stay put while the lines on the right scroll past. */
.story-visual {
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding: 104px 0 32px;
}
.story-pin { display: grid; place-items: center; align-content: center; gap: 22px; min-height: 0; }
.story-frame { width: min(100%, 58vh, 520px); aspect-ratio: 1; }
.growth { width: 100%; height: 100%; overflow: visible; }
.story-progress { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-progress li { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); transition: background-color .4s, transform .4s; }
.story-progress li.is-active { background: var(--ink); transform: scale(1.35); }
.story-steps { margin: 0; padding: 28vh 0 24vh; list-style: none; }
.story-step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.story-stage { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-2); font-size: 15px; }
.story-stage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.story-step p { margin: 0; max-width: 14em; font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
/* Lines not being read stay legible (WCAG 3:1 for large text). */
.about.is-live .story-step { opacity: .45; transition: opacity .5s var(--ease); }
.about.is-live .story-step.is-active { opacity: 1; }
/* Without the scroll story (no JS, reduced motion) the mark simply shows the community:
   nothing to pin, no progress to show. */
.about:not(.is-live) .story-visual, .about:not(.is-live) .story-pin { position: static; height: auto; }
.about:not(.is-live) .story-progress { display: none; }

.g-lines line { stroke: var(--ink); stroke-opacity: .3; stroke-width: .008; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.g-lines .g-link { stroke-opacity: .16; }
.g-dot { fill: var(--ink); }
.g-grey { fill: var(--ink-2); }
.g-hero { fill: var(--amber); }
.g-place { fill: var(--bg); stroke: var(--open); stroke-width: .011; }

/* ---------- how hiring works ---------- */

.steps { margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.step-glyph { width: 72px; height: 54px; margin-bottom: 18px; overflow: visible; }
.step-glyph line { stroke: var(--ink); stroke-opacity: .4; stroke-width: .03; }
.step-glyph circle { fill: var(--ink); }
.steps h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.steps p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.idea-more p { margin: 0; }
.stack-note { display: grid; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.stack-note > p { font-size: 15px; color: var(--ink-2); }
.stack { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.stack li { font-size: 15px; color: var(--ink); }

/* ---------- join ---------- */

.join {
  position: relative; overflow: hidden;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(112px, 14vw, 184px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.join-inner { position: relative; display: grid; justify-items: center; }
.join .title { font-size: clamp(40px, 6vw, 80px); letter-spacing: -.04em; }
.join-text { margin: 16px 0 32px; max-width: 28em; color: var(--ink-2); }
.join-mail { margin: 28px 0 0; color: var(--ink-2); font-size: 16px; }

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

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-right: auto; font-size: 15px; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color .2s; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-inner p { margin: 0; font-size: 14px; }

/* ---------- careers page ---------- */

.page-hero {
  position: relative; overflow: hidden;
  padding: 168px 0 clamp(48px, 6vw, 72px);
}
.page-hero .wrap { position: relative; }
.page-status { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

.note {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 88px);
  padding: clamp(24px, 4.4vw, 56px);
  border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1);
}
.note .lede { margin-top: 14px; }
.note .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 36px; }
.note .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.note .step-glyph { grid-row: span 2; width: 48px; height: 36px; margin: 0; }
.note .steps h3 { font-size: 17px; letter-spacing: -.01em; }
.note .steps p { margin: 0; font-size: 15px; }
.note .input { background: var(--bg); }

/* ---------- forms ---------- */

.form, .form-body { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.field label, .field legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.opt { margin-left: 6px; font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; min-width: 0;
  padding: 13px 15px;
  /* 3:1 against the card behind it (WCAG 1.4.11), so the field is visible as a field. */
  border: 1px solid #666874; border-radius: 12px;
  background: rgba(7, 8, 12, .6);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 96px; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(233, 231, 225, .08); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }

.form-foot { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 2px; }
.form-hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.form-status { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--ink-2); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.form-done:focus { outline: none; }
.form-done[hidden], .form-body[hidden] { display: none; }
.form-done .spark { margin-bottom: 6px; }
.form-done h3 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.form-done p { margin: 0; color: var(--ink-2); }

.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 15px; }
.notice-ok { border-color: var(--line-3); color: var(--ink); }
.notice-err { border-color: rgba(255, 138, 138, .4); color: var(--danger); }

/* ---------- vacancy ---------- */

.vacancy { padding: 120px 0 clamp(80px, 10vw, 140px); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; color: var(--ink-2); font-size: 15px; transition: color .2s; }
.back::before { content: '←' / ''; }
.back:hover { color: var(--ink); }
.vacancy-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.vacancy-title { margin: 0; max-width: 16ch; overflow-wrap: anywhere; hyphens: auto; font-size: clamp(40px, 5.6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.vacancy-summary { margin: 18px 0 0; max-width: 30em; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.meta div { display: grid; gap: 2px; min-width: 132px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.meta dt { font-size: 13px; color: var(--ink-2); }
.meta dd { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vacancy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px clamp(48px, 7vw, 104px); align-items: start; }
.vacancy-head + .prose { margin-top: clamp(48px, 6vw, 64px); }
.apply-bar { display: none; }

.prose { max-width: 38em; color: var(--ink-2); font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin: 44px 0 12px; color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 19px; }
.prose h4 { font-size: 17px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose ol { counter-reset: item; }
.prose li { position: relative; margin: 8px 0; padding-left: 24px; }
.prose ul > li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.prose ol > li { counter-increment: item; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; color: var(--ink); font-size: .9em; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.prose a:hover { border-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--bg-1); font-family: var(--mono); font-size: .86em; color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin: 0 0 16px; padding-left: 18px; border-left: 2px solid var(--line-3); }

.apply { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-1); margin-top: 56px; }
.apply h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.apply > .muted { margin: 4px 0 22px; font-size: 15px; }
.apply .input { background: var(--bg); }
.apply-bar { margin-left: auto; margin-right: auto; }
@media (min-width: 961px) {
  .apply .form-row { grid-template-columns: minmax(0, 1fr); }
}
/* Sticky only where the whole form fits on screen. */
@media (min-width: 961px) and (min-height: 760px) {
  .apply { position: sticky; top: 96px; }
}

/* ---------- 404 ---------- */

.hero-404 .page-status { justify-content: center; margin: 4px 0 0; }
.hero-title-lg { margin-top: 6px; font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }

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

@media (max-width: 960px) {
  .idea { grid-template-columns: minmax(0, 1fr); }
  .idea-more { grid-column: 1; max-width: 30em; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  /* The mark stays at the top while the lines scroll up beneath it. */
  .story-visual { display: contents; }
  /* Solid behind the mark and its progress dots, so the lines scrolling up disappear under
     it instead of showing through; a short fade below softens the edge. */
  .story-pin {
    position: sticky; top: 72px; z-index: 1;
    padding: 16px 0 18px; gap: 14px;
    background: var(--bg);
  }
  .story-pin::after {
    content: ''; position: absolute; inset: 100% 0 auto; height: 36px;
    background: linear-gradient(var(--bg), rgba(7, 8, 12, 0)); pointer-events: none;
  }
  .story-frame { width: min(64vw, 34vh, 340px); }
  .story-steps { padding: 6vh 0 30vh; padding-bottom: 30svh; }
  .story-step { min-height: 36vh; min-height: 36svh; justify-content: flex-start; align-items: center; text-align: center; }
  .story-step p { margin: 0 auto; }
  .note { grid-template-columns: minmax(0, 1fr); }
  .vacancy-grid { grid-template-columns: minmax(0, 1fr); }
  .apply { margin-top: 0; }
  /* On a phone the form comes after the description; a button follows you down to it. */
  .apply-bar { display: flex; position: sticky; bottom: 14px; z-index: 5; width: min(100%, 440px); margin-top: 28px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
}

/* Short screens: keep the button on the first screen. */
@media (max-height: 700px) {
  .hero-inner { padding-top: 76px; padding-bottom: 32px; }
  .hero-text { margin-top: 12px; }
  .hero-sub { margin-top: 12px; }
  .hero-text > .btn { margin-top: 22px; }
}
/* A phone on its side: the mark beside the text. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-inner { flex-direction: row; gap: clamp(24px, 5vw, 56px); padding-top: 76px; padding-bottom: 20px; }
  .hero .constellation { width: min(300px, 62svh); }
  .hero-text { margin-top: 0; justify-items: start; text-align: left; }
}

/* A phone on its side has room for two columns but not for a mark pinned above the text. */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 520px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-visual { display: grid; position: sticky; top: 0; height: 100svh; padding: 76px 0 12px; }
  .story-visual .title { font-size: 22px; }
  .story-pin { position: static; padding: 0; background: none; }
  .story-pin::after { display: none; }
  .story-frame { width: min(100%, 58svh); }
  .story-steps { padding: 30svh 0 30svh; }
  .story-step { min-height: 72svh; justify-content: center; align-items: flex-start; text-align: left; }
  .story-step p { margin: 0; font-size: 24px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { gap: 20px; }
  .nav .nav-extra { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .step-glyph { grid-row: span 2; width: 56px; height: 42px; margin: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .quiet { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .quiet-visual { max-width: 180px; }
  .quiet-body { justify-items: center; }
  .quiet-actions { justify-content: center; }
  .apply { padding: 22px; }
  .role { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; padding: 22px 20px; }
  .role .place { margin: 6px 0 0; }
  .role > :not(.place) { grid-column: 2; }
  .role-facts { padding-top: 16px; }
  .page-hero { padding-top: 128px; }
  .vacancy { padding-top: 104px; }
  .meta { gap: 8px; }
  .meta div { min-width: 0; padding: 10px 14px; border-radius: 12px; }
  .meta dd { font-size: 16px; }
  .role-facts { gap: 5px; }
  .role-facts span { padding: 3px 9px; }
}

@media (max-width: 420px) {
  .header-inner .logo { height: 19px; }
  .actions .btn { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
