:root {
  --ink: #181613;
  --muted: #6f6a62;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e7e0d8;
  --teal: #0e7c72;
  --coral: #d9674e;
  --gold: #b98936;
  --charcoal: #252525;
  --shadow: 0 22px 60px rgba(37, 37, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  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: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.button.primary,
.header-action {
  color: white;
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.section-band {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

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

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-text,
.split p,
.admin-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-hero {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: end;
  padding: clamp(18px, 4vw, 36px);
  background:
    radial-gradient(circle at 30% 12%, rgba(14, 124, 114, 0.32), transparent 28%),
    linear-gradient(145deg, #121110, #2d232f 48%, #0d2423);
}

.profile-hero img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(62%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  transform: translate(-50%, -58%);
}

.profile-card {
  position: relative;
  max-width: 420px;
  padding: 22px;
  color: white;
  background: rgba(12, 12, 12, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.profile-card span {
  color: #67d9cf;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.05;
}

.profile-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.metrics {
  display: grid;
  width: min(1160px, calc(100% - 36px));
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.metrics span,
.project-content p,
.service-grid p,
.site-footer {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.text-link {
  color: var(--coral);
  font-weight: 800;
}

.project-grid,
.service-grid,
.contact-section {
  display: grid;
  gap: 22px;
}

.project-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
}

.project-card,
.service-grid article,
.upload-form {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(37, 37, 37, 0.06);
}

.feature-card {
  min-height: 100%;
}

.project-visual {
  aspect-ratio: 16 / 9;
  background: #eeebe5;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-content {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: #0b625a;
  background: #e6f3f0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag.coral {
  color: #974230;
  background: #fae6df;
}

.tag.gold {
  color: #745215;
  background: #f7eddb;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.tech-list span {
  padding: 6px 9px;
  color: var(--muted);
  background: #f7f3ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.project-links a {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
}

.services {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1160px) / 2));
  padding-left: max(18px, calc((100vw - 1160px) / 2));
  background: #242424;
  color: white;
}

.services .eyebrow {
  color: #f1c36f;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid article {
  min-height: 230px;
  padding: 28px;
  color: var(--ink);
}

.service-grid span {
  color: var(--coral);
  font-weight: 900;
}

.contact-section {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  justify-content: space-between;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

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

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

  .nav-links,
  .header-action {
    display: none;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .project-grid .feature-card {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .section-band {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 3rem;
  }

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

  .project-grid .feature-card {
    grid-column: auto;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
