:root {
  --ink: #171a1f;
  --ink-soft: #303640;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --blue: #2457ff;
  --blue-dark: #173dcc;
  --blue-pale: #e9eeff;
  --slate: #667085;
  --line: rgba(23, 26, 31, 0.15);
  --line-strong: rgba(23, 26, 31, 0.3);
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --width: min(1160px, calc(100vw - 48px));
  --ease: cubic-bezier(0.2, 0.72, 0.24, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 12px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid transparent;
  transition: height 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(247, 244, 237, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--width);
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.header-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 72px;
  align-items: center;
  width: var(--width);
  min-height: 100svh;
  padding: 128px 0 42px;
  margin: 0 auto;
}

.hero-copy { max-width: 690px; }

.hero-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-name::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.7vw, 58px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary { background: transparent; }
.button-secondary:hover { color: var(--blue); border-color: var(--blue); }

.hero-system {
  position: relative;
  width: min(100%, 500px);
  height: 520px;
  margin-left: auto;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.hero-system::before {
  position: absolute;
  top: -120px;
  right: -110px;
  width: 330px;
  height: 330px;
  content: "";
  background: var(--blue-pale);
  border-radius: 50%;
}

.system-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(36, 87, 255, 0.12);
}

.system-label {
  position: absolute;
  top: -11px;
  left: 12px;
  padding: 3px 7px;
  color: var(--white);
  background: var(--blue);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.system-browser {
  top: 72px;
  left: 38px;
  width: 245px;
  height: 175px;
  padding: 17px;
}

.browser-bar { display: flex; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 6px; height: 6px; background: var(--line-strong); border-radius: 50%; }
.browser-content { display: grid; gap: 12px; padding-top: 18px; }
.browser-content span { display: block; height: 13px; background: var(--blue-pale); }
.browser-content span:nth-child(2) { width: 72%; }
.browser-content span:nth-child(3) { width: 48%; background: var(--blue); }

.system-api {
  top: 252px;
  right: 34px;
  display: flex;
  width: 180px;
  height: 120px;
  padding: 22px;
  flex-direction: column;
  justify-content: center;
}

.system-api strong { color: var(--blue); font-family: var(--mono); font-size: 26px; font-weight: 400; }
.system-api small { color: var(--slate); font-family: var(--mono); font-size: 7px; }

.system-data {
  bottom: 50px;
  left: 70px;
  display: grid;
  width: 145px;
  height: 105px;
  place-items: center;
}

.database { display: grid; gap: 4px; width: 58px; }
.database i { display: block; height: 13px; background: var(--blue-pale); border: 1px solid var(--blue); border-radius: 50%; }

.system-connector {
  position: absolute;
  z-index: 1;
  border-color: var(--blue);
  border-style: solid;
}

.connector-one {
  top: 205px;
  right: 110px;
  width: 120px;
  height: 75px;
  border-width: 0 1px 1px 0;
}

.connector-two {
  right: 150px;
  bottom: 120px;
  width: 120px;
  height: 80px;
  border-width: 0 0 1px 1px;
}

.system-caption {
  position: absolute;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.hero-proof div { padding: 18px 22px 0 0; border-right: 1px solid var(--line); }
.hero-proof div:not(:first-child) { padding-left: 22px; }
.hero-proof div:last-child { border-right: 0; }
.hero-proof span, .hero-proof strong { display: block; }
.hero-proof span { color: var(--slate); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.hero-proof strong { margin-top: 2px; font-size: 11px; }

.section { padding: clamp(92px, 10vw, 140px) 0; }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 80px;
  align-items: end;
  width: var(--width);
  margin: 0 auto 64px;
}

.eyebrow,
.case-meta,
.tags,
.more-work,
.capability-grid small {
  font-family: var(--mono);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2,
.about-heading h2,
.contact-inner h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 3.7vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-header > p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.work-section { background: var(--white); }

.case-studies {
  display: grid;
  width: var(--width);
  margin: 0 auto;
  gap: 24px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
  min-height: 610px;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
}

.case-roomify { background: var(--ink); color: var(--white); }
.case-roomify .case-lede, .case-roomify .case-details p { color: rgba(255, 253, 248, 0.68); }
.case-roomify .case-details, .case-roomify .tags span { border-color: rgba(255, 253, 248, 0.18); }

.case-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 17px;
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-roomify .case-meta { color: #91a9ff; }

.case-copy h3,
.project-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3.5vw, 43px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.case-lede { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.case-copy > p:not(.case-lede) { color: var(--slate); font-size: 12px; }

.case-details { display: grid; gap: 14px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-details div { display: grid; grid-template-columns: 105px 1fr; gap: 18px; }
.case-details span { font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.case-details p { margin: 0; font-size: 11px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 25px; }
.tags span { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 7px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  transition: gap 220ms var(--ease), color 180ms ease;
}

.text-link:hover { gap: 26px; color: var(--blue); }

.roomify-preview {
  min-height: 470px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 16px 16px 0 var(--blue);
  transform-style: preserve-3d;
}

.preview-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.preview-top b { font-size: 12px; }
.preview-top > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 7px; }
.preview-search { display: flex; justify-content: space-between; padding: 11px 13px; background: var(--blue-pale); font-family: var(--mono); font-size: 8px; }
.preview-search i { font-style: normal; }
.roomify-preview > small { display: block; margin: 24px 0 8px; color: var(--blue); font-family: var(--mono); font-size: 7px; text-transform: uppercase; }

.preview-photo {
  position: relative;
  height: 205px;
  background:
    linear-gradient(24deg, transparent 0 54%, rgba(255,255,255,0.54) 54% 68%, transparent 68%),
    linear-gradient(135deg, #a9c6c0 0 34%, #d7c4a3 34% 66%, #806050 66% 100%);
  overflow: hidden;
}

.preview-photo::after { position: absolute; right: 28px; bottom: 0; width: 32%; height: 62%; content: ""; background: rgba(255,255,255,0.6); border: 7px solid rgba(23,26,31,0.13); border-bottom: 0; }
.preview-photo span { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 8px; color: var(--white); background: var(--blue); border-radius: 999px; font-family: var(--mono); font-size: 7px; }
.preview-info { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0 10px; font-size: 10px; }
.preview-info span { color: var(--slate); font-family: var(--mono); font-size: 7px; }
.preview-tags { display: flex; gap: 5px; }
.preview-tags span { padding: 4px 7px; background: var(--white); font-family: var(--mono); font-size: 7px; }

.case-vision { grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr); background: var(--paper); }

.case-image { position: relative; overflow: hidden; background: #d7d2c9; transform-style: preserve-3d; }
.case-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.7); transition: filter 450ms ease, transform 650ms var(--ease); }
.case-image:hover img { filter: saturate(1); transform: scale(1.025); }
.image-badge { position: absolute; top: 14px; left: 14px; padding: 6px 9px; color: var(--white); background: var(--blue); font-family: var(--mono); font-size: 7px; text-transform: uppercase; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics div { padding: 16px 12px 16px 0; border-right: 1px solid var(--line); }
.metrics div:not(:first-child) { padding-left: 12px; }
.metrics div:last-child { border-right: 0; }
.metrics strong, .metrics span { display: block; }
.metrics strong { color: var(--blue); font-size: 25px; letter-spacing: -0.05em; }
.metrics span { color: var(--slate); font-size: 7px; line-height: 1.45; }

.project-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.project-image { height: 315px; overflow: hidden; background: var(--ink); }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: filter 400ms ease, transform 600ms var(--ease); }
.project-card:hover .project-image img { filter: saturate(1); transform: scale(1.025); }
.mobile-project { background: #eeece7; }
.mobile-project img { padding: 20px; object-fit: contain; }
.project-copy { padding: 30px; }
.project-copy h3 { font-size: 27px; }
.project-copy > p { color: var(--slate); font-size: 12px; }

.more-work { display: flex; width: var(--width); padding-top: 28px; margin: 30px auto 0; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); font-size: 8px; }
.more-work > span { color: var(--blue); text-transform: uppercase; }
.more-work a:hover { color: var(--blue); }

.experience-section { background: var(--paper); }

.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); width: var(--width); margin: 0 auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 200ms ease; }
.capability-grid article:hover { background: var(--white); }
.capability-grid article > span { color: var(--blue); font-family: var(--mono); font-size: 8px; }
.capability-grid h3 { margin: 54px 0 12px; font-size: 21px; letter-spacing: -0.035em; }
.capability-grid p { max-width: 430px; color: var(--slate); font-size: 12px; }
.capability-grid small {
  display: block;
  padding-top: 12px;
  margin-top: 18px;
  color: var(--blue-dark);
  border-top: 1px solid rgba(36, 87, 255, 0.2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.7;
}

.education-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; width: var(--width); padding: 42px 0; margin: 28px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.education-row h3 { margin-bottom: 5px; font-size: 23px; letter-spacing: -0.035em; }
.education-row p:not(.eyebrow) { margin: 0; color: var(--slate); font-size: 11px; }
.education-row > div:last-child { display: grid; gap: 5px; text-align: right; }
.education-row strong { padding: 6px 10px; color: var(--white); background: var(--blue); font-family: var(--mono); font-size: 8px; font-weight: 500; text-transform: uppercase; }
.education-row span { color: var(--slate); font-size: 9px; }

.about-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 9vw; width: var(--width); margin: 0 auto; }
.about-heading { align-self: start; }
.about-heading h2 { font-size: clamp(30px, 3.6vw, 46px); }
.about-copy { padding-top: 2px; }
.about-copy p { color: var(--slate); font-size: 13px; }
.about-copy .about-lede { color: var(--ink); font-size: 19px; line-height: 1.65; letter-spacing: -0.02em; }
.about-copy blockquote { padding: 25px 0 0 24px; margin: 36px 0 0; border-top: 1px solid var(--line); border-left: 3px solid var(--blue); font-size: 14px; line-height: 1.7; }
.about-copy cite { display: block; margin-top: 12px; color: var(--slate); font-family: var(--mono); font-size: 8px; font-style: normal; text-transform: uppercase; }

.contact-section { padding: clamp(90px, 11vw, 150px) 0; color: var(--white); background: var(--blue); }
.contact-inner { width: var(--width); max-width: 820px; margin: 0 auto; text-align: center; }
.contact-inner .eyebrow { color: rgba(255,255,255,0.68); }
.contact-inner h2 { max-width: 780px; margin: 0 auto 22px; font-size: clamp(30px, 4vw, 48px); }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,0.76); font-size: 13px; }
.email-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 4px; margin-top: 30px; border-bottom: 1px solid currentColor; font-size: clamp(14px, 2vw, 20px); font-weight: 600; transition: gap 220ms var(--ease); }
.email-link:hover { gap: 28px; }
.social-links { display: flex; justify-content: center; gap: 22px; margin-top: 32px; font-family: var(--mono); font-size: 8px; }
.social-links a { color: rgba(255,255,255,0.7); }
.social-links a:hover { color: var(--white); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: var(--width); min-height: 78px; margin: 0 auto; color: var(--slate); font-family: var(--mono); font-size: 7px; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer a { justify-self: end; color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-tilt] { will-change: transform; transition: transform 180ms ease; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 0.82fr; gap: 42px; }
  .hero h1 { font-size: clamp(36px, 5vw, 50px); }
  .hero-system { height: 465px; }
  .system-browser { left: 24px; width: 220px; }
  .system-api { right: 22px; }
  .system-data { left: 46px; }
  .section-header { grid-template-columns: 1fr 0.6fr; gap: 50px; }
  .case-study { grid-template-columns: 1fr 1fr; padding: 46px; }
  .case-vision { grid-template-columns: 1fr 0.92fr; }
  .roomify-preview { min-height: 445px; padding: 18px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div, .metrics div:not(:first-child) { display: grid; grid-template-columns: 72px 1fr; align-items: center; padding: 9px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --width: min(100% - 36px, 1160px); }

  .site-header { height: 66px; background: rgba(247,244,237,0.92); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand-name, .header-cta { display: none; }
  .menu-button { position: relative; z-index: 103; display: block; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; }
  .menu-button > span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav { position: fixed; inset: 0; z-index: 102; display: flex; padding: 100px 28px 45px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; visibility: hidden; opacity: 0; background: var(--paper); transform: translateY(-8px); transition: opacity 210ms ease, transform 210ms ease, visibility 210ms ease; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { font-size: 28px; letter-spacing: -0.04em; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 118px; }
  .hero-copy { max-width: 680px; }
  .hero-system { width: min(100%, 500px); margin: 10px auto 0; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div, .hero-proof div:not(:first-child) { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-proof div:last-child { border-bottom: 0; }

  .section-header { grid-template-columns: 1fr; gap: 22px; }
  .section-header > p { max-width: 580px; }
  .case-study, .case-vision { grid-template-columns: 1fr; min-height: auto; gap: 42px; }
  .case-roomify .case-copy { order: 1; }
  .case-roomify .roomify-preview { order: 2; }
  .case-vision .case-image { order: 1; }
  .case-vision .case-copy { order: 2; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metrics div, .metrics div:not(:first-child) { display: block; padding: 14px 10px; border-right: 1px solid var(--line); border-bottom: 0; }
  .metrics div:first-child { padding-left: 0; }
  .metrics div:last-child { border-right: 0; }

  .project-pair { grid-template-columns: 1fr; }
  .project-image { height: 360px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 220px; }
  .education-row { grid-template-columns: 1fr; align-items: start; }
  .education-row > div:last-child { justify-items: start; text-align: left; }
  .about-section { grid-template-columns: 1fr; gap: 45px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 500px) {
  :root { --width: min(100% - 28px, 1160px); }
  body { font-size: 14px; }
  .hero { padding-top: 105px; gap: 38px; }
  .hero h1 { font-size: 35px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .hero-system { height: 420px; }
  .system-browser { top: 58px; left: 18px; width: 210px; height: 150px; }
  .system-api { top: 210px; right: 17px; width: 150px; height: 105px; }
  .system-data { bottom: 42px; left: 34px; width: 125px; height: 90px; }
  .connector-one { top: 174px; right: 75px; }
  .connector-two { right: 108px; bottom: 98px; }

  .section { padding: 80px 0; }
  .section-header { margin-bottom: 44px; }
  .section-header h2, .about-heading h2, .contact-inner h2 { font-size: 30px; }
  .case-study { padding: 32px 20px; }
  .roomify-preview { min-height: 410px; padding: 14px; box-shadow: 9px 9px 0 var(--blue); }
  .preview-photo { height: 165px; }
  .preview-info { flex-direction: column; gap: 2px; }
  .case-image { margin-right: -20px; margin-left: -20px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div, .metrics div:not(:first-child) { display: grid; grid-template-columns: 75px 1fr; align-items: center; padding: 9px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }
  .project-image { height: 250px; }
  .project-copy { padding: 24px 20px; }
  .capability-grid article { min-height: 200px; padding: 24px; }
  .capability-grid h3 { margin-top: 38px; }
  .about-copy .about-lede { font-size: 17px; }
  .email-link { max-width: 100%; gap: 8px; font-size: 12px; overflow-wrap: anywhere; }
  .email-link:hover { gap: 12px; }
  .social-links { flex-wrap: wrap; }
}

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