:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-strong: #fffaf0;
  --ink: #17201d;
  --muted: #5f6b63;
  --line: #d9d0c2;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c77720;
  --sage: #8a9b68;
  --charcoal: #202b28;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(29, 32, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 232, 0.86);
  border-bottom: 1px solid rgba(217, 208, 194, 0.72);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 40px;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.96);
  box-shadow: 0 8px 30px rgba(32, 43, 40, 0.08);
}

.brand,
.site-nav,
.hero-actions,
.footer-links {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--charcoal);
  color: var(--paper-strong);
  display: inline-flex;
  font-size: 0.76rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.site-nav {
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a,
.footer-links a,
.text-link {
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--teal-dark);
  text-decoration-color: currentColor;
}

.hero {
  background: var(--charcoal);
  min-height: 84svh;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.9) 0%, rgba(23, 32, 29, 0.68) 34%, rgba(23, 32, 29, 0.08) 74%),
    linear-gradient(0deg, rgba(23, 32, 29, 0.24), rgba(23, 32, 29, 0.03));
}

.hero-inner {
  color: var(--paper-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  min-height: 84svh;
  padding: 128px 40px 80px;
  position: relative;
  z-index: 1;
}

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

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-copy {
  color: rgba(255, 250, 240, 0.88);
  font-size: 1.25rem;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.button {
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 132px;
  padding: 13px 18px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  background: var(--paper-strong);
  color: var(--charcoal);
}

.button-secondary {
  border-color: rgba(255, 250, 240, 0.55);
  color: var(--paper-strong);
}

.button-secondary:hover {
  background: rgba(255, 250, 240, 0.12);
}

.section {
  padding: 88px 40px;
}

.intro {
  margin: 0 auto;
  max-width: 1020px;
}

.intro h2,
.section-heading h2,
.project-section h2,
.details-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.05;
  margin-bottom: 20px;
}

.intro p,
.section-heading p,
.project-section p,
.details-section p,
.site-footer p {
  color: var(--muted);
  font-size: 1.04rem;
}

.capability-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  margin: 0 auto 34px;
  max-width: 1180px;
}

.section-heading p {
  margin-bottom: 6px;
}

.capability-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.capability-card,
.detail-item {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-card {
  min-height: 270px;
  padding: 26px;
}

.card-index {
  color: var(--amber);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 64px;
}

.capability-card h3,
.detail-item h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.capability-card p,
.detail-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-section {
  background: var(--charcoal);
  color: var(--paper-strong);
}

.project-layout {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.project-section p {
  color: rgba(255, 250, 240, 0.74);
  max-width: 650px;
}

.text-link {
  color: var(--paper-strong);
  display: inline-block;
  font-weight: 800;
  margin-top: 12px;
}

.architecture-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.10), rgba(255, 250, 240, 0.035)),
    rgba(255, 250, 240, 0.05);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.flow-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-row + .flow-row {
  margin-top: 12px;
}

.flow-row span {
  align-items: center;
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-left: 4px solid var(--teal);
  color: var(--paper-strong);
  display: flex;
  font-size: 0.9rem;
  font-weight: 760;
  min-height: 72px;
  padding: 14px;
}

.flow-row-alt span {
  border-left-color: var(--sage);
}

.flow-row:last-child span {
  border-left-color: var(--amber);
}

.detail-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.detail-item {
  min-height: 168px;
  padding: 26px;
}

.site-footer {
  align-items: center;
  background: #e8decd;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
}

.footer-title {
  color: var(--ink);
  font-weight: 850;
  margin-bottom: 4px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  h1 {
    font-size: 3.7rem;
  }

  .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section {
    padding: 72px 24px;
  }

  .section-heading,
  .project-layout,
  .capability-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .detail-list {
    gap: 14px;
  }

  .capability-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 36px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 104px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero,
  .hero-inner {
    min-height: 78svh;
  }

  .hero-media {
    object-position: 72% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(23, 32, 29, 0.94) 0%, rgba(23, 32, 29, 0.82) 58%, rgba(23, 32, 29, 0.42) 100%),
      linear-gradient(0deg, rgba(23, 32, 29, 0.4), rgba(23, 32, 29, 0.06));
  }

  .hero-inner {
    padding-bottom: 54px;
    padding-top: 142px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.07rem;
  }

  .intro h2,
  .section-heading h2,
  .project-section h2,
  .details-section h2 {
    font-size: 2.1rem;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-row span {
    min-height: 58px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 24px;
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 210px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .button {
    width: 100%;
  }
}
