:root {
  color-scheme: dark;
  --page: #071315;
  --panel: #102225;
  --edge: #355053;
  --text: #edf5f2;
  --muted: #bbccca;
  --mint: #51eca7;
  font: 100%/1.58 system-ui, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0 }
a { color: var(--mint); text-underline-offset: .19em }
a:hover { color: white }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px }
img { max-width: 100%; height: auto }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto }
header { border-bottom: 1px solid var(--edge) }
.bar, nav, .brand, .languages, .actions { display: flex; align-items: center }
.bar { justify-content: space-between; gap: 1.25rem; min-height: 4.4rem; padding-block: .7rem }
.brand { gap: .65rem; font-weight: 720; line-height: 1.1; color: var(--text); text-decoration: none }
.brand img { width: 2.55rem; flex: none }
.bar .engineering-wordmark { width: clamp(5rem,9vw,7rem); height: auto; background: #f8faf9; border-radius: .25rem }
.captcha-img { display: block; width: 234px; height: auto }
.brief audio { display: block; width: min(100%, 19rem); margin-block: .55rem }
nav, .actions { flex-wrap: wrap; gap: .65rem 1.25rem }
.bar nav a, footer a { font-size: .91rem }
.bar a, .crumb a, footer a { text-decoration: none }
.bar nav a, footer a { color: var(--muted) }
.bar nav a:hover, footer a:hover, .bar [aria-current] { color: var(--mint) }
.languages { flex: none; gap: .45rem; font-size: .9rem }
.languages a { color: var(--muted) }
.languages [aria-current] { color: var(--mint); border-bottom: 2px solid }
main { padding-bottom: 3rem }
main section { scroll-margin-top: 1.25rem }
main > section, main.wrap > section, main .wrap > section { margin-block: clamp(2rem, 5vw, 4.2rem) }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.03em; overflow-wrap: break-word; text-wrap: balance }
h1 { max-width: 24ch; font-size: clamp(2rem, 4.15vw, 3.5rem); margin: .4rem 0 1rem }
h2 { font-size: clamp(1.4rem, 2.65vw, 2rem); margin: 0 0 .95rem }
h3 { font-size: 1.17rem; margin: .3rem 0 .55rem }
p { max-width: 72ch; margin: .55rem 0 1rem }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem) }
.hero-copy > p, .lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem) }
.eyebrow, .kicker { color: var(--mint); font-weight: 650; font-size: .86rem; letter-spacing: .045em }
.diagram { margin: 0; padding: clamp(1.1rem, 2.3vw, 1.8rem); border: 1px solid var(--edge); border-radius: .75rem; background: var(--panel) }
.diagram ol { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; gap: .85rem }
.diagram li { position: relative; padding: .55rem .85rem; border-left: 3px solid var(--mint); background: var(--page) }
.diagram li + li::before { content: ""; position: absolute; left: .55rem; bottom: 100%; height: .85rem; border-left: 1px solid var(--edge) }
.actions { margin: 1.25rem 0; gap: .65rem }
.button, .brief button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem;
  padding: .53rem 1.05rem; border: 1px solid var(--mint); border-radius: .4rem;
  background: var(--mint); color: #071913; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button.secondary { background: transparent; color: var(--text); border-color: var(--edge) }
.button:hover, .brief button:hover { background: #b8ffda; color: #071913 }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .9rem }
.tile { display: block; min-width: 0; padding: 1.2rem; border: 1px solid var(--edge); border-radius: .6rem; background: var(--panel); text-decoration: none; color: var(--text) }
.tile p { color: var(--muted); margin: .5rem 0 0 }
a.tile:hover, .tile:focus-within { border-color: var(--mint) }
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .91rem; margin-block: 1.1rem }
.prose { max-width: 77ch }
.prose section + section { margin-top: 2rem }
.prose li { margin-block: .45rem }
.demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem }
.demo figure, figure.demo { margin: 0; min-width: 0; padding: .95rem; border: 1px solid var(--edge); border-radius: .6rem; background: var(--panel) }
.demo img { width: 100%; max-height: 23rem; object-fit: contain; display: block }
.demo figcaption { margin-top: .75rem; color: var(--muted) }
.brief { max-width: 45rem; padding: clamp(1rem, 2.8vw, 2rem); border: 1px solid var(--edge); border-radius: .65rem; background: var(--panel) }
.brief label { display: block; margin-block: .75rem .3rem; font-weight: 600 }
.brief input:not([type=checkbox]), .brief textarea, .brief select {
  display: block; margin: .25rem 0 .85rem; padding: .65rem .8rem; width: 100%; max-width: 100%;
  background: var(--page); color: var(--text); border: 1px solid #648084; border-radius: .32rem; font: inherit;
}
.brief textarea { min-height: 7rem; resize: vertical }
.brief button { margin-top: .4rem }
.contact-list { display: grid; gap: .55rem; overflow-wrap: anywhere }
footer { border-top: 1px solid var(--edge); padding: 1.4rem 0 2rem; color: var(--muted) }
footer nav { margin-block: .6rem }
@media (max-width: 52rem) {
  .bar { flex-wrap: wrap; gap: .65rem 1rem }
  .bar nav { order: 3; flex-basis: 100%; gap: .15rem 1rem }
  .bar nav a { padding-block: .25rem }
  .hero { grid-template-columns: 1fr }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem) }
  .brand { font-size: .95rem }
  .brand img { width: 2rem }
  .actions a { width: 100% }
}
