/* isonode — one drawn plate (isolines of a field of nodes) over dark ground,
   a bone paper sheet cut in at an angle, then a catalogue of ISOs. */
:root {
  color-scheme: dark;
  --ground: #090a0d;
  --ground-2: #101217;
  --line: #262a32;
  --mute: #8a8f98;
  --bone: #e8e2d4;
  --coral: #ff5436;
  --ion: #6fe0f2;
  --paper: #e8e2d4;
  --ink: #0b0c0f;
  --ink-mute: #5c5a54;

  --display: "Syne", "Arial Black", "Helvetica Neue", sans-serif;
  --human: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

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

html { background: var(--ground); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── bar ─────────────────────────────────────────────── */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding-block: 22px;
}
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bone);
}
.mark svg { width: 1.05em; height: 1.05em; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.langs { display: flex; gap: 2px; list-style: none; margin: 0 0 0 6px; padding: 0 0 0 20px; border-left: 1px solid var(--line); }
.nav .langs a { padding: 6px 5px; letter-spacing: 0.1em; }
.nav .langs a[aria-current="true"] { color: var(--coral); }
.nav a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--bone); border-bottom-color: var(--coral); }

/* ── plate (hero) ────────────────────────────────────── */
.plate {
  position: relative;
  height: clamp(560px, 84vh, 880px);
  background-color: var(--ground);
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 28px 28px;
  overflow: hidden;
}
.plate__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: pan-y;
}
.plate__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ground) 0%, transparent 58%),
    linear-gradient(0deg, var(--ground) 0%, transparent 34%);
  opacity: 0.82;
}
.plate__in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 84px 44px;
  pointer-events: none;
}
.plate__in a, .plate__in button { pointer-events: auto; }

.readout {
  align-self: flex-end;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.readout dt { color: var(--mute); }
.readout dd { margin: 0; color: var(--bone); text-align: right; }
.readout dd.hot { color: var(--coral); }
.readout dd.plain { text-transform: none; }

.thesis { max-width: 100%; min-width: 0; }
.thesis h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(clamp(3.1rem, min(8.8vw, 15.5vh), 8.8rem) * var(--h1-scale, 1));
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--bone);
}
.thesis h1 span { display: block; }
.thesis h1 .hand {
  font-family: var(--human);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: none;
  margin-top: -0.02em;
  padding-left: 0.42em;
}
.thesis h1 .hand i { font-style: normal; color: var(--coral); }
.thesis__row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}
.thesis__row p {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  color: var(--bone);
}
.seed {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--bone);
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background-color 0.18s, color 0.18s;
}
.seed::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.seed:hover { background: var(--bone); color: var(--ink); }
.go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--bone);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background-color 0.18s, border-color 0.18s;
}
.go::after { content: "\2192"; font-size: 13px; line-height: 1; }
.go:hover { background: var(--coral); border-color: var(--coral); }
.thesis__acts { display: flex; flex-wrap: wrap; gap: 12px; }

.crop {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--mute);
  opacity: 0.7;
  pointer-events: none;
}
.crop--tl { top: 64px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 64px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 12px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 12px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.plate__edge {
  position: absolute;
  right: 14px;
  bottom: 44px;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ── sheet (about) ───────────────────────────────────── */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: -2.4vw;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 2.4vw, 100% 0, 100% 100%, 0 calc(100% - 1.2vw));
  padding-block: calc(2.4vw + 72px) calc(1.2vw + 84px);
}
.sheet__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 56px;
  align-items: start;
}
.entry { min-width: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.entry .label { color: var(--ink-mute); }
.entry__word {
  margin: 14px 0 2px;
  font-family: var(--human);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}
.entry__pron { margin: 0 0 14px; font-size: 11px; color: var(--ink-mute); }
.entry p.def { margin: 0 0 10px; font-size: 12px; max-width: 38ch; }
.entry p.def b { font-weight: 500; }
.creed { min-width: 0; margin: 0; }
.creed p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.creed p + p { margin-top: 0.18em; }
.creed .faint { color: var(--ink-mute); }
.creed .hand {
  font-family: var(--human);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.12em;
}
.creed .mark-u {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-size: 100% 0.09em;
  background-position: 0 92%;
}
.sheet__reg {
  position: absolute;
  right: var(--gutter-r);
  bottom: calc(1.2vw + 26px);
  width: 26px;
  height: 26px;
  color: var(--ink);
}
.sheet__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.2vw + 14px);
  height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(90deg, #000 0 30%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 0 30%, transparent 62%);
}

/* ── index ───────────────────────────────────────────── */
.index { padding-block: 96px 72px; }
.index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.index__head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.index__head h2 .hand {
  font-family: var(--human);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--coral);
}
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 3fr) minmax(0, 4fr) auto;
  align-items: center;
  gap: 8px 28px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.row__sigil { width: 64px; height: 64px; display: block; }
.row__ring {
  width: 64px;
  height: 64px;
  border: 1px dashed var(--mute);
  opacity: 0.55;
  border-radius: 50%;
}
.row__id { font-size: 10px; letter-spacing: 0.14em; color: var(--mute); font-variant-numeric: tabular-nums; }
.row__name {
  margin: 0;
  min-width: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.row__line { margin: 0; min-width: 0; font-size: 12px; color: var(--bone); }
.row__line small { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--mute); margin-top: 3px; }
.state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
}
.state::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.state--forming { color: var(--coral); }
.state--forming::before { background: var(--coral); animation: pulse 2.4s ease-in-out infinite; }
.row--open .row__name, .row--open .row__line, .row--open .state { color: var(--mute); }
.row--open .row__name { font-weight: 400; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ── foot ────────────────────────────────────────────── */
.foot { overflow: hidden; }
.foot__big {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12.4vw;
  line-height: 0.74;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  transform: translateY(0.1em);
}
.foot__meta {
  position: relative;
  background: var(--ground);
  border-top: 1px solid var(--line);
  padding-block: 18px 22px;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.foot__in a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--coral); padding-bottom: 2px; }
.foot__in a:hover { color: var(--coral); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── narrow ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .plate { height: clamp(600px, 88vh, 760px); }
  .plate__scrim {
    background: linear-gradient(0deg, var(--ground) 6%, transparent 62%);
    opacity: 0.92;
  }
  .plate__edge { display: none; }
  .nav > a { display: none; }
  .langs { border-left: 0; padding-left: 0; margin-left: 0; }
  .bring { padding-block: 64px 8px; }
  .bring__in { grid-template-columns: minmax(0, 1fr); }
  .q li { grid-template-columns: 30px minmax(0, 1fr); }
  .q li p { grid-column: 2; }
  .console__bar { flex-direction: column; align-items: flex-start; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .readout .wide { display: none; }
  .thesis__row { margin-top: 22px; }
  .sheet__in { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding-block: calc(2.4vw + 52px) calc(1.2vw + 76px); }
  .index { padding-block: 68px 52px; }
  .row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "sig id state" "sig name name" "sig line line";
    gap: 4px 16px;
    align-items: start;
  }
  .row__sigil, .row__ring { grid-area: sig; width: 52px; height: 52px; }
  .row__id { grid-area: id; }
  .row__name { grid-area: name; }
  .row__line { grid-area: line; }
  .state { grid-area: state; }
}

@media (prefers-reduced-motion: reduce) {
  .state--forming::before { animation: none; }
  .seed { transition: none; }
}

/* per-language headline fit (longest line decides) */
html:lang(it) { --h1-scale: 0.74; }
html:lang(fr) { --h1-scale: 0.70; }
html:lang(es) { --h1-scale: 0.72; }

/* ── bring an idea ───────────────────────────────────── */
.bring { padding-block: 104px 16px; }
.bring__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px 64px;
  align-items: start;
}
.bring__head { min-width: 0; }
.bring__head h2 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.bring__head h2 .hand {
  display: block;
  font-family: var(--human);
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--coral);
  padding-left: 0.5em;
}
.bring__head p { margin: 0; max-width: 40ch; font-size: 13px; }
.bring__head p.vow {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 11px;
}
.q { list-style: none; margin: 12px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.q li {
  display: grid;
  grid-template-columns: 44px minmax(0, 4fr) minmax(0, 7fr);
  align-items: baseline;
  gap: 4px 20px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
}
.q .num { font-size: 10px; letter-spacing: 0.14em; color: var(--coral); }
.q h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.q li p { margin: 0; font-family: var(--human); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--bone); }

.console {
  margin-top: 56px;
  border: 1px solid var(--bone);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: var(--ground-2);
}
.console__wave { display: block; width: 100%; height: 84px; border-bottom: 1px solid var(--line); }
.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 14px 18px 16px;
}
.console__state { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); }
.console__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--coral); }
.console__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.key {
  appearance: none;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  background: transparent;
  border: 1px dashed var(--mute);
  border-radius: 0;
  cursor: not-allowed;
}
.console__alt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.console__alt a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--coral); padding-bottom: 2px; margin-left: 8px; }
.console__alt a:hover { color: var(--coral); }

.paths {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
}
.paths li { min-width: 0; padding-top: 14px; border-top: 1px solid var(--bone); }
.paths h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.paths p { margin: 0; font-size: 12px; color: var(--bone); max-width: 34ch; }

/* ── plain document pages (privacy) ──────────────────── */
.bar--flow { position: static; border-bottom: 1px solid var(--line); }
.doc { max-width: 860px; padding-block: 64px 88px; }
.doc h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.doc h2 {
  margin: 44px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.doc p, .doc li { max-width: 68ch; font-size: 13px; line-height: 1.75; }
.doc p { margin: 0 0 12px; }
.doc p.lead { margin-top: 26px; font-family: var(--human); font-style: italic; font-size: 24px; line-height: 1.25; max-width: 30em; }
.doc ul { margin: 0 0 12px; padding-left: 18px; }
.doc li { margin-bottom: 8px; }
.doc li b { font-weight: 500; color: var(--bone); }
.doc a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--coral); }
.doc a:hover { color: var(--coral); }
.doc__back { margin-top: 48px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.paths__label { margin: 56px 0 0; }
.paths { margin-top: 14px; }

/* narrow layout for the sections defined after the first narrow block */
@media (max-width: 760px) {
  .bring { padding-block: 64px 8px; }
  .bring__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .q li { grid-template-columns: 30px minmax(0, 1fr); }
  .q li p { grid-column: 2; }
  .console { margin-top: 40px; }
  .console__bar { flex-direction: column; align-items: flex-start; }
  .paths { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .doc { padding-block: 44px 64px; }
}

/* longer verbs in the idea heading */
html:lang(fr) .bring__head h2 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
