/* =========================================================
   Cəmil Məmmədov — Memar & Mühəndis
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --canvas:      #FAF9F7;
  --canvas-alt:  #F2F0EC;
  --ink:         #1A1A1A;
  --ink-soft:    #4A4844;
  --stone:       #8A8578;
  --line:        #E2DED7;
  --bronze:      #9A7B4F;
  --bronze-lt:   #C0A277;
  --dark:        #141312;
  --dark-2:      #1F1D1B;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sect-y: clamp(4.5rem, 10vw, 9rem);
  --nav-h: 74px;

  --r-sm: 4px;
  --r-md: 8px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* `hidden` must beat any author `display` we set on these elements
   (.lb, .lb__nav, .about__placeholder all declare a display value). */
[hidden] { display: none !important; }

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.section { padding-block: var(--sect-y); }
.section--alt { background: var(--canvas-alt); }
.section--dark { background: var(--dark); color: #EDEAE4; }
.section--dark .eyebrow { color: var(--bronze-lt); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -.015em; }
.section__lead {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.section--dark .section__lead { color: #B8B2A8; }

.col__title {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--line);
}
.col__title--gap { margin-top: 3rem; }
.col__title--light {
  border-color: rgba(255,255,255,.14);
  color: #fff;
  margin-top: 3.5rem;
}
.col__title--light:first-of-type { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.75rem;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--bronze); color: #fff; }
.btn--solid:hover { background: #86693F; }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.nav__mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--bronze-lt);
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  transition: color .3s var(--ease);
}
.nav__brandtext { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nav__brandtext strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.0625rem;
  color: #fff;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__brandtext small {
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
  transition: color .3s var(--ease);
}

.nav__menu ul { display: flex; align-items: center; gap: 2rem; }
.nav__menu a {
  position: relative;
  font-size: .9375rem;
  color: rgba(255,255,255,.82);
  padding-block: .5rem;
  transition: color .25s var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bronze-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__menu a:hover,
.nav__menu a.is-active { color: #fff; }
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }

.nav__cta {
  padding: .55rem 1.15rem !important;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: var(--r-sm);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(250,249,247,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__brandtext strong { color: var(--ink); }
.nav.is-scrolled .nav__brandtext small { color: var(--stone); }
.nav.is-scrolled .nav__mark { color: var(--bronze); }
.nav.is-scrolled .nav__menu a { color: var(--ink-soft); }
.nav.is-scrolled .nav__menu a:hover,
.nav.is-scrolled .nav__menu a.is-active { color: var(--ink); }
.nav.is-scrolled .nav__menu a::after { background: var(--bronze); }
.nav.is-scrolled .nav__cta { border-color: var(--line); color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }

/* hamburger */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 96;            /* .nav__menu (95) açılanda bağla düyməsi üstdə qalsın */
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-right: -8px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), width .3s var(--ease), background .3s var(--ease);
}
.nav__toggle span:nth-child(1) { width: 26px; }
.nav__toggle span:nth-child(2) { width: 20px; }
.nav__toggle span:nth-child(3) { width: 26px; }
.nav.is-scrolled .nav__toggle span,
.nav.is-open .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle span:nth-child(1) { width: 26px; transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { width: 26px; transform: translateY(-7.5px) rotate(-45deg); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20,19,18,.45);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav__scrim.is-shown { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,19,18,.72) 0%, rgba(20,19,18,.34) 30%, rgba(20,19,18,.52) 68%, rgba(20,19,18,.86) 100%),
    linear-gradient(90deg, rgba(20,19,18,.62) 0%, rgba(20,19,18,.05) 62%);
}
.hero__content {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) var(--pad) 7rem;
  color: #fff;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-lt);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(3rem, 1.6rem + 6.5vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.025em;
  font-weight: 400;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.5rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2.25rem;
  transform: translateX(-50%);
  width: 44px; height: 60px;
  display: grid; place-items: center;
}
.hero__scrollline {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.85));
  animation: scrollcue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ---------- Haqqımda ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--canvas-alt);
  border-radius: var(--r-md);
  overflow: hidden;
}
.about__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  pointer-events: none;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #EFEBE4, #E3DDD2);
}
.about__placeholder span {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: .06em;
  color: var(--bronze);
  opacity: .55;
}

.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.about__body p + p { margin-top: 1.125rem; color: var(--ink-soft); }
.about__body strong { font-weight: 600; color: var(--ink); }

.chips { margin-top: 2rem; }
/* mətndən sonra gələn ilk qrup üçün bir az daha çox boşluq */
.chips--first { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.chips__label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .875rem;
}
.chips__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips__list li {
  padding: .45rem 1rem;
  font-size: .875rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats li {
  background: var(--canvas);
  padding: 1.75rem 1rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Timeline ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
}
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: .55rem; bottom: .55rem;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.75rem; top: .5rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--canvas-alt);
  border: 1px solid var(--stone);
}
.timeline__item.is-current::before {
  background: var(--bronze);
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(154,123,79,.18);
}
.timeline__date {
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .35rem;
}
.timeline__role { font-size: 1.125rem; margin-bottom: .25rem; }
.timeline__org { color: var(--ink-soft); font-size: .9375rem; }

.services li {
  position: relative;
  padding: .625rem 0 .625rem 1.5rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.services li:last-child { border-bottom: 0; }
.services li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 6px; height: 1px;
  background: var(--bronze);
}

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.25rem;
}
.filters__btn {
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: .875rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.filters__btn:hover { border-color: var(--bronze); color: var(--bronze); }
.filters__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(.625rem, 1.4vw, 1rem);
}
.gallery__item.is-hidden { display: none; }
.gallery__item.is-wide { grid-column: span 2; }

.gallery__btn {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--canvas-alt);
}
.gallery__item.is-portrait .gallery__btn { aspect-ratio: 3 / 4; }
.gallery__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,19,18,.62));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery__tag {
  position: absolute;
  left: .875rem; bottom: .875rem;
  z-index: 2;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__btn:hover img,
.gallery__btn:focus-visible img { transform: scale(1.05); }
.gallery__btn:hover::after,
.gallery__btn:focus-visible::after { opacity: 1; }
.gallery__btn:hover .gallery__tag,
.gallery__btn:focus-visible .gallery__tag { opacity: 1; transform: translateY(0); }

.gallery__empty { padding: 3rem 0; color: var(--stone); text-align: center; }

/* ---------- Video ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  margin-top: 1.75rem;
}
/* 4 YouTube renderi — 2x2 şəbəkə, sətirdə tək qalan olmasın */
@media (min-width: 861px) {
  .videos--yt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.video {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--dark-2);
  aspect-ratio: 16 / 9;
}
.video video,
.video iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.video video { object-fit: cover; background: #000; }
.video.is-tall video { object-fit: contain; }

.video__play {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}
.video__play img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.video__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,19,18,.32);
  transition: background .3s var(--ease);
}
.video__play:hover::before { background: rgba(20,19,18,.18); }
.video__play:hover img { transform: scale(1.04); }

.video__icon {
  position: relative;
  z-index: 2;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video__icon::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}
.video__play:hover .video__icon { transform: scale(1.09); background: #fff; }
.video--file .video__play--overlay { background: transparent; }

/* ---------- Contact ---------- */
.section--contact { background: var(--dark); color: #EDEAE4; }
.section--contact .eyebrow { color: var(--bronze-lt); }
.section--contact .section__lead { color: #B8B2A8; }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  min-height: 130px;
  background: var(--dark);
  transition: background .25s var(--ease);
}
.contact__card:hover { background: var(--dark-2); }
.contact__label {
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-lt);
}
.contact__value {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem);
  color: #fff;
  overflow-wrap: anywhere;
}
/* e-poçt uzundur — domeni ortadan qırmamaq üçün bir az kiçildilir */
.contact__value--mail {
  font-size: clamp(.9375rem, .85rem + .35vw, 1.0625rem);
  letter-spacing: -.01em;
}

/* ---------- Footer ---------- */
.footer {
  background: #0E0D0C;
  color: rgba(237,234,228,.62);
  padding-block: 2.25rem;
  font-size: .875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer__name { font-family: var(--serif); color: #fff; }
.footer__name span { color: rgba(237,234,228,.55); font-size: .875rem; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,9,8,.985);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.lb.is-open { opacity: 1; }

.lb__figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lb__figure img {
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lb__caption {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.lb__caption #lbTag { color: var(--bronze-lt); }

.lb__close,
.lb__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.09);
  border-radius: 50%;
  transition: background .25s var(--ease);
}
.lb__close:hover,
.lb__nav:hover { background: rgba(255,255,255,.22); }

.lb__close {
  top: clamp(.75rem, 2.5vw, 1.75rem);
  right: clamp(.75rem, 2.5vw, 1.75rem);
  width: 48px; height: 48px;
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 4px;
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2.1rem;
  line-height: 1;
  padding-bottom: 6px;
}
.lb__nav--prev { left: clamp(.5rem, 2vw, 1.75rem); }
.lb__nav--next { right: clamp(.5rem, 2vw, 1.75rem); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { max-width: 26rem; }
  .about__frame { aspect-ratio: 3 / 2; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .col__title--gap { margin-top: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__toggle { display: flex; }
  .nav__brandtext small { display: none; }

  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    z-index: 95;
    width: min(84vw, 340px);
    height: 100svh;
    padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
    background: var(--canvas);
    box-shadow: -12px 0 40px rgba(0,0,0,.14);
    transform: translateX(102%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__menu ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu a {
    display: block;
    padding: 1.05rem 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--ink);
  }
  .nav__menu a::after { display: none; }
  .nav__menu a.is-active { color: var(--bronze); }
  .nav__cta {
    margin-top: 1.5rem;
    text-align: center;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    padding: .95rem 1.15rem !important;
  }
  .nav__menu li:last-child { border-bottom: 0; }

  /* keep header text readable while the drawer is open */
  .nav.is-open .nav__brandtext strong { color: var(--ink); }
  .nav.is-open .nav__mark { color: var(--bronze); }

  .hero { min-height: 92svh; }
  .hero__content { padding-bottom: 5.5rem; }
  .hero__actions .btn { flex: 1 1 auto; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item.is-wide { grid-column: span 2; }

  .videos { grid-template-columns: 1fr; }

  .lb__nav { width: 46px; height: 46px; font-size: 1.8rem; }
  .lb__figure img { max-height: calc(100svh - 12rem); }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; gap: .625rem; }
  .gallery__item.is-wide { grid-column: span 1; }
  .gallery__btn { aspect-ratio: 3 / 2; }
  .gallery__item.is-portrait .gallery__btn { aspect-ratio: 3 / 4; }
  .stats { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scrollline { animation: none; opacity: .7; }
}

@media print {
  .nav, .hero__scroll, .filters, .video, .lb, .nav__scrim { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .section--contact { background: #fff; color: #000; }
  .contact__value, .footer__name { color: #000; }
}
