@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda-500-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-ui:     "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --font-tagline: "Bodoni Moda", "Times New Roman", serif;

  --canvas:   #150202;
  --surface:  #1B0D0D;
  --line:     rgba(244, 236, 233, 0.14);
  --ink:      #F4ECE9;
  --muted:    rgba(244, 236, 233, 0.62);
  --red:      #C4523F;
  --red-deep: #6D0F0F;
  --hero-fallback: #150202;

  --gutter-x: clamp(1.5rem, 2.5vw, 3rem);
  --gutter-y: clamp(1.25rem, 2vw, 2.25rem);
  --gutter-nav: clamp(1.5rem, 11vw, 10rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

@keyframes rise-in {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: none; }
}

.wordmark { animation: rise-in 1.4s var(--ease) 0.15s both; }
.tagline  { animation: rise-in 1.4s var(--ease) 0.45s both; }
.site-header .mark { animation: rise-in 1s var(--ease) 0.7s both; }
.site-header .nav  { animation: rise-in 1s var(--ease) 0.85s both; }

.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .industries.is-visible .industry {
  animation: rise-in 1s var(--ease) both;
}
.js .industries.is-visible .industry:nth-child(1) { animation-delay: 0.1s; }
.js .industries.is-visible .industry:nth-child(2) { animation-delay: 0.25s; }
.js .industries.is-visible .industry:nth-child(3) { animation-delay: 0.4s; }
.js .industries.is-visible .industry:nth-child(4) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: var(--hero-fallback);
  background-image: radial-gradient(ellipse at 50% 45%, var(--red-deep) 0%, var(--hero-fallback) 68%);
}

.hero__vanta {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to bottom, transparent 72%, var(--canvas) 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: var(--gutter-y) var(--gutter-x);
  padding-right: var(--gutter-nav);
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.mark {
  display: block;
  flex: none;
  width: clamp(64px, 5vw, 96px);
  transition: opacity 0.4s var(--ease);
}

.mark:hover { opacity: 0.7; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.75rem);
  position: relative;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: clamp(0.9375rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}

.nav__link:hover { opacity: 0.6; }

.nav__link:focus-visible,
.mark:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
  border-radius: 2px;
}

.hero__lockup {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(2rem, 13vh, 9rem);
}

.hero__eyebrow {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  animation: rise-in 1.4s var(--ease) 0s both;
}

.wordmark {
  margin: 0;
  width: min(42%, 860px);
}

.tagline {
  --tracking: 0em;

  margin: clamp(0.75rem, 1.56vw, 2rem) 0 0;
  font-family: var(--font-tagline);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.9vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: var(--tracking);
  text-indent: var(--tracking);
  color: var(--ink);
  text-align: center;
}

.hero__subtitle {
  margin: clamp(0.5rem, 1vw, 1rem) auto 0;
  max-width: 36ch;
  font-family: var(--font-ui);
  font-size: clamp(0.8125rem, 0.85vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  animation: rise-in 1.4s var(--ease) 0.6s both;
}

.hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter-x) clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  animation: rise-in 1s var(--ease) 0.9s both;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__scroll-rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--muted);
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter-x);
}

.section {
  padding: clamp(5rem, 12vh, 10rem) 0;
  background: var(--canvas);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: lowercase;
}

.section__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.prose {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 58ch;
}

.prose p {
  margin: 0 0 1.25em;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
}

.prose p:last-child { margin-bottom: 0; }

.prose p.prose__lead {
  max-width: 50ch;
  margin-bottom: 1.5em;
  font-size: clamp(1.125rem, 1.45vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.about__layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.about__layout .prose { margin-top: 0; }

.about__image {
  flex: 0 0 auto;
  width: clamp(240px, 34vw, 460px);
  height: auto;
  margin-top: 0.5rem;
}

@media (max-width: 760px) {
  .about__layout {
    flex-direction: column-reverse;
  }

  .about__image {
    width: clamp(220px, 68vw, 360px);
    margin-top: 0;
  }
}

#industries {
  overflow-x: clip;
}

.industries__layout {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

.industries__body {
  min-width: 0;
}

.section__art {
  width: 170%;
  max-width: none;
  margin-inline: -72% 2%;
  height: auto;
}

@media (max-width: 760px) {
  .industries__layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .industries__layout .industries {
    margin-top: 1.25rem;
  }

  .industries__body {
    display: contents;
  }

  .industries__layout .eyebrow      { order: 1; }
  .industries__layout .section__title { order: 2; }
  .section__art                     { order: 3; }
  .industries__layout .industries   { order: 4; }

  .section__art {
    justify-self: start;
    width: clamp(240px, 70vw, 380px);
    margin-inline: 0;
    margin-block: -9%;
  }
}

.industries {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.industry {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.industry__index {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--red);
}

.industry__name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.industry__projects {
  grid-column: 2;
  grid-row: 2;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project__link {
  --project-accent: 196 82 63;
  --project-accent-text: 196 82 63;

  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgb(var(--project-accent) / 0.07);
  border: 1px solid rgb(var(--project-accent) / 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.project__link::after {
  content: "↗";
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  padding-left: 1rem;
  font-size: 1.125rem;
  line-height: 1;
  color: rgb(var(--project-accent-text));
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.project__link:hover,
.project__link:focus-visible {
  background: rgb(var(--project-accent) / 0.12);
  border-color: rgb(var(--project-accent) / 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgb(var(--project-accent) / 0.55);
}

.project__link:hover::after,
.project__link:focus-visible::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.project__link:focus-visible {
  outline: 2px solid rgb(var(--project-accent-text));
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .project__link,
  .project__link::after {
    transition: none;
  }

  .project__link:hover,
  .project__link:focus-visible,
  .project__link:hover::after,
  .project__link:focus-visible::after {
    transform: none;
  }
}

.project--receptionease .project__link {
  --project-accent: 37 99 255;
  --project-accent-text: 138 168 255;
}

.project--speeddraw .project__link {
  --project-accent: 217 70 239;
  --project-accent-text: 232 160 255;
}

.project--speeddraw .project__logo {
  box-shadow: none;
}

.project__logo {
  flex: 0 0 auto;
  width: clamp(3.25rem, 6vw, 4.5rem);
  height: clamp(3.25rem, 6vw, 4.5rem);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(var(--project-accent) / 0.35);
}

.project__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.project__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project__tag {
  flex: 0 0 auto;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgb(var(--project-accent-text));
  background: rgb(var(--project-accent) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--project-accent) / 0.3);
}

.project__name {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.project__link:hover .project__name {
  color: rgb(var(--project-accent-text));
}

.project__copy {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  line-height: 1.7;
  color: var(--muted);
}

.project__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: clamp(0.875rem, 2.6vw, 1.75rem);
  row-gap: 0.875rem;
  margin-top: 1rem;
}

.project__stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.project__stat-value {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.9vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.project__link:hover .project__stat-value {
  color: rgb(var(--project-accent-text));
}

.project__stat-label {
  font-family: var(--font-ui);
  font-size: clamp(0.625rem, 1.15vw, 0.6875rem);
  letter-spacing: clamp(0.04em, 0.35vw, 0.16em);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.project__partner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.625rem;
  margin-top: 0.875rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.85;
}

.project__partner-logo {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 7px;
  object-fit: cover;
}

.project__partner-stack {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.project__partner-stack .project__partner-logo:not(:first-child) {
  margin-left: -0.8rem;
}

@media (max-width: 520px) {
  .project__link {
    flex-direction: column;
  }

  .project__link::after {
    display: none;
  }
}

.contact__email {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(1.375rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.15em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__email:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.contact__meta dt {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--red);
}

.contact__meta dd {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact__meta a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.contact__meta a:hover { color: var(--ink); }

.footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.footer__identity {
  margin: clamp(0.875rem, 1.6vw, 1.125rem) 0 0;
  max-width: 30ch;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.footer__identity a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__identity a:hover { color: var(--ink); }

.footer__identity a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__text {
  margin: 0;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer__text a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__text a:hover { color: var(--ink); }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.mark--footer { width: clamp(72px, 6vw, 96px); opacity: 0.75; }
.mark--footer:hover { opacity: 1; }

.footer__note {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact__email:focus-visible,
.contact__meta a:focus-visible,
.footer__text a:focus-visible,
.mark--footer:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.project__link:focus-visible {
  outline: 2px solid rgb(var(--project-accent-text));
  outline-offset: 3px;
  border-radius: 12px;
}

.hero--error {
  min-height: 100svh;
}

.hero--error .hero__lockup {
  padding: clamp(6rem, 14vh, 9rem) var(--gutter-x) clamp(2rem, 6vh, 4rem);
  text-align: center;
}

.error__code {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(5.5rem, 22vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
  background-image: linear-gradient(to bottom, var(--ink) 42%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rise-in 1.4s var(--ease) 0.15s both;
}

.error__tagline {
  margin-top: clamp(0.5rem, 1.4vw, 1.25rem);
  animation: rise-in 1.4s var(--ease) 0.4s both;
}

.error__copy {
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  max-width: 34ch;
  font-family: var(--font-ui);
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: var(--muted);
  text-wrap: balance;
  animation: rise-in 1.4s var(--ease) 0.55s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: rgba(21, 2, 2, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              background-color 0.4s var(--ease);
  animation: rise-in 1.4s var(--ease) 0.7s both;
}

.btn:hover {
  color: var(--ink);
  border-color: var(--red);
  background: rgba(196, 82, 63, 0.16);
}

.btn__rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

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

.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.hero--error .hero__scroll a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.hero--error .hero__scroll a:hover { color: var(--ink); }

.hero--error .hero__scroll a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

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

@media (max-width: 860px) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .industry {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.5rem 1rem;
  }

  .industry__projects {
    margin-top: 1rem;
  }

  .contact__meta { gap: 1.5rem 2rem; }

  .site-header {
    gap: 0.75rem;
    padding-right: var(--gutter-x);
  }

  .nav { gap: 1.1rem; }

  .nav__link { font-size: 0.8125rem; }

  .wordmark { width: 82%; }

  .tagline { font-size: 1rem; }
}

.legal {
  padding: clamp(7rem, 18vh, 11rem) 0 clamp(4rem, 10vh, 7rem);
  background: var(--canvas);
}

.legal__title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.legal__meta {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.legal__body {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 68ch;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.legal__lead {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.legal__section:first-of-type { margin-top: 0; }

.legal__body { counter-reset: legal-section; }

.legal__heading {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__heading::before {
  counter-increment: legal-section;
  content: counter(legal-section) ". ";
  color: var(--red);
}

.legal__section p,
.legal__section li {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.75;
  color: var(--muted);
}

.legal__section p { margin: 0 0 1.15em; }
.legal__section p:last-child { margin-bottom: 0; }

.legal__list {
  margin: 0 0 1.15em;
  padding-left: 1.25rem;
}

.legal__list li { margin-bottom: 0.6em; }
.legal__list li:last-child { margin-bottom: 0; }

.legal__list li::marker { color: var(--red); }

.legal__section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s var(--ease);
}

.legal__section a:hover { text-decoration-color: var(--red); }

.legal__section a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal__card {
  margin: 0 0 1.15em;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.75;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal__card strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
