/* ===========================================================
   ESTATE 2000 CONSOLIDATED LTD — Stylesheet
   Design tokens
   =========================================================== */
:root {
  --ink:        #16150F;
  --ink-soft:   #2B2A22;
  --paper:      #F3F0E7;
  --paper-dim:  #E9E4D5;
  --gold:       #D9A441;
  --gold-deep:  #B9822A;
  --navy:       #1B2A4A;
  --navy-soft:  #24365C;
  --line:       #cfc9b5;
  --line-dark:  #3c3b32;
  --ok:         #4C7A4E;

  --font-display: "Fraunces", Georgia, serif;
  --font-num:     "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --nav-h: 76px;
  --container: 1240px;
  --edge: clamp(16px, 5vw, 72px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Faint blueprint grid, fixed behind everything */
.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.05;
}

/* ===========================================================
   Navigation
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(243, 240, 231, 0.92);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.nav__inner {
  min-width: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--paper);
  transition: color .35s var(--ease);
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__mark { display: flex; color: var(--gold); }
.nav__brand-text {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
}
.nav__links {
  display: flex;
  gap: 30px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  position: relative;
  padding: 4px 0;
  transition: color .35s var(--ease);
}
.nav.is-scrolled .nav__link { color: var(--ink-soft); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-current { color: var(--gold); }
.nav__link.is-current::after { width: 100%; }
.nav__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--gold); color: var(--ink); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  justify-content: center;
  z-index: 200;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-active span { background: var(--ink); }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--edge);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 34px; }
.mobile-menu__contact {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  width: 100%;
  min-width: 0;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  overflow: hidden;
  background: var(--ink);
}
.hero__panel {
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 40px) var(--edge) 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--paper);
}
.hero__rc { color: var(--gold); font-size: 22px; margin-bottom: 30px; }
.hero__mark { color: var(--gold); margin-bottom: 22px; }
.hero__title {
  font-size: clamp(56px, 9vw, 108px);
  line-height: .92;
  font-weight: 500;
  overflow: hidden;
}
.hero__title--accent { color: var(--gold); display: block; }
.hero__subtitle {
  margin-top: 1px;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 298px);
  letter-spacing: .04em;
}
.hero__tagline {
  margin-top: 10px;
  color: #C9C4B0;
  font-size: 12px;
}
.hero__cta {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 15px 26px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.hero__cta svg { transition: transform .3s var(--ease); }
.hero__cta:hover { background: #fff; transform: translateY(-2px); }
.hero__cta:hover svg { transform: translateY(2px); }

.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp .8s var(--ease) forwards;
}
.hero__title .reveal-line:nth-child(1) { animation-delay: .15s; }
.hero__title .reveal-line:nth-child(2) { animation-delay: .3s; }
.hero__subtitle { animation-delay: .45s; }
.hero__tagline { animation-delay: .55s; }
.hero__cta { animation-delay: .7s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__media {
  position: relative;
  min-height: 100%;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute ;
  inset: 0;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(22,21,15,.55) 30%, rgba(22,21,15,.05) 65%);
}
.hero__coords {
  position: absolute;
  right: var(--edge);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--paper);
  font-size: 11px;
}
.hero__dots { color: var(--gold); letter-spacing: 4px; }

/* ===========================================================
   Section shells
   =========================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 110px var(--edge);
}
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--paper); }
.section > * { max-width: var(--container); margin-left: auto; margin-right: auto; min-width: 0; width: 100%; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.section--dark .section__head { border-color: var(--line-dark); }
.section__index {
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--gold);
  font-weight: 700;
}
.section__title {
  font-size: clamp(32px, 4vw, 48px);
}
.section__note {
  min-width: 0;
  margin-left: auto;
  font-size: 11px;
  color: #8a8672;
}
.section--dark .section__note { color: #8b8a80; }

/* ===========================================================
   About / Timeline
   =========================================================== */
.timeline { display: flex; flex-direction: column; }
.timeline__item {
  display: grid;
  grid-template-columns: 120px 2px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__item.is-visible { opacity: 1; transform: translateY(0); }
.timeline__year {
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
}
.timeline__bar {
  background: var(--gold);
  width: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s var(--ease) .15s;
}
.timeline__item.is-visible .timeline__bar { transform: scaleY(1); }
.timeline__text { font-size: 17px; max-width: 640px; color: var(--ink-soft); align-self: center; }

/* ===========================================================
   Vision & Mission
   =========================================================== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  border: 1px solid var(--line-dark);
  padding: 44px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s var(--ease);
}
.vm-card.is-visible { opacity: 1; transform: translateY(0); }
.vm-card:hover { border-color: var(--gold); }
.vm-card__label {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  margin-bottom: 24px;
}
.vm-card__text {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 400;
}
.vm-card--accent { background: var(--navy); border-color: var(--navy); }
.vm-card--accent:hover { border-color: var(--gold); }

/* ===========================================================
   Values
   =========================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--paper);
  padding: 40px 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), background .3s var(--ease);
}
.value-card.is-visible { opacity: 1; transform: translateY(0); }
.value-card:hover { background: var(--paper-dim); }
.value-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  margin-bottom: 24px;
}
.value-card__title {
  font-size: 21px;
  margin-bottom: 14px;
}
.value-card__text {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ===========================================================
   Services
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.service-card {
  background: var(--ink);
  padding: 34px 26px 44px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s var(--ease);
}
.service-card.is-visible { opacity: 1; transform: translateY(0); }
.service-card:hover { background: var(--navy-soft); }
.service-card__num { color: var(--gold); font-size: 13px; }
.service-card h3 { font-size: 18px; line-height: 1.3; font-weight: 400; margin-top: 20px; }

/* ===========================================================
   Projects
   =========================================================== */
.project {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.project.is-visible { opacity: 1; transform: translateY(0); }
.project--reverse { direction: rtl; }
.project--reverse > * { direction: ltr; }
.project__media { overflow: hidden; }
.project__media img {
  width: 100%; height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__body {
  min-width: 0;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--paper);
}
.project__year { color: var(--gold-deep); font-size: 11px; }
.project__title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}
.project__title span {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
  color: #85806c;
  margin-top: 8px;
}
.project__text { color: var(--ink-soft); font-size: 15.5px; max-width: 46ch; }
.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  font-weight: 600;
}
.badge--completed { background: var(--ink); color: var(--paper); }
.badge--ongoing { background: var(--gold); color: var(--ink); }
.badge--selling { background: var(--navy); color: #fff; }

/* ===========================================================
   Gallery
   =========================================================== */
.gallery-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.gallery-filter {
  padding: 9px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfcbbd;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.gallery-filter:hover { border-color: var(--gold); }
.gallery-filter.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translateY(20px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  min-width: 0;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,9,6,.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(88vw, 900px); max-height: 72vh; object-fit: contain; border: 1px solid var(--line-dark); }
.lightbox__caption { color: var(--gold); margin-top: 18px; font-size: 11px; }
.lightbox__close {
  position: absolute; top: 24px; right: var(--edge);
  font-size: 34px; color: var(--paper); line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 40px; color: var(--paper);
  padding: 10px 16px;
  transition: color .3s var(--ease);
}
.lightbox__nav:hover { color: var(--gold); }
.lightbox__nav--prev { left: var(--edge); }
.lightbox__nav--next { right: var(--edge); }

/* ===========================================================
   Team
   =========================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.team-card.is-visible { opacity: 1; transform: translateY(0); }
.team-card__photo {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s var(--ease); }
.team-card:hover .team-card__photo img { filter: grayscale(0); }
.team-card__name { font-size: 19px; margin-bottom: 4px; }
.team-card__role { font-size: 11px; color: var(--gold-deep); }

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  transition: color .3s var(--ease);
}
a.contact-line:hover { color: var(--gold); }
.contact-line svg { flex-shrink: 0; color: var(--gold); }
.contact-line--address { align-items: flex-start; }
.contact-line--address svg { margin-top: 3px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__note { font-size: 11px; color: #8b8a80; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #cfcbbd; }
.field input, .field textarea {
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.btn-primary {
  margin-top: 6px;
  padding: 15px 26px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
  width: fit-content;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.contact-form__status { font-size: 13px; color: var(--gold); min-height: 18px; }
.contact-form__status.is-error { color: #ff6b6b; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary:disabled:hover { background: var(--gold); transform: none; }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: #100F0B;
  color: var(--paper);
  padding: 64px var(--edge) 26px;
  position: relative;
  z-index: 1;
}
.footer__top {
  min-width: 0;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__brand .nav__mark { color: var(--gold); }
.footer__name { font-family: var(--font-num); font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.footer__tag { font-family: var(--font-mono); font-size: 11px; color: #a19d8c; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__links a { transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--gold); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #cfcbbd; }
.footer__contact a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 11px;
  color: #74715f;
  flex-wrap: wrap;
  gap: 10px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { position: absolute; inset: 0; z-index: 0; }
  .hero__scrim { background: linear-gradient(180deg, rgba(22,21,15,.35) 0%, rgba(22,21,15,.85) 65%, var(--ink) 100%); }
  .hero__panel { grid-column: 1; padding-top: calc(var(--nav-h) + 30px); min-height: 100svh; justify-content: flex-end; padding-bottom: 90px; }
  .hero__coords { left: var(--edge); right: var(--edge); justify-content: space-between; }

  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .project, .project--reverse { grid-template-columns: 1fr; direction: ltr; }
  .project__media img { min-height: 260px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .vm-grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 70px 2px 1fr; gap: 18px; }
  .timeline__year { font-size: 28px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 80px var(--edge); }
  .section__head { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 15vw; }
  .lightbox__nav { font-size: 30px; padding: 6px 10px; }
  .lightbox__close { top: 16px; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ===========================================================
   More Images — collapsed full photo collection
   =========================================================== */
.more-images-section {
  border-top: 1px solid var(--line-dark);
}
.more-images__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}
.more-images__intro > p {
  max-width: 62ch;
  color: #cfcbbd;
  font-size: 15px;
}
.more-images__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.more-images__toggle:hover { background: #fff; transform: translateY(-2px); }
.more-images__toggle svg { transition: transform .3s var(--ease); }
.more-images__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.more-images__content {
  padding-top: 30px;
}
.more-images__content[hidden] { display: none; }
.more-images__grid .gallery-item {
  aspect-ratio: 1 / 1;
}
.more-gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

/* Small-screen hardening: prevents narrow screens from creating horizontal overflow. */
.nav__inner,
.hero,
.section,
.section > *,
.section__head,
.timeline,
.vm-grid,
.values-grid,
.services-grid,
.project,
.gallery-grid,
.team-grid,
.contact-grid,
.footer__top,
.footer__bottom {
  min-width: 0;
}

.section__head > * { min-width: 0; }
.section__note { overflow-wrap: anywhere; }
.contact-line span,
.footer__contact,
.footer__contact a { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 1024px) {
  .hero__media img { object-position: center center; }
  .more-images__intro { align-items: flex-start; }
}

@media (max-width: 860px) {
  .hero__panel { padding-left: var(--edge); padding-right: var(--edge); }
  .section__head { gap: 12px 16px; }
  .section__note { flex: 1 1 100%; margin-left: 0; }
  .more-images__intro { flex-direction: column; align-items: stretch; gap: 18px; }
  .more-images__toggle { width: 100%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .section { padding: 72px var(--edge); }
  .hero { min-height: 100svh; }
  .hero__panel {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 110px;
  }
  .hero__title { font-size: clamp(48px, 16vw, 78px); line-height: .9; }
  .hero__rc { font-size: 17px; margin-bottom: 22px; }
  .hero__mark { margin-bottom: 16px; }
  .hero__subtitle { font-size: clamp(17px, 5vw, 22px); }
  .hero__tagline { font-size: 10px; }
  .hero__cta { margin-top: 30px; max-width: 100%; }
  .hero__coords { bottom: 20px; font-size: 9px; gap: 10px; }
  .hero__dots { letter-spacing: 2px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-filter { max-width: 100%; }
  .gallery-filter { white-space: normal; text-align: center; }
  .more-images__intro > p { font-size: 14px; }
  .more-images__content { padding-top: 20px; }
  .lightbox { padding: 72px 16px 40px; }
  .lightbox__img { max-width: 94vw; max-height: 68vh; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__caption { max-width: 86vw; text-align: center; line-height: 1.5; }
  .contact-line { font-size: 15px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .nav__inner { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .nav__brand-text { font-size: 17px; }
  .nav__mark svg { width: 24px; height: 24px; }
  .nav__toggle { width: 28px; }
  .hero__coords span:first-child { max-width: 68%; }
  .hero__coords { align-items: flex-end; }
}
