:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f5f6f2;
  --white: #ffffff;
  --soft: #e5e7e0;
  --muted: #656760;
  --green: #b8e878;
  --green-deep: #4f6b28;
  --orange: #ff5a2f;
  --blue: #2f54d7;
  --line: rgba(17, 17, 17, 0.18);
  --page-pad: 48px;
  --max: 1480px;
  --content: 1260px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--green);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--page-pad);
  color: var(--white);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open,
.site-header.page-header {
  background: rgba(245, 246, 242, 0.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--green);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav { display: flex; align-items: center; gap: 30px; }

.desktop-nav a,
.mobile-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a { position: relative; }

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.menu-button,
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 620px;
  height: 86svh;
  max-height: 920px;
  overflow: hidden;
  background: #222222;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 45%;
  animation: hero-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-shade { background: rgba(6, 6, 6, 0.34); }

.hero-copy {
  position: absolute;
  left: var(--page-pad);
  bottom: 82px;
  z-index: 1;
  max-width: 1000px;
}

.eyebrow,
.section-kicker,
.case-kicker,
.detail-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: 104px;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 620px;
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.hero-scroll {
  position: absolute;
  right: var(--page-pad);
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-scroll svg,
.menu-button svg,
.award-badge svg,
.back-link svg,
.next-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-scroll svg { width: 20px; height: 20px; }

.work-overview {
  max-width: calc(var(--max) + (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 128px var(--page-pad) 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 78px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 28px;
}

.project-card {
  color: inherit;
  text-decoration: none;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border-radius: 6px;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image-contain img {
  object-fit: contain;
  padding: 24px;
}

.project-card:hover .project-image-wrap img,
.project-card:focus-visible .project-image-wrap img { transform: scale(1.025); }

.project-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.project-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.project-badges-stack { flex-wrap: wrap; }

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px 7px 9px;
  background: var(--green);
  color: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.award-badge svg { width: 18px; height: 18px; }
.award-badge-blue { background: var(--blue); color: var(--white); }
.award-badge-dark { background: var(--ink); color: var(--white); }

.project-card-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.project-card-copy h3 {
  margin: 0 0 5px;
  font-size: 26px;
  line-height: 1.05;
}

.project-card-copy p,
.project-year {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-year { flex: 0 0 auto; }

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  max-width: calc(var(--max) + (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 150px var(--page-pad);
  border-top: 1px solid var(--line);
}

.about-heading .section-kicker { margin-bottom: 30px; color: var(--green-deep); }
.about-copy { align-self: end; }
.about-copy p { margin: 0 0 24px; font-size: 22px; line-height: 1.4; }

.site-footer {
  padding: 118px var(--page-pad) 34px;
  background: var(--ink);
  color: var(--white);
}

.footer-top,
.footer-bottom { max-width: var(--max); margin: 0 auto; }
.footer-top .section-kicker { color: var(--green); }

.footer-title {
  margin: 28px 0 130px;
  font-size: 86px;
  font-weight: 800;
  line-height: 0.94;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-bottom a { color: var(--white); font-weight: 700; text-decoration: none; }

/* Case study pages */
.case-page { --accent: var(--green); background: var(--paper); }
.case-page.case-orange { --accent: #ff6b3d; }
.case-page.case-blue { --accent: #486eea; }
.case-page.case-cyan { --accent: #6ed7e4; }
.case-page.case-gold { --accent: #f2cb5c; }
.case-page.case-earth { --accent: #b9a27a; }

.case-main { padding-top: 72px; }

.case-hero {
  max-width: calc(var(--max) + (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 72px var(--page-pad) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link svg { width: 18px; height: 18px; }

.case-title-grid {
  display: grid;
  grid-template-columns: 0.75fr 2.25fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 58px;
}

.case-number { color: var(--muted); }

.case-title h1 {
  max-width: 1120px;
  margin: 14px 0 30px;
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: 0;
}

.case-summary {
  max-width: 820px;
  margin: 0;
  font-size: 24px;
  line-height: 1.34;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts div { min-height: 92px; padding: 18px 22px; border-left: 1px solid var(--line); }
.case-facts div:first-child { border-left: 0; padding-left: 0; }
.case-facts dt { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.case-facts dd { margin: 0; font-size: 15px; font-weight: 700; }

.case-hero-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border-radius: 6px;
}

.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media.contain img { object-fit: contain; padding: 34px; }

.case-content {
  max-width: calc(var(--content) + (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 120px var(--page-pad) 150px;
}

.case-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 132px;
}

.case-section.reverse { grid-template-columns: 1.2fr 0.8fr; }
.case-section.reverse .case-copy { order: 2; }
.case-section.reverse .case-media { order: 1; }

.case-copy { max-width: 620px; }
.case-copy .detail-kicker { margin-bottom: 20px; color: var(--green-deep); }

.case-copy h2,
.section-title {
  margin: 0 0 30px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.gallery-wide {
  margin: 0 0 2rem;
}

.gallery-wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 2rem;
  background: #e9e9e6;
  color: #666;
  border-radius: 6px;
}

.case-copy p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
}

.case-media,
.gallery-two figure,
.gallery-three figure,
.sequence-grid figure {
  margin: 0;
}

.case-media img,
.gallery-two img,
.gallery-three img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 6px;
}

.case-media.contain,
.gallery-two .contain,
.gallery-three .contain { background: var(--white); border-radius: 6px; }
.case-media.contain img,
.gallery-two .contain img,
.gallery-three .contain img { object-fit: contain; padding: 28px; }

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.gallery-block { margin-bottom: 132px; }
.gallery-block > .detail-kicker { margin-bottom: 18px; color: var(--green-deep); }
.gallery-block > .section-title { max-width: 760px; }

.gallery-two,


.gallery-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-two img { aspect-ratio: 4 / 3; }
.gallery-three img { aspect-ratio: 1 / 1; }

.accent-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 132px;
  padding: 64px;
  background: var(--accent);
  border-radius: 6px;
}

.accent-panel h2 { margin: 0; font-size: 52px; line-height: 0.98; }
.accent-panel p { max-width: 600px; margin: 0 0 18px; font-size: 18px; }

.theory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.theory-item { padding: 26px 0; border-top: 2px solid var(--ink); }
.theory-item h3 { margin: 0 0 12px; font-size: 22px; }
.theory-item p { margin: 0; font-size: 16px; }

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sequence-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
}

.milestone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.milestone {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gallery-square {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-square img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .gallery-square {
    grid-template-columns: 1fr;
  }
}

.milestone strong { display: block; margin-bottom: 6px; font-size: 30px; line-height: 1; }
.milestone span { color: var(--muted); font-size: 14px; }

.next-project {
  padding: 90px var(--page-pad);
  background: var(--ink);
  color: var(--white);
}

.next-project-inner { max-width: var(--content); margin: 0 auto; }
.next-project .section-kicker { color: var(--green); }

.next-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.next-link svg { width: 54px; height: 54px; flex: 0 0 auto; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
  :root { --page-pad: 30px; }
  .hero h1 { font-size: 82px; }
  .section-heading h2, .about h2 { font-size: 52px; }
  .case-title h1 { font-size: 72px; }
  .case-section, .case-section.reverse { gap: 48px; }
  .accent-panel { gap: 44px; padding: 48px; }
  .sequence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-title { font-size: 70px; }
}

@media (max-width: 760px) {
  :root { --page-pad: 20px; }
  html { scroll-padding-top: 64px; }
  .site-header { min-height: 64px; }
  .desktop-nav { display: none; }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
  }

  .menu-button svg { width: 26px; height: 26px; }

  .mobile-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .menu-open .mobile-nav { display: flex; }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }

  .hero { min-height: 600px; height: 84svh; }
  .hero-image { object-position: 46% center; }
  .hero-copy { bottom: 92px; }
  .hero h1 { margin-top: 14px; font-size: 60px; }
  .hero-intro { max-width: 88%; font-size: 18px; }
  .hero-scroll { right: auto; bottom: 28px; left: var(--page-pad); }

  .work-overview { padding-top: 88px; padding-bottom: 96px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .section-heading h2, .about h2 { font-size: 42px; }
  .project-grid { grid-template-columns: 1fr; gap: 52px; }
  .project-image-contain img { padding: 16px; }
  .project-card-copy h3 { font-size: 23px; }
  .project-badges { top: 12px; left: 12px; max-width: calc(100% - 24px); }
  .award-badge { font-size: 11px; }

  .about { grid-template-columns: 1fr; gap: 54px; padding-top: 96px; padding-bottom: 96px; }
  .about-copy p { font-size: 19px; }
  .site-footer { padding-top: 88px; }
  .footer-title { margin-bottom: 92px; font-size: 51px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom span:nth-child(2) { display: none; }

  .case-main { padding-top: 64px; }
  .case-hero { padding-top: 36px; }
  .back-link { margin-bottom: 42px; }
  .case-title-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .case-title h1 { margin: 10px 0 22px; font-size: 54px; }
  .case-summary { font-size: 19px; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts div { min-height: 82px; border-top: 1px solid var(--line); }
  .case-facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .case-facts div:nth-child(-n+2) { border-top: 0; }
  .case-hero-media { aspect-ratio: 4 / 3; }
  .case-hero-media.contain img { padding: 18px; }
  .case-content { padding-top: 82px; padding-bottom: 96px; }

  .case-section,
  .case-section.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 92px;
  }

  .case-section.reverse .case-copy,
  .case-section.reverse .case-media { order: initial; }
  .case-copy h2, .section-title { font-size: 38px; }
  .case-copy p { font-size: 17px; }
  .gallery-block { margin-bottom: 92px; }
  .gallery-two, .gallery-three { grid-template-columns: 1fr; }
  .gallery-three img { aspect-ratio: 4 / 3; }
  .accent-panel { grid-template-columns: 1fr; gap: 30px; margin-bottom: 92px; padding: 36px 24px; }
  .accent-panel h2 { font-size: 40px; }
  .theory-grid, .milestone-row { grid-template-columns: 1fr; }
  .sequence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-project { padding-top: 64px; padding-bottom: 64px; }
  .next-link { font-size: 40px; }
  .next-link svg { width: 38px; height: 38px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}
