/* ============================================================
   QBoltz — decision making at the speed of light
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") 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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Uncut Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/uncut-sans.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --nav-h: clamp(3.5rem, 3.1rem + 0.9vw, 4.25rem);
  /* one centered column shared by header, hero, content, and footer —
     a single alignment system for the whole page */
  --shell: 1200px;
  --pad: clamp(1.25rem, 0.6rem + 2.2vw, 3rem);

  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #737373;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #6e2be8; /* QBoltz brand violet */
  --up: #067a4b;
  --highlight: #ece3fc; /* soft lavender */

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  --display: "Uncut Sans", "Geist", ui-sans-serif, system-ui, sans-serif;

  /* The whole site uses exactly three text sizes. Edit these tokens,
     never individual font-size rules. */
  --size-title: clamp(2.05rem, 1rem + 3.8vw, 4.75rem);
  --size-header: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --size-body: 1rem;

  /* shared spacing: every label-column grid and heading-to-lede gap
     on the site uses these */
  --rail: 240px;
  --space-lede: 1.25rem;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: var(--highlight);
  color: var(--fg);
}

/* ---------- Primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* the reading measure used by everything below the hero */
.measure {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.h1 {
  font-size: var(--size-title);
}
.h2 {
  font-size: var(--size-header);
  line-height: 1.15;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: clamp(2.25rem, 2rem + 0.6vw, 2.75rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  height: var(--btn-h);
  font-family: var(--sans);
  padding-inline: clamp(0.95rem, 0.6rem + 0.8vw, 1.4rem);
  font-size: var(--size-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arw {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arw {
  transform: translateX(3px);
}
.btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn--lg {
  --btn-h: clamp(3rem, 2.6rem + 1vw, 3.5rem);
  padding-inline: 1.6rem;
}

.mail {
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--primary);
  transition: opacity 0.2s var(--ease);
}
.mail:hover {
  opacity: 0.7;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s var(--ease);
}
.brand:hover {
  opacity: 0.65;
}
.brand__logo {
  display: block;
  height: clamp(13px, 12px + 0.25vw, 17px);
  width: auto;
  max-width: 120px;
}

/* ============================================================
   Header
   ============================================================ */
.hdr {
  position: relative;
  z-index: 90;
}
/* the halftone continues behind the bar so the first screen is one
   surface. `background-attachment: fixed` anchors the dot grid to the
   viewport rather than to each box,
so header and hero stay in phase
   whatever the nav height resolves to */
.hdr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  background-attachment: fixed;
}
.hdr__bar {
  position: relative;
  z-index: 1;
}
.hdr__bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.75rem);
}
.hdr__link {
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--primary);
  transition: opacity 0.2s var(--ease);
}
.hdr__link:hover {
  opacity: 0.7;
}
@media (max-width: 599px) {
  .hdr__nav .mail {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */
/* header plus hero make the first screen exactly; everything else is below */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #fff;
}

/* the animation lives in its own box that clears the nav bar,
so no
   glyphs ever run behind the header */
.hero__viz {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: clamp(8px, 1.6vh, 22px);
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
/* the ribbon stays underneath as a colour bloom,
the ASCII grid reads
   on top of it */
.hero__ribbon,
.hero__ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__ribbon {
  z-index: 0;
  opacity: 0.34;
}
.hero__ascii {
  z-index: 1;
}

/* washes the ribbon and halftone out to paper before the section
   boundary,
so the hero has no visible seam */
.hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 8vh, 110px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 92%);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  background-attachment: fixed;
}

.hero__inner {
  position: relative;
  z-index: 5;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  display: grid;
  justify-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.hero__inner .h1 {
  max-width: 13ch;
}
.hero__actions {
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* ============================================================
   Info: label column,
content column,
hairline rows
   ============================================================ */
.info__inner {
  padding-block: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 3vh, 2.25rem);
}
.info__intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.info__intro p {
  margin-top: var(--space-lede);
  font-size: var(--size-body);
  line-height: 1.6;
  max-width: 68ch;
  color: var(--muted);
  text-wrap: pretty;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  padding-block: clamp(0.9rem, 1.8vw, 1.2rem);
  border-top: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .row {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 2rem;
  }
}
.row__label {
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}
.row ul {
  display: grid;
  gap: 0.65rem;
  max-width: 68ch;
}
.row li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--size-body);
  line-height: 1.55;
  text-wrap: pretty;
}
.row li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ============================================================
   Team
   ============================================================ */
.team {
  padding-block: clamp(1.75rem, 4vh, 2.75rem) clamp(2.25rem, 5vh, 3.5rem);
}
/* ---------- Join ---------- */
.join {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}
.join p {
  margin-top: var(--space-lede);
  max-width: 68ch;
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--muted);
}
.join__btn {
  margin-top: 2rem;
}


/* ============================================================
   Content blocks: spec sheet,
statement,
columns,
people,
roles
   ============================================================ */

/* a plain value in a label/value row */
.row__value {
  font-size: var(--size-body);
  line-height: 1.55;
  max-width: 62ch;
  text-wrap: pretty;
}

/* standalone statement, set large — an editorial pull-quote in the
   page flow rather than a full-bleed band; the short violet tick is
   the only brand accent */
.statement-line {
  padding-block: clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}
.statement-line p {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: var(--size-header);
  line-height: 1.2;
  max-width: none;
  margin-inline: auto;
  text-wrap: balance;
}
.statement-line p::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--primary);
  margin-inline: auto;
  margin-bottom: 1.1rem;
}
/* two lists side by side */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 760px) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.col h3 {
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.col li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--size-body);
  line-height: 1.5;
}
.col li:last-child {
  border-bottom: 0;
}
.col--not li {
  color: var(--muted);
}

/* founders */
.people {
  border-top: 1px solid var(--line);
}
.person-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: clamp(1.3rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .person-row {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 2rem;
  }
}
.person-row .name {
  font-size: var(--size-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.person-row .role {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.person-row .bio {
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  text-wrap: pretty;
}

/* open roles */
.roles {
  border-top: 1px solid var(--line);
}
.role-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: clamp(1rem, 2.5vw, 1.35rem);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
a.role-row:hover {
  color: var(--primary);
}
.role-row h3 {
  font-size: var(--size-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.role-row .meta {
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* hire / offer lists */
.plain-list {
  border-top: 1px solid var(--line);
}
.plain-list li {
  padding-block: clamp(0.8rem, 2vw, 1.05rem);
  border-bottom: 1px solid var(--line);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
/* numbered variant for process lists (How we hire) */
.plain-list--numbered {
  counter-reset: step;
}
.plain-list--numbered li {
  counter-increment: step;
}
.plain-list--numbered li::before {
  content: counter(step) ".";
  margin-right: 0.75em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.plain-list b {
  color: var(--fg);
  font-weight: 500;
}

/* secondary page header */
.page-head {
  padding-block: clamp(3rem, 8vh, 5.5rem) clamp(0.5rem, 1.5vh, 0.9rem);
}
.page-head h1 {
  text-wrap: balance;
}
.page-head p {
  margin-top: var(--space-lede);
  max-width: 68ch;
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* a block of sections on a secondary page */
.block {
  padding-block: clamp(2.25rem, 5.5vh, 3.25rem);
}
/* section label — the one section-header pattern used on every page:
   uppercase label above full-width content */
.label {
  display: block;
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.prose {
  max-width: 68ch;
}
.link-more {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: var(--size-body);
  color: var(--primary);
  transition: opacity 0.2s var(--ease);
}
.link-more:hover {
  opacity: 0.7;
}
.row__value .mail {
  font-family: inherit;
  font-size: var(--size-body);
  letter-spacing: inherit;
}
.note .mail {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.note {
  margin-top: var(--space-lede);
  max-width: 68ch;
  font-size: var(--size-body);
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--muted);
}


/* ============================================================
   Contact form
   ============================================================ */
.form {
  max-width: 44rem;
  border-top: 1px solid var(--line);
}
.field {
  display: grid;
  gap: 0.45rem;
  padding-block: clamp(1rem, 2.5vw, 1.35rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .field {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}
.field label {
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(10, 10, 10, 0.3);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
}
.field:focus-within label {
  color: var(--primary);
}
.field.is-bad label {
  color: var(--down, #c1121f);
}

/* the honeypot: present for a bot,
unreachable for a person */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.form__status {
  font-family: var(--sans);
  font-size: var(--size-body);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}
.form__status.is-ok {
  color: var(--up);
}
.form__status.is-bad {
  color: var(--down, #c1121f);
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
#turnstile-slot:not(:empty) {
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
}
.form--sent .field,
.form--sent .form__foot .btn {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.ftr {
  border-top: 1px solid var(--line);
}
.ftr__bar {
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: var(--size-body);
  color: var(--muted);
}
.ftr__bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.ftr__bar nav a {
  transition: color 0.2s var(--ease);
}
.ftr__bar nav a:hover {
  color: var(--fg);
}
/* ---------- Reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.85s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.rv-d1 {
  transition-delay: 0.08s;
}
.rv-d2 {
  transition-delay: 0.16s;
}

@media (max-width: 799px) {
  .hero {
    justify-content: flex-end;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  /* the ribbon reads as a band across the top rather than a tall column
     stretched down the whole screen, and the copy sits directly beneath
     it rather than being pushed to the bottom of the screen */
  .hero {
    --viz-h: min(52svh, 400px);
    /* nudges the whole hero down. applied to the animation and the copy
       equally, so every height and relative position is untouched */
    --hero-offset: clamp(16px, 3vh, 32px);
    justify-content: flex-start;
  }
  .hero__viz {
    top: calc(clamp(8px, 1.6vh, 22px) + var(--hero-offset));
    bottom: auto;
    height: var(--viz-h);
  }
  .hero__inner {
    padding-top: calc(var(--viz-h) + 1.25rem + var(--hero-offset));
    padding-bottom: clamp(2rem, 6vh, 3.5rem);
    gap: 1.1rem;
  }
  .hero__inner .h1 {
    max-width: 100%;
  }
  .hero__actions {
    gap: 0.9rem;
    width: 100%;
  }
  .lede {
    max-width: 100%;
  }
  .ftr__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    text-align: left;
  }
  .ftr__bar nav {
    gap: 0.35rem 1.1rem;
  }
}

@media (max-width: 700px) {
  /* the address is already in reach via the action itself */
  .hero__actions .mail {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
