:root {
  --ink: #17201c;
  --muted: #63706a;
  --line: #d9dfda;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0c4f4a;
  --coral: #d95d39;
  --lime: #7aa43a;
  --gold: #c18b28;
  --shadow: 0 24px 60px rgba(23, 32, 28, 0.12);
}

* {
  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.6;
  letter-spacing: 0;
}

body::selection {
  background: rgba(15, 118, 110, 0.18);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #f8faf7;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.08);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.site-header.header-light {
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.08);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 1rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 8px;
  padding: 9px 12px;
  color: currentColor;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: rgba(15, 118, 110, 0.09);
}

.site-nav .nav-action {
  border: 1px solid currentColor;
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: #fbfaf6;
}

.hero-home {
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 15, 0.9), rgba(10, 18, 15, 0.6) 46%, rgba(10, 18, 15, 0.76)),
    url("/assets/hero-portfolio.png") center right / cover;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c46b;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 4.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(251, 250, 246, 0.82);
  font-size: 1.2rem;
}

.hero-actions,
.project-links,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 740;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.intro-grid,
.detail-grid,
.about-layout,
.contact-layout,
.case-grid,
.project-hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-list li,
.next-list span {
  border-left: 4px solid var(--teal);
  background: rgba(15, 118, 110, 0.07);
  padding: 14px 16px;
  font-weight: 680;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p,
.about-copy p,
.detail-copy p,
.case-grid p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-image-link {
  display: block;
  background: #0d1915;
}

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

.project-card-body {
  padding: 26px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-meta span {
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 720;
}

.project-card p {
  color: var(--muted);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.3);
  text-underline-offset: 4px;
}

.muted-link {
  color: var(--muted);
  text-decoration: none;
}

.project-placeholder {
  display: grid;
  align-content: stretch;
}

.project-placeholder-visual {
  display: grid;
  min-height: 260px;
  align-content: end;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(135deg, #f2f7f4, #ffffff 42%, #f8efe9);
}

.project-placeholder-visual span {
  display: block;
  height: 54px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.08);
}

.project-placeholder-visual span:nth-child(2) {
  width: 78%;
  background: rgba(15, 118, 110, 0.16);
}

.project-placeholder-visual span:nth-child(3) {
  width: 58%;
  background: rgba(217, 93, 57, 0.16);
}

.detail-strip {
  background: var(--ink);
  color: #fbfaf6;
}

.detail-strip .section-kicker {
  color: #f3c46b;
}

.detail-strip p {
  color: rgba(251, 250, 246, 0.72);
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(251, 250, 246, 0.18);
  padding: 18px 0;
}

.method-list strong {
  color: #f3c46b;
}

.about-layout {
  align-items: start;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  color: var(--muted);
}

.about-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.contact-layout {
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-hero {
  padding: 150px 0 84px;
  background: #ffffff;
}

.project-hero-copy h1 {
  color: var(--ink);
}

.project-hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.project-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-figure img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal-dark);
  font-weight: 760;
}

.project-facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.project-facts div,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.project-facts dd {
  margin: 4px 0 0;
  font-weight: 740;
}

.feature-section {
  background: #f1f6f2;
}

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

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

.next-list {
  display: grid;
  gap: 12px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .intro-grid,
  .detail-grid,
  .about-layout,
  .contact-layout,
  .case-grid,
  .project-hero-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 18px;
    display: none;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    padding: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: min(100% - 32px, 1120px);
    padding: 112px 0 68px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.85rem;
  }

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

  .section {
    padding: 70px 0;
  }

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

  .focus-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body {
    padding: 20px;
  }

  .project-hero {
    padding-top: 120px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
