*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f6f3;
  --color-primary: #1a1a1a;
  --color-secondary: #4a4a4a;
  --color-accent: #8b6914;
  --color-accent-light: #c9a84c;
  --color-border: #e5e1db;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-logo span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-light);
}

/* ── HERO ─────────────────────────────────────────── */

.hero {
  position: relative;
  height: calc(100svh - var(--nav-height));
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}

.hero-text {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 3px;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--color-accent-light);
}

/* ── SECTIONS ─────────────────────────────────────── */

section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--color-secondary);
  max-width: 620px;
  line-height: 1.75;
}

/* ── ABOUT ────────────────────────────────────────── */

.about {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-value h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.about-value p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ── PROJECTS PREVIEW ─────────────────────────────── */

.projects-preview .section-inner > header {
  position: static;
  height: auto;
  background: none;
  padding: 0;
  margin-bottom: 3rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.04);
}

.project-card-body {
  background: var(--color-surface);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.project-card-body .section-label {
  margin-bottom: 0;
}

.project-card-body h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.project-card-body p {
  color: var(--color-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.project-card-body .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  text-decoration: none;
}

.project-card-body .link-arrow::after {
  content: '→';
  transition: transform 0.15s;
}

.project-card:hover .link-arrow::after {
  transform: translateX(4px);
}

/* ── PROJECT PAGE ─────────────────────────────────── */

.page-hero {
  background: var(--color-primary);
  padding: 4rem 2rem 3.5rem;
  color: #fff;
}

.page-hero .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero .section-label {
  color: var(--color-accent-light);
}

.page-hero .section-title {
  color: #ffffff;
  max-width: 640px;
}

.page-hero .section-body {
  color: rgba(255,255,255,0.7);
}

.gallery {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.03);
}

/* ── FOOTER ───────────────────────────────────────── */

footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-logo img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.8;
}

.footer-logo span {
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 760px) {
  .about .section-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .project-card-img {
    aspect-ratio: 16/9;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn) {
    display: none;
  }

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

  .gallery-grid figure {
    aspect-ratio: 4/3;
  }

  .gallery-grid figure:last-child {
    grid-column: auto;
  }
}
