:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --ink: #181713;
  --muted: #68645a;
  --line: rgba(24, 23, 19, 0.14);
  --green: #24584a;
  --amber: #d89132;
  --red: #ad4e3f;
  --blue: #355c7d;
  --shadow: 0 24px 70px rgba(39, 35, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 242, 234, 0.92);
  box-shadow: 0 12px 40px rgba(39, 35, 26, 0.1);
  color: var(--ink);
  backdrop-filter: blur(18px);
  padding-block: 12px;
}

.brand {
  justify-self: start;
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

.nav a,
.header-action,
.site-footer a,
.project-body a {
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.site-footer a:hover,
.project-body a:hover {
  color: var(--amber);
}

.header-action {
  justify-self: end;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}

.header-action:hover {
  transform: translateY(-1px);
}

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

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

.hero-media {
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 12, 13, 0.72) 0%, rgba(9, 12, 13, 0.48) 46%, rgba(9, 12, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 12, 13, 0.62) 0%, rgba(9, 12, 13, 0) 42%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 8vh;
}

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

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

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

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

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin: 54px 0 0;
  padding: 0;
}

.quick-stats div {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  padding-top: 16px;
}

.quick-stats dt {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.quick-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 120px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.7;
}

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

.skill-grid article,
.project-card,
.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-grid article {
  padding: 22px;
}

.skill-grid h3,
.project-body h3,
.timeline h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.skill-grid p,
.project-body p,
.timeline p,
.contact-panel p {
  color: var(--muted);
}

.skill-grid p {
  margin: 12px 0 0;
  font-size: 14px;
}

.work-section {
  width: 100%;
  max-width: none;
  background: #ece3d5;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
}

.work-section .section-heading {
  width: min(1120px, 100%);
}

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

.project-card {
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(39, 35, 26, 0.08);
}

.project-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.project-thumb::before,
.project-thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.thumb-one {
  background:
    linear-gradient(135deg, rgba(36, 88, 74, 0.95), rgba(84, 135, 122, 0.86)),
    url("assets/hero-workspace.png") center/cover;
  background-blend-mode: multiply;
}

.thumb-one::before {
  width: 64%;
  height: 64%;
  left: 18%;
  top: 18%;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.thumb-one::after {
  width: 44%;
  height: 44%;
  right: 12%;
  bottom: 12%;
  background: rgba(216, 145, 50, 0.88);
}

.thumb-two {
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(135deg, #ad4e3f, #f0b86c);
}

.thumb-two::before {
  width: 58%;
  height: 58%;
  left: 21%;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.22);
}

.thumb-two::after {
  width: 36%;
  height: 36%;
  right: 12%;
  top: 12%;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.thumb-three {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, #355c7d, #6c5b7b 52%, #c06c84);
  background-size: 28px 28px, 28px 28px, auto;
}

.thumb-three::before {
  width: 62%;
  height: 42%;
  left: 19%;
  top: 29%;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.thumb-three::after {
  width: 12%;
  height: 12%;
  left: 28%;
  top: 40%;
  background: var(--red);
}

.project-body {
  padding: 24px;
}

.project-type {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body p:not(.project-type) {
  margin: 12px 0 20px;
}

.project-body a {
  color: var(--green);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px;
}

.timeline time {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.timeline p {
  margin: 0;
}

.contact-section {
  padding-top: 40px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 34px;
  align-items: end;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.contact-links a::after {
  content: "↗";
  font-size: 15px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.icp-link {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .section-heading,
  .about-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

  .header-action {
    padding: 7px 12px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 6vh;
  }

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

  .quick-stats {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .project-body,
  .skill-grid article,
  .timeline article {
    padding: 20px;
  }

  .contact-panel {
    padding: 26px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
