:root {
  --paper: #fafafa;
  --ink: #000;
  --blue: #78aee7;
  --content: 1102px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.3 "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 17px 22px; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; height: 83px; pointer-events: none; }
.site-header a { pointer-events: auto; text-decoration: none; }
.site-header .brand {
  position: absolute; top: 22px; left: max(38px, calc((100vw - 1204px) / 2));
  font-size: 24.68px; line-height: 29.62px; letter-spacing: -.03em;
}
.site-header a:last-child {
  position: absolute; top: 13px; right: max(39px, calc((100vw - 1204px) / 2));
  padding: 17px 22px; background: #fff; font-size: 15.3px; line-height: 23px;
}

/* Home */
.home-hero {
  position: relative; height: 401px; display: grid; place-items: center; overflow: hidden;
  background: url("/assets/home/background.webp") center / cover no-repeat;
}
.home-hero::after { content: ""; position: absolute; inset: 0; background: rgba(250,250,250,.08); }
.home-intro { position: absolute; z-index: 1; top: 161px; width: 750px; text-align: center; }
.home-intro h1 {
  width: 394px; margin: 0 auto 16px; font-size: 47.72px; font-weight: 400; line-height: 52.68px; letter-spacing: -.03em;
}
.home-intro h1 span { color: var(--blue); }
.home-intro p { margin: 0 auto; max-width: 596px; font-size: 17px; line-height: 22.1px; }
.home-section { max-width: none; margin: 0; padding: 0; }
.section-kicker {
  height: 63px; max-width: 1204px; margin: 0 auto; padding-top: 7px;
  font-size: 32.36px; font-weight: 400; line-height: 37.28px; letter-spacing: -.03em;
}
.project-grid {
  width: min(1204px, calc(100vw - 76px)); margin: 0 auto; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 63px 60px;
}
.project-card { min-width: 0; }
.project-media { display: block; width: 100%; height: 382px; overflow: hidden; background: #eee; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-copy { padding-top: 23px; }
.project-copy h3 {
  margin: 0 0 13px; max-width: 429px; font-size: 26.216px; font-weight: 400;
  line-height: 27.05px; letter-spacing: -.03em;
}
.project-copy p { margin: 0 0 17px; max-width: 500px; font-size: 17px; line-height: 22.1px; }
.text-link {
  display: inline-block; padding: 17px 22px; background: #000; color: #fafafa;
  font-size: 13.6px; line-height: 17px; text-decoration: none;
}
.home-section:nth-of-type(2) .project-grid { height: 1267px; align-content: start; }
.home-section:nth-of-type(3) .project-grid { height: 1250px; margin-top: -1px; align-content: start; }

/* Shared footer */
.site-footer {
  height: 221px; margin: 0; color: #fff;
  background: #282828 url("/assets/home/boxes.webp") center / cover no-repeat;
}
.footer-inner {
  position: relative; width: var(--content); height: 100%; margin: 0 auto; padding-top: 32px;
  font-size: 17px; line-height: 22.1px;
}
.footer-contact { display: grid; gap: 10px; width: 291px; }
.footer-contact strong { font-weight: 400; }
.footer-contact a { text-decoration: none; }
.footer-updated { position: absolute; top: 32px; right: 0; width: 291px; }

/* Case studies: the reference uses a fixed desktop canvas. */
.case-page main.case-canvas {
  position: relative; width: var(--content); height: var(--case-height); margin: 0 auto;
}
.abs { position: absolute; top: var(--y); left: var(--x, 0); width: var(--w, 100%); }
.case-title {
  margin: 0; font-size: 47.72px; font-weight: 400; line-height: 52.68px; letter-spacing: -.03em;
}
.step-title, .prototype-title {
  margin: 0; font-size: 32.36px; font-weight: 400; line-height: 37.28px; letter-spacing: -.03em;
}
.display-copy { font-size: 24.68px; line-height: 32.084px; }
.case-copy { font-size: 15.3px; line-height: 19.89px; }
.case-copy p, .display-copy p { margin: 0 0 17px; }
.case-copy p:last-child, .display-copy p:last-child { margin-bottom: 0; }
.label { margin: 0 0 18px !important; font-size: 15.3px; line-height: 19.89px; }
.case-image { width: 100%; height: 100%; object-fit: contain; }
.case-image.cover { object-fit: cover; }
.two-col { display: grid; grid-template-columns: 495px 495px; gap: 112px; }
.three-col { display: grid; grid-template-columns: 293px 343px 343px; gap: 61px; }
.outcome-list { margin: 0; padding-left: 40px; }
.outcome-list li { margin: 0 0 7px; padding-left: 0; }
.gallery-rail { overflow: hidden; width: 100vw; left: calc((1102px - 100vw) / 2); }
.gallery-track { display: flex; gap: 16px; transform: translateX(calc(50vw - 284.5px)); transition: transform .35s ease; }
.gallery-slide { flex: 0 0 569px; height: 440px; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { position: absolute; left: 0; right: 0; top: 195px; height: 50px; pointer-events: none; }
.gallery-controls button {
  position: absolute; width: 44px; height: 50px; border: 0; background: transparent;
  color: transparent; pointer-events: auto; cursor: pointer;
}
.gallery-controls button::before { color: #000; font-size: 32px; font-weight: 200; }
.gallery-controls [data-prev] { left: 18px; }
.gallery-controls [data-prev]::before { content: "‹"; }
.gallery-controls [data-next] { right: 18px; }
.gallery-controls [data-next]::before { content: "›"; }
.gallery-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 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; }

@media (max-width: 780px) {
  body { font-size: 16px; line-height: 1.3; }
  .site-header { height: 61px; }
  .site-header .brand { top: 20px; left: 20px; font-size: 17.28px; line-height: 18px; letter-spacing: -.02em; }
  .site-header a:last-child { top: 12px; right: 7px; padding: 11px 13px; font-size: 15px; line-height: 16px; }
  .home-hero { height: 430px; padding: 92px 20px 54px; align-items: center; }
  .home-intro { position: static; width: 100%; padding: 0; }
  .home-intro h1 { width: auto; margin-bottom: 20px; font-size: 42px; line-height: 46px; }
  .home-intro p { font-size: 16px; line-height: 21px; }
  .section-kicker { width: auto; height: auto; margin: 0; padding: 48px 20px 16px; font-size: 28px; line-height: 32px; }
  .project-grid { width: auto; margin: 0; padding: 0 20px 48px; grid-template-columns: 1fr; gap: 58px; }
  .home-section:nth-of-type(2) .project-grid,
  .home-section:nth-of-type(3) .project-grid { height: auto; }
  .project-media { height: auto; aspect-ratio: 1.5; }
  .project-copy { padding-top: 16px; }
  .project-copy h3 { font-size: 24px; line-height: 27px; }
  .project-copy p { font-size: 16px; line-height: 21px; }
  .site-footer { height: 260px; }
  .footer-inner { width: auto; padding: 32px 20px; font-size: 16px; line-height: 21px; }
  .footer-updated { position: static; margin-top: 30px; }

  .case-page main.case-canvas {
    width: auto; height: auto; margin: 0; padding: 98px 20px 60px;
    display: flex; flex-direction: column; gap: 40px; overflow: hidden;
  }
  .abs { position: static; width: 100% !important; height: auto !important; }
  .case-title { font-size: 42px; line-height: 46px; }
  .step-title, .prototype-title { font-size: 28px; line-height: 32px; }
  .display-copy { font-size: 22px; line-height: 29px; }
  .case-copy { font-size: 15.3px; line-height: 20px; }
  .case-image { height: auto !important; }
  .two-col, .three-col { grid-template-columns: 1fr; gap: 36px; }
  .gallery-rail { width: calc(100vw + 40px) !important; margin-left: -20px; overflow: hidden; }
  .gallery-track { gap: 12px; transform: translateX(calc(50vw - 155px)); }
  .gallery-slide { flex-basis: 310px; height: 240px; }
  .gallery-controls { top: 95px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
