/*
 * Orbit homepage. One dark, instrument-like theme, used by the two locale pages only.
 * The tool pages keep their own shared stylesheet (styles.css).
 *
 * 1. Tokens and base
 * 2. Header
 * 3. Hero and the loop dial
 * 4. Sample artefacts inside the dial
 * 5. Sections and the master–detail switch
 * 6. Entry points
 * 7. Work
 * 8. Tools
 * 9. Process
 * 10. Team
 * 11. Contact
 * 12. Footer
 * 13. Motion
 */

/* 1. Tokens and base ------------------------------------------------------ */

:root {
  --bg: #08090a;
  --panel: #101314;
  --panel-2: #161a1b;
  --line: rgba(232, 238, 234, .09);
  --line-2: rgba(232, 238, 234, .17);
  --ink: #f2f4f3;
  --text: #b4bbb7;
  --muted: #868f8a;
  --amber: #ffa23f;
  --amber-ink: #1b1002;
  --amber-soft: rgba(255, 162, 63, .13);
  --green: #5fe3a1;
  --red: #ff7a6b;
  --blue: #7cc0ff;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas,
    "Roboto Mono", "DejaVu Sans Mono", monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --hdr: 68px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html:lang(en) body {
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Running text: where the browser can, avoid a last line of one or two characters. */
p,
li,
dd,
dt {
  text-wrap: pretty;
}

/* Short leads and labels read better as lines of similar length. */
.eyebrow,
.hero-lead,
.sec-intro,
.contact-lead,
.member-role,
.member-cred,
.mf-name,
.manifest-foot {
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
pre,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 162, 63, .34);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Controls that only work with scripting, and the notes shown without it. */
html:not(.js) .js-only,
.js .no-js-only {
  display: none !important;
}

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.mono-label {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
}

.btn-primary:hover {
  background: #ffb769;
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .04);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: .45;
  cursor: default;
}

.btn-arrow {
  transition: transform .25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font: 400 12px/1.3 var(--mono);
  color: var(--text);
}

/* 2. Header --------------------------------------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--hdr);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}

.hdr.is-stuck,
.menu-open .hdr {
  background: rgba(8, 9, 10, .8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .01em;
}

.brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-short {
  display: none;
}

@media (max-width: 379px) {
  .hdr .brand-full {
    display: none;
  }

  .hdr .brand-short {
    display: block;
  }
}

.bm-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.bm-core {
  fill: currentColor;
}

.bm-sat {
  fill: var(--amber);
  stroke: var(--bg);
  stroke-width: 2;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-link.is-current::after {
  transform: none;
}

.nav-out {
  font-size: 12px;
  color: var(--muted);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  transition: color .2s, background-color .2s;
}

.lang-link:hover {
  color: var(--ink);
}

.lang-link[aria-current] {
  background: rgba(255, 255, 255, .09);
  color: var(--ink);
}

.menu-btn {
  display: none;
}

@media (max-width: 1039px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border-radius: 10px;
  }

  .menu-icon i {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .28s var(--ease);
  }

  .menu-icon i + i {
    margin-top: 6px;
  }

  .menu-open .menu-icon i:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-open .menu-icon i:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .js .nav {
    position: fixed;
    inset: var(--hdr) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 40px;
    background: rgba(8, 9, 10, .97);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }

  .js.menu-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .js.menu-open {
    overflow: hidden;
  }

  .js .nav-link {
    min-height: 60px;
    border-bottom: 1px solid var(--line);
    font-size: 21px;
    color: var(--ink);
  }

  .js .nav-link::after {
    display: none;
  }

  .js .nav .lang {
    align-self: flex-start;
    margin-top: 26px;
  }

  .js .nav .lang-link {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .js .nav-cta {
    margin-top: 22px;
    min-height: 54px;
    font-size: 16px;
  }

  /* Without scripting the menu cannot open, so the links wrap under the brand instead. */
  html:not(.js) .hdr {
    position: absolute;
    height: auto;
  }

  html:not(.js) .hdr-in {
    flex-wrap: wrap;
    gap: 0 20px;
    padding-block: 10px;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
    gap: 0 18px;
  }

  html:not(.js) .nav-cta {
    display: none;
  }
}

/* 3. Hero and the loop dial ---------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--hdr) + clamp(28px, 5vh, 60px)) 0 clamp(56px, 8vh, 100px);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 58% at 74% 46%, rgba(255, 162, 63, .12), transparent 72%),
    radial-gradient(40% 44% at 6% 0%, rgba(124, 192, 255, .06), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(62% 72% at 72% 46%, #000 0%, transparent 78%);
  mask-image: radial-gradient(62% 72% at 72% 46%, #000 0%, transparent 78%);
}

.hero-in {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* On phones the line of disciplines is tightened so that it stays on one line where it can. */
@media (max-width: 479.98px) {
  .eyebrow {
    gap: 8px;
    letter-spacing: .04em;
  }

  .eyebrow::before {
    width: 16px;
  }
}

@media (max-width: 379.98px) {
  .eyebrow::before {
    display: none;
  }
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(44px, 12.4vw, 76px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
}

html:lang(en) .hero-title {
  font-size: clamp(38px, 10.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.hero-title .line {
  display: block;
}

.hero-title .line:last-child {
  color: var(--amber);
}

.hero-lead {
  margin-top: 26px;
  max-width: 31em;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
}

html:lang(en) .hero-lead {
  max-width: 34em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.readouts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.readouts li {
  padding: 18px 26px 0 0;
}

.readouts li + li {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.readouts a {
  display: grid;
  gap: 6px;
}

.readout-num {
  font: 500 26px/1 var(--mono);
  letter-spacing: -.02em;
  color: var(--ink);
}

.readout-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  transition: color .2s;
}

.readouts a:hover .readout-label {
  color: var(--ink);
}

/* The dial: six stages on a ring, a screen in the middle, a satellite that keeps time. */
.loop {
  --pad: 76px;
  position: relative;
  width: 100%;
  max-width: calc(560px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

html:lang(en) .loop {
  --pad: 96px;
}

.loop-stage {
  position: relative;
  aspect-ratio: 1;
}

.loop-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.3;
}

.ring-inner {
  fill: none;
  stroke: rgba(255, 255, 255, .13);
  stroke-width: 1.2;
  stroke-dasharray: .6 2.4;
}

.ring-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-width: 7;
  stroke-dasharray: .8 5.2;
}

.ring-trail {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.ring-sat-dot {
  fill: var(--amber);
}

.ring-sat-halo {
  fill: rgba(255, 162, 63, .2);
}

.loop-tabs {
  position: absolute;
  inset: 0;
}

.loop-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  color: var(--muted);
}

.loop-node-dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}

.loop-node.is-done .loop-node-dot {
  border-color: var(--amber);
  background: var(--amber);
}

.loop-node[aria-selected="true"] .loop-node-dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 162, 63, .2), 0 0 22px rgba(255, 162, 63, .75);
  transform: scale(1.18);
}

.loop-node-text {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .3s;
}

.loop-node-no {
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  transition: color .3s;
}

.loop-node:hover .loop-node-text,
.loop-node[aria-selected="true"] .loop-node-text {
  color: var(--ink);
}

.loop-node[aria-selected="true"] .loop-node-no {
  color: var(--amber);
}

/* Labels sit outside the ring: the diagonal ones in the corners, the side ones in the padding. */
.loop-node-1 .loop-node-text {
  right: 50%;
  bottom: 100%;
  margin: 0 10px 0 0;
}

.loop-node-2 .loop-node-text {
  left: 50%;
  bottom: 100%;
  margin: 0 0 0 10px;
}

.loop-node-3 .loop-node-text {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.loop-node-4 .loop-node-text {
  left: 50%;
  top: 100%;
  margin: 0 0 0 10px;
}

.loop-node-5 .loop-node-text {
  right: 50%;
  top: 100%;
  margin: 0 10px 0 0;
}

.loop-node-6 .loop-node-text {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.loop-screen {
  position: absolute;
  left: 10%;
  top: 20%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 60%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #131718 0%, #0c0f10 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 34px 80px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  container-type: inline-size;
}

.loop-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font: 500 11.5px/1 var(--mono);
  color: var(--muted);
}

.loop-dots {
  display: flex;
  gap: 5px;
}

.loop-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
}

.loop-file {
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loop-sample {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loop-panels {
  position: relative;
  flex: 1;
  min-height: 0;
}

.loop-panel {
  position: absolute;
  inset: 0;
  padding: 14px;
  padding: clamp(10px, 3.4cqw, 16px);
}

.loop-art,
.art {
  width: 100%;
  height: 100%;
}

.loop-caption {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  margin-top: 26px;
}

.loop-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  transition: color .2s, border-color .2s;
}

.loop-toggle:hover {
  border-color: rgba(255, 255, 255, .42);
  color: var(--ink);
}

.loop-toggle-icon {
  width: 10px;
  height: 11px;
  border-inline: 3px solid currentColor;
}

.loop.is-paused .loop-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.loop-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  max-width: 32em;
  padding-top: 7px;
  font-size: 14.5px;
  line-height: 1.55;
}

.loop-count {
  font: 500 12px/1 var(--mono);
  color: var(--amber);
  white-space: nowrap;
}

.loop-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .hero-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 3vw, 48px);
  }

  .hero-title {
    font-size: clamp(64px, 6.1vw, 88px);
  }

  html:lang(en) .hero-title {
    font-size: clamp(50px, 4.5vw, 64px);
  }

  /* A line that runs a little long may reach into the empty margin of the dial, but must not wrap. */
  .hero-title .line {
    white-space: nowrap;
  }
}

/* Narrow screens: the ring becomes a six-step strip under a full-width screen. */
@media (max-width: 719px) {
  .loop,
  html:lang(en) .loop {
    --pad: 0px;
  }

  .loop-stage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    aspect-ratio: auto;
  }

  .loop-ring {
    display: none;
  }

  .loop-screen {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3.5;
  }

  .loop-tabs {
    position: relative;
    inset: auto;
    order: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 6px;
  }

  .loop-tabs::before,
  .loop-tabs::after {
    content: "";
    position: absolute;
    left: calc(100% / 12);
    top: 27px;
    height: 1px;
    background: var(--line-2);
  }

  .loop-tabs::before {
    right: calc(100% / 12);
  }

  .loop-tabs::after {
    width: calc(100% * 5 / 6 * var(--loop-progress, 0));
    background: var(--amber);
  }

  .loop-node {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    height: auto;
    min-height: 68px;
    margin: 0;
    padding: 16px 0 6px;
    border-radius: 10px;
  }

  .loop-node .loop-node-text {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12.5px;
    transform: none;
  }

  html:lang(en) .loop-node-name {
    font-size: 10.5px;
    letter-spacing: -.01em;
  }

  /* Six English names do not fit across the narrowest phones; the caption below names the stage. */
  @media (max-width: 359px) {
    html:lang(en) .loop-node-name {
      display: none;
    }
  }

  .loop-caption {
    justify-content: flex-start;
    margin-top: 14px;
  }
}

/* 4. Sample artefacts inside the dial ------------------------------------ */

.art {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 12px;
  font-size: clamp(10px, 3cqw, 13.5px);
  line-height: 1.6;
  color: var(--text);
}

.tk-c {
  color: var(--muted);
}

.tk-k {
  color: var(--amber);
}

.tk-t {
  color: var(--blue);
}

.tk-n {
  color: var(--green);
}

.tk-f {
  color: var(--ink);
}

.art-brief {
  justify-content: center;
  gap: 1em;
  padding-inline: .5em;
}

.brief-head {
  font-size: 1.12em;
  font-weight: 600;
  color: var(--ink);
}

.brief-list {
  display: grid;
  gap: .62em;
}

.brief-list li {
  display: flex;
  align-items: center;
  gap: .8em;
}

.brief-box {
  position: relative;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}

.brief-box::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1.5px;
  background: var(--amber);
}

.brief-foot {
  display: flex;
  gap: 1em;
  padding-top: .9em;
  border-top: 1px dashed var(--line-2);
  color: var(--muted);
}

.brief-foot span {
  color: var(--amber);
}

.art-circuit,
.art-wave {
  justify-content: center;
}

.sch {
  width: 100%;
  height: 100%;
}

.sch-w path,
.sch-g path {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sch-w path {
  stroke-dasharray: 1;
}

.sch-c > * {
  fill: var(--panel-2);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sch-c path {
  fill: none;
}

.sch-j {
  fill: var(--text);
}

.sch text {
  font: 500 8.5px var(--mono);
  fill: var(--muted);
}

.sch .val {
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}

.sch .net {
  font-size: 8px;
  fill: var(--amber);
}

.sch-b rect,
.sch-b path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}

.art-code {
  justify-content: center;
  font-size: 11.5px;
  font-size: clamp(9px, 2.8cqw, 12.5px);
}

.code {
  font: inherit;
  line-height: 1.55;
  counter-reset: line;
  overflow: hidden;
}

.code code {
  font: inherit;
}

.code-line {
  display: block;
  white-space: pre;
  counter-increment: line;
}

.code-line::before {
  content: counter(line);
  display: inline-block;
  width: 1.6em;
  margin-right: 1.1em;
  text-align: right;
  color: rgba(255, 255, 255, .24);
}

.art-wave {
  gap: .5em;
}

.wave {
  width: 100%;
  height: auto;
  max-height: calc(100% - 2.4em);
}

.wave-grid {
  stroke: rgba(255, 255, 255, .06);
  stroke-width: 1;
}

.wave-label {
  font: 500 9px var(--mono);
  letter-spacing: .06em;
  fill: var(--muted);
}

.wave-key,
.wave-tx {
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.wave-key {
  stroke: var(--blue);
}

.wave-tx {
  stroke: var(--green);
}

.wave-box {
  fill: rgba(255, 255, 255, .04);
  stroke: var(--line-2);
  stroke-width: 1;
}

.wave-box.r-header {
  stroke: var(--muted);
}

.wave-box.r-length {
  stroke: var(--blue);
}

.wave-box.r-command {
  fill: var(--amber-soft);
  stroke: var(--amber);
}

.wave-box.r-checksum {
  stroke: var(--green);
}

.wave-hex {
  font: 500 9.5px var(--mono);
  fill: var(--ink);
  text-anchor: middle;
}

.wave-trigger {
  stroke: var(--amber);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: .8;
}

.wave-caption {
  font-size: .94em;
  text-align: center;
  color: var(--muted);
}

.art-host {
  gap: .7em;
}

.host-top {
  display: flex;
  align-items: center;
  gap: .7em;
  color: var(--ink);
}

.host-led {
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.host-rate {
  margin-left: auto;
  color: var(--muted);
}

.host-chart {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
}

.host-chart-name {
  position: absolute;
  left: .8em;
  top: .45em;
  z-index: 1;
  font-size: .92em;
  color: var(--muted);
}

.spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spark-grid {
  stroke: rgba(255, 255, 255, .06);
  vector-effect: non-scaling-stroke;
}

.spark-area {
  fill: url(#spark-fill);
}

.spark-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.host-cells {
  display: grid;
  grid-template-columns: 1.35fr .9fr 1fr;
  gap: .6em;
}

.host-cells div {
  min-width: 0;
  padding: .45em .7em;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.host-cells dt {
  font-size: .86em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-cells dd {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-cells .ok {
  color: var(--green);
}

.host-log {
  display: flex;
  gap: .8em;
  font-size: .9em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.host-log span:first-child {
  color: var(--green);
}

.host-log span:nth-child(2) {
  color: var(--ink);
}

.art-tree {
  justify-content: center;
  gap: .55em;
  padding-inline: .4em;
}

.tree-root {
  font-weight: 600;
  color: var(--amber);
}

.tree {
  display: grid;
  gap: .55em;
}

.tree li {
  display: grid;
  grid-template-columns: auto 6.6em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .7em;
}

.tree-branch {
  color: rgba(255, 255, 255, .3);
}

.tree-path {
  color: var(--ink);
}

.tree-note {
  font-family: var(--sans);
  font-size: .95em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-ok {
  color: var(--green);
}

/* On the narrowest screens the samples drop what does not fit. */
@container (max-width: 330px) {
  .code {
    line-height: 1.45;
  }

  .code-line::before {
    display: none;
  }

  .tree-note {
    white-space: normal;
  }
}

/* 5. Sections and the master–detail switch -------------------------------- */

.sec {
  position: relative;
  padding-block: clamp(84px, 10vw, 148px);
  border-top: 1px solid var(--line);
}

.sec-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.sec-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sec-no {
  color: var(--amber);
}

.sec-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

html:lang(en) .sec-title {
  line-height: 1.1;
  letter-spacing: -.025em;
}

.sec-title .line {
  display: block;
}

.sec-intro {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.8;
}

html:lang(en) .sec-intro {
  line-height: 1.7;
}

@media (min-width: 960px) {
  .sec-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 22px clamp(24px, 4vw, 64px);
    align-items: end;
  }

  .sec-mark {
    grid-column: 1 / -1;
  }

  .sec-intro {
    padding-bottom: .35em;
  }
}

/*
 * A switch is a list of buttons, each followed by its panel. On wide screens the buttons form the
 * left column and the open panel fills the right one; on narrow screens it reads as an accordion.
 * Without scripting every panel is shown, one after another.
 */
html:not(.js) .switch-panel[hidden] {
  display: block !important;
}

.switch-tab {
  position: relative;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
  color: var(--text);
  transition: color .2s, background-color .25s, padding .3s var(--ease);
}

.switch-tab:hover,
.switch-tab[aria-expanded="true"] {
  color: var(--ink);
}

.switch-tab:last-of-type {
  border-bottom: 1px solid var(--line);
}

.switch-panel {
  margin: 4px 0 22px;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.js .switch-panel:not([hidden]) {
  animation: panel-in .45s var(--ease) both;
}

@media (min-width: 960px) {
  .js .switch {
    display: grid;
    grid-template-columns: minmax(0, var(--tabs, 4fr)) minmax(0, var(--detail, 8fr));
    grid-template-rows: repeat(var(--n), auto) 1fr;
    column-gap: clamp(24px, 3.4vw, 56px);
  }

  .js .switch-tab {
    grid-column: 1;
  }

  .js .switch-panel {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
  }
}

/* 6. Entry points --------------------------------------------------------- */

.entry-switch {
  --tabs: 5fr;
  --detail: 7fr;
}

.entry-tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 26px 20px 26px 18px;
}

.entry-tab-key {
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  transition: color .2s;
}

.entry-tab-text {
  display: block;
  font-size: clamp(19px, 1.75vw, 23px);
  font-weight: 600;
  line-height: 1.35;
}

.entry-tab-kind {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.glyph {
  width: 42px;
  height: 42px;
}

.glyph path {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke .25s;
}

.glyph .off {
  stroke: rgba(255, 255, 255, .13);
}

.glyph .on {
  stroke: var(--muted);
}

.entry-tab[aria-expanded="true"] {
  background: linear-gradient(90deg, rgba(255, 162, 63, .09), transparent 78%);
}

.entry-tab[aria-expanded="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--amber);
}

.entry-tab[aria-expanded="true"] .entry-tab-key,
.work-tab[aria-expanded="true"] .work-tab-no {
  color: var(--amber);
}

.entry-tab[aria-expanded="true"] .glyph .on {
  stroke: var(--amber);
}

.entry-title {
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}

.entry-body {
  max-width: 40em;
  margin-top: 16px;
  font-size: 16.5px;
}

.entry-track {
  margin-top: 30px;
}

.track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.track li {
  position: relative;
  padding-top: 14px;
  font-size: 13.5px;
  line-height: 1.3;
  color: rgba(134, 143, 138, .78);
  overflow-wrap: anywhere;
}

.track li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .11);
}

.track li.is-on {
  color: var(--ink);
}

.track li.is-on::before {
  background: var(--amber);
}

.facts {
  display: grid;
  gap: 0 36px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.facts > div {
  padding-top: 20px;
}

.facts > div + div {
  margin-top: 20px;
}

.facts dd {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.entry-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.entry-related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  font-size: 14.5px;
}

.entry-related .mono-label {
  flex-basis: 100%;
}

.entry-related a {
  padding-block: 4px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  transition: color .2s, border-color .2s;
}

.entry-related a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

@media (min-width: 620px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div + div {
    margin-top: 0;
  }
}

/* 7. Work ----------------------------------------------------------------- */

.work-tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 19px 14px 19px 0;
}

.work-tab-no {
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  transition: color .2s;
}

.work-tab-title {
  display: block;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.35;
}

.work-tab-tags {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.work-tab-mark {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: var(--muted);
  transform: rotate(135deg);
  transition: transform .3s var(--ease), color .2s;
}

.work-tab[aria-expanded="true"] .work-tab-mark {
  color: var(--amber);
  transform: rotate(-45deg);
}

.work-tags {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .06em;
  color: var(--amber);
}

.work-title {
  margin-top: 12px;
  font-size: clamp(21px, 2.8vw, 38px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

.work-summary {
  max-width: 44em;
  margin-top: 14px;
  font-size: 16.5px;
}

.flow-box {
  margin-top: 30px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.flow {
  --gap: 22px;
  display: grid;
  gap: var(--gap);
  margin-top: 16px;
}

.flow-stage {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* Connector and travelling pulse between two stages; vertical by default. */
.flow-stage + .flow-stage::before {
  content: "";
  position: absolute;
  left: 22px;
  top: calc(-1 * var(--gap));
  width: 1px;
  height: var(--gap);
  background: var(--line-2);
}

.flow-stage + .flow-stage::after {
  content: "";
  position: absolute;
  left: 20px;
  top: calc(-1 * var(--gap));
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  opacity: 0;
}

/* While the flow runs top to bottom, a stage with parallel nodes shows them side by side if they fit. */
@container work (min-width: 430px) and (max-width: 659.98px) {
  .flow-fan {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

.flow-node {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel-2);
}

.flow-node strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.flow-node span {
  font: 400 11px/1.45 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.points-label {
  margin-top: 30px;
}

.points {
  display: grid;
  gap: 22px 28px;
  margin-top: 14px;
  counter-reset: point;
}

.points li {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  counter-increment: point;
}

.points li::before {
  content: "0" counter(point);
  font: 500 11.5px/1 var(--mono);
  color: var(--amber);
}

.points h4 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.points p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
}

html:lang(en) .points p {
  line-height: 1.6;
}

.work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--amber);
}

.link-out:hover {
  color: #ffb769;
}

/*
 * The panel is the query container: the diagram runs left to right and the key points sit in three
 * columns only when the panel itself is wide enough. Browsers without container queries keep the
 * stacked layout.
 */
.work-panel {
  container: work / inline-size;
}

@container work (min-width: 600px) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container work (min-width: 660px) {
  .flow {
    grid-template-columns: repeat(var(--stages), minmax(0, 1fr));
    align-items: center;
    gap: 8px var(--gap);
  }

  .flow-stage + .flow-stage::before {
    left: calc(-1 * var(--gap));
    top: 50%;
    width: var(--gap);
    height: 1px;
  }

  .flow-stage + .flow-stage::after {
    left: calc(-1 * var(--gap));
    top: calc(50% - 2px);
  }
}

@media (min-width: 960px) {
  .work-tab[aria-expanded="true"] {
    padding-left: 14px;
    padding-right: 0;
  }

  .work-tab .work-tab-mark {
    opacity: 0;
    transform: rotate(45deg) translate(-4px, 4px);
  }

  .work-tab[aria-expanded="true"] .work-tab-mark {
    opacity: 1;
    transform: rotate(45deg);
  }
}

/* 8. Tools --------------------------------------------------------------- */

/* A faint grid behind the tool links. */
.lab::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(100%, 900px);
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  pointer-events: none;
}

.lab > .wrap {
  position: relative;
}

.rows {
  margin-top: 22px;
  border-top: 1px solid var(--line-2);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), background-color .2s;
}

.row:hover {
  padding-inline: 12px;
  background: rgba(255, 255, 255, .03);
}

.row-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.row-arrow {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  color: var(--muted);
  transition: color .2s, transform .3s var(--ease);
}

.row:hover .row-arrow {
  color: var(--amber);
  transform: translateX(3px);
}

.list-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--amber);
}

.list-more:hover {
  color: #ffb769;
}

/* 9. Process -------------------------------------------------------------- */

.process-grid {
  display: grid;
  gap: 48px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  padding-bottom: clamp(34px, 4vw, 54px);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: var(--line-2);
  transition: background-color .4s;
}

.step:last-child::before {
  display: none;
}

.step-no {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  font: 500 11.5px/1 var(--mono);
  color: var(--muted);
  transition: background-color .35s, border-color .35s, color .35s;
}

.step.is-reached .step-no,
html:not(.js) .step-no {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--amber-ink);
}

.step.is-reached::before {
  background: rgba(255, 162, 63, .55);
}

.step h3 {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}

.step-body {
  max-width: 37em;
  margin-top: 10px;
}

.step-out {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 14px;
  font: 400 12.5px/1.6 var(--mono);
  color: var(--text);
}

.step-out span {
  letter-spacing: .06em;
  color: var(--muted);
}

.manifest {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.manifest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.manifest-bar h3 {
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
}

.manifest-count {
  font: 500 12px/1 var(--mono);
  color: var(--amber);
  white-space: nowrap;
}

.manifest-list {
  padding: 8px 0;
}

.mf {
  display: grid;
  grid-template-columns: 16px 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 0 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  transition: opacity .45s;
}

.mf-check {
  font: 600 12px/1 var(--mono);
  color: var(--green);
  transition: opacity .3s;
}

.mf-path {
  font: 500 12.5px/1.6 var(--mono);
  color: var(--ink);
}

.js .mf:not(.is-reached) {
  opacity: .34;
}

.js .mf:not(.is-reached) .mf-check {
  opacity: 0;
}

.manifest-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 960px) {
  .process-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
  }

  .manifest {
    position: sticky;
    top: calc(var(--hdr) + 28px);
  }
}

/* 10. Team ---------------------------------------------------------------- */

.roster {
  border-top: 1px solid var(--line-2);
}

.member {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.member-id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--panel-2);
}

.member-name {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.member-role {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--amber);
}

.member-cred {
  font: 400 13px/1.65 var(--mono);
  color: var(--text);
}

.member-focus {
  font-size: 15px;
}

.member .chips {
  margin-top: 12px;
}

@media (min-width: 900px) {
  .member {
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr);
    gap: 12px clamp(20px, 3vw, 48px);
    align-items: center;
  }
}

/* 11. Contact ------------------------------------------------------------- */

.contact {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 10vw, 152px);
  border-top: 1px solid var(--line);
  overflow: clip;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(56% 62% at 14% 100%, rgba(255, 162, 63, .15), transparent 72%),
    radial-gradient(44% 48% at 100% 0%, rgba(124, 192, 255, .06), transparent 70%);
}

.contact-in {
  display: grid;
  gap: 48px;
}

.contact-title {
  margin-top: 26px;
  font-size: clamp(30px, 8.4vw, 60px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

html:lang(en) .contact-title {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.contact-lead {
  max-width: 28em;
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.8;
}

html:lang(en) .contact-lead {
  max-width: 31em;
  line-height: 1.7;
}

.mail {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 44px;
}

.mail-addr {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--amber);
  font: 500 clamp(18px, 2.2vw, 28px)/1.3 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color .2s;
}

.mail-addr:hover {
  color: var(--amber);
}

.mail-copy {
  min-height: 42px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text);
  transition: color .2s, border-color .2s;
}

.mail-copy:hover {
  border-color: rgba(255, 255, 255, .42);
  color: var(--ink);
}

.next {
  max-width: 30em;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.next-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  counter-reset: next;
}

.next-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  font-size: 15.5px;
  line-height: 1.65;
  counter-increment: next;
}

.next-list li::before {
  content: "0" counter(next);
  padding-top: .35em;
  font: 500 11.5px/1.5 var(--mono);
  color: var(--amber);
}

.is-copied,
.is-copied:hover {
  border-color: var(--green);
  color: var(--green);
}

.brief {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: clamp(20px, 2.8vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(16, 19, 20, .88);
}

.brief-title {
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
}

.brief-set {
  display: grid;
  gap: 12px;
}

.brief-set legend,
.brief-set > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.brief-set legend {
  margin-bottom: 12px;
}

.brief-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font: 500 11px/1 var(--mono);
  color: var(--text);
}

.chips-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-in {
  position: relative;
  display: inline-flex;
}

.chip-in input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip-in span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  transition: color .2s, border-color .2s, background-color .2s;
}

.chip-in:hover span {
  border-color: rgba(255, 255, 255, .42);
  color: var(--ink);
}

.chip-in input:checked + span {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--ink);
}

.chip-in input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.brief textarea {
  display: block;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.brief textarea::placeholder {
  color: var(--muted);
}

.draft {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.draft-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font: 500 11.5px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.draft-subject {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.draft-text {
  max-height: 230px;
  padding: 14px;
  font: 400 13.5px/1.75 var(--sans);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-privacy {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 960px) {
  .contact-in {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
  }

  .contact-title {
    font-size: clamp(40px, 4.4vw, 60px);
  }
}

/* 12. Footer -------------------------------------------------------------- */

.ftr {
  padding: 44px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.ftr-in {
  display: grid;
  gap: 26px;
}

.ftr-tag {
  margin-top: 8px;
}

.ftr-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}

.ftr-nav > a,
.ftr-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color .2s;
}

.ftr-nav > a:hover,
.ftr-meta a:hover {
  color: var(--ink);
}

.ftr-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (min-width: 800px) {
  .ftr-in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .ftr-nav {
    justify-content: flex-end;
  }

  .ftr-meta {
    grid-column: 1 / -1;
  }
}

/* 13. Motion -------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes tick {
  from {
    transform: scale(0);
  }
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0);
  }
}

@keyframes wave-scroll {
  to {
    transform: translateX(var(--wave-loop));
  }
}

@keyframes flow-across {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  14%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(calc(var(--gap) - 5px));
  }
}

@keyframes flow-down {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  14%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(calc(var(--gap) - 5px));
  }
}

@keyframes blink {
  50% {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-title .line {
    animation: rise .9s var(--ease) both;
  }

  .hero-copy > .hero-title {
    animation: none;
  }

  .hero-title .line {
    animation-delay: calc(var(--l) * 90ms + 80ms);
  }

  .hero-lead {
    animation-delay: .42s;
  }

  .hero-actions {
    animation-delay: .52s;
  }

  .readouts {
    animation-delay: .62s;
  }

  .loop {
    animation: fade 1.2s ease both .25s;
  }

  .loop-panel.is-active {
    animation: panel-in .5s var(--ease) both;
  }

  .loop-panel.is-active .brief-box::after {
    animation: tick .35s var(--ease) both;
    animation-delay: calc(var(--n) * .26s + .35s);
  }

  .loop-panel.is-active .sch-w path {
    animation: draw 1s var(--ease) both;
    animation-delay: calc(var(--n) * 70ms + .15s);
  }

  .loop-panel.is-active .sch-c,
  .loop-panel.is-active .sch-t {
    animation: fade .8s ease both .5s;
  }

  .loop-panel.is-active .code-line {
    animation: line-in .4s var(--ease) both;
    animation-delay: calc(var(--n) * 45ms + .1s);
  }

  .loop-panel.is-active .wave-scroll {
    animation: wave-scroll 18s linear infinite 1.2s;
  }

  .loop-panel.is-active .spark-plot {
    animation: wipe 1.6s var(--ease) both .25s;
  }

  .loop-panel.is-active .host-led {
    animation: blink 2.4s ease-in-out infinite;
  }

  .loop-panel.is-active .tree-ok {
    animation: fade .3s ease both;
    animation-delay: calc(var(--n) * .28s + .5s);
  }

  .flow-stage + .flow-stage::after {
    animation: flow-down 2.8s linear infinite;
    animation-delay: calc(var(--i) * .45s);
  }

  /* Revealed by home.mjs, and only for blocks that start below the fold. */
  .will-reveal {
    opacity: 0;
    transform: translateY(20px);
  }

  .will-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @container work (min-width: 660px) {
    .flow-stage + .flow-stage::after {
      animation-name: flow-across;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
