:root {
  /* Branding Colors */
  --bg: #F9F8F6; /* Alabaster / Bone White */
  --surface: #ffffff;
  --text: #1a1a1a; 
  --text-muted: #737373;
  --line: #e5e5e5;
  
  /* Original Fonts Restored */
  --serif: "benton-modern-display", serif;
  --sans: "futura-pt", sans-serif;
  --americane: "balto", sans-serif;
  
  /* Spacing */
  --page-padding: 6vw;
}

/* Reset & Base */
* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  /* Original: Body uses serif */
  font-family: var(--serif); 
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

/* Base paragraphs use Americane (Balto) per original '.text' class preference */
p.body-text {
  font-family: var(--americane);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hero paragraphs use Sans (Futura) per original '.opening-banner p' preference */
.hero p {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Utility Classes */
.container {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  max-width: 1800px;
  margin: 0 auto;
}

.label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.link {
  border-bottom: 1px solid currentColor;
}

/* Navigation */
nav {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem var(--page-padding);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
}

nav a {
  transition: color .3s;
}

nav.invert:not(.scrolled):not(.menu-open) * {
  color: white;
}

nav.invert:not(.scrolled):not(.menu-open) img {
  filter: brightness(0) invert(1);
}

nav.scrolled {
  background-color: var(--bg);
}

nav.hidden {
  transform: translateY(-100%);
}

nav.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.nav-logo img {
  height: 3.5rem; /* Slightly larger as per original taste */
  display: block;
  transition: height 0.3s, filter .3s;
}

nav.scrolled .nav-logo img {
  height: 2.5rem;
}

.nav-links {
  display: none; 
}

@media(min-width: 768px) {
  .nav-links { display: flex; gap: 2rem; }
  .nav-link { 
      font-family: var(--sans);
      font-size: 0.85rem; 
      text-transform: uppercase; 
      letter-spacing: 0.1em; 
  }
}

/* New navigation */

/* --- New Menu Toggle Button --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10; /* Keeps it above the full-screen menu */
  position: relative;
}

.menu-toggle .bar {
  width: 1.87rem;
  height: 2px;
  background-color: var(--text, #000); /* Will use your text color or default to black */
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

/* Make sure logo stays above the full-screen menu too */
.nav-logo {
  position: relative;
  z-index: 10; 
}

/* --- Mobile Menu (Full Screen) --- */
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg, #fff); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  
  /* Slide in from top animation */
  transform: translateY(-100%); 
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5; /* Sits behind the logo and toggle button */
}

/* Open State for the Full-Screen Menu */
nav.menu-open .nav-links {
  transform: translateY(0);
}

/* Animate Hamburger into an "X" */
nav.menu-open .menu-toggle .bar:nth-child(1) {
  transform: rotate(45deg);
}
nav.menu-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}
nav.menu-open .menu-toggle .bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* Handle your invert class for the hamburger lines */
nav.invert:not(.scrolled) .menu-toggle .bar {
  background-color: white;
}
nav.invert.menu-open .menu-toggle .bar {
  /* Ensure the "X" is visible against the background when open */
  background-color: var(--text, #000); 
}

/* --- Desktop Reset --- */
@media(min-width: 768px) {
  .menu-toggle { 
    display: none; 
  }
  
  .nav-links { 
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    transform: none; /* Disables the mobile slide animation */
    transition: none;
    display: flex; 
    gap: 2rem; 
  }
  
  .nav-link { 
      font-family: var(--sans);
      font-size: 0.85rem; 
      text-transform: uppercase; 
      letter-spacing: 0.1em; 
  }
}

.menu-open .nav-links {
  background: var(--bg);
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 9;
    padding: var(--page-padding);
    padding-top: 7rem;
    display: block;
}

.menu-open .nav-links a {
  transition: color .3s;
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- Mobile Menu (Full Screen) --- */
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg, #fff); 
  z-index: 9; 
  padding: var(--page-padding);
  padding-top: 7rem;
  display: block; /* Applied your block display */
  
  /* Slide in from top animation for the background */
  transform: translateY(-100%); 
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Open State for the Full-Screen Menu Background */
nav.menu-open .nav-links {
  transform: translateY(0);
}

/* --- Menu Links Base & Hidden State --- */
.nav-links a {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  
  /* Start hidden and slightly pushed up */
  opacity: 0;
  transform: translateY(-20px);
  
  /* Fast fade out when closing the menu */
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.3s ease; 
}

/* --- Menu Links Open State & Staggered Fades --- */
nav.menu-open .nav-links a {
  opacity: 1;
  transform: translateY(0);
}

/* Add a delayed transition for each link when opening */
nav.menu-open .nav-links a:nth-child(1) { transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, color 0.3s; }
nav.menu-open .nav-links a:nth-child(2) { transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, color 0.3s; }
nav.menu-open .nav-links a:nth-child(3) { transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s, color 0.3s; }
/* Just add another nth-child rule here if you add a 4th link later! */


/* --- Desktop Reset --- */
@media(min-width: 768px) {
  .menu-toggle { 
    display: none; 
  }
  
  .nav-links { 
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    transform: none; 
    transition: none;
    display: flex; 
    flex-direction: row;
    gap: 2rem; 
  }
  
  /* Reset the mobile link styles so they appear normally on desktop */
  .nav-links a,
  nav.menu-open .nav-links a { 
    font-family: var(--sans);
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 0;
    opacity: 1; 
    transform: none; 
    transition: color 0.3s; 
  }
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  z-index: 99;
  position: absolute;
  color: white;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.hero * {
  color: white !important;
}

.hero .location-tag {
  border-bottom-color: white;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 2rem;
  margin-top: 1rem;
  letter-spacing: -0.025em;
}

.location-tag {
  font-size: 0.8rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  display: inline-block;
  margin-top: 2rem;
}

/* Project Detail Page Styles (About McGee Style) */
.project-hero {
  width: 100%;
  height: 90vh;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-header {
  padding: 6rem var(--page-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

header.hero {
  width: 100%;
}

@media(min-width: 900px) {
  .project-header {
      grid-template-columns: 1fr 1.5fr;
      align-items: start;
  }

  header.hero {
    width: auto;
  }
}

@media (max-width: 900px) {
  #projects h2 {
    font-size: 2rem;
    position: relative;
    bottom: -.2rem;
  }

  [class="2-smaller"] {
    font-size: 2rem !important;
  }

  .about {
    flex-direction: column;
  }

  .about img {
    width: 100% !important;
  }
}

.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-meta-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.project-meta-list li span:last-child {
  color: var(--text-muted);
}

.project-description h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.project-description p {
  font-family: var(--americane);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Editorial Image Layouts */
.editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 8rem;
}

.img-full {
  width: 100%;
  aspect-ratio: 16/9;
}

.img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.img-asymmetric {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.editorial-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Mood Grid */
.mood-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 8rem;
}

@media(min-width: 768px) {
  .mood-grid {
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: repeat(2, 400px);
      gap: 2rem;
  }
}

.mood-item {
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Bento Layout */
.mood-item:nth-child(1) { grid-column: 1 / -1; height: 300px; }
.mood-item:nth-child(2) { grid-column: 1 / -1; height: 300px; }
.mood-item:nth-child(3) { grid-column: 1 / -1; height: 300px; }
.mood-item:nth-child(4) { grid-column: 1 / -1; height: 300px; }

@media(min-width: 768px) {
  .mood-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1; height: auto; }
  .mood-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; height: auto; }
  .mood-item:nth-child(3) { grid-column: 1 / 6; grid-row: 2; height: auto; }
  .mood-item:nth-child(4) { grid-column: 6 / 13; grid-row: 2; height: auto; }
}

/* Projects */
.projects-section {
  padding-bottom: 8rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 2rem;
}

@media(min-width: 768px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  display: block;
  cursor: pointer;
}

.project-image-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #f0f0f0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.project-title {
  font-size: 1.5rem;
  font-family: var(--serif);
  color: var(--text);
}

.project-meta {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Mission Statement */
.mission {
  background-color: var(--surface);
  padding: 8rem var(--page-padding);
  text-align: center;
  margin-bottom: 8rem;
}

.mission h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  max-width: 24ch;
  margin: 0 auto;
  font-weight: 400;
}

.mission i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
}

/* Consultation / Contact */
.consultation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-bottom: 8rem;
}

@media(min-width: 900px) {
  .consultation { grid-template-columns: 1fr 1fr; gap: 8rem; }
}

.consultation-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 3rem;
}

.form-group h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media(min-width: 600px) {
  .input-row { grid-template-columns: 1fr 1fr; }
  .input-row.full { grid-template-columns: 1fr; }
}

.input-wrap {
  display: flex;
  flex-direction: column;
}

.input-wrap label {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.input-wrap input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  /* Original: Inputs use Americane (Balto) */
  font-family: var(--americane);
  font-size: 1.2rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}

.input-wrap input:focus {
  border-bottom-color: var(--text);
}

button.submit-btn {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 1rem 3rem;
  /* Original: Buttons use Sans */
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

button.submit-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.input-wrap textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  font-family: var(--americane);
  font-size: 1.2rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s;
  border-radius: 0;
  line-height: 1.5;
}

.input-wrap textarea:focus {
  border-bottom-color: var(--text);
}

.contact-top {
  width: 100vw;
  position: relative;
  margin-top: 10rem !important;
}

.contact-top h1 {
  font-size: 4rem;
    margin-bottom: 2rem;
}

.contact-top img {
  width: calc(100% + (var(--page-padding) * 2));
    margin-bottom: 5rem;
    margin-left: calc(var(--page-padding) * -1);
}

/* Footer */
footer {
  padding: 4rem var(--page-padding);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--sans);
}

.about {
  display: flex;
  gap: 4rem;
  text-align: left;
}

.about > * {
  width: 100%;
}

.about img {
  width: 80%;
}

.about p {
  font-family: var(--americane);
  font-size: 1.2rem;
  line-height: 1.7rem;
  margin-top: 2rem;
}

.about h2 {
  font-size: 2.67rem;
  margin-top: 2rem;
}

.banner {
  width: 100vw;
  height: 100vh;
  left: 0px;
  top: 0px;
  position: absolute;
  background-size: cover;
  background-position: center center;
  filter: brightness(1);
}