/* ==========================================================================
   Dalel Foundation — site styles
   Brand colours are defined once in :root below. Change them there only.
   ========================================================================== */

:root {
  /* Brand — sampled from the Dalel Foundation logo */
  --green-deep:  #1d6127;   /* deep charity green  */
  --green:       #2e8a2e;   /* logo hand green     */
  --green-fresh: #55b94f;   /* fresh / light green */
  --green-pale:  #eaf4e8;
  --green-mist:  #f2f8f0;

  /* Logo accent colours — used sparingly */
  --accent-red:    #e11f2b;
  --accent-orange: #f5a11a;
  --accent-blue:   #159fdc;

  /* Neutrals */
  --white:    #ffffff;
  --cream:    #faf8f3;   /* very light warm off-white */
  --cream-2:  #f4f1ea;
  --charcoal: #23282b;
  --body:     #4d5659;
  --muted:    #6d7679;
  --line:     #e6e2d9;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 78px;
  --radius:   18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(35, 40, 43, .06);
  --shadow:    0 10px 30px rgba(35, 40, 43, .09);
  --shadow-lg: 0 20px 50px rgba(35, 40, 43, .14);

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

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { color: var(--charcoal); margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--green-fresh);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-deep); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- helpers */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 72px 0; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--green-fresh);
}
.section-head--center .eyebrow::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--green-fresh);
}

.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.section-lead { font-size: 18px; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(46, 138, 46, .28); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 97, 39, .34); }
.btn--outline { border: 2px solid var(--green); color: var(--green-deep); }
.btn--outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------- header */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(35, 40, 43, .08); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 17px; font-weight: 800; color: var(--green-deep);
  letter-spacing: .05em;
}
.brand__tag { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 10px 15px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; color: var(--charcoal);
  transition: color .2s var(--ease), background-color .2s var(--ease);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--green-fresh);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--green-deep); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-deep); }

.header__contact {
  display: none; flex: none;
  padding-left: 24px; margin-left: 4px;
  border-left: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5;
}
.header__contact a, .header__contact span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.header__contact a:hover { color: var(--green-deep); }
.header__contact svg { color: var(--green); flex: none; }

.hamburger {
  display: none; place-items: center;
  width: 46px; height: 46px; margin-left: auto;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--green-deep);
  transition: background-color .2s var(--ease);
}
.hamburger:hover { background: var(--green-mist); }
.hamburger__box { width: 20px; height: 14px; position: relative; }
.hamburger__box span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger__box span:nth-child(1) { top: 0; }
.hamburger__box span:nth-child(2) { top: 6px; }
.hamburger__box span:nth-child(3) { top: 12px; }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  max-height: 0; overflow: hidden;
  transition: max-height .38s var(--ease);
}
.mobile-nav.is-open { max-height: 520px; }
.mobile-nav__list { list-style: none; margin: 0; padding: 10px 24px 18px; }
.mobile-nav__list a {
  display: block; padding: 14px 4px; font-weight: 600; font-size: 16.5px;
  color: var(--charcoal); border-bottom: 1px solid var(--cream-2);
}
.mobile-nav__list a:hover { color: var(--green); }
.mobile-nav__contact { padding: 16px 24px 24px; background: var(--green-mist); font-size: 15px; }
.mobile-nav__contact div { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--body); }
.mobile-nav__contact svg { color: var(--green); flex: none; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - var(--header-h));
  max-height: 860px;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(14, 28, 18, .62) 0%,
      rgba(14, 28, 18, .40) 32%,
      rgba(12, 24, 16, .58) 72%,
      rgba(10, 20, 13, .82) 100%);
}

.hero__inner { text-align: center; padding: 60px 0; max-width: 900px; }

.hero__title {
  color: #fff;
  font-size: clamp(36px, 6.6vw, 74px);
  line-height: 1.06;
  letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  margin-bottom: 24px;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--green-fresh); }

.hero__lead {
  color: rgba(255, 255, 255, .93);
  font-size: clamp(17px, 2.1vw, 21px);
  max-width: 620px; margin: 0 auto 34px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.hero__sig {
  display: inline-block;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero__sig-name {
  display: block;
  font-size: 14px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: #fff; margin-bottom: 7px;
}
.hero__sig-motto {
  display: block;
  font-size: 15.5px; color: var(--green-fresh); font-weight: 600; font-style: italic;
  letter-spacing: .01em;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ----------------------------------------------------------------- about */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__body p { font-size: 17.5px; }

.about__est {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 32px; padding: 16px 26px 16px 20px;
  background: var(--green-mist); border: 1px solid var(--green-pale);
  border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about__est svg { color: var(--green); flex: none; }
.about__est-label {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.about__est-value { display: block; font-size: 21px; font-weight: 800; color: var(--green-deep); line-height: 1.3; }

.about__media { position: relative; }
.about__media img {
  /* `height: auto` is required — the img's height attribute would otherwise
     win over aspect-ratio and blow the box out to its intrinsic size. */
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__media::after {
  content: ""; position: absolute; z-index: -1;
  inset: 26px -26px -26px 26px;
  border: 2px solid var(--green-pale); border-radius: var(--radius);
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 72px; }
.value {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-mist); color: var(--green);
}
.value h3 { font-size: 18px; margin-bottom: 9px; }
.value p { font-size: 15.5px; color: var(--muted); }

/* ------------------------------------------------------------------ work */

.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
/* Nudge the visible part of a crop. Add to any card/gallery <img> whose
   subject sits low or high in the original photograph. */
.pos-low  { object-position: 50% 62% !important; }
.pos-high { object-position: 50% 32% !important; }
.card:hover .card__media img { transform: scale(1.06); }

/* Sits inside the media box — `.card__media` clips its overflow for the
   hover zoom, so the badge must stay within it. */
.card__icon {
  position: absolute; left: 18px; bottom: 18px;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px);
  color: var(--green);
  box-shadow: 0 6px 18px rgba(15, 25, 18, .28);
}
.card--red    .card__icon { color: var(--accent-red); }
.card--orange .card__icon { color: var(--accent-orange); }
.card--green  .card__icon { color: var(--green); }
.card--blue   .card__icon { color: var(--accent-blue); }

.card__body { padding: 26px 24px 28px; flex: 1; }
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__text { font-size: 15.5px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid--all { grid-template-columns: repeat(4, 1fr); }

.tile {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile:hover img { transform: scale(1.07); }

.tile__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 16, 0) 45%, rgba(12, 24, 16, .78) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
  display: flex; align-items: flex-end; padding: 18px;
}
.tile:hover .tile__veil, .tile:focus-visible .tile__veil { opacity: 1; }
.tile__caption {
  color: #fff; font-size: 14px; font-weight: 600; text-align: left;
  transform: translateY(8px); transition: transform .35s var(--ease);
  line-height: 1.45;
}
.tile:hover .tile__caption { transform: translateY(0); }

.gallery__more { text-align: center; margin-top: 48px; }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 44px;
}
.filter {
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 14.5px; font-weight: 600; color: var(--body);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--green-fresh); color: var(--green-deep); }
.filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.tile.is-hidden { display: none; }

/* --------------------------------------------------------------- contact */

.contact {
  background:
    radial-gradient(1100px 460px at 15% -10%, rgba(85, 185, 79, .22), transparent 60%),
    linear-gradient(160deg, var(--green-deep) 0%, #175121 55%, #123f19 100%);
  color: rgba(255, 255, 255, .84);
  padding: 96px 0;
}
.contact .section-title { color: #fff; }
.contact .eyebrow { color: var(--green-fresh); }
.contact .eyebrow::before, .contact .eyebrow::after { background: var(--green-fresh); }
.contact .section-lead { color: rgba(255, 255, 255, .8); }

.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 8px;
}
.contact__card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.contact__card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); }
.contact__icon {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.contact__label {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-fresh); margin-bottom: 8px;
}
.contact__value { font-size: 17.5px; font-weight: 600; color: #fff; word-break: break-word; }
a.contact__value:hover { color: var(--green-fresh); }

.contact__social { display: flex; justify-content: center; gap: 14px; margin-top: 44px; }
.contact__social a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.contact__social a:hover { background: var(--green-fresh); transform: translateY(-3px); }

/* ---------------------------------------------------------------- footer */

.footer { background: #1a1e20; color: rgba(255, 255, 255, .62); padding: 56px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center;
  padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand img { height: 48px; width: auto; }
.footer__brand-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .05em; line-height: 1.25; }
.footer__brand-motto { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

.footer__nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.footer__nav li + li::before { content: "|"; color: rgba(255, 255, 255, .22); padding: 0 4px; }
.footer__nav a { padding: 6px 14px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .75); transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--green-fresh); }

.footer__meta { text-align: right; font-size: 14px; }
.footer__meta a { color: rgba(255, 255, 255, .75); }
.footer__meta a:hover { color: var(--green-fresh); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 26px;
  text-align: center; font-size: 14px;
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 12, .94);
  display: none; place-items: center;
  padding: 5vmin;
  opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox.is-open { display: grid; }
.lightbox.is-visible { opacity: 1; }

.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 76vh; width: auto; margin: 0 auto;
  border-radius: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.lightbox__caption {
  color: rgba(255, 255, 255, .82); font-size: 15px; margin-top: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.lightbox__count { font-size: 13px; color: rgba(255, 255, 255, .5); letter-spacing: .08em; }

.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(85, 185, 79, .85); }
.lightbox__btn--prev { left: 3vmin; }
.lightbox__btn--next { right: 3vmin; }
.lightbox__close {
  position: absolute; top: 3vmin; right: 3vmin;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s var(--ease);
}
.lightbox__close:hover { background: rgba(225, 31, 43, .8); }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------- page banner --- */

.page-banner {
  position: relative; isolation: isolate;
  padding: 96px 0 84px;
  text-align: center;
  overflow: hidden;
}
.page-banner img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 28, 18, .72), rgba(11, 22, 15, .86));
}
.page-banner h1 { color: #fff; font-size: clamp(32px, 5vw, 50px); margin-bottom: 14px; }
.page-banner p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto; font-size: 17.5px; }
.page-banner .eyebrow { color: var(--green-fresh); }
.page-banner .eyebrow::before, .page-banner .eyebrow::after { background: var(--green-fresh); }

/* ------------------------------------------------------------- animation */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive */

@media (min-width: 1280px) {
  .header__contact { display: block; }
}

@media (max-width: 1080px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--all { grid-template-columns: repeat(3, 1fr); }
  .about__grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav { display: none; }
  .hamburger { display: grid; }
  .mobile-nav { display: block; }

  .section { padding: 72px 0; }
  .contact { padding: 72px 0; }

  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__media { order: -1; max-width: 520px; }
  .about__media img { aspect-ratio: 4 / 3; }
  .about__media::after { display: none; }

  .values { grid-template-columns: 1fr; margin-top: 52px; }

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

  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .footer__brand { justify-content: center; }
  .footer__meta { text-align: center; }

  .hero { height: auto; min-height: 0; max-height: none; padding: 96px 0 104px; }
  .brand__mark { height: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }

  .work__grid { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid, .gallery-grid--all { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .brand__tag { display: none; }
  .brand__name { font-size: 15px; }

  .hero { padding: 76px 0 84px; }
  .hero__inner { padding: 0; }

  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
  .lightbox__img { max-height: 66vh; }

  .footer__nav li::before { display: none; }
  .footer__nav ul { flex-direction: column; gap: 2px; }
}

@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; }
}
