:root {
  --bg: #f6f3ed;
  --surface: #fffaf2;
  --ink: #151412;
  --muted: #5f5a52;
  --line: #ddd5c8;
  --accent: #246b5d;
  --accent-dark: #16483f;
  --accent-soft: #dfece6;
  --warm: #c97b3d;
  --shadow: 0 22px 60px rgba(35, 30, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(33, 29, 22, 0.09);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.82rem;
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(36, 107, 93, 0.13);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 18, 15, 0.78) 0%, rgba(18, 18, 15, 0.54) 38%, rgba(18, 18, 15, 0.14) 72%),
    linear-gradient(0deg, rgba(18, 18, 15, 0.24), rgba(18, 18, 15, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  align-self: center;
  margin-left: clamp(20px, 7vw, 88px);
  padding-top: 80px;
}

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

.hero .eyebrow {
  color: #f2c08d;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

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

.button.secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.contact .button.secondary {
  background: transparent;
}

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

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1160px, calc(100% - 40px));
  margin-top: -74px;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.intro-stat {
  min-height: 148px;
  padding: 26px;
  background: var(--surface);
}

.intro-stat strong,
.intro-stat span {
  display: block;
}

.intro-stat strong {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.intro-stat span,
.section-heading p,
.project-body p,
.profile-copy,
.contact p,
.site-footer {
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading p {
  max-width: 560px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(35, 30, 24, 0.08);
}

.project-preview {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: var(--accent-soft);
  position: relative;
  overflow: hidden;
}

.project-preview::before,
.project-preview::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(48, 42, 34, 0.16);
}

.project-preview::before {
  width: 72%;
  height: 56%;
  top: 28px;
  left: 22px;
}

.project-preview::after {
  width: 42%;
  height: 34%;
  right: 20px;
  bottom: 24px;
}

.project-preview span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(21, 20, 18, 0.88);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.preview-two {
  background: #f0e2cd;
}

.preview-three {
  background: #dce6e0;
}

.project-body {
  padding: 24px;
}

.project-meta {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-body a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.profile {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  border-top: 1px solid var(--line);
}

.profile-copy p {
  font-size: 1.08rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.skill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact {
  padding-top: 20px;
}

.contact-panel {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: clamp(28px, 6vw, 72px);
}

.contact-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    margin: 0 auto;
    align-self: end;
    padding-bottom: 60px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(18, 18, 15, 0.84) 0%, rgba(18, 18, 15, 0.58) 54%, rgba(18, 18, 15, 0.18) 100%);
  }

  .intro,
  .project-grid,
  .profile,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .intro {
    margin-top: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading .eyebrow {
    margin-bottom: -10px;
  }
}

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

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

  .hero {
    min-height: 640px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .contact-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-stat {
    min-height: auto;
  }
}
