/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --white: #fff;
  --gray-light: #f2f2f0;
  --gray-mid: #e0e0dc;
  --gray-text: #555;
  --red: #c0392b;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --max-w: 960px;
  --pad: clamp(20px, 5vw, 60px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: 12px;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: 60px 0;
  border-top: 1px solid var(--gray-mid);
}

section:first-of-type { border-top: none; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-text);
  transition: color 0.2s;
}

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

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  padding: 20px var(--pad);
  gap: 20px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-text);
}

/* ===== HOME: VIDEO SECTION ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== HOME: TEXT BLOCK ===== */
.section-intro {
  max-width: 540px;
  margin-bottom: 24px;
}

/* ===== HOME: READ ARTICLE BTN ===== */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 12px;
}

.btn:hover { background: #a93226; }

/* ===== HOME: IMAGE GRID ===== */
.image-grid {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.image-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4/3;
}

.image-grid .wide {
  grid-column: 1 / -1;
}

.image-grid .wide img {
  aspect-ratio: 16/6;
}

/* ===== HOME: FULL WIDTH IMAGE ===== */
.full-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-top: 20px;
}

/* ===== HOME: CENTER IMAGE ===== */
.center-img {
  display: block;
  margin: 24px auto 0;
  max-width: 260px;
}

/* ===== HOME: BULLET COLS ===== */
.bullet-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin-top: 20px;
}

.bullet-cols ul {
  list-style: none;
  padding: 0;
}

.bullet-cols li {
  font-size: 13px;
  color: var(--gray-text);
  padding-left: 12px;
  position: relative;
  margin-bottom: 4px;
}

.bullet-cols li::before {
  content: '·';
  position: absolute;
  left: 0;
}

/* ===== HOME: GIS IMAGES ===== */
.gis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.gis-grid img {
  width: 100%;
  aspect-ratio: 4/3;
}

/* ===== HOME: SKETCHES ===== */
.sketch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .sketch-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .sketch-grid img {
    aspect-ratio: 3/2;
    object-fit: contain;
  }
}

/* ===== CONTACT FOOTER ===== */
.contact-section {
  background: var(--gray-light);
  padding: 60px 0;
  margin-top: 0;
  border-top: 1px solid var(--gray-mid);
}

.contact-section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-email {
  font-size: 14px;
  color: var(--gray-text);
  font-style: normal;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--gray-mid);
  padding: 20px 0;
}

.site-footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--black); }

.footer-copy {
  font-size: 11px;
  color: var(--gray-text);
}

/* ===== ABOUT: TWO-COL ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.about-hero-text h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
}

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

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--gray-mid);
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  font-size: 14px;
  color: var(--gray-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.skills-list li::before {
  content: '- ';
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 40px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* About two-cols → stacked */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }

  /* reverse order on mobile for second split */
  .about-split.reverse { direction: ltr; }
  .about-split.reverse .about-split-img { order: -1; }

  /* Image grids */
  .image-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .bullet-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Contact */
  .contact-section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .image-grid.three-col,
  .image-grid.two-col {
    grid-template-columns: 1fr;
  }

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

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

.mobile-hidden {
  display: none;
}

@media (min-width: 769px) {
  .mobile-hidden {
    display: grid;
  }
}

.image-grid.arch-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 20px;
}

.image-grid.arch-grid div {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.image-grid.arch-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset;
}

/* ===== PHOTOGRAPHY GRID ===== */
.image-grid.photo-grid div {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.image-grid.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset;
}

@media (max-width: 480px) {
  .image-grid.photo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}