:root {
  --ink: #181715;
  --muted: #68645d;
  --paper: #faf8f2;
  --panel: #ffffff;
  --line: #dfdbd1;
  --accent: #0d7168;
  --accent-dark: #064c47;
  --berry: #9d3150;
  --gold: #d8a33d;
  --shadow: 0 24px 70px rgba(24, 23, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(250, 248, 242, 0.84);
  border-bottom: 1px solid rgba(223, 219, 209, 0.7);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto auto;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 10;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 12px 36px rgba(24, 23, 21, 0.09);
}

.brand {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

.nav {
  display: flex;
  gap: clamp(10px, 1.8vw, 24px);
  justify-content: center;
}

.menu-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle span:not(.sr-only) {
  background: var(--ink);
  border-radius: 99px;
  display: block;
  height: 2px;
  width: 18px;
}

.nav a,
.header-action,
.footer a,
.project-card a,
.portfolio-card a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a {
  color: var(--muted);
}

.nav a:hover,
.footer a:hover,
.project-card a:hover,
.portfolio-card a:hover {
  color: var(--accent-dark);
}

.header-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 116px clamp(18px, 4vw, 56px) 58px;
  position: relative;
}

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

.hero-image {
  height: 100%;
  object-position: 50% 44%;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(250, 248, 242, 0.98) 0%, rgba(250, 248, 242, 0.82) 42%, rgba(250, 248, 242, 0.1) 78%),
    linear-gradient(180deg, rgba(250, 248, 242, 0.46) 0%, rgba(250, 248, 242, 0) 47%, rgba(250, 248, 242, 0.95) 100%);
}

.hero-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(92vh - 174px);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4.2rem, 12vw, 10rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.hero-copy {
  color: #3c3934;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 32px;
  max-width: 620px;
}

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

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.intro-band {
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.intro-band > div {
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(22px, 4vw, 44px);
}

.metric {
  color: var(--gold);
  display: block;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 4vw, 56px);
}

.split {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card,
.project-card,
.portfolio-card,
.profile-panel,
.certification-link {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(24, 23, 21, 0.05);
}

.service-card {
  padding: 26px;
}

.service-index,
.project-type {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-card p,
.project-card p,
.portfolio-card p,
.about-copy p,
.contact p {
  color: var(--muted);
}

.about {
  align-items: start;
  background: #f1efe7;
  display: grid;
  gap: clamp(30px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
}

.about-copy p {
  font-size: 1.05rem;
  max-width: 760px;
}

.about-copy h2 {
  margin-bottom: 28px;
}

.profile-panel {
  padding: 26px;
}

.profile-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: auto;
  margin-bottom: 24px;
  object-fit: cover;
  width: 100%;
}

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

.evolve .eyebrow {
  color: #b28cff;
}

.evolve-hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 78px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  margin-bottom: 42px;
}

.evolve-logo-panel {
  align-items: center;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 360px;
  padding: 36px;
}

.evolve-logo-panel img {
  width: min(100%, 360px);
}

.evolve-copy h2 {
  margin-bottom: 26px;
}

.evolve-copy p,
.evolve-detail-grid p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.evolve-stat-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.evolve-stat-grid > div {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(22px, 3vw, 34px);
}

.evolve-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.evolve-detail-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 230px;
  padding: 26px;
}

.evolve-detail-grid h3 {
  color: #fff;
}

.evolve-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.evolve-links a {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  text-decoration: none;
}

.evolve-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  font-weight: 800;
  margin: 2px 0 0;
}

.section-heading {
  margin-bottom: 34px;
}

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

.project-card,
.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.project-card {
  min-height: 300px;
}

.project-card p {
  flex: 1;
}

.priority-dispatch {
  background: var(--paper);
}

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

.portfolio-card {
  min-height: 420px;
}

.portfolio-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.portfolio-card p {
  font-size: 1.02rem;
}

.portfolio-points {
  color: var(--muted);
  display: grid;
  flex: 1;
  gap: 10px;
  margin: 8px 0 24px;
  padding-left: 20px;
}

.portfolio-points li::marker {
  color: var(--accent);
}

.certifications {
  background: #f1efe7;
}

.certification-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.certification-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  min-height: 170px;
  padding: 24px;
  text-decoration: none;
}

.certification-link span {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.certification-link strong {
  color: var(--accent);
  font-size: 0.88rem;
}

.certification-link:hover {
  border-color: rgba(13, 113, 104, 0.42);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.contact {
  align-items: center;
  background: var(--accent-dark);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(54px, 8vw, 90px) clamp(18px, 4vw, 56px);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
}

.footer p {
  color: var(--muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.documents-header {
  position: sticky;
}

.documents-page {
  padding-top: 42px;
}

.document-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.document-list a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(24, 23, 21, 0.05);
  font-weight: 800;
  padding: 18px 20px;
  text-decoration: none;
}

.document-list a:hover {
  color: var(--accent-dark);
}

@media (max-width: 880px) {
  .site-header {
    gap: 12px;
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    background: rgba(250, 248, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(24, 23, 21, 0.12);
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 4;
    overflow: hidden;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-action {
    justify-self: start;
    order: 2;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    min-height: calc(88vh - 174px);
  }

  .split,
  .about,
  .contact,
  .evolve-hero {
    grid-template-columns: 1fr;
  }

  .project-list,
  .portfolio-grid,
  .certification-list,
  .evolve-stat-grid,
  .evolve-detail-grid,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .evolve-logo-panel {
    min-height: 260px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .hero {
    min-height: auto;
    padding: 92px 16px 40px;
  }

  .hero-content {
    min-height: 600px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.4rem);
  }

  .hero-image {
    object-position: 55% 42%;
  }

  .button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
