:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1d2328;
  --muted: #66717a;
  --line: #d9d2c7;
  --accent: #117a7a;
  --accent-dark: #0b5557;
  --warm: #c86f3f;
  --shadow: 0 18px 45px rgba(29, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.section-band {
  border-bottom: 1px solid var(--line);
}

.intro {
  padding: 86px 0 56px;
}

.intro-grid,
.project-hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
}

.contact-grid > * {
  min-width: 0;
}

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

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

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 8px 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.profile-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.profile-panel div {
  min-height: 98px;
  padding: 22px;
  background: var(--surface);
}

.profile-label,
.project-card span {
  display: block;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-section,
.project-content {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

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

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

.project-card-main {
  display: grid;
  color: inherit;
  text-decoration: none;
}

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

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

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

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.project-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.project-links a:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.hero-links {
  padding: 12px 0 0;
}

.project-card:hover {
  transform: translateY(-4px);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--shadow);
}

.contact-section {
  padding: 64px 0;
  background: #172124;
  color: #ffffff;
}

.contact-section .eyebrow {
  color: #79d2cc;
}

.contact-note {
  max-width: 560px;
  color: #c9d1d3;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  font-style: normal;
  min-width: 0;
}

.contact-list a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  overflow-wrap: anywhere;
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  border-color: #79d2cc;
  background: rgba(121, 210, 204, 0.1);
}

.project-hero {
  padding: 58px 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.project-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.project-content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

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

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

@media (max-width: 820px) {
  .navbar {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

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

  .intro {
    padding-top: 56px;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar {
    width: min(100% - 24px, 1120px);
  }

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

  .nav-links a {
    padding-inline: 8px;
  }
}
