:root {
  --paper: #f6f1e7;
  --ink: #172026;
  --muted: #5a646c;
  --line: #d9d0c0;
  --teal: #0f6f7c;
  --teal-dark: #0a4c55;
  --rust: #b44a2c;
  --gold: #d89b2b;
  --white: #fffaf0;
  --shadow: 0 24px 70px rgba(23, 32, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(23, 32, 38, 0.82);
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.brand:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 72px;
  color: var(--white);
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 38, 0.76);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: image-set(url("assets/mstcn_architecture.png") type("image/png"));
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) contrast(1.05);
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.93;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin-bottom: 32px;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button.secondary {
  color: inherit;
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.intro-strip {
  background: var(--teal-dark);
  color: var(--white);
}

.intro-strip p {
  width: min(1000px, 100%);
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split p,
.contact p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 750;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.image-panel img,
.gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric-band {
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  width: min(860px, 100%);
  margin-bottom: 36px;
}

.metric-band .section-heading h2 {
  color: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 240, 0.2);
  border: 1px solid rgba(255, 250, 240, 0.2);
}

.metrics-grid article {
  min-height: 210px;
  padding: clamp(20px, 3vw, 32px);
  background: #203039;
}

.metrics-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.metrics-grid span {
  color: rgba(255, 250, 240, 0.82);
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  background: #ece3d5;
}

.gallery figure:first-child {
  grid-column: span 2;
}

.activity {
  background: var(--white);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.activity-list article {
  min-height: 270px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
}

time {
  display: block;
  margin-bottom: 26px;
  color: var(--rust);
  font-weight: 850;
}

.activity-list p {
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--teal);
  color: var(--white);
}

.contact .section-kicker,
.contact p {
  color: rgba(255, 250, 240, 0.82);
}

.contact h2 {
  max-width: 780px;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .split,
  .metrics-grid,
  .gallery,
  .activity-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact {
    display: grid;
  }

  .gallery figure:first-child {
    grid-column: auto;
  }

  .metrics-grid article,
  .activity-list article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 104px;
    padding-bottom: 52px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(2.6rem, 12.5vw, 3.1rem);
  }

  .button {
    width: 100%;
  }

  .intro-strip p {
    width: auto;
    max-width: calc(100vw - 40px);
    font-size: 1.28rem;
    line-height: 1.25;
    white-space: normal;
  }
}
