/* ============================================================
   jnholman designs — site styles
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'adelle-sans';
  src: url('fonts/Adelle_Sans/fonnts.com-Adelle_Sans_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'adelle-sans';
  src: url('fonts/Adelle_Sans/fonnts.com-Adelle_Sans_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'adelle-sans';
  src: url('fonts/Adelle_Sans/fonnts.com-Adelle_Sans_Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'adelle-sans';
  src: url('fonts/Adelle_Sans/fonnts.com-Adelle_Sans_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/static/CormorantGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/static/CormorantGaramond-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/static/CormorantGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/Cormorant_Garamond/static/CormorantGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'adelle-sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: #1d1d1d;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'adelle-sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-weight: 400; letter-spacing: 0.01em; margin: 0; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

main { padding-top: 108px; min-height: 60vh; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } main { padding-top: 84px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #1d1d1d;
  transition: transform 0.3s ease;
  will-change: transform;
}
.site-header--hidden { transform: translateY(-100%); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 18px 43px;
  min-height: 108px;
}
.nav-logo img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav-logo img { height: 48px; }
  .site-header .container { min-height: 84px; padding-top: 14px; padding-bottom: 14px; }
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-main a {
  font-family: 'adelle-sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1d1d1d;
  transition: color 0.18s ease;
  font-weight: 300;
  position: relative;
  padding-bottom: 0;
}
.nav-main a:hover { color: #6e6e6e; }
.nav-main a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: #1d1d1d;
}

.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 40px;
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: #555;
  transition: color 0.18s ease;
}
.nav-social a:hover { color: #1d1d1d; }
.nav-social svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #1d1d1d;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 120px 24px 120px;
    display: none;
    z-index: 999;
  }
  .nav-main.open { display: flex; }
  .nav-main a {
    font-size: 32px;
    line-height: 1.5;
    font-weight: 300;
    color: #1d1d1d;
  }
  .nav-main a.active::after { display: none; }
  .nav-social {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    gap: 28px;
  }
  .nav-social a { width: 38px; height: 38px; color: #1d1d1d; }
  .nav-social svg { width: 24px; height: 24px; }

  /* Hamburger → X when menu open */
  body:has(.nav-main.open) { overflow: hidden; }
  body:has(.nav-main.open) .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body:has(.nav-main.open) .nav-toggle span:nth-child(2) { opacity: 0; }
  body:has(.nav-main.open) .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #ECECEC;
  padding: 56px 0 20px;
  color: #2a2a2a;
  font-size: 13px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  padding-bottom: 40px;
}
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-cols {
  display: flex;
  align-items: flex-start;
  gap: 180px;
}
.footer-nav { text-align: left; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li:last-child { margin-bottom: 0; }
.footer-nav a {
  font-size: 16px;
  font-weight: 300;
  line-height: 29px;
  color: #2a2a2a;
}
.footer-nav a:hover { color: #ffffff; }
.footer-nav a.active { text-decoration: underline; text-underline-offset: 3px; }

.footer-contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-contact p {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 16px;
  line-height: 29px;
  color: #2a2a2a;
}
.footer-contact p:last-child { margin-bottom: 0; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: #ffffff; }

.footer-social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: #2a2a2a;
  transition: color 0.18s ease;
}
.footer-social-icons a:hover { color: #ffffff; }
.footer-social-icons svg { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(29, 29, 29, 0.18);
  padding-top: 18px;
}
.footer-copyright {
  font-family: 'Adelle Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #4a4a4a;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 36px;
    padding-bottom: 36px;
    align-items: center;
    text-align: center;
  }
  .footer-cols {
    flex-direction: column;
    gap: 36px;
    width: 100%;
    align-items: center;
  }
  .footer-logo img { height: 64px; }
  .footer-nav { text-align: center; }
  .footer-nav a { font-size: 17px; line-height: 30px; }
  .footer-contact-social { align-items: center; gap: 22px; }
  .footer-contact { text-align: center; }
  .footer-contact p { font-size: 17px; line-height: 30px; }
  .footer-social-icons { justify-content: center; gap: 22px; }
  .footer-social-icons a { width: 34px; height: 34px; }
  .footer-social-icons svg { width: 24px; height: 24px; }
  .footer-bottom { text-align: center; }
  .footer-copyright { font-size: 13px; line-height: 19px; }
}

/* ---------- Home: hero slider ---------- */
.home-slider {
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: calc(100vh - 108px);
  min-height: 480px;
  max-height: 820px;
  overflow: hidden;
  background: #1d1d1d;
}
@media (max-width: 768px) {
  .home-slider {
    height: calc(100vh - 84px);
    height: calc(100dvh - 84px);
    min-height: 380px;
    max-height: none;
  }
}
.home-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
@media (max-width: 768px) {
  .home-slider__slide {
    background-position: var(--mobile-pos, 75% center);
    background-size: var(--mobile-size, cover);
  }
  .home-slider__slide[data-mobile-skip="true"],
  .home-slider__dots button[data-mobile-skip="true"] { display: none !important; }
}
.home-slider__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.home-slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.home-slider__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.home-slider__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}
.home-slider__dots button.active { background: #fff; }

/* Home statement */
.home-statement {
  padding: 100px 0 80px;
  text-align: center;
  background: #323D41;
  color: #ffffff;
}
@media (max-width: 768px) {
  .home-statement { padding: 80px 0 60px; }
}
.home-statement h2 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 25px;
  line-height: 34px;
  font-weight: 500;
  max-width: 880px;
  margin: 0 auto 24px;
  color: #ffffff;
}
.home-statement h3 {
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 48px;
}
@media (max-width: 640px) {
  .home-statement h3 .hs-sep { display: none; }
  .home-statement h3 .hs-item { display: block; line-height: 1.9; }
}
.home-statement ul {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  list-style: none;
  padding: 0;
  font-size: 16px;
  line-height: 29px;
  font-weight: 300;
  color: #ffffff;
}
.home-statement li {
  padding: 8px 0;
  border: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 29px;
  color: #ffffff;
}
.home-statement li b, .home-statement li strong {
  font-weight: 800;
  color: #ffffff;
}

/* Home: Get in Touch — form + map (also reused on contact page) */
.split-section {
  background: #476C77;
  color: #ffffff;
  padding: 80px 0;
  display: flex;
  align-items: center;
}
.split-section > .container {
  width: 100%;
  max-width: none;
  padding: 0 157px;
}
.split-section__grid {
  display: grid;
  grid-template-columns: 471px 500px;
  gap: 0;
  align-items: start;
  justify-content: space-between;
}
.split-section__form-col {
  display: flex;
  flex-direction: column;
  height: 500px;
}
.split-section__heading {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 47px;
  line-height: 61px;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.split-section .contact-form {
  max-width: 471px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.split-section .contact-form .form-row { margin: 0; flex-shrink: 0; }
.split-section .contact-form label { color: #000000; margin-bottom: 4px; }
.split-section .contact-form input,
.split-section .contact-form textarea {
  background: transparent;
  color: #000000;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #000000;
}
.split-section .contact-form input { height: 40px; }
.split-section .contact-form textarea { height: 100px; min-height: 100px; resize: none; }
.split-section .contact-form input:focus,
.split-section .contact-form textarea:focus {
  outline: none;
  border-bottom-color: #000000;
}
.split-section .contact-form__submit {
  background: #000000;
  color: #476C77;
  flex-shrink: 0;
  align-self: flex-start;
  margin: 0;
}
.split-section .contact-form__submit:hover {
  background: #1d1d1d;
  color: #476C77;
}
@media (max-width: 1300px) {
  .split-section > .container { padding: 0 40px; }
  .split-section__grid { grid-template-columns: 1fr 500px; gap: 40px; justify-content: stretch; }
}
@media (max-width: 900px) {
  .split-section > .container { padding: 0 22px; }
  .split-section__grid { grid-template-columns: 1fr; gap: 32px; justify-content: stretch; }
  .split-section__form-col { height: auto; }
}

.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.contact-form .form-row { display: flex; flex-direction: column; }
.contact-form label {
  display: block;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0;
  color: #1d1d1d;
  margin-bottom: 8px;
  font-weight: 300;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #b8b8b8;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 29px;
  font-weight: 300;
  color: #1d1d1d;
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #1d1d1d;
}
.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.contact-form__submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 16px 20px;
  background: #2c3a47;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.contact-form__submit:hover { background: #1d1d1d; }
@media (max-width: 900px) {
  .split-section .contact-form__submit,
  .contact-section .contact-form__submit { margin-top: 36px; }
}

.home-map {
  width: 500px;
  height: 500px;
  max-width: 100%;
  background: #f1f1f1;
  position: relative;
}
.home-map.leaflet-container,
.home-map .leaflet-container { background: #f1f1f1; }
.lisbon-pin { background: transparent; border: 0; }
.leaflet-control-attribution { font-size: 10px !important; }
.lisbon-label,
.map-label { background: transparent; border: 0; text-align: center; }
.lisbon-label-text {
  display: inline-block;
  font-family: 'Adelle Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.map-label-text {
  display: inline-block;
  font-family: 'Adelle Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
@media (max-width: 900px) { .home-map { width: 100%; max-width: 500px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; } }

/* ---------- Contact page ---------- */
.contact-section { padding: 64px 0 80px; }
.contact-section > .container {
  max-width: none;
  padding: 0 160px;
  width: 100%;
  margin: 0;
}
.contact-section__grid {
  display: grid;
  grid-template-columns: 471px minmax(0, 1fr);
  grid-template-rows: 467px;
  gap: 80px;
  justify-content: stretch;
  align-items: stretch;
}
.contact-section__form-col {
  max-width: 330px;
  display: flex;
  flex-direction: column;
  height: 467px;
}
.contact-section__heading {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 47px;
  line-height: 61px;
  letter-spacing: 0;
  color: #1d1d1d;
  margin: 0 0 24px;
}
.contact-section .contact-form {
  max-width: 330px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.contact-section .contact-form__submit { font-size: 16px; }
.contact-section .contact-form .form-row { margin: 0; flex-shrink: 0; }
.contact-section .contact-form label { margin-bottom: 4px; }
.contact-section .contact-form input,
.contact-section .contact-form textarea {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #1d1d1d;
}
.contact-section .contact-form input { height: 40px; }
.contact-section .contact-form textarea { height: 100px; min-height: 100px; resize: none; }
.contact-section .contact-form__submit {
  flex-shrink: 0;
  align-self: flex-start;
  margin: 0;
}
@media (max-width: 640px) {
  /* Center the "Get in touch" headings */
  .split-section__heading,
  .contact-section__heading { text-align: center; }
  /* Submit button left-aligned with gap above it */
  .split-section .contact-form__submit,
  .contact-section .contact-form__submit {
    align-self: flex-start;
    margin-top: 36px;
  }
  /* Halve the top padding above "Get in touch" on the home page */
  .split-section { padding-top: 40px; }
}
.contact-section__image {
  width: 100%;
  height: 467px;
  max-height: 467px;
  overflow: visible;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section__image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 1100px) {
  .contact-section > .container { padding: 0 40px; }
  .contact-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 900px) {
  .contact-section__grid { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 56px; }
  .contact-section__form-col { height: auto; }
  .contact-section__image { height: 382px; max-height: 382px; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .contact-section > .container { padding: 0 22px; }
  .contact-section { padding: 40px 0 60px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #1d1d1d;
  color: #1d1d1d;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn:hover { background: #1d1d1d; color: #fff; }

/* ---------- About page ---------- */
.about { padding: 44px 0 80px; }
.about .container {
  max-width: none;
  margin: 0;
  padding: 0 157px;
}
.about__grid {
  display: grid;
  grid-template-columns: 558px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  justify-content: stretch;
}
@media (max-width: 1100px) {
  .about .container { padding: 0 60px; }
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 900px) {
  .about .container { padding: 0 40px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .about .container { padding: 0 22px; }
  .about { padding: 36px 0 40px; }
  .about__grid { gap: 0; }
  .about__main { margin-top: 0; }
  .about-diagram { display: none; }
  .about-principles {
    margin: 0;
    padding: 0;
    list-style-position: inside;
  }
  .about-principles li { padding: 0; margin: 0; }
}
.about__main { margin-top: 0; }
.about-principles {
  margin: 0 0 56px;
  list-style: disc;
  padding-left: 20px;
}
.about-principles li {
  padding: 10px 0;
  border: 0;
  font-size: 16px;
  line-height: 29px;
  color: #1d1d1d;
  font-weight: 700;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .about-principles {
    margin: 0 0 48px;
    padding: 0 0 0 20px;
    list-style-position: outside;
  }
  .about-principles li { padding: 4px 0; margin: 0; font-weight: 400; }
}
.about-section { margin: 0 0 48px; }
.about-section h3 {
  font-size: 22px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  color: #1d1d1d;
  margin-bottom: 16px;
  padding-bottom: 0;
  border: 0;
}
.about-section p {
  color: #2a2a2a;
  font-size: 16px;
  line-height: 29px;
  font-weight: 300;
  margin-bottom: 18px;
}
.about-section .person-name {
  font-weight: 700;
  color: #1d1d1d;
}
.about-diagram {
  width: 100%;
  max-width: 308px;
  aspect-ratio: 542 / 1833;
  justify-self: center;
  margin-top: 40px;
}
.about-diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 1100px) {
  .about-diagram { max-width: 280px; justify-self: center; }
}
@media (max-width: 900px) {
  .about-diagram { max-width: 308px; width: 100%; margin: 40px auto 0; justify-self: center; }
}

/* ---------- Projects index — hover overlay tiles ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding: 48px 40px 60px;
}
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { padding: 32px 22px 48px; gap: 18px; }
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1d1d1d;
  cursor: pointer;
}
.project-card__img {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity 0.35s ease, transform 0.7s ease;
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-card__overlay span {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 37px;
  line-height: 51px;
  font-weight: 500;
  letter-spacing: 0;
  color: #000000;
  max-width: 22ch;
}
.project-card:hover .project-card__overlay { opacity: 1; }
@media (max-width: 640px) {
  .project-card { background: transparent; outline: none; }
  .project-card__overlay { display: none; }
}

/* ---------- Project detail page ---------- */
.project-hero { width: 100%; margin: 0; padding: 0; }
.project-hero img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}
/* Desert Incubator cover is a very wide section drawing (2.5:1).
   Force the hero box to 78vh so it matches the height that other project covers
   max out at — image fills via object-fit: cover, anchored to bottom. */
.project-hero[data-slug="desert-incubator"] {
  height: 78vh;
  overflow: hidden;
}
.project-hero[data-slug="desert-incubator"] img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}
/* Mobile — uniform project hero height, using Sanctuary Wentworth Point (2000×1500, 4:3) as reference. */
@media (max-width: 640px) {
  .project-hero {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ffffff;
  }
  .project-hero[data-slug="desert-incubator"] {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .project-hero img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  /* Desert Incubator is very wide (2.51:1). Show full image width with no horizontal whitespace; the resulting whitespace from the 4:3 box appears at the top. Then zoom in ~15% from the bottom-center so it reads larger (sides crop slightly). */
  .project-hero[data-slug="desert-incubator"] img {
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.15);
    transform-origin: bottom center;
  }
}
.project-body {
  max-width: none;
  margin: 0;
  padding: 20px 100px 0;
}
@media (max-width: 900px) { .project-body { padding: 20px 40px 0; } }
@media (max-width: 640px) {
  .project-body { padding: 20px 22px 0; }
}
.project-body h1 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 47px;
  line-height: 61px;
  font-weight: 500;
  margin: 0;
  text-align: left;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .project-body h1 { font-size: 32px; line-height: 42px; }
}
.project-body__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 146px;
  margin-top: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .project-body__cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .project-body__cols { margin-top: 20px; gap: 20px; }
}
.project-meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px 24px;
  align-items: start;
  align-content: start;
  grid-auto-rows: min-content;
  align-self: start;
  margin: 0;
  font-size: 16px;
  line-height: 29px;
}
.project-meta dt {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1d1d1d;
  font-size: 16px;
  line-height: 29px;
  margin: 0;
  padding: 0;
}
.project-meta dd { margin: 0; padding: 0; color: #3a3a3a; font-weight: 300; font-size: 16px; line-height: 29px; }
@media (max-width: 640px) {
  .project-meta {
    display: block;
    grid-template-columns: none;
    gap: 0;
    text-align: left;
  }
  .project-meta dt { display: inline; font-weight: 700; }
  .project-meta dt::after { content: ': '; }
  .project-meta dd { display: inline; margin: 0; }
  .project-meta dd::after { content: '\A'; white-space: pre; }
}
.project-description {
  font-size: 16px;
  line-height: 29px;
  font-weight: 300;
  color: #2a2a2a;
}
.project-description p { margin-bottom: 1.2em; }

/* 2-up masonry gallery */
.project-gallery {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 40px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.project-gallery__col img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 700px) {
  .project-gallery { gap: 12px; padding: 20px 22px 56px; }
  .project-gallery__col { gap: 12px; }
}

.project-nav {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 32px 80px 80px;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .project-nav { padding: 24px 22px 24px; }
  .project-nav a span { display: none; }
  .project-nav a { gap: 0; }
}
.project-nav a {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #1d1d1d;
  transition: color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.project-nav a:hover { color: #6e6e6e; }
.project-nav__arrow { width: 32px; height: 32px; flex-shrink: 0; }
.project-nav__next { text-align: right; margin-left: auto; }

/* ---------- Journal — row-order grid ---------- */
.journal-intro {
  text-align: center;
  max-width: 1012px;
  margin: 88px auto 90px;
  padding: 0 22px;
}
.journal-intro h2 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 37px;
  line-height: 49px;
  font-weight: 500;
  letter-spacing: 0;
  color: #1d1d1d;
}
.journal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0 40px 100px;
}
@media (max-width: 900px) { .journal-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 22px 100px; } }
@media (max-width: 640px) {
  .journal-intro { margin: 44px auto 45px; }
  .journal-intro h2 { font-size: 27px; line-height: 36px; }
  .journal-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 22px 60px; }
}
.journal-gallery img {
  width: 100%;
  aspect-ratio: 427 / 320;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---------- Contact page success block ---------- */
.success-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 22px;
  text-align: center;
}
.success-block h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  margin-bottom: 24px;
}
.success-block p { font-size: 16px; color: #4a4a4a; margin-bottom: 32px; }
