:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #64706b;
  --paper: #fbf8f1;
  --panel: #ffffff;
  --line: #ded8ca;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --coral: #d9583b;
  --gold: #c9952b;
  --shadow: 0 18px 45px rgb(24 32 31 / 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",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgb(251 248 241 / 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-raised {
  border-color: rgb(222 216 202 / 0.86);
  box-shadow: 0 8px 24px rgb(24 32 31 / 0.08);
}

.brand,
.nav,
.hero-actions,
.contact-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}

.nav {
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--coral);
}

.hero {
  position: relative;
  min-height: calc(88svh - 72px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

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

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(251 248 241 / 0.95) 0%, rgb(251 248 241 / 0.74) 43%, rgb(251 248 241 / 0.18) 100%),
    linear-gradient(0deg, rgb(251 248 241 / 0.1), rgb(251 248 241 / 0.1));
}

.hero-content {
  width: min(760px, 100%);
}

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

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

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.name-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: #35413d;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button,
.contact-link {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 750;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid var(--ink);
}

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

.button.ghost {
  background: rgb(255 255 255 / 0.55);
}

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

.metrics div {
  min-height: 112px;
  padding: 24px clamp(18px, 5vw, 56px);
  background: var(--paper);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.metrics span {
  margin-top: 6px;
  color: var(--muted);
}

.section,
.about-band {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

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

.project-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgb(24 32 31 / 0.03);
}

.project-card.accent {
  background: #f6efe3;
  border-color: #d7c7ad;
}

.tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(15 118 110 / 0.1);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 24px 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.project-card p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--coral);
  font-weight: 800;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 8vw, 96px);
  background: #17201f;
  color: var(--paper);
}

.about-band .eyebrow {
  color: #7fd1c8;
}

.about-text {
  align-self: end;
  color: #d6ded9;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 18px;
}

.contact {
  background:
    linear-gradient(135deg, rgb(15 118 110 / 0.08), transparent 36%),
    var(--paper);
}

.contact-row {
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.65);
}

.contact-link:hover,
.button:hover,
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button,
.project-card,
.contact-link {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--teal-dark);
  font-weight: 750;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
  }

  .nav {
    gap: 14px;
    padding-top: 8px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgb(251 248 241 / 0.96) 0%, rgb(251 248 241 / 0.82) 58%, rgb(251 248 241 / 0.54) 100%);
  }

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

  .section-heading {
    display: block;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  .nav {
    flex: 1;
    justify-content: flex-end;
    font-size: 0.9rem;
  }

  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
    line-height: 1.05;
  }

  .metrics div {
    min-height: 96px;
  }

  .project-card {
    min-height: 250px;
    padding: 22px;
  }

  .contact-link {
    width: 100%;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin-top: 8px;
  }
}
