/* ============================================================
   STATUSPROEKT.RU — landing styles v4
   ============================================================ */

:root {
  --c-ink:        #0E0E0E;
  --c-ink-2:      #1A1A1A;
  --c-paper:      #F4F1EA;
  --c-paper-2:    #ECE7DC;
  --c-paper-3:    #FFFFFF;
  --c-line:       #2B2B2B;
  --c-accent:     #B85C38;
  --c-accent-2:   #8E4527;
  --c-muted:      #8A857A;
  --c-white:      #FFFFFF;

  --f-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --pad-x: clamp(20px, 5vw, 80px);
  --max-w: 1600px;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-med:  0.5s;
  --t-slow: 0.9s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--c-accent); color: var(--c-paper); }

/* ============================================================
   Скролл-прогресс
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: rgba(0,0,0,0.05);
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--c-accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  color: var(--c-paper);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0) 100%);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
  z-index: -1;
}

.site-header.is-scrolled {
  background: rgba(14,14,14,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--pad-x);
  color: var(--c-paper);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__img { width: 36px; height: 36px; object-fit: contain; }
.logo__text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--f-display); font-weight: 500; letter-spacing: 0.02em;
}
.logo__line1 { font-size: 13px; opacity: 0.7; }
.logo__line2 { font-size: 16px; margin-top: 3px; }

.nav { display: flex; gap: 36px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; transition: opacity var(--t-fast); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: currentColor; transition: right var(--t-med) var(--ease);
}
.nav a:hover::after { right: 0; }

.header-phone { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 14px; letter-spacing: 0.04em; }
.header-phone__num { font-family: var(--f-display); font-weight: 500; }
.header-phone__label { font-size: 11px; text-transform: uppercase; opacity: 0.6; margin-top: 2px; }

.burger {
  display: none; background: transparent; border: 0;
  width: 32px; height: 32px; padding: 0;
  flex-direction: column; justify-content: center; gap: 5px; color: inherit;
}
.burger span {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--c-ink); color: var(--c-paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; font-family: var(--f-display); font-size: 28px; font-weight: 400;
  letter-spacing: 0.02em; opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__phone { margin-top: 24px; font-size: 20px; color: var(--c-accent); }

/* ============================================================
   HERO — только рендеры, без текста
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--c-ink);
}

.hero__slider { position: absolute; inset: 0; }

.hero__slide {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease), transform 8s linear;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__dots {
  position: absolute;
  right: var(--pad-x);
  bottom: 50%;
  transform: translateY(50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__dot {
  width: 32px; height: 1px;
  background: transparent;
  border: 0;
  padding: 12px 0;
  position: relative;
  cursor: pointer;
}
.hero__dot::before {
  content: '';
  position: absolute;
  inset: 12px 0;
  background: rgba(255,255,255,0.55);
  transition: background var(--t-fast);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.hero__dot.is-active::before { background: var(--c-accent); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px; height: 56px;
  background: rgba(255,255,255,0.4);
}
.hero__scroll span {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px; height: 18px;
  background: var(--c-paper);
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(0);     opacity: 1; }
  70%  { transform: translateY(38px);  opacity: 0.2; }
  100% { transform: translateY(38px);  opacity: 0; }
}

/* ============================================================
   Заголовки секций
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px clamp(40px, 8vw, 120px);
  align-items: end;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad-x) clamp(40px, 6vw, 64px);
}
.section-head__num {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-accent);
  letter-spacing: 0.12em;
  align-self: center;
  grid-row: 1;
}
.section-head__title {
  grid-column: 1 / -1;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head__sub {
  grid-column: 2;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  max-width: 560px;
  color: var(--c-muted);
  margin: 12px 0 0;
}
.section-head--light .section-head__sub { color: rgba(244,241,234,0.65); }
.section-head--light { color: var(--c-paper); }

/* ============================================================
   НАПРАВЛЕНИЯ — плитки
   ============================================================ */
.directions {
  position: relative;
  padding-bottom: clamp(60px, 8vw, 120px);
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--c-ink);
  color: var(--c-paper);
  cursor: pointer;
  isolation: isolate;
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;
}
.tile:hover .tile__img { transform: scale(1.06); }

.tile__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0) 30%, rgba(14,14,14,0.85) 100%);
  transition: opacity var(--t-med) var(--ease);
  z-index: 1;
}
.tile:hover .tile__overlay { opacity: 0.7; }

.tile__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
}
.tile__num {
  position: absolute;
  top: clamp(20px, 2.5vw, 36px);
  left: clamp(24px, 3vw, 44px);
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--c-accent);
}
.tile__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  white-space: nowrap;
}
.tile__more {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t-med) var(--ease);
}
.tile:hover .tile__more { opacity: 1; transform: translateY(0); }

/* ============================================================
   О НАС
   ============================================================ */
.about {
  background: var(--c-paper-2);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.about__side { position: sticky; top: 110px; align-self: start; }

.about__big {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(120px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  margin: 0;
  position: relative;
  white-space: nowrap;
}
.about__big span {
  color: var(--c-accent);
  font-size: 0.5em;
  vertical-align: 0.4em;
  margin-left: 0.04em;
  font-weight: 300;
}
.about__big-label {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 24px;
  max-width: 240px;
}

.about__facts {
  list-style: none;
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(14,14,14,0.12);
}
.about__facts li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(14,14,14,0.08);
  font-size: 15px;
}
.about__facts span {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.about__text { font-size: clamp(16px, 1.1vw, 18px); line-height: 1.7; max-width: 720px; }
.about__lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
}
.about__lead em {
  /* italic убран по правке заказчика */
  color: var(--c-accent);
  font-style: normal;
  font-weight: 400;
}
.about__text p { margin: 0 0 24px; color: #2A2A2A; }
.about__outro {
  margin-top: 40px !important;
  padding-top: 32px;
  border-top: 1px solid rgba(14,14,14,0.12);
  font-family: var(--f-display);
  font-style: normal; /* italic убран */
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: var(--c-ink) !important;
}

/* ============================================================
   КОНТАКТЫ — светлый фон (правка)
   ============================================================ */
.contacts {
  background: var(--c-paper);
  color: var(--c-ink);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.contacts .section-head { color: var(--c-ink); }
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(14,14,14,0.12);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid rgba(14,14,14,0.12);
  border-bottom: 1px solid rgba(14,14,14,0.12);
}
.contacts__grid > * { background: var(--c-paper); }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 48px);
  transition: background var(--t-med) var(--ease);
}
.contact-card:not(.contact-card--static):hover {
  background: var(--c-paper-2);
}
.contact-card__label {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.contact-card__value {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.contact-card__hint {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: auto;
  padding-top: 16px;
}

/* ============================================================
   ФУТЕР — светлый (правка заказчика)
   ============================================================ */
.site-footer {
  background: var(--c-paper);
  color: var(--c-ink);
  border-top: 1px solid rgba(14,14,14,0.1);
  font-size: 13px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}
.site-footer__logo { width: 32px; height: 32px; object-fit: contain; }
.site-footer__meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  color: var(--c-ink);
}
.site-footer__meta a { opacity: 0.75; }
.site-footer__meta a:hover { opacity: 1; color: var(--c-accent); }
.site-footer__copy { text-align: right; opacity: 0.55; }

/* ============================================================
   LIGHTBOX — светлая палитра
   ============================================================ */
.gallery {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--c-paper);
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.gallery[hidden] { display: none; }
.gallery.is-open { opacity: 1; pointer-events: auto; }

.gallery__head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad-x);
  padding-right: 80px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  background: var(--c-paper);
  border-bottom: 1px solid rgba(14,14,14,0.08);
}
.gallery__back {
  background: transparent;
  border: 1px solid rgba(14,14,14,0.3);
  color: var(--c-ink);
  padding: 8px 14px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery__back span { font-size: 16px; line-height: 1; }
.gallery__back:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-paper);
}
.gallery__back[hidden] { display: none; }

.gallery__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
  flex: 0 1 auto;
  color: var(--c-ink);
}
.gallery__counter {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  white-space: nowrap;
}

.gallery__close {
  position: absolute;
  top: 16px;
  right: var(--pad-x);
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(14,14,14,0.3);
  color: var(--c-ink);
  font-size: 16px;
  transition: all var(--t-fast);
  z-index: 6;
}
.gallery__close:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-paper);
}

/* ─── ВИД 1: сетка проектов ─── */
.gallery__projects {
  flex: 1;
  overflow-y: auto;
  padding: 24px var(--pad-x) 60px;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,14,14,0.2) transparent;
}
.gallery__projects[hidden] { display: none; }

.gallery__projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Карточка проекта: реальный <img> внутри (никаких полос background) */
.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #E0DDD4;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  color: var(--c-paper);
  text-align: left;
  opacity: 0;
  animation: card-in 0.6s var(--ease-out) forwards;
  font-family: inherit;
  display: block;
}
.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0) 40%, rgba(14,14,14,0.85) 100%);
  transition: opacity var(--t-med) var(--ease);
  z-index: 1;
}
.project-card:hover .project-card__overlay { opacity: 0.7; }

.project-card__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  z-index: 2;
}
.project-card__num {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}
.project-card__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--c-paper);
}
.project-card__count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244,241,234,0.75);
}

/* ─── ВИД 2: страница проекта (описание + лента фото вертикально) ─── */
.gallery__project {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,14,14,0.2) transparent;
}
.gallery__project[hidden] { display: none; }

.project-page {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px) var(--pad-x) clamp(80px, 10vw, 140px);
}

.project-page__meta {
  position: sticky;
  top: 24px;
  align-self: start;
}
.project-page__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--c-ink);
}
.project-page__meta-line {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 8px;
}
.project-page__meta-line strong {
  color: var(--c-ink);
  font-weight: 500;
  margin-left: 6px;
}

.project-page__body { min-width: 0; }

.project-page__desc {
  margin: 0 0 clamp(40px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(14,14,14,0.1);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: #2A2A2A;
  max-width: 720px;
}
.project-page__desc:empty { display: none; }

.project-page__desc-head {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 20px;
}
.project-page__desc p { margin: 0 0 16px; }
.project-page__desc p:last-child { margin-bottom: 0; }

.project-page__photos {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
}
.project-page__photo {
  position: relative;
  width: 100%;
  background: #E5E2DA;
  overflow: hidden;
}
.project-page__photo img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

body.is-locked { overflow: hidden; }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .site-header { background: rgba(14,14,14,0.6); backdrop-filter: blur(10px); }
  .header-phone { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; }
  .about__big { font-size: clamp(96px, 30vw, 200px); }

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

  .site-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .site-footer__brand { justify-content: center; }
  .site-footer__meta { flex-direction: column; gap: 8px; }
  .site-footer__copy { text-align: center; }

  .gallery__projects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .project-page { grid-template-columns: 1fr; gap: 28px; }
  .project-page__meta { position: static; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }

  .hero { min-height: 560px; }
  .hero__dots { right: 12px; }

  .section-head { grid-template-columns: 1fr; gap: 16px; padding-top: 60px; }
  .section-head__sub { grid-column: 1; }

  .tiles { grid-template-columns: 1fr; gap: 6px; }
  .tile { aspect-ratio: 3 / 4; }
  .tile__title {
    font-size: clamp(18px, 5.4vw, 28px);
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .gallery__projects-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery__head { padding-right: 64px; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .gallery__back { font-size: 11px; padding: 6px 10px; }
  .gallery__title { font-size: clamp(20px, 5vw, 26px); }
  .project-page { padding: 16px var(--pad-x) 60px; }
}

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