:root {
  --paper: #EFEFEA;
  --surface: #E5E4DE;
  --surface-2: #D9D8D1;
  --ink: #141513;
  --muted: #615F58;

  --accent: #236C7E;
  --accent-strong: #1B5A6A;
  --accent-ink: #F1F2EF;
  --accent-light: #84C6D2;
  --accent-soft: #D7E5E4;

  --dark: #101719;
  --dark-2: #172226;
  --bone: #F1F2EF;
  --night-muted: #A8B3B4;
  --mint: #7BD9B0;

  --gutter: 20px;
  --pad: 32px;
  --bench: 36vw;
  --bench-gap: 24px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button,
input,
label {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
}

h3 {
  font-size: 26px;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* ---------- layout ---------- */

.bench {
  position: fixed;
  top: var(--gutter);
  left: var(--gutter);
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(var(--bench) - var(--gutter) - var(--bench-gap));
  height: calc(100svh - (var(--gutter) * 2));
  padding: var(--pad);
  background: var(--surface);
  color: var(--ink);
}

.content {
  margin-left: var(--bench);
}

/* ---------- fixed bench ---------- */

.bench-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bench-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.bench-id {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.bench-now {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.bench-now span {
  color: var(--ink);
}

.bench-portrait {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 28px 0;
}

.portrait-media {
  overflow: hidden;
}

.bench-portrait img {
  width: min(100%, 320px);
  height: auto;
  max-height: 50svh;
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.bench-portrait figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.bench-bottom {
  margin-top: auto;
}

.bench-role {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.bench-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  font-size: 14px;
}

.bench-links a {
  text-decoration: none;
}

.bench-links a:hover {
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 28px var(--pad) 24px;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  line-height: 1.4;
}

.hero-nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero-nav a:hover {
  color: var(--accent);
}

.hero-nav .nav-github {
  color: var(--ink);
  font-weight: 600;
}

.hero-main {
  max-width: 680px;
  margin-top: clamp(48px, 10vh, 96px);
}

.hero-lede {
  max-width: 48ch;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.button:hover {
  background: var(--accent-strong);
}

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

.text-link {
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent);
}

.hero-latest {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-latest a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: auto;
  padding-top: 72px;
}

.hero-index a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.hero-index-name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.hero-index-kind {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hero-index a:hover .hero-index-name {
  color: var(--accent);
}

/* ---------- generic section bits ---------- */

.section-lede {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- intake ---------- */

.intake {
  padding: 120px var(--pad) 140px;
}

.intake-widget {
  min-width: 0;
  margin: 40px 0 0;
  padding: 0;
  border: 0;
}

.intake-results {
  margin-top: 32px;
}

.intake-result {
  display: none;
  padding: 28px;
  background: var(--surface);
}

#p-ads:checked ~ .intake-results #result-ads,
#p-switch:checked ~ .intake-results #result-switch,
#p-laps:checked ~ .intake-results #result-laps,
#p-shop:checked ~ .intake-results #result-shop {
  display: block;
  animation: result-in .4s var(--ease) both;
}

.result-name {
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.intake-result dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.intake-result dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
}

.intake-result dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.intake-result dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--accent);
  transform: translateY(-2px);
}

.result-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.result-link:hover {
  color: var(--accent);
}

.intake-choose {
  margin: 28px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.intake-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.intake-choices label {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  cursor: pointer;
  font-size: 17px;
  line-height: 1.4;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.intake-choices label:hover {
  background: var(--surface-2);
}

.intake-choices label:active {
  transform: translateY(1px);
}

#p-ads:checked ~ .intake-choices label[for="p-ads"],
#p-switch:checked ~ .intake-choices label[for="p-switch"],
#p-laps:checked ~ .intake-choices label[for="p-laps"],
#p-shop:checked ~ .intake-choices label[for="p-shop"] {
  background: var(--accent);
  color: var(--accent-ink);
}

#p-ads:focus-visible ~ .intake-choices label[for="p-ads"],
#p-switch:focus-visible ~ .intake-choices label[for="p-switch"],
#p-laps:focus-visible ~ .intake-choices label[for="p-laps"],
#p-shop:focus-visible ~ .intake-choices label[for="p-shop"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- work ---------- */

.work {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(var(--bench) * -1);
  padding: 96px 0 120px;
  background: var(--surface);
  color: var(--ink);
}

.work-inner {
  width: min(calc(100% - 64px), 1376px);
  margin: 0 auto;
}

.work-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 28px;
  margin-top: 30px;
  font-size: 14px;
}

.work-index a:last-child {
  justify-self: end;
}

.work-index a {
  color: var(--ink);
  text-decoration: none;
}

.work-index a:hover {
  color: var(--accent);
}

.job {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 120px;
  scroll-margin-top: 32px;
}

.job > * {
  min-width: 0;
}

.job--streamguard .job-copy,
.job--lapvoice .job-copy {
  grid-column: 1 / span 4;
}

.job--streamguard .job-visual,
.job--lapvoice .job-visual {
  grid-column: 6 / span 7;
}

.job--svr .job-visual {
  grid-column: 1 / -1;
}

.job--svr .job-copy {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 4fr 7fr;
  gap: 16px 48px;
  align-items: start;
  margin-top: 24px;
}

.job--svr .job-copy h3 {
  grid-column: 1;
  grid-row: 1;
}

.job--svr .job-copy .job-sub {
  grid-column: 1;
  grid-row: 2;
}

.job--svr .job-copy > p:not(.job-sub):not(.job-links) {
  grid-column: 2;
  grid-row: 1;
  max-width: 62ch;
}

.job--svr .spec {
  grid-column: 2;
  grid-row: 2;
  max-width: 62ch;
}

.job--svr .job-links {
  grid-column: 2;
  grid-row: 3;
  max-width: 62ch;
}

.job--svr .ui--perf {
  grid-column: 1;
  grid-row: 3;
  margin-top: 24px;
}

.job--repair .job-visual {
  grid-column: 1 / span 7;
}

.job--repair .job-copy {
  grid-column: 9 / span 4;
}

.job h3 {
  color: var(--ink);
}

.job-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.job-copy > p:not(.job-sub):not(.job-links) {
  margin-top: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.spec {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.spec > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.spec dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.spec dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.spec code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1em;
}

.job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  font-size: 17px;
}

.job-links a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.job-links a:hover {
  color: var(--accent);
}

.job-visual {
  margin: 0;
}

.job-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.visual-field {
  display: flex;
  min-width: 0;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface-2);
}

/* ---------- interface fragments ---------- */

.ui {
  min-width: 0;
  color: var(--bone);
}

.ui-label {
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ui-note {
  margin-top: 16px;
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.4;
}

.visual-field--sg {
  background: #0B0910;
}

.sg-shots {
  display: flex;
  max-width: 100%;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.sg-shot {
  width: auto;
  height: 480px;
  max-width: 100%;
}

.sg-caption-narrow {
  display: none;
}

.svr-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.svr-shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ui--perf {
  width: 252px;
  max-width: 100%;
  padding: 20px;
  background: var(--dark);
}

.perf-big {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.perf-big span {
  color: var(--night-muted);
  font-size: 14px;
  font-weight: 400;
}

.perf-rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.perf-row {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 8px;
  align-items: center;
  color: var(--night-muted);
  font-size: 14px;
}

.perf-bar {
  display: block;
  height: 8px;
  background: #2A393F;
}

.perf-bar i {
  display: block;
  width: calc(var(--pct) * 1%);
  height: 100%;
  background: var(--accent-light);
}

.perf-row b {
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.ui--lapvoice {
  width: 100%;
  max-width: 600px;
  padding: 28px;
  background: var(--dark);
}

.lv-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.lv-delta {
  color: var(--accent-light);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.ui--lapvoice blockquote {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.lv-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--night-muted);
  font-size: 14px;
}

.lv-wave {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 3px;
  margin-top: 18px;
}

.lv-wave i {
  display: block;
  width: 3px;
  height: var(--h);
  background: var(--accent-light);
  opacity: .75;
}

.ui--ticket {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}

.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-shop {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.ticket-id {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.ticket-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.ticket-status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 24px 0 0;
}

.ticket-grid dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.ticket-grid dd {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.4;
}

.ticket-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
}

.ticket-note span {
  color: var(--muted);
  font-size: 14px;
}

.ticket-note p {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.5;
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- about ---------- */

.about {
  padding: 140px var(--pad) 120px;
}

.letter {
  max-width: 600px;
  margin-top: 56px;
  font-size: 20px;
  line-height: 1.6;
}

.letter p {
  margin-bottom: 20px;
}

.letter .lead {
  font-size: 24px;
  line-height: 1.4;
}

.letter mark {
  padding: 0 .08em;
  background: var(--accent);
  color: var(--accent-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.signoff {
  margin-top: 36px !important;
  margin-bottom: 0 !important;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.signoff-role {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  color: var(--muted);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.toolbox {
  margin-top: 36px !important;
  margin-bottom: 0 !important;
  color: var(--muted);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.toolbox strong {
  color: var(--ink);
}

/* ---------- contact ---------- */

.contact {
  padding: 150px var(--pad) 160px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px 56px;
  align-items: start;
}

.contact-prompt {
  max-width: 34ch;
  margin-top: 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.contact-field {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 20px;
  background: var(--surface);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s var(--ease);
}

.contact-field:hover {
  background: var(--surface-2);
}

.contact-arrow {
  display: flex;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 20px;
  transition: transform .2s var(--ease);
}

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

.contact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.contact-github {
  margin-top: 8px;
  font-size: 14px;
}

.contact-github a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-kinds {
  max-width: 52ch;
  margin-top: 56px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100vw;
  min-height: 78svh;
  overflow: hidden;
  background: var(--dark);
  color: var(--bone);
}

.footer-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: brightness(.55) saturate(.8);
  animation: footer-drift 28s ease-in-out infinite alternate;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 25, .38);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-nav a,
.footer-top-link {
  color: var(--bone);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-top-link:hover {
  color: var(--accent-light);
}

.footer-bottom {
  margin-top: auto;
}

.footer-wordmark {
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  transform: scale(var(--footer-word-scale, .96));
  transform-origin: left bottom;
}

.footer-legal {
  margin-top: 20px;
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-credits {
  max-width: 100ch;
  margin-top: 8px;
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-credits a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes footer-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.09) translateY(-1.5%); }
}

.hero-nav {
  animation: rise-in .7s .05s var(--ease) both;
}

.hero-main h1 {
  animation: rise-in .8s .12s var(--ease) both;
}

.hero-lede {
  animation: rise-in .8s .22s var(--ease) both;
}

.hero-actions {
  animation: rise-in .8s .32s var(--ease) both;
}

.hero-latest {
  animation: rise-in .8s .42s var(--ease) both;
}

.hero-index {
  animation: rise-in .9s .52s var(--ease) both;
}

.bench-top {
  animation: rise-in .8s .1s var(--ease) both;
}

.bench-portrait {
  animation: fade-in .9s .2s var(--ease) both;
}

.bench-bottom {
  animation: rise-in .8s .4s var(--ease) both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .job {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .job .job-copy,
  .job .job-visual {
    grid-column: 1 / -1;
  }

  .job .job-copy {
    max-width: 620px;
  }

  .sg-shot {
    height: 420px;
  }

  .job--svr .job-copy {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
  }

  .job--svr .job-copy h3,
  .job--svr .job-copy .job-sub,
  .job--svr .ui--perf,
  .job--svr .job-copy > p:not(.job-sub):not(.job-links),
  .job--svr .spec,
  .job--svr .job-links {
    grid-column: 1;
    grid-row: auto;
  }

  .visual-field {
    min-height: 0;
    padding: 48px 32px;
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 12px;
    --pad: 20px;
  }

  .bench {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin: var(--gutter) var(--gutter) 0;
    padding: 20px;
  }

  .bench-top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
  }

  .bench-now {
    flex-basis: 100%;
  }

  .bench-portrait {
    flex: none;
    padding: 18px 0;
  }

  .bench-portrait img {
    width: min(48vw, 200px);
    max-height: none;
  }

  .bench-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
  }

  .bench-links {
    margin-top: 0;
  }

  .content {
    margin-left: 0;
  }

  .hero {
    min-height: 0;
    padding: 40px var(--pad) 28px;
  }

  .hero-main {
    margin-top: 48px;
  }

  .hero-index {
    margin-top: 56px;
    padding-top: 0;
  }

  .intake {
    padding: 96px var(--pad) 100px;
  }

  .work {
    width: auto;
    margin-left: 0;
    padding: 80px 0 100px;
  }

  .work-inner {
    width: auto;
    margin: 0 var(--pad);
  }

  .about {
    padding: 110px var(--pad) 100px;
  }

  .contact {
    padding: 120px var(--pad) 130px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-prompt {
    max-width: 30ch;
  }

  .footer {
    width: auto;
    min-height: 82svh;
  }

  .footer-content {
    padding: 24px 20px;
  }
}

@media (max-width: 820px) {
  .sg-shot {
    height: 400px;
  }

  .svr-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bench {
    padding: 16px;
  }

  .sg-shots {
    flex-direction: column;
    gap: 20px;
  }

  .sg-shot {
    width: min(100%, 320px);
    height: auto;
  }

  .sg-shot--idle {
    display: none;
  }

  .sg-caption-wide {
    display: none;
  }

  .sg-caption-narrow {
    display: inline;
  }

  .bench-portrait {
    padding: 10px 0;
  }

  .bench-portrait img {
    width: min(42vw, 160px);
  }

  .bench-role {
    display: none;
  }

  .work-index {
    grid-template-columns: 1fr 1fr;
  }

  .work-index a:last-child {
    justify-self: start;
  }

  .hero-index {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .intake-choices {
    grid-template-columns: 1fr;
  }

  .intake-choices label {
    min-height: 60px;
  }

  .intake-result {
    padding: 22px;
  }

  .intake-result dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ui--perf {
    width: 100%;
    max-width: 280px;
    margin-top: 24px;
  }

  .visual-field {
    padding: 28px 20px;
  }

  .ui--ticket {
    padding: 22px;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ticket-foot {
    flex-direction: column;
    gap: 4px;
  }

  .footer {
    min-height: 84svh;
  }

  .footer-top {
    display: block;
  }

  .footer-nav {
    gap: 8px 18px;
  }

  .footer-top-link {
    display: inline-block;
    margin-top: 16px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 38px;
  }

  .contact-field {
    font-size: 17px;
  }
}

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

  .hero-nav,
  .hero-main h1,
  .hero-lede,
  .hero-actions,
  .hero-latest,
  .hero-index,
  .bench-top,
  .bench-portrait,
  .bench-bottom,
  .intake-result,
  .footer-media {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .footer-wordmark {
    transform: none;
  }

  .footer-media {
    transform: none;
  }
}
