:root {
  color-scheme: light;
  --bg: #fbfbfb;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #5e6470;
  --soft: #f3f5f8;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-blue: #1d4ed8;
  --accent-red: #b42318;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0 2rem;
  background: rgba(251, 251, 251, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.hero-actions,
.project-links,
.meta-row,
.tag-row,
.media-status {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.top-nav {
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.top-nav a {
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  border-radius: var(--radius);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.section-band {
  padding: 5.5rem 2rem;
}

.hero {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.section-heading,
.featured-list,
.project-grid,
.process-layout,
.site-footer,
.intro-note {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "copy media"
    "support media";
  gap: 3rem;
  align-items: center;
}

.hero-copy,
.hero-support {
  min-width: 0;
}

.hero-copy {
  grid-area: copy;
  align-self: end;
}

.hero-support {
  grid-area: support;
  align-self: start;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.85rem;
  font-weight: 540;
}

h2 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  font-weight: 540;
}

h3 {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 760;
}

.hero-lede,
.section-heading p,
.case-summary,
.process-list p,
.index-card p,
.intro-note p {
  color: var(--muted);
}

.hero-lede {
  max-width: 35rem;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.button.primary,
.project-link.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary,
.project-link.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
  margin: 2rem 0 0;
}

.proof-strip div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.proof-strip dt {
  font-size: 1.55rem;
  font-weight: 820;
  line-height: 1;
}

.proof-strip dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-media {
  grid-area: media;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.hero-shot,
.media-frame {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f8fb;
  box-shadow: var(--shadow);
}

.hero-shot img,
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f6f8fb;
}

.hero-shot-large {
  aspect-ratio: 16 / 10;
}

.hero-shot-large img {
  object-fit: cover;
  object-position: top center;
}

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

.hero-stack .hero-shot {
  aspect-ratio: 0.8 / 1;
}

.hero-stack .hero-shot:first-child img {
  object-position: top center;
}

.hero-shot figcaption,
.media-caption {
  position: static;
  display: block;
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 740;
}

.intro-note {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--line);
}

.intro-note p {
  max-width: 56rem;
  margin: 0;
  font-size: 0.96rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  max-width: 35rem;
  margin: 0;
  font-size: 1rem;
}

.featured-list {
  display: grid;
  gap: 5rem;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: start;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.case-copy {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.meta-row {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.pill.status-live {
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--accent);
}

.pill.status-prototype {
  border-color: rgba(29, 78, 216, 0.28);
  color: var(--accent-blue);
}

.pill.status-local {
  border-color: rgba(180, 35, 24, 0.26);
  color: var(--accent-red);
}

.case-summary {
  margin: 0;
  font-size: 1.02rem;
}

.case-detail {
  margin: 1.2rem 0 0;
}

.case-detail strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.case-detail p {
  margin: 0;
  color: #2a2f38;
}

.build-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.build-list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.55rem;
  color: #2a2f38;
}

.build-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.project-links {
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.project-link {
  min-height: 38px;
  font-size: 0.84rem;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.media-frame {
  min-height: 220px;
  aspect-ratio: 16 / 10;
}

.media-frame.media-wide {
  grid-column: span 12;
}

.media-frame.media-panorama {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}

.media-frame.media-half {
  grid-column: span 6;
}

.media-frame.media-tall {
  grid-column: span 6;
  aspect-ratio: 0.72 / 1;
}

.media-frame.media-square {
  grid-column: span 6;
  aspect-ratio: 1 / 1;
}

.media-frame.media-icon {
  place-items: center;
  grid-column: span 6;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
}

.media-frame.media-icon img {
  width: min(70%, 260px);
  height: auto;
  object-fit: contain;
}

.media-frame.media-video {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.media-frame.media-video video {
  object-fit: contain;
}

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

.index-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.index-card h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.index-card p {
  margin: 0;
  font-size: 0.92rem;
}

.media-status {
  flex-wrap: wrap;
  gap: 0.45rem;
  align-self: end;
}

.tag-row {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  background: var(--soft);
  color: #354052;
  font-size: 0.72rem;
  font-weight: 740;
}

.process-section {
  background: var(--ink);
  color: #fff;
}

.process-section .eyebrow,
.process-section p {
  color: #b7d9d5;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2rem;
}

.process-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.65rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list span {
  grid-row: span 2;
  color: #87d6ce;
  font-size: 0.84rem;
  font-weight: 820;
}

.process-list strong {
  line-height: 1.2;
}

.process-list p {
  grid-column: 2;
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 760;
  color: var(--ink);
}

.noscript {
  margin: 0;
  padding: 1rem 2rem;
  background: #fff4d6;
  color: #4a3412;
}

@media (max-width: 980px) {
  .section-band {
    padding: 4rem 1.25rem;
  }

  .site-header {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-inner,
  .section-heading,
  .case-study,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-areas:
      "copy"
      "media"
      "support";
    gap: 1.5rem;
  }

  .case-copy {
    position: static;
  }

  h1 {
    max-width: 13ch;
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

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

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

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

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }

  .hero-inner {
    gap: 1rem;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .top-nav a {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  h1 {
    max-width: none;
    font-size: 2.05rem;
  }

  h2 {
    max-width: 13ch;
    font-size: 2rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  .hero-lede {
    margin-top: 0;
    font-size: 0.95rem;
  }

  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .proof-strip div {
    padding: 0.55rem 0.45rem;
  }

  .proof-strip dt {
    font-size: 1.08rem;
  }

  .proof-strip dd {
    font-size: 0.66rem;
  }

  .hero-stack {
    display: none;
  }

  .hero-shot-large {
    aspect-ratio: 16 / 10;
  }

  .hero-stack .hero-shot {
    aspect-ratio: 0.8 / 1;
  }

  .intro-note {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .media-frame {
    min-height: 0;
  }

  .media-frame.media-half,
  .media-frame.media-tall,
  .media-frame.media-square,
  .media-frame.media-icon {
    grid-column: span 12;
  }

  .media-frame.media-tall {
    aspect-ratio: 0.78 / 1;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}
