:root {
  --black: #0a0a0b;
  --ink: #111113;
  --white: #ffffff;
  --paper: #f7f7f5;
  --line: #d7d7d2;
  --muted: #5d5d61;
  --red: #ff2c1f;
  --red-dark: #d91e14;
  --green: #138a52;
  --amber: #8a5b00;
  --radius-sm: 0.25rem;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section-space: clamp(5rem, 9vw, 10rem);
  --content-max: 1600px;
  --header-height: 5.25rem;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--white);
  background: var(--red);
}

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

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.full-bleed {
  width: 100%;
}

.section-grid,
.header-grid,
.footer-grid {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

.section-index {
  margin: 0 0 1.25rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-dark .section-index {
  color: #f4f4f4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

h2 {
  margin-bottom: 2rem;
  font-size: clamp(3.25rem, 7vw, 8rem);
}

h2 span {
  color: var(--red);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-dark:hover {
  background: var(--red);
  border-color: var(--red);
}

.button-outline {
  color: var(--black);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--black);
}

.text-link,
.project-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover,
.project-link:hover {
  color: var(--red);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: var(--header-height);
  color: var(--black);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 10, 11, 0.12);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.header-grid {
  display: grid;
  height: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--red);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3.5rem);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  color: var(--white);
  background: var(--black);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-cta:hover {
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--black);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: clip;
  background: var(--white);
}

.hero-grid {
  display: grid;
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(2rem, 5vw, 6rem) 6rem var(--gutter);
}

.availability-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 7vh, 6rem);
  color: #252527;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.availability-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0.35rem rgba(255, 44, 31, 0.12);
}

.hero-intro {
  margin-bottom: 0.8rem;
  color: #242426;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 650;
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(4.35rem, 9vw, 10rem);
}

.hero h1 span {
  color: var(--red);
}

.hero-summary {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: #28282b;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 560;
  line-height: 1.45;
}

.hero-role {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 3rem;
  color: var(--black);
}

.hero-role .page-index {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-role strong {
  color: var(--black);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-media {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #efefef;
}

.hero-red-field {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 57%;
  background: var(--red);
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: min(88%, 780px);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.08) contrast(1.02);
  transform: translateY(2%);
  animation: hero-enter 760ms var(--ease) both;
}

.hero-vertical-index {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 1.5rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.8rem;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes hero-enter {
  from { transform: translateY(4%); }
  to { transform: translateY(2%); }
}

/* About */
.about {
  padding-block: var(--section-space);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.section-heading > p:not(.section-index),
.services-copy > p:not(.section-index),
.contact-copy > p:not(.section-index),
.tools-intro > p:not(.section-index) {
  max-width: 43rem;
  color: #d9d9d9;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.65;
}

.about-media {
  align-self: stretch;
  min-height: 640px;
}

.about-media img {
  width: 100%;
  height: 100%;
  max-height: 920px;
  object-fit: contain;
  object-position: center bottom;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 0;
  border-top: 1px solid #38383a;
  border-bottom: 1px solid #38383a;
}

.stats div {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-right: 1px solid #38383a;
}

.stats div:last-child {
  border-right: 0;
  padding-left: 1.5rem;
}

.stats div:nth-child(2) {
  padding-left: 1.5rem;
}

.stats dt {
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stats dd {
  margin: 0.7rem 0 0;
  color: #f5f5f5;
  font-size: 0.8rem;
  font-weight: 700;
}

.expertise {
  padding-top: 0.5rem;
}

.expertise h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.skill + .skill {
  margin-top: 1.4rem;
}

.skill > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: #f5f5f5;
  font-size: 0.86rem;
  font-weight: 700;
}

.skill meter {
  width: 100%;
  height: 0.45rem;
  appearance: none;
  border: 0;
  background: #303032;
}

.skill meter::-webkit-meter-bar {
  background: #303032;
  border: 0;
  border-radius: 0;
}

.skill meter::-webkit-meter-optimum-value {
  background: var(--red);
}

.skill meter::-moz-meter-bar {
  background: var(--red);
}

/* Work */
.work {
  padding-block: var(--section-space);
  background: var(--white);
}

.work-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(2rem, 8vw, 9rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.work-intro h2 {
  margin-bottom: 0;
}

.work-intro > p {
  margin-bottom: 0.7rem;
  color: #343438;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.65;
}

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--line);
}

.directory-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.directory-toolbar strong {
  font-size: 0.95rem;
}

.directory-toolbar [data-project-count] {
  color: var(--muted);
  font-size: 0.78rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.filter {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.project-directory {
  display: grid;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.project-media,
.system-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--black);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.015);
}

.project-media-light {
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 4rem);
  background: #eef4f8;
}

.project-media-light img {
  object-fit: contain;
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: #333336;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status {
  padding-left: 0.7rem;
  border-left: 2px solid currentColor;
}

.status-complete { color: var(--green); }
.status-progress { color: var(--amber); }
.status-case { color: #0c5a95; }
.status-neutral { color: #5b5b60; }

.project h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.project p {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: #2a2a2e;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.project .project-support {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-link,
.scope-label {
  margin-top: 1.25rem;
}

.scope-label {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-visual {
  display: grid;
  min-height: 460px;
  align-content: space-between;
  padding: clamp(2rem, 4vw, 4.5rem);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 44, 31, 0.18), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0, transparent 59px, rgba(255,255,255,.045) 60px),
    var(--black);
}

.system-visual span {
  color: var(--red);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.system-visual small {
  align-self: end;
  font-size: clamp(1.15rem, 2vw, 2rem);
  font-weight: 800;
}

.system-visual em {
  color: #c8c8ca;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tools */
.tools {
  padding-block: var(--section-space);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tools-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(2rem, 8vw, 9rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.tools-intro h2 {
  margin-bottom: 0;
}

.tools-intro > p:not(.section-index) {
  color: #343438;
  margin-bottom: 0.7rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tool-card {
  display: grid;
  min-height: 170px;
  grid-template-columns: 5.75rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-card img {
  width: 5.75rem;
  height: 5.75rem;
  object-fit: contain;
}

.tool-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
}

.tool-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Services */
.services {
  padding-block: var(--section-space);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.services-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.services-media {
  min-height: 480px;
}

.services-media img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: contain;
}

.service-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  border-top: 1px solid #363638;
  border-left: 1px solid #363638;
}

.service-item {
  display: grid;
  min-height: 260px;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-right: 1px solid #363638;
  border-bottom: 1px solid #363638;
}

.service-item > span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-item h3 {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: -0.045em;
}

.service-item p {
  max-width: 33rem;
  margin-bottom: 0;
  color: #cfcfd1;
}

.process {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(4rem, 8vw, 8rem);
}

.process h3 {
  font-size: clamp(2.5rem, 5vw, 6rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.process h3 span {
  color: var(--red);
}

.process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #363638;
}

.process li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #363638;
}

.process li > span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.process strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.process p {
  margin-bottom: 0;
  color: #cfcfd1;
}

/* Contact */
.contact {
  padding-block: var(--section-space);
  color: var(--black);
  background: var(--red);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(500px, 1.28fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.contact-copy h2 {
  color: var(--black);
}

.contact-copy h2 span {
  color: var(--white);
}

.contact-copy > p:not(.section-index) {
  color: var(--black);
  font-weight: 600;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 10, 11, 0.35);
}

.contact-details dt {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 4.5rem);
  background: var(--white);
  box-shadow: 1.25rem 1.25rem 0 var(--black);
}

.response-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.response-note span {
  color: var(--muted);
}

.contact-panel h3 {
  margin-bottom: 2.5rem;
  font-size: clamp(2rem, 4vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.contact-form {
  display: grid;
  gap: 1.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label > span {
  color: #333337;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  color: var(--black);
  background: var(--white);
  border: 0;
  border-bottom: 1px solid #8d8d91;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-bottom-color: var(--red);
  box-shadow: 0 2px 0 var(--red);
}

.button-submit {
  justify-self: start;
  min-width: 12rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.callout > div {
  display: grid;
  gap: 0.3rem;
}

.callout span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  padding-block: 2.25rem;
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 2rem;
  align-items: end;
}

.brand-footer {
  color: var(--white);
}

.footer-grid p,
.footer-grid a:not(.brand) {
  margin-bottom: 0;
  color: #d7d7d9;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-grid a:not(.brand):hover {
  color: var(--red);
}

/* Progressive motion: content remains visible if JavaScript fails. */
.reveal {
  transform: translateY(0);
  transition: transform 520ms var(--ease);
}

.motion-ready .reveal:not(.is-visible) {
  transform: translateY(18px);
}

.motion-ready .reveal.is-visible {
  transform: translateY(0);
}

/* Case-study shared styles */
.case-hero {
  padding: clamp(4rem, 8vw, 8rem) 0 var(--section-space);
  background: var(--paper);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.case-kicker {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(4rem, 8vw, 9rem);
}

.case-hero h1 span {
  color: var(--red);
}

.case-hero h1 .case-title-base {
  color: var(--black);
}

.case-title-base,
.case-title-accent {
  display: block;
}

.case-hero-copy > p {
  max-width: 41rem;
  color: #303034;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.65;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-hero-media {
  padding: clamp(1rem, 3vw, 3rem);
  background: #eaf2f6;
}

.case-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.case-section {
  padding-block: var(--section-space);
}

.case-section + .case-section {
  border-top: 1px solid var(--line);
}

.case-intro-grid,
.case-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.case-section h2 {
  font-size: clamp(3rem, 6vw, 7rem);
}

.case-prose {
  max-width: 49rem;
}

.case-prose p,
.case-prose li {
  color: #2e2e32;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

.case-prose ul {
  padding-left: 1.2rem;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.case-gallery figure,
.case-split figure {
  margin: 0;
}

.case-gallery img,
.case-split img {
  width: 100%;
  height: auto;
  background: #eef4f6;
  object-fit: contain;
}

.case-gallery figcaption,
.case-split figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.apk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--white);
  background: var(--black);
}

.apk-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 5.5rem);
}

.apk-panel p {
  max-width: 45rem;
  margin-bottom: 0;
  color: #d2d2d4;
}

.button-disabled,
.button-disabled:hover {
  color: #8e8e91;
  background: #252527;
  border-color: #4a4a4d;
  transform: none;
  cursor: not-allowed;
}

.case-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}


.case-prose-on-dark {
  color: #d6d6d8 !important;
}

.button-red {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-red:hover {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.button-light-outline {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
}

.button-light-outline:hover {
  color: var(--black);
  background: var(--white);
}

/* Success */
.success-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  color: var(--white);
  background: var(--black);
}

.success-card {
  width: min(100%, 760px);
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--white);
  color: var(--black);
  box-shadow: 1rem 1rem 0 var(--red);
}

.success-card h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.success-card p {
  color: #353539;
  font-size: 1.1rem;
}

/* Tablet */
@media (max-width: 1100px) {
  :root {
    --header-height: 4.75rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  }

  .hero h1 {
    font-size: clamp(4rem, 8.2vw, 7rem);
  }

  .project {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 2.75rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(430px, 1.25fr);
  }
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    z-index: 999;
    inset: var(--header-height) 0 auto;
    display: grid;
    max-height: calc(100svh - var(--header-height));
    justify-content: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    color: var(--white);
    background: var(--black);
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 220ms var(--ease);
    visibility: hidden;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    min-height: 58px;
    justify-content: space-between;
    border-bottom: 1px solid #333336;
    font-size: 1rem;
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 67svh;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .availability-line {
    margin-bottom: 3rem;
  }

  .hero-media {
    min-height: 60svh;
  }

  .hero-media img {
    width: min(84%, 620px);
  }

  .scroll-cue {
    bottom: 1rem;
  }

  .about-grid,
  .work-intro,
  .tools-intro,
  .services-grid,
  .contact-grid,
  .case-hero-grid,
  .case-intro-grid,
  .case-split {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 520px;
    order: 2;
  }

  .stats {
    order: 3;
  }

  .expertise {
    order: 4;
  }

  .work-intro,
  .tools-intro {
    gap: 2rem;
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-media,
  .system-visual {
    min-height: 360px;
  }

  .services-copy {
    position: static;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

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

  .contact-panel {
    box-shadow: 0.75rem 0.75rem 0 var(--black);
  }

  .case-hero-media {
    order: -1;
  }

  .apk-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Mobile */
@media (max-width: 620px) {
  :root {
    --gutter: 1.25rem;
    --section-space: 4.75rem;
    --header-height: 4.5rem;
  }

  h2 {
    font-size: clamp(3.1rem, 15vw, 5.1rem);
  }

  .desktop-only {
    display: none;
  }

  .hero-copy {
    min-height: auto;
    padding: 3.25rem var(--gutter) 2.75rem;
  }

  .availability-line {
    margin-bottom: 2.5rem;
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.9rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-role {
    margin-top: 2.5rem;
    padding-top: 0;
  }

  .hero-role strong {
    font-size: 1rem;
  }

  .hero-media {
    min-height: 55svh;
  }

  .hero-red-field {
    height: 53%;
  }

  .hero-media img {
    width: min(96%, 520px);
  }

  .hero-vertical-index {
    right: 0.5rem;
  }

  .scroll-cue {
    right: 1rem;
  }

  .about-media {
    min-height: 430px;
  }

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

  .stats div,
  .stats div:nth-child(2),
  .stats div:last-child {
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid #38383a;
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter {
    width: 100%;
  }

  .project {
    padding-block: 3rem;
  }

  .project-media,
  .system-visual {
    min-height: 260px;
  }

  .project-media-light {
    padding: 1rem;
  }

  .project h3 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .project p {
    font-size: 1rem;
  }

  .system-visual {
    min-height: 300px;
    padding: 1.5rem;
  }

  .system-visual span {
    font-size: 4.5rem;
  }

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

  .tool-card {
    min-height: 128px;
    grid-template-columns: 4.5rem 1fr;
  }

  .tool-card img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .service-item {
    min-height: auto;
    padding: 2rem 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 1.5rem;
    box-shadow: 0.5rem 0.5rem 0 var(--black);
  }

  .response-note,
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .callout .button {
    width: 100%;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .case-hero {
    padding-top: 3.25rem;
  }

  .case-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.5rem);
  }

  .case-title-base,
  .case-title-accent {
    display: block;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-tags li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .apk-panel {
    padding: 1.5rem;
  }

  .apk-panel .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-copy .button {
    width: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal:not(.is-visible),
  .motion-ready .reveal.is-visible {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .filter,
  .header-cta,
  .case-tags li {
    border: 1px solid ButtonText;
  }

  .availability-dot {
    border: 1px solid ButtonText;
  }
}
