:root {
  --bg: #f6f3ed;
  --text: #1f2421;
  --muted: #68706a;
  --line: rgba(31, 36, 33, 0.14);
  --surface: #fffaf2;
  --teal: #0f766e;
  --coral: #c24e3a;
  --gold: #c58a1a;
  --shadow: 0 18px 50px rgba(31, 36, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 242, 0.92);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(31, 36, 33, 0.1);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 5vw, 64px) 84px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=82")
      center/cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(246, 243, 237, 0.92));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #f6b46b;
}

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

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: #fffaf2;
  border-color: #fffaf2;
  color: var(--text);
}

.button.secondary {
  color: #fff;
}

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

.section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr);
  gap: 18px;
  margin-bottom: 36px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
}

.intro .section-heading {
  margin: 0;
}

.intro-grid {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid p {
  margin: 0;
}

.work {
  background: #e9eee7;
}

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

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(31, 36, 33, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-body {
  padding: 22px;
}

.project-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.project-body p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: clamp(26px, 7vw, 84px);
  align-items: start;
  padding: clamp(70px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background: var(--text);
  color: #fffaf2;
}

.contact .eyebrow {
  color: #f6b46b;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 6px;
  color: #fffaf2;
  font-weight: 800;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255, 250, 242, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 64px);
  background: #171b18;
  color: rgba(255, 250, 242, 0.74);
}

.site-footer p {
  margin: 0;
}

.top-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 50%;
  background: transparent;
  color: #fffaf2;
  cursor: pointer;
  font: inherit;
}

.top-button:hover,
.top-button:focus-visible {
  background: rgba(255, 250, 242, 0.1);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    min-height: 76vh;
    padding-top: 118px;
    padding-bottom: 58px;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
  }

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

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

  .logo {
    width: 38px;
    height: 38px;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: 72vh;
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .section,
  .contact {
    padding-inline: 16px;
  }

  .site-footer {
    padding-inline: 16px;
  }
}
