:root {
  --bg: #000;
  --fg: #f5f5f7;
  --dim: #86868b;
  --line: #2a2a2d;
  --edge: #6e6e73;   /* borders that mark a control, visible enough to find */
  --gutter: clamp(24px, 6vw, 80px);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--fg); color: var(--bg); }

section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(88px, 14vh, 160px) var(--gutter);
}
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
h1, h2 { overflow-wrap: break-word; }
h1 { font-size: clamp(27px, 8.3vw, 44px); }
h2 { font-size: clamp(26px, 8.3vw, 46px); }
/* A headline of several sentences: each sentence starts its own line, with
   more air between sentences than between the wrapped lines of one. */
h2 span { display: block; }
h2 span + span { margin-top: .6em; }
@media (min-width: 720px) {
  h1 { font-size: clamp(44px, 5.4vw, 72px); }
  h2 { font-size: clamp(40px, 5.7vw, 84px); }
}
.dim { color: var(--dim); }
.lead {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 36em;
  color: var(--dim);
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.4;
  text-wrap: pretty;
}
.lead b { color: var(--fg); font-weight: 400; }
/* Running text is marked up in units of meaning (a sentence or a clause).
   A line may end between two units but not inside one, unless a single unit
   is wider than the column; then it wraps in balanced lines. */
.k { display: inline-block; max-width: 100%; text-wrap: balance; }

/* hero */
.hero { align-items: center; text-align: center; position: relative; }
.logo { display: block; width: min(64vw, 430px); height: auto; overflow: visible; fill: var(--fg); }
.hero .logo { animation: logo-in .9s ease both; }
@keyframes logo-in { from { opacity: 0; } }
.hero h1 { margin-top: clamp(36px, 6vh, 64px); }
.hero .lead { margin-left: auto; margin-right: auto; margin-top: 16px; }
.cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--dim), transparent);
}

/* two columns */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(40px, 7vw, 88px);
}
.pair h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pair p { margin-top: 14px; color: var(--dim); }

/* domain - software - engineer */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 7vw, 88px);
}
.triad dt {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.triad dd { margin-top: 8px; color: var(--dim); }

/* contrast table */
.versus { margin-top: clamp(40px, 7vw, 88px); width: 100%; border-collapse: collapse; }
.versus th, .versus td {
  width: 50%;
  text-align: left;
  vertical-align: top;
  padding: 18px 24px 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(19px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.versus th {
  border-top: 0;
  padding-top: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
}
.versus td:first-child { color: var(--dim); font-weight: 400; }

/* statements */
.said { list-style: none; padding: 0; margin-top: clamp(40px, 7vw, 88px); }
.said li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

/* organisation diagram */
.org { margin-top: clamp(40px, 7vw, 88px); }
.org { cursor: pointer; }
.org svg { display: block; width: 100%; height: auto; overflow: visible; }
.org .col { stroke: var(--line); stroke-width: 1; }
.org .wing { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.org circle { fill: var(--fg); }
.org-labels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  color: var(--dim);
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.45;
}
/* the company's own field: words drop in from above and leave downwards */
.org-labels .core { position: relative; height: 1.45em; color: var(--fg); white-space: nowrap; }
.org-labels .word {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  transition: opacity .55s ease, transform .55s ease;
}
.org-labels .word.above { opacity: 0; transform: translate(-50%, -1em); }
.org-labels .word.below { opacity: 0; transform: translate(-50%, 1em); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* dicta */
.dicta { list-style: none; padding: 0; margin-top: clamp(40px, 7vw, 88px); }
.dicta li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.dicta .n { color: var(--dim); font-variant-numeric: tabular-nums; }
.dicta b, .dicta i { text-wrap: balance; }
.dicta b { display: block; font-weight: 600; font-size: clamp(21px, 2.8vw, 36px); letter-spacing: -0.02em; line-height: 1.2; }
.dicta i { display: block; margin-top: 6px; font-style: normal; color: var(--dim); }
details { margin-top: 8px; border-top: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  color: var(--dim);
  transition: color .2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " -"; }
summary:hover { color: var(--fg); }
summary:focus-visible { color: var(--fg); outline: 2px solid var(--fg); outline-offset: 4px; }
details .dicta { margin-top: 0; }
details .dicta b { font-size: inherit; letter-spacing: 0; line-height: 1.45; }
details .dicta i { margin-top: 2px; }
details .dicta li { padding: 14px 0; }

/* close */
.close { align-items: center; text-align: center; }
.close .logo { width: min(34vw, 180px); margin: clamp(56px, 10vh, 112px) auto 0; }
footer {
  padding: 0 var(--gutter) 40px;
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}
footer a { margin: 0 12px; white-space: nowrap; line-height: 2.4; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
footer a:hover { color: var(--fg); border-color: var(--fg); }
footer a:focus-visible { color: var(--fg); outline: 2px solid var(--fg); outline-offset: 4px; }

/* Scroll reveal. main.js sets the "js" class as its first act, so the hidden
   state exists only once the script that undoes it is running. */
.js .r { opacity: 0; transform: translateY(18px); transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1); }
.js .r.in { opacity: 1; transform: none; }
.js .r.d1 { transition-delay: .12s; }
.js .r.d2 { transition-delay: .24s; }
.js .r.d3 { transition-delay: .36s; }

/* On phones and upright tablets a full screen per thought leaves the text
   lost in black, so the sections after the hero are shorter and the next
   one shows at the bottom edge. */
@media (max-width: 720px), (max-width: 1100px) and (orientation: portrait) {
  section { min-height: 68vh; min-height: 68svh; padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); }
  section.hero, section.close, section.notfound { min-height: 100vh; min-height: 100svh; }
}
/* Very narrow phones: slightly smaller running text and margins, so the
   units of meaning still fit on one line each instead of breaking inside. */
@media (max-width: 380px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .lead { font-size: 17px; }
}
@media (max-width: 720px) {
  .pair, .triad { grid-template-columns: 1fr; }
  .versus th, .versus td { padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .logo { animation: none; }
  .js .r { opacity: 1; transform: none; transition: none; }
}
@media print {
  :root { --bg: #fff; --fg: #000; --dim: #444; --line: #ccc; }
  section { min-height: 0; padding: 32px 0; break-inside: avoid; }
  .js .r { opacity: 1; transform: none; }
  .cue, .fields, .actions, .note, footer { display: none; }
  .posting p, .posting ul { color: var(--fg); }
}

/* imprint and privacy */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 10vh, 112px) var(--gutter) 96px; }
.legal .back { font-size: 14px; margin-bottom: clamp(48px, 9vh, 96px); }
.legal h1 { margin-bottom: 32px; }
.legal h2 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; line-height: 1.25; margin: 48px 0 12px; }
.legal p, .legal ul { color: var(--dim); margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--fg); text-underline-offset: 3px; }
.legal a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* job posting generator */
.tool { max-width: 820px; }
.tool .lead { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: clamp(40px, 7vw, 72px); }
.fields fieldset, .fields #other-field { grid-column: 1 / -1; }
.fields fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields legend, .fields label { display: block; padding: 0; font-size: 14px; color: var(--dim); }
.fields label span { font-size: 13px; }
.fields input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 18px;
}
.fields input[type="text"]::placeholder { color: var(--dim); opacity: 1; }
.fields input[type="text"]:focus { outline: none; border-color: var(--fg); }
.chips div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: block;
  padding: 7px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--dim);
  font-size: 15px;
  opacity: 1;
  transition: color .2s, border-color .2s, background .2s;
}
.chips input:hover + span { color: var(--fg); }
.chips input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.posting { margin-top: clamp(48px, 8vw, 88px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.posting .title { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 20px; }
.posting h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 12px; }
.posting p, .posting ul { color: #c7c7cc; }
.posting li { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 48px; }
.actions button {
  padding: 10px 20px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.actions button + button { background: none; color: var(--fg); }
.actions button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.legal .note { font-size: 14px; margin-top: 24px; }
.close .next { margin-top: clamp(40px, 7vh, 72px); font-size: 15px; }
.close .next a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.close .next a:hover { color: var(--fg); border-color: var(--fg); }
.close .next a:focus-visible { color: var(--fg); outline: 2px solid var(--fg); outline-offset: 4px; }
.fields .check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.fields .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
@media (max-width: 720px) { .fields { grid-template-columns: 1fr; } }

/* 404 */
.notfound { align-items: center; text-align: center; }
.notfound .logo { width: min(40vw, 200px); }
.notfound h1 { margin-top: 48px; }
.notfound a { color: inherit; }
