:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #ecefe8;
  --ink: #172033;
  --muted: #5d6675;
  --line: #d8ddd4;
  --accent: #9f1738;
  --accent-dark: #76122b;
  --teal: #12666e;
  --gold: #b9831e;
  --shadow-soft: 0 10px 24px rgba(23, 32, 51, 0.08);
  --shadow: 0 20px 52px rgba(23, 32, 51, 0.14);
  --shadow-lift: 0 26px 70px rgba(23, 32, 51, 0.2);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(247, 247, 244, 0.94);
  border-bottom: 1px solid rgba(216, 221, 212, 0.9);
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.07);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  box-shadow: inset 0 -10px 18px rgba(23, 32, 51, 0.16), 0 10px 22px rgba(159, 23, 56, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.primary-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(720px, calc(100vh - 72px));
  overflow: hidden;
  background: var(--ink);
  box-shadow: inset 0 -90px 100px rgba(23, 32, 51, 0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-brand-art {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: clamp(0.4rem, 1.4vw, 1rem);
  padding-right: clamp(1rem, 6vw, 8rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(159, 23, 56, 0.92), rgba(118, 18, 43, 0.78) 42%, rgba(23, 32, 51, 0.95)),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.22), transparent 38%);
}

.hero-brand-art span {
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(5.6rem, 18vw, 17rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-brand-art span:nth-child(2) {
  color: rgba(255, 255, 255, 0.08);
  transform: translateX(-14%);
}

.hero-brand-art span:nth-child(3) {
  color: rgba(255, 255, 255, 0.05);
  transform: translateX(8%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 24, 39, 0.84), rgba(16, 24, 39, 0.5) 50%, rgba(16, 24, 39, 0.16)),
    linear-gradient(180deg, transparent 70%, rgba(247, 247, 244, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), 90vw);
  margin: 0 auto;
  padding: 9rem 0 7rem;
  color: #fff;
}

.eyebrow,
.section-kicker,
.card-meta {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c27b;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
}

.hero h1 {
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero-lead.dark {
  color: var(--muted);
}

.container {
  width: min(var(--container), 90vw);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.muted-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    var(--surface-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(23, 32, 51, 0.06);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.prose {
  color: var(--muted);
  font-size: 1.03rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose h2 {
  margin: 2.2rem 0 1rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.process-list li {
  position: relative;
  min-height: 230px;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff, #f8f8f5);
}

.process-list li::after {
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  pointer-events: none;
  content: "";
}

.process-list span {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(159, 23, 56, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.project-card:focus-visible {
  outline: 3px solid rgba(159, 23, 56, 0.28);
  outline-offset: 4px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d9d5;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem;
}

.project-card p:not(.card-meta) {
  color: var(--muted);
}

.text-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.page-main {
  background:
    linear-gradient(180deg, #fff 0, var(--bg) 420px),
    var(--bg);
}

.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 239, 232, 0.7)),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.page-hero::after {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 23, 56, 0.32), transparent);
  content: "";
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-hero-grid > * {
  min-width: 0;
}

.page-hero h1 {
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(1.75rem, 3.2vw, 3.05rem);
}

.feature-figure,
.image-grid figure {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f8f8f5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.fact-panel {
  position: sticky;
  top: 96px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #fff, #f8f8f5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.fact-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.fact-panel dl,
.fact-panel dd {
  margin: 0;
}

.fact-panel div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.fact-panel dt {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-panel dd {
  margin-top: 0.35rem;
  color: var(--muted);
}

.longform {
  max-width: 780px;
}

.image-grid {
  display: grid;
  gap: 1.25rem;
}

.image-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.image-grid.three figure:first-child img,
.image-grid.four figure:nth-child(2) img {
  object-fit: contain;
  background: #f3f3ef;
}

.site-footer {
  padding: 1.3rem 0;
  background: var(--ink);
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1050px) {
  .card-grid,
  .process-list,
  .image-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 190px;
    line-height: 1.2;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.9rem 1rem;
  }

  .hero {
    min-height: calc(100vh - 64px);
  }

  .hero-content {
    padding: 7rem 0 5rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.4), rgba(16, 24, 39, 0.9));
  }

  .section {
    padding: 4rem 0;
  }

  .two-column,
  .page-hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .fact-panel {
    position: static;
  }

  .image-grid.two,
  .image-grid.three,
  .image-grid.four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 4vw;
  }

  .container,
  .hero-content {
    width: min(92vw, var(--container));
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .card-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: auto;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}
