/* ─── About Page ────────────────────────────────────────────────── */

/* Mobile nav strip — hidden everywhere except mobile when menu open */
#mobile-nav {
  display: none;
}

.about-page #sidebar {
  /* Sidebar wordmark only — no nav, no footer */
}

/* ─── Hamburger ─────────────────────────────────────────────────── */

/* Change 1: align with right edge of text column (matches padding-right: 80px on #about-main) */
#hamburger {
  position: fixed;
  top: 42px;
  right: 80px;
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

#hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.bar {
  display: block;
  height: 1px;
  background: #0a0a0a;
  transition: width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.bar:nth-child(1) { width: 22px; }
.bar:nth-child(2) { width: 16px; }
.bar:nth-child(3) { width: 22px; }

/* Open state — morph to X */
#hamburger-btn.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 22px;
}
#hamburger-btn.open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
#hamburger-btn.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 22px;
}

/* Change 2: nav appears inline to the left of the X button */

#hamburger-btn {
  order: 2;
}

#hamburger-nav {
  order: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#hamburger-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

#hamburger-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}

#hamburger-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease;
  white-space: nowrap;
}

#hamburger-nav a:hover {
  color: #0a0a0a;
}

/* ─── About Main ────────────────────────────────────────────────── */

/* Change 3: tighter vertical spacing */
#about-main {
  margin-left: 220px;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 80px 80px 100px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#about-main::-webkit-scrollbar {
  display: none;
}

/* ─── Sections ──────────────────────────────────────────────────── */

.about-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

/* ─── Philosophy text ───────────────────────────────────────────── */

.about-lead {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #0a0a0a;
  margin-bottom: 40px;
  text-align: justify;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-body p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.65);
  letter-spacing: 0.01em;
  text-align: justify;
}

/* ─── Editorial image header ────────────────────────────────────── */

.editorial-image {
  margin: -80px -80px 0 -72px;
}

.editorial-image img {
  width: 100%;
  height: 60vh;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* ─── Contact two-column grid ───────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-col p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.01em;
  text-align: justify;
  margin-bottom: 22px;
}

.contact-col p:last-child {
  margin-bottom: 0;
}

.contact-col a {
  color: inherit;
  text-decoration: none;
}

/* ─── Team list ─────────────────────────────────────────────────── */

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.team-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  column-gap: 10px;
  padding: 28px 0;
}

.member-name-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.member-credentials {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
  line-height: 1.5;
}

.team-member + .team-member {
  border-top: none;
}

.member-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.member-role {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

/* ─── Remove hairlines on both sections ─────────────────────────── */

/* Change 4: no hairline below either section */
#section-philosophy,
#section-team {
  border-bottom: none;
}

/* Change 5: email left, Instagram right on same line */
#about-contact {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

#about-contact a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.38);
  transition: color 0.25s ease;
}

#about-contact a:hover {
  color: #0a0a0a;
}

/* ─── All Projects back link ─────────────────────────────────────── */

#back-link {
  padding-top: 40px;
}

#back-link a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: color 0.25s ease;
}

#back-link a:hover {
  color: #0a0a0a;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

/* Hide hamburger on desktop — mobile only */
@media (min-width: 641px) {
  #hamburger {
    display: none;
  }
}

@media (max-width: 900px) {
  #about-main {
    margin-left: 180px;
    padding: 60px 40px 80px 40px;
  }

  #hamburger {
    top: 28px;
    right: 40px;
  }

  .contact-grid {
    gap: 40px;
  }

  .editorial-image {
    margin: -60px -40px 0 -40px;
  }
}

@media (max-width: 640px) {
  #about-main {
    margin-left: 0;
    height: auto;
    overflow-y: visible;
    padding: 28px 24px 60px;
    gap: 48px;
  }

  .about-section {
    gap: 16px;
    padding-bottom: 48px;
  }

  .about-lead {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  #hamburger {
    top: 22px;
    right: 24px;
  }

  /* Suppress the desktop hamburger-nav on mobile — replaced by #mobile-nav */
  #hamburger-nav,
  #hamburger-nav.open {
    display: none !important;
  }

  /* Mobile nav: shown in sidebar flow when menu is open */
  #sidebar.menu-open #mobile-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 4px 0 2px;
  }

  #mobile-nav a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.45);
    transition: color 0.25s ease;
    white-space: nowrap;
  }

  #mobile-nav a:hover {
    color: #0a0a0a;
  }

  .team-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
  }

  .editorial-image {
    margin: -28px -24px 0 -24px;
  }

  .editorial-image img {
    height: 40vh;
    max-height: 320px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
