:root {
  color-scheme: light;
  --bg: #f3efe8;
  --surface: rgba(255, 253, 249, 0.82);
  --surface-strong: #fffdf9;
  --surface-muted: rgba(244, 239, 231, 0.88);
  --text: #15191d;
  --text-soft: rgba(21, 25, 29, 0.72);
  --border: rgba(21, 25, 29, 0.1);
  --accent: #8a5b34;
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

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

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0 12px;
}

.brand-name,
.brand-subtitle,
.eyebrow,
h1,
h2,
h3,
p {
  margin: 0;
}

.brand-name {
  font-weight: 700;
}

.brand-subtitle,
.eyebrow,
.topnav a,
.tag,
.status {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle,
.eyebrow,
.tag {
  color: var(--accent);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  color: var(--text-soft);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 36px;
  align-items: center;
  min-height: 78vh;
  padding: 26px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1,
h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.95;
  max-width: 760px;
}

.hero-text,
.section-head p,
.project-card p,
.footer-copy-block p {
  color: var(--text-soft);
  line-height: 1.74;
}

.hero-text {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.project-card a:hover,
.footer-links a:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #181c20;
  color: #fffdf9;
  box-shadow: 0 14px 34px rgba(24, 28, 32, 0.16);
}

.button-secondary {
  background: rgba(255, 253, 249, 0.66);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 26%), linear-gradient(180deg, #111315 0%, #262c32 100%);
  box-shadow: 0 24px 80px rgba(16, 18, 21, 0.18);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

.section {
  padding: 50px 0 10px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 26px;
}

.section-head.narrow {
  max-width: 760px;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
}

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

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

.info-panel,
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.project-card.featured {
  background: var(--surface-strong);
}

.project-card.muted,
.info-panel {
  background: var(--surface-muted);
}

h3 {
  font-size: 1.32rem;
  line-height: 1.2;
}

.project-card a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 700;
  margin-top: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.status {
  color: var(--text-soft);
  font-weight: 700;
}

.muted-section {
  padding-bottom: 72px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy-block {
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: flex-start;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .hero-visual {
    order: -1;
    min-height: 420px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

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

  .topnav {
    gap: 14px;
  }

  .hero {
    gap: 20px;
    padding: 8px 0 18px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
    line-height: 0.98;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 320px;
    border-radius: 24px;
  }

  .section {
    padding-top: 34px;
  }

  .about-grid,
  .projects-grid,
  .projects-grid.featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .info-panel,
  .project-card {
    padding: 20px;
    border-radius: 24px;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links a {
    width: 100%;
    justify-content: center;
  }
}
