/* =========================================================
   Váš Název — styly
   Paleta: antracit #171717 / #242424, text off-white, akcent bronz
   ========================================================= */

:root {
  --bg: #171717;
  --bg-2: #242424;
  --bg-3: #1d1d1d;
  --line: rgba(236, 231, 223, 0.12);
  --line-strong: rgba(236, 231, 223, 0.24);
  --text: #ece7df;
  --muted: #a39e96;
  --dim: #6f6b66;
  --accent: #b8946a;
  --accent-hover: #c9a77e;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 13vw, 180px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 12px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 12px; }

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--accent); color: #141210; }
.btn--solid:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--line-strong); height: 44px; padding: 0 22px; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--text { padding: 0 6px; height: 52px; color: var(--text); }
.btn--text span { transition: transform .4s var(--ease); }
.btn--text:hover span { transform: translateX(6px); }
.btn--text:hover { color: var(--accent); }
.btn--lg { height: 58px; padding: 0 40px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo__mark {
  width: 26px; height: 26px; position: relative; flex: none;
  border: 1px solid var(--accent);
}
.logo__mark::before, .logo__mark::after {
  content: ""; position: absolute; background: var(--accent);
}
.logo__mark::before { left: 50%; top: 4px; bottom: 4px; width: 1px; }
.logo__mark::after { left: 4px; right: 50%; top: 50%; height: 1px; }
.logo__text { font-size: 14px; font-weight: 500; letter-spacing: .3em; }
.logo__text em { font-style: normal; color: var(--accent); }

/* ---------- Hlavička ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .5s var(--ease), height .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 70px;
  background: rgba(23, 23, 23, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 44px; }
.nav__list { display: flex; gap: 36px; }
.nav__link {
  position: relative; font-size: 13px; letter-spacing: .08em; color: var(--muted);
  transition: color .3s;
  padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 2.6s var(--ease) forwards;
}
.hero__media::after {
  /* neutrální ztmavení pro čitelnost textu (žádné barevné přechody) */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23,23,23,.92) 0%, rgba(23,23,23,.35) 45%, rgba(23,23,23,.25) 100%),
    linear-gradient(to right, rgba(23,23,23,.55) 0%, rgba(23,23,23,0) 60%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: .98; letter-spacing: -.02em;
}
.hero__title em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero__lead { margin-top: 30px; max-width: 470px; color: #cfc9c0; font-size: clamp(15px, 1.25vw, 18px); }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll i { width: 1px; height: 64px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--accent); animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Sekce ---------- */
.section { padding: var(--section) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head--stack { display: block; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.filter {
  position: relative; font-size: 13px; letter-spacing: .06em; color: var(--dim);
  padding: 8px 0; transition: color .3s;
}
.filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after { transform: scaleX(1); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(88px, 7.6vw, 118px);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 24px);
}
.work { margin: 0; grid-column: span 4; grid-row: span 3; position: relative; overflow: hidden; background: var(--bg-2);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.work--wide { grid-column: span 8; }
.work--tall { grid-row: span 6; }
.gallery.is-filtered .work { grid-column: span 4; grid-row: span 4; }
.work.is-hidden { display: none; }
.work.is-entering { opacity: 0; transform: translateY(18px); }

.work__btn { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.work__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
  filter: saturate(.92) brightness(.92);
}
.work:hover .work__btn img { transform: scale(1.045); filter: saturate(1) brightness(.78); }

.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,.75), rgba(17,17,17,0));
}
.work__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.work__title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.work figcaption { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.work:hover figcaption, .work:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .work figcaption { opacity: 1; transform: none; } }

/* ---------- Služby ---------- */
.services { background: var(--bg-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
.service { grid-column: span 4; }
.service--lg { grid-column: span 8; grid-row: span 2; }
.service--lg .service__img { aspect-ratio: auto; height: calc(100% - 150px); min-height: 360px; }
.service__img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 6; }
.service:nth-child(4) .service__img, .service:nth-child(5) .service__img { aspect-ratio: 16 / 9; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: saturate(.9); }
.service:hover .service__img img { transform: scale(1.04); }
.service__body { padding-top: 24px; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.service__num { font-size: 12px; color: var(--accent); letter-spacing: .1em; padding-top: 8px; grid-row: span 2; }
.service__body p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 34ch; }

/* ---------- O nás ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.about__media { position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.about__lead { margin-top: 32px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.reasons { margin-top: 56px; border-top: 1px solid var(--line); }
.reasons li {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.reasons li > span { font-size: 12px; color: var(--accent); letter-spacing: .1em; padding-top: 9px; }
.reasons p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* ---------- Proces ---------- */
.process { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { position: relative; padding: 40px 32px 0 0; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}
.step__num {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--dim);
  margin-bottom: 26px; transition: color .6s var(--ease);
}
.step:hover .step__num { color: var(--accent); }
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 26ch; }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 128px); }
.contact__lead { margin-top: 28px; color: var(--muted); max-width: 40ch; }
.contact__list { margin: 56px 0 0; display: grid; gap: 26px; }
.contact__list dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.contact__list dd { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--accent); }

.form { display: grid; gap: 8px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field { position: relative; padding-top: 22px; margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 400;
  padding: 12px 0 12px; border-radius: 0; outline: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { cursor: pointer; padding-right: 28px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field--select::after {
  content: ""; position: absolute; right: 4px; top: 42px; width: 7px; height: 7px;
  border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.field label {
  position: absolute; left: 0; top: 34px;
  color: var(--muted); font-size: 15px; pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
  transform: translateY(-28px) scale(.78); color: var(--accent);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c27a6a; }
.field__error { display: block; min-height: 0; font-size: 12px; color: #d59585; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; }
.form__note { font-size: 12px; color: var(--dim); max-width: 34ch; line-height: 1.5; }
.form__status { font-size: 15px; color: var(--accent); min-height: 24px; margin-top: 12px; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- Patička ---------- */
.footer { padding: 96px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand p { margin-top: 24px; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 20px; }
.footer__nav, .footer__contact, .footer__social { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__nav a, .footer__contact a, .footer__social a { color: var(--muted); transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover, .footer__social a:hover { color: var(--accent); }
.footer__contact span { color: var(--muted); }
.footer__bottom {
  margin-top: 80px; padding-top: 28px; position: relative;
  display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--dim); letter-spacing: .04em;
}
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.to-top:hover { color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin-top: 64px; }
.footer__legal p { font-size: 12px; color: var(--dim); line-height: 1.7; max-width: 90ch; }
.footer__legal p + p { margin-top: 8px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--accent); }
.footer__legal strong { font-weight: 500; color: var(--muted); }
.footer__legal + .footer__bottom { margin-top: 24px; }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--accent); }

/* ---------- Právní stránka ---------- */
.legal { padding: calc(var(--header-h) + 80px) 0 var(--section); }
.legal__inner { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 18px; }
.legal__meta { color: var(--dim); font-size: 13px; margin-bottom: 56px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal p, .legal li { color: #cfc9c0; font-size: 16px; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; padding-left: 0; }
.legal ul li { position: relative; padding-left: 22px; margin: 8px 0; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 500; color: var(--text); }
.legal__box { background: var(--bg-2); padding: 28px 32px; margin: 16px 0; border-left: 1px solid var(--accent); }
.legal__box p { margin: 0; }
.legal__back { display: inline-block; margin-top: 64px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14, 14, 14, .97);
  display: grid; grid-template-columns: 90px 1fr 90px; align-items: center;
  opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 72px 0 32px; min-width: 0; }
.lightbox__img {
  max-width: 100%; max-height: calc(100% - 70px); object-fit: contain;
  transition: opacity .35s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption { display: flex; align-items: baseline; gap: 18px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.lightbox__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lightbox__title { font-family: var(--serif); font-size: 26px; }
.lightbox__count { font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.lightbox__close {
  position: absolute; top: 22px; right: var(--gutter); z-index: 2;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 10px 0;
}
.lightbox__close:hover { color: var(--text); }
.lightbox__nav { height: 100%; font-size: 24px; color: var(--muted); transition: color .3s; }
.lightbox__nav:hover { color: var(--accent); }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.4s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .42s; }
.steps .reveal:nth-child(2), .reasons .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .reasons .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4), .reasons .reveal:nth-child(4) { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .nav__list { gap: 24px; }
  .work { grid-column: span 6; }
  .work--wide { grid-column: span 12; grid-row: span 4; }
  .work--tall { grid-column: span 6; grid-row: span 6; }
  .gallery.is-filtered .work { grid-column: span 6; grid-row: span 4; }
  .service, .service--lg { grid-column: span 6; grid-row: auto; }
  .service--lg { grid-column: span 12; }
  .service:nth-child(4) .service__img, .service:nth-child(5) .service__img { aspect-ratio: 4 / 3; }
  .service--lg .service__img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --mobile-header-h: 72px; }
  .header.is-scrolled { --mobile-header-h: 70px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0; z-index: 110;
    max-height: calc(100vh - var(--mobile-header-h));
    max-height: calc(100dvh - var(--mobile-header-h));
    overflow-y: auto; overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    padding: clamp(24px, 6vh, 56px) var(--gutter) max(24px, env(safe-area-inset-bottom)); gap: 48px;
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { font-family: var(--serif); font-size: 42px; letter-spacing: 0; color: var(--text); line-height: 1.25; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav__cta { height: 52px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .gallery { grid-auto-rows: 92px; }
  .work, .work--wide, .gallery.is-filtered .work { grid-column: span 12; grid-row: span 3; }
  .work--tall { grid-row: span 4; }
  .work figcaption { padding: 20px; }
  .filters { gap: 4px 20px; }
  .service, .service--lg, .service:nth-child(4), .service:nth-child(5) { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; row-gap: 44px; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__foot .btn { width: 100%; }
  .hero__actions .btn--solid { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 18px; height: 48px; width: 64px; z-index: 2; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__figure { padding: 64px 12px 80px; }
}
