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

:root {
  --cream: #ecebe7;
  --warm-white: #ecebe7;
  --dark: #1a1714;
  --mid: #4a4540;
  --light-mid: #8a8278;
  --border: #d8d3cc;
  --accent: #c4a882;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  font-weight: 300;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236, 235, 231, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding: 0 5%;
  height: 110px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.00rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--dark); }

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

.logo-img {
  height: 75px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1714;
  transition: all 0.3s;
}

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

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 110px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2rem 5%;
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
}

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

.mobile-menu a {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── HERO ── */
.hero {
  margin-top: 110px;
  width: 100%;
  height: calc(100vh - 110px);
  max-height: 1000px;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  will-change: transform;
  transform: translateY(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 3rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.25s;
}

.carousel-btn:hover {
  background: transparent;
  opacity: 0.7;
}

.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.25s;
}

.dot.active {
  background: rgba(255,255,255,0.95);
}

/* ── INTRO SECTION ── */
.intro {
  background: var(--warm-white);
  text-align: center;
  padding: 6rem 5% 4rem;
}

.intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.intro p {
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid);
  font-weight: 300;
}

.intro p a {
  color: var(--dark);
  text-underline-offset: 3px;
}

/* ── PROJECT GRID ── */
.projects {
  background: var(--warm-white);
  padding: 3rem 5% 6rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  cursor: pointer;
  overflow: hidden;
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project-label {
  padding: 0.85rem 0 0.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
}

/* ── PROJECT IMAGE FALLBACK GRADIENTS ── */
.img-newport {
  background: linear-gradient(135deg, #8b7355 0%, #6b5a45 40%, #4a3d2e 100%);
}
.img-stetson {
  background: linear-gradient(135deg, #c4b8a8 0%, #9a8c7e 50%, #6b5f52 100%);
}
.img-tulane {
  background: linear-gradient(135deg, #d4c4a0 0%, #b8a478 50%, #8c7850 100%);
}
.img-wallingford {
  background: linear-gradient(135deg, #e8e0d8 0%, #c8c0b4 50%, #a09488 100%);
}

.project-card-img .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ── CONTACT ── */
.contact {
  background: var(--cream);
  padding: 6rem 5% 5rem;
  text-align: center;
}

.contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--light-mid);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--mid);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.submit-btn {
  margin-top: 1.5rem;
  align-self: center;
  background: var(--dark);
  color: var(--cream);
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.submit-btn:hover {
  background: var(--mid);
  transform: translateY(-1px);
}

/* ── SOCIAL LINKS ── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--light-mid);
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

.social-links a svg {
  width: 32px;
  height: 32px;
}

.social-links a:hover {
  color: var(--dark);
}

/* ── FOOTER ── */
footer {
  background: var(--warm-white);
  border-top: none;
  padding: 2.5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--light-mid);
  letter-spacing: 0.06em;
  font-weight: 300;
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: unset;
    gap: 0;
    padding: 0 6%;
    height: 110px;
  }

  .nav-logo {
    grid-column: 2;
    justify-self: center;
  }

  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .hero {
    margin-top: 110px;
    height: 70vw;
    min-height: 240px;
  }

  .intro { padding: 4rem 6% 3rem; }
  .intro h2 { font-size: 1.8rem; }

  .projects { padding: 2rem 6% 4rem; }
  .project-grid { gap: 1rem; }

  .contact { padding: 4rem 6% 3.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .intro p { font-size: 0.85rem; }
}
