/* ------------------------------------------------------------------
   Page layout: header, menu, sections
   ------------------------------------------------------------------ */

/* --- header --------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--g) var(--g) 0;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.header > * { pointer-events: auto; }
/* The header is drawn in difference blend: this green inverts to the brand pink on a white page. */
.header .br:focus-visible::before, .header .br.is-active::before,
.header .br:focus-visible::after, .header .br.is-active::after { color: #00d382; }
@media (hover: hover) { .header .br:hover::before, .header .br:hover::after { color: #00d382; } }
.logo {
  display: flex; flex-direction: column;
  font-size: clamp(20px, 1.6vw, 30px); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase;
}
.logo span { display: block; transition: transform 0.6s var(--ease-expo); }
@media (hover: hover) { .logo:hover span:first-child { transform: translateX(0.18em); } }
.logo sup { color: #fff; }

.nav { display: flex; justify-content: space-between; width: min(800px, 57vw); margin-left: auto; }
.nav__group { display: flex; gap: 20px; }
.lang { display: inline-flex; gap: 10px; }
.lang__btn:not(.is-active) { opacity: 0.62; }

.header__brief { display: none; margin-left: auto; margin-right: 18px; }
.menu-toggle { display: none; position: relative; }
.menu-toggle::selection { background: none; }

/* --- mobile menu ---------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--g) var(--g) calc(var(--g) + env(safe-area-inset-bottom));
  background: var(--bg);
  visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-wipe), visibility 0s linear 0.8s;
}
.menu.is-open { visibility: visible; pointer-events: auto; clip-path: inset(0); transition-delay: 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { display: flex; flex-direction: column; gap: 6px; margin-top: 75px; flex: 1; }
.menu__link { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; font-size: 46px; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.menu__link span { display: block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1); }
.menu.is-open .menu__link span { transform: none; }
.menu.is-open .menu__link:nth-child(2) span { transition-delay: 0.05s; }
.menu.is-open .menu__link:nth-child(3) span { transition-delay: 0.1s; }
.menu.is-open .menu__link:nth-child(4) span { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(5) span { transition-delay: 0.2s; }
.menu__cta { width: 100%; padding: 12px 10px; }
.menu__contacts { margin-bottom: 14px; border-top: 1px solid var(--ink); }

/* --- sections ------------------------------------------------------- */
main > section { padding-inline: var(--g); }
.work, .process, .estimate, .about, .numbers { padding-top: var(--section); }

/* --- hero ----------------------------------------------------------- */
.hero { padding-top: var(--top); }
.hero__head { margin-bottom: 30px; }
.hero__side { display: grid; grid-template-columns: 45fr 55fr; gap: var(--g); align-items: end; margin-top: 34px; }
.hero__left { display: flex; flex-direction: column; gap: 14px; }
.hero__lede { max-width: 34ch; }
.hero__clients { max-width: 44ch; }
.hero__cta { display: flex; gap: 6px; flex-wrap: wrap; }
.hero__reel { display: block; height: 75svh; color: #fff; }
/* the top of the reel is what fits in the first screen, so the caption sits there */
.hero__reel::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 96px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 44px, rgba(0, 0, 0, 0) 100%);
}
.hero__video { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); transition: transform 0.7s var(--ease), opacity 0.6s ease; }
.hero__caption {
  position: absolute; inset: 20px 20px auto 20px; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px; color: #fff;
}
.hero__play { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }

/* --- numbers -------------------------------------------------------- */
.numbers__title { margin-bottom: 20px; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.num {
  display: flex; flex-direction: column; justify-content: space-between; gap: 46px;
  min-height: clamp(160px, 17vw, 300px);
  padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line);
}
.num:not(:nth-child(3n + 1)) { padding-left: 14px; border-left: 1px solid var(--line); }
.num__value { font-size: clamp(36px, 5.6vw, 108px); line-height: 0.85; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.num__value small { font-size: 0.42em; letter-spacing: -0.03em; margin-left: 0.12em; }
.num__label { max-width: 34ch; font-size: var(--fs-text); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.num__src { margin-top: 8px; color: var(--muted); }

/* --- work ----------------------------------------------------------- */
.work__title { margin-bottom: 30px; }
.work__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.filter { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); transition: color 0.1s; white-space: nowrap; }
.filter.is-active { color: var(--ink); }
@media (hover: hover) { .filter:hover { color: var(--ink); } }
.filter sup { font-size: 0.9em; top: -0.35em; }
.filter.is-active::before { content: ''; align-self: center; width: 6px; height: 6px; background: var(--brand); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); perspective: 1800px; }
.card {
  position: relative; display: block; height: 75svh; padding: var(--g); overflow: hidden; cursor: pointer;
  color: #fff; isolation: isolate;
}
.card.is-wide { grid-column: 1 / -1; }
.card.is-hidden { display: none; }
.card__media { position: absolute; inset: var(--g); overflow: hidden; background: var(--media); }
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.16);
  transition: transform 0.75s var(--ease-expo), opacity 0.45s var(--ease);
}
/* Scrim under the card text. Posters and previews are any colour, so the text
   gets its own dark band at the top and at the bottom instead of a blend mode. */
.card__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 11vw, rgba(0, 0, 0, 0) 17vw),
    linear-gradient(to top, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 76px, rgba(0, 0, 0, 0) 150px);
}
.card__media video { opacity: 0; }
.card__media video.is-on { opacity: 1; }
.card__head {
  position: absolute; top: 20px; left: 20px; z-index: 2; max-width: calc(100% - 90px);
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  transform-origin: left top; transition: transform 0.75s var(--ease-expo);
}
.card__title { font-size: clamp(16px, 2.22vw, 44px); line-height: 0.9; text-transform: uppercase; }
.card__index { position: absolute; top: 20px; right: 20px; z-index: 2; font-variant-numeric: tabular-nums; }
.card__meta {
  position: absolute; inset: auto 20px 20px 20px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  pointer-events: none;
}
.card__foot { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__metric { display: flex; align-items: baseline; gap: 8px; max-width: 44ch; }
.card__metric b { font-size: var(--fs-h3); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card__metric span { line-height: 1.1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; text-transform: uppercase; }
.card__one { max-width: 30ch; font-size: var(--fs-sub); line-height: 1; }
.card.spot::after { inset: var(--g); }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__head { transform: scale(1.02); }
  .card:hover .card__media img, .card:hover .card__media video { transform: translate3d(0, var(--py, 0px), 0) scale(1.2); }
}

.card--cta { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--ink); cursor: pointer; }
.card--cta .h3 em { text-transform: none; }
.work__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.work__more [hidden] { display: none; }

/* --- process -------------------------------------------------------- */
.process__lede { max-width: 30ch; margin: 30px 0 40px auto; width: min(520px, 36vw); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.step { display: flex; flex-direction: column; gap: 18px; padding: 14px 14px 30px 0; min-height: 44svh; }
.step:not(:first-child) { padding-left: 14px; border-left: 1px solid var(--line); }
.step__head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.step__title { margin-top: 30px; }
.step__get { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.step__get b { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 700; }
.process__next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }

/* --- formats and estimate -------------------------------------------- */
.formats { margin-top: 40px; }
.formats li { grid-template-columns: 1fr 1.9fr 0.8fr; }
.formats .when b { display: block; margin-bottom: 4px; color: var(--ink); font-size: var(--fs-text); letter-spacing: -0.02em; }
.formats a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; white-space: nowrap; }
.formats__calc { margin-top: 46px; }
.formats__calc + .estimate__grid { margin-top: 12px; }
.estimate__grid { display: grid; grid-template-columns: 55fr 45fr; gap: var(--g); margin-top: 40px; align-items: start; }
.est { border-top: 1px solid var(--ink); }
.est__block { display: grid; grid-template-columns: 180px 1fr; gap: 12px 20px; padding: 16px 0 22px; border-bottom: 1px solid var(--line); align-items: start; }
.est__block > legend { float: left; width: 180px; padding-top: 4px; }
.est__block > legend ~ * { grid-column: 2; }
.est__hint { max-width: 56ch; font-size: 14px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.est__hint:empty { display: none; }
.est__formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }

/* format and extra cards: outlined when off, solid black with a pink square when on */
.fmt { display: flex; flex-direction: column; gap: 12px; padding: 12px; text-align: left; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.fmt .text { font-size: 14px; line-height: 1.25; color: var(--muted); transition: color 0.3s var(--ease); }
.fmt__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fmt__top .sq { opacity: 0; transition: opacity 0.2s var(--ease); }
.fmt__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color 0.3s var(--ease); }
.fmt.is-active { background: var(--ink); color: var(--inv); }
.fmt.is-active .text { color: #b4b4b2; }
.fmt.is-active .fmt__top .sq { opacity: 1; }
.fmt.is-active .fmt__meta { border-top-color: rgba(255, 255, 255, 0.3); }
.fmt[disabled] { opacity: 0.38; cursor: not-allowed; }
.fmt--extra .sub { font-size: var(--fs-text); line-height: 1.05; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 58px; padding: 11px 12px 10px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; text-align: center; text-transform: uppercase; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.chip.is-active { background: var(--ink); color: var(--inv); }
.chip.is-active::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--brand); vertical-align: 1px; }
.range { display: flex; align-items: center; gap: 20px; }
.range output { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: 18px; }
.stepper__btn { width: 36px; height: 36px; box-shadow: inset 0 0 0 1px var(--line-strong); text-align: center; font-size: 18px; line-height: 36px; transition: background-color 0.2s, color 0.2s; }
.stepper__btn:active { background: var(--ink); color: var(--inv); }
@media (hover: hover) { .stepper__btn:hover { background: var(--ink); color: var(--inv); } }
.stepper output { min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; }

input[type='range'] { -webkit-appearance: none; appearance: none; flex: 1; height: 24px; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--ink) var(--fill, 0%), var(--line) var(--fill, 0%)); }
input[type='range']::-moz-range-track { height: 3px; background: var(--line); }
input[type='range']::-moz-range-progress { height: 3px; background: var(--ink); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; background: var(--brand); border: 0; border-radius: 0; }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; background: var(--brand); border: 0; border-radius: 0; }

/* result panel: white on black, nothing smaller than 14 px except the two bracket labels */
.result { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--ink); color: var(--inv); }
.result__row { display: flex; align-items: flex-end; gap: 14px; }
.result__row--line { flex-wrap: wrap; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.result__big, .result__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__note { max-width: 56ch; font-size: 14px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: #b4b4b2; }
.result__price { display: flex; flex-direction: column; gap: 10px; }
.result__price[hidden] { display: none; }
.result__head { margin-top: 6px; }
.result__similar a { color: var(--inv); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.result__send { margin-top: 6px; padding: 13px 14px 12px; box-shadow: none; }
@media (hover: hover) {
  .result__send:hover { background: var(--brand); color: #fff; }
  .result__send:hover .sq { background: #fff; }
}

.timeline { display: flex; gap: 2px; height: 10px; }
.timeline__seg { min-width: 8px; background: rgba(255, 255, 255, 0.3); transition: flex-grow 0.6s var(--ease-expo); }
.timeline__seg:nth-child(2) { background: #fff; }
.stages { display: grid; gap: 7px; }
.stages li { display: grid; grid-template-columns: 14px 1fr auto; align-items: baseline; font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.stages li::before { content: ''; width: 6px; height: 6px; background: rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.stages li:nth-child(2)::before { background: #fff; }
.stages b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.currency { display: inline-flex; gap: 4px; margin-left: auto; }
.currency button { padding: 8px 10px 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); font-size: 12px; line-height: 1; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.currency button.is-active { background: #fff; color: #000; box-shadow: none; }

.breakdown { border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.breakdown li { display: grid; grid-template-columns: 1fr 62px 104px; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.breakdown span + span { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown span:nth-child(2) { color: #b4b4b2; }
.breakdown .is-sum { border-bottom: 0; font-weight: 700; }
.breakdown .is-sum span:nth-child(2) { color: var(--inv); }

.est__mini { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- about ---------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 45fr 55fr; gap: var(--g); margin-top: 40px; }
.about__bio { display: flex; flex-direction: column; gap: 18px; padding-right: 8vw; }
.about__cv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rows { margin-top: 12px; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 1.1fr 1.6fr 0.9fr; gap: 14px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .text { font-size: 15px; }
.rows .when { text-align: right; color: var(--muted); }
.rows--tools li { grid-template-columns: 1.1fr 2.5fr; }
.about__tools-title { margin-top: 46px; }

/* --- contact -------------------------------------------------------- */
.contact { display: flex; padding: 0 !important; margin-top: var(--section); min-height: 100svh; background: var(--bg); }
.contact__media { position: sticky; top: 0; width: 45%; height: 100svh; flex: none; }
.contact__info { width: 55%; padding: 38px var(--g) var(--g); display: flex; flex-direction: column; gap: 46px; }
.contact__direct { border-top: 1px solid var(--ink); }
.copyrow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.copy { display: inline-flex; align-items: baseline; gap: 12px; }
.copy__state { font-style: normal; color: var(--muted); text-transform: uppercase; transition: color 0.2s; }
.copy.is-done .copy__state { color: var(--ink); }
.copy.is-done .copy__state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--brand); }
@media (hover: hover) { .copy:hover .copy__state { color: var(--ink); } }
.copyrow__side { display: inline-flex; align-items: baseline; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.contact__note { max-width: 40ch; margin-top: -26px; }

.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--g); }
.brief > p, .field, .brief__actions, .brief__status { grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.input {
  width: 100%; padding: 8px 0 9px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: 0;
  font-size: var(--fs-sub); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { resize: vertical; min-height: 120px; font-size: var(--fs-text); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
select.input { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { border-bottom-color: var(--brand); box-shadow: 0 1px 0 var(--brand); }
.field.is-bad .input { border-bottom-color: var(--error); }
.field.is-ok .input { border-bottom-color: var(--ink); }
.field.is-ok label::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; background: var(--ink); }
.field__err { min-height: 1em; color: var(--error); }
.field__meta { position: absolute; right: 0; top: 0; font-variant-numeric: tabular-nums; }
label[for='b-message'] { padding-right: 64px; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.brief__submit { padding-inline: 14px 18px; }
.brief__status { min-height: 1.2em; line-height: 1.2; }
.brief__status.is-ok::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--brand); }

.contact__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.contact__foot > span:last-child { color: var(--muted); text-align: right; max-width: 40ch; }
/* "для знакомства." is wider than the column at the full h1 size */
:lang(ru) .contact__title { font-size: clamp(38px, 5.7vw, 110px); }

/* --- responsive ----------------------------------------------------- */
@media (max-width: 1275px) {
  .nav { width: min(720px, 70vw); }
  .est__block { grid-template-columns: 130px 1fr; }
  .est__block > legend { width: 130px; }
}

@media (max-width: 991px) {
  :root { --top: 65px; --section: 96px; }
  .nav { display: none; }
  .header__brief { display: inline-flex; }
  .header { transition: transform 0.5s var(--ease-expo); }
  .header.is-away { transform: translateY(-110%); }
  .menu-toggle { display: inline-flex; }
  .menu-toggle::after { content: ']'; }
  .logo { font-size: 20px; padding: 5px 0; margin: -5px 0; }

  /* tap targets: 44 px high without moving anything */
  .header__brief, .menu-toggle { padding-block: 16px; margin-block: -16px; }
  .menu__close, .menu .lang__btn { padding: 16px 0; margin: -16px 0; }
  .filter { padding: 16px 0; }
  .label, .chip, .input { min-height: 44px; }
  .copy, .copyrow .br { min-height: 44px; align-items: center; }
  .stepper__btn { width: 44px; height: 44px; line-height: 44px; }
  .currency button { padding: 15px 12px 14px; }
  input[type='range'] { height: 44px; }

  .hero__side { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .hero__lede { order: -1; max-width: none; }
  .hero__reel { height: auto; aspect-ratio: 16 / 9; }
  .hero__reel::after { inset: auto 0 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 52px, rgba(0, 0, 0, 0) 100%); }
  .hero__video, .card__media img, .card__media video { transform: scale(1.08); }
  .hero__caption { inset: auto 10px 10px 10px; flex-direction: column; align-items: flex-start; gap: 5px; }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .num:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .num:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .num { gap: 30px; min-height: 0; padding-block: 12px 16px; }

  .work__bar { flex-direction: column-reverse; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
  .filters { justify-content: flex-start; gap: 0 18px; }
  .gallery { grid-template-columns: 1fr; }
  .card, .card.is-wide { grid-column: auto; height: auto; aspect-ratio: 16 / 9; padding: 0; }
  .card[data-ratio='9:16'], .card[data-ratio='1:1'] { aspect-ratio: 4 / 5; }
  .card__media { inset: 0; }
  .card__media::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 76px, rgba(0, 0, 0, 0) 124px),
      linear-gradient(to top, rgba(0, 0, 0, 0.58) 0, rgba(0, 0, 0, 0.58) 64px, rgba(0, 0, 0, 0) 120px);
  }
  .card.spot::after { inset: 0; }
  .card__head { top: 10px; left: 10px; max-width: calc(100% - 50px); gap: 6px; }
  .card__index { top: 10px; right: 10px; }
  .card__meta { inset: auto 10px 10px 10px; }
  .card__foot { gap: 6px; }
  .card__metric b { font-size: 22px; }
  .card__one { font-size: 13px; max-width: 34ch; }
  .card--cta { aspect-ratio: auto !important; min-height: 200px; padding: 12px; gap: 40px; }

  .process__lede { width: 100%; margin: 24px 0 30px; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 14px 0 26px; border-bottom: 1px solid var(--line); }
  .step:not(:first-child) { padding-left: 0; border-left: 0; }
  .step__title { margin-top: 6px; }
  .step__get { margin-top: 8px; }

  .estimate__grid, .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .est__block { grid-template-columns: 1fr; gap: 12px; }
  .est__block > legend { float: none; width: auto; margin-bottom: 12px; }
  .est__block > legend ~ * { grid-column: 1; }
  .result { position: static; }
  .est__mini { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; margin: 0 calc(var(--g) * -1); padding: 13px var(--g) calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--inv); font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .breakdown li { grid-template-columns: 1fr 54px 96px; }
  .about__bio { padding-right: 0; }
  .rows li { grid-template-columns: 1fr; gap: 6px; }
  .rows .when { text-align: left; }
  .formats li { grid-template-columns: 1fr; }
  .contact__note { margin-top: -16px; }

  .contact { flex-direction: column; }
  .contact__media { position: relative; width: 100%; height: 56vw; }
  .contact__info { width: 100%; padding-top: 30px; gap: 36px; }
  .contact__foot { flex-direction: column; gap: 10px; }
  .contact__foot span:last-child { text-align: left; }
  .copyrow { flex-direction: column; gap: 8px; }
  .copyrow__side { justify-content: flex-start; gap: 0 20px; }
}

@media (max-width: 479px) {
  .brief { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .est__formats { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr; }
  .num:nth-child(even) { padding-left: 0; border-left: 0; }
  .num__value { font-size: 56px; }
}
