:root {
  color-scheme: light;
  --ink: #1f2523;
  --muted: #66716d;
  --line: #dce5df;
  --paper: #f6f8f4;
  --panel: #ffffff;
  --mint: #dcefe7;
  --accent: #1b7f6d;
  --accent-dark: #10564a;
  --coral: #e07856;
  --shadow: 0 22px 70px rgba(25, 43, 36, 0.13);
}

* {
  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.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.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, 5vw, 64px);
  color: #fff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 248, 244, 0.94);
  box-shadow: 0 10px 32px rgba(25, 43, 36, 0.08);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #17362f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding: 96px clamp(18px, 5vw, 64px) 48px;
  opacity: 0.56;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.hero-bg img:nth-child(2) {
  transform: translateY(54px);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 32, 28, 0.94), rgba(12, 32, 28, 0.52)),
    linear-gradient(0deg, rgba(12, 32, 28, 0.76), transparent 45%);
}

.hero-inner {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 104px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb99f;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.3rem, 5.4vw, 4.65rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 780;
}

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

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

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.secondary-link.dark {
  border-color: rgba(255, 255, 255, 0.46);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro div {
  display: grid;
  gap: 4px;
  min-height: 138px;
  align-content: center;
  padding: 28px clamp(20px, 5vw, 64px);
  background: #fff;
}

.metric {
  color: var(--accent-dark);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 870;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow),
.about p {
  color: var(--muted);
  font-size: 1.03rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.profile-panel {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(220, 239, 231, 0.9), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: var(--shadow);
}

.profile-panel h2 {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  word-break: keep-all;
}

.profile-role {
  margin: 18px 0 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.nowrap {
  white-space: nowrap;
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(25, 43, 36, 0.07);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mint);
}

.work-card div {
  padding: 20px;
}

.work-card p:not(.tag) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 48px 0.7fr 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-item span {
  color: var(--coral);
  font-weight: 850;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.categories {
  padding-top: 36px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list li,
.flow-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(25, 43, 36, 0.05);
}

.category-list li {
  padding: 18px 20px;
  font-weight: 760;
}

.flow {
  padding-top: 72px;
}

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

.flow-grid div {
  padding: 26px;
}

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

.contact {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 90px;
  padding: clamp(44px, 8vw, 88px);
  border-radius: 8px;
  background: #142b26;
  color: #fff;
  box-shadow: var(--shadow);
}

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

.contact p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.contact .primary-link {
  background: #ffb99f;
  color: #142b26;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1000px) {
  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 44px 1fr;
  }

  .service-item p {
    grid-column: 2;
  }
}

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

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero-bg {
    grid-template-columns: repeat(2, 1fr);
    opacity: 0.44;
  }

  .hero-bg img:nth-child(3) {
    display: none;
  }

  .intro,
  .about,
  .category-list,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .intro div {
    min-height: 108px;
  }
}

@media (max-width: 600px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    padding: 18px 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 150px 0 54px;
  }

  h1 {
    font-size: 2.2rem;
  }

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

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
    padding: 72px 0;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .contact {
    width: calc(100% - 32px);
    margin-bottom: 56px;
    padding: 34px 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
