:root {
  --paper: #f4f1eb;
  --paper-soft: #ebe5da;
  --white: #fffdf8;
  --ink: #17181a;
  --graphite: #2b2b2f;
  --muted: #706d66;
  --line: rgba(23, 24, 26, .14);
  --line-strong: rgba(23, 24, 26, .28);
  --brass: #8a6a39;
  --brass-dark: #6f542f;
  --dark: #151619;
  --dark-soft: #222327;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  background: var(--paper);
}

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

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: #fff;
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}

.header.is-solid,
.header.is-open {
  color: var(--ink);
  background: rgba(244, 241, 235, .98);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.header--plain {
  color: var(--ink);
  background: rgba(244, 241, 235, .98);
  box-shadow: 0 1px 0 var(--line);
}

.header__bar {
  max-width: var(--container);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  flex: 0 0 auto;
  font-size: 16px;
  letter-spacing: .24em;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav a {
  opacity: .86;
}

.nav a:hover {
  opacity: 1;
}

.header__phone {
  margin-left: auto;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  color: inherit;
  background: transparent;
}

.burger span {
  display: block;
  height: 1px;
  margin: 8px 4px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn--dark {
  color: #fff;
  background: var(--dark);
}

.btn--dark:hover {
  background: #000;
}

.btn--brass {
  color: #fff;
  background: var(--brass);
}

.btn--brass:hover {
  background: var(--brass-dark);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn--line {
  min-height: auto;
  padding: 0 0 4px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, .72), rgba(10, 11, 12, .24) 58%, rgba(10, 11, 12, .52)),
    linear-gradient(0deg, rgba(10, 11, 12, .78), rgba(10, 11, 12, .08) 50%);
}

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

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 150px 22px 92px;
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 132px);
  line-height: .86;
  font-weight: 300;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__trust {
  position: absolute;
  z-index: 2;
  left: max(22px, calc((100vw - var(--container)) / 2 + 22px));
  right: max(22px, calc((100vw - var(--container)) / 2 + 22px));
  bottom: 22px;
  display: flex;
  gap: 26px;
  align-items: center;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero__trust i {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, .34);
}

.section {
  padding: 104px 0;
  scroll-margin-top: 118px;
}

.section--soft {
  background: var(--paper-soft);
}

.section--dark {
  color: #fff;
  background: var(--dark);
}

.section__head {
  max-width: 860px;
  margin-bottom: 46px;
}

.section__head--wide {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.section__kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: .95;
  font-weight: 300;
}

.section__lead {
  max-width: 710px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 420px;
  gap: 1px;
  background: var(--line);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 420px;
  gap: 1px;
  background: var(--line);
}

.project-tile {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--dark);
}

.project-tile--wide {
  grid-column: span 2;
}

.project-tile img,
.case-tile img,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.case-tile:hover img {
  transform: scale(1.045);
}

.related-projects-section .project-tile:hover img {
  transform: scale(1.035);
}

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .82) 100%);
}

.project-tile__body {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: #fff;
}

.project-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 62px);
  line-height: .95;
  font-weight: 300;
}

.project-tile__price,
.project-tile__action {
  margin-top: 14px;
  color: rgba(255, 255, 255, .86);
}

.project-tile__action {
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .52);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.projects-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.future-calc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: end;
  margin-top: 78px;
  padding: 58px 62px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(21, 22, 25, .98), rgba(21, 22, 25, .88)),
    url("assets/work-flatroof.webp") center / cover;
}

.future-calc::after {
  content: "";
  position: absolute;
  top: -80px;
  right: 25%;
  width: 1px;
  height: 280px;
  background: rgba(255, 255, 255, .14);
  transform: rotate(34deg);
}

.future-calc > * {
  position: relative;
  z-index: 1;
}

.future-calc h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: .95;
  font-weight: 300;
}

.future-calc p:last-child {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  line-height: 1.7;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 38px 34px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 98px);
  line-height: .8;
  font-weight: 300;
}

.stat span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder {
  background: var(--white);
}

.founder__layout {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.founder__portrait {
  position: relative;
  margin: 0;
  min-height: 650px;
  overflow: hidden;
  background: var(--dark-soft);
}

.founder__portrait::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(9, 10, 11, .74));
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
}

.founder__portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  color: #fff;
}

.founder__portrait figcaption b {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
}

.founder__portrait figcaption span {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.founder__content h2 {
  font-size: clamp(50px, 6.2vw, 88px);
}

.founder__content > p:not(.section__kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.founder__content .founder__lead {
  margin-top: 34px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.28;
}

.process__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 80px;
  align-items: end;
}

.process__intro > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.process__list {
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process__list li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.process__list li > span {
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.process__list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
}

.process__list p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.works {
  background: var(--white);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.works__item {
  position: relative;
  grid-column: span 6;
  margin: 0;
  min-height: 390px;
  overflow: hidden;
  background: var(--dark-soft);
}

.works__item:nth-child(3),
.works__item:nth-child(4),
.works__item:nth-child(5) {
  grid-column: span 4;
  min-height: 330px;
}

.works__item:nth-child(6) {
  grid-column: 3 / span 8;
  min-height: 430px;
}

.works__item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.works__item figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 74px 24px 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 12, .84));
}

.works__item figcaption b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
}

.works__item figcaption span {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
}

.case-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark-soft);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin-bottom: 34px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.quiz-shell input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 253, 248, .72);
}

.page-hero {
  padding: 112px 0 34px;
}

.page--inner .page-hero h1 {
  font-size: clamp(54px, 7.4vw, 112px);
  line-height: .9;
}

.page-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 54px;
  align-items: end;
}

.crumb {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
}

.spec-list {
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list span {
  color: var(--muted);
}

.spec-list b {
  font-weight: 500;
}

.project-hero-media {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--line);
}

.project-media-trigger {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: zoom-in;
  background: var(--dark);
}

.project-hero-media img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  background: var(--dark);
  transition: transform .8s var(--ease);
}

.project-media-trigger + .project-media-trigger img {
  height: 640px;
}

.project-hero-media--compact img,
.project-hero-media--compact .project-media-trigger + .project-media-trigger img {
  height: 580px;
}

.project-media-trigger:hover img {
  transform: scale(1.025);
}

.project-media-trigger:focus-visible,
.project-image-trigger:focus-visible {
  z-index: 2;
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 64px;
}

.copy-block {
  max-width: 790px;
}

.copy-block h2,
.timeline-section h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
}

.copy-block p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.price-panel {
  align-self: start;
  padding: 32px;
  color: #fff;
  background: var(--dark);
}

.price-panel small {
  color: rgba(255, 255, 255, .62);
}

.price-panel strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: .95;
  font-weight: 300;
}

.project-request-panel {
  align-self: start;
  padding: 32px;
  color: #fff;
  background: var(--dark);
}

.project-request-panel .section__kicker {
  color: var(--brass);
}

.project-request-panel h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.project-request-panel > p:not(.section__kicker) {
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.project-gallery-section .gallery-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.plan-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.plan-tile {
  position: relative;
  min-height: 460px;
  padding: 18px;
  overflow: hidden;
  border: 0;
  cursor: zoom-in;
  background: #fff;
}

.plan-tile img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
}

.plan-tile__caption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(61, 60, 56, .16);
  color: var(--muted);
  background: rgba(255, 253, 248, .88);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.gallery-tile {
  position: relative;
  padding: 0;
  border: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--dark);
}

.gallery-tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.section.project-about-section--with-plans {
  padding-bottom: 48px;
}

.section.project-plans-section {
  padding-top: 48px;
}

.section.project-about-section--without-plans {
  padding-bottom: 48px;
}

.section.project-gallery-section--after-about {
  padding-top: 48px;
}

.section.timeline-section {
  padding: 76px 0;
  background: #fff;
}

.timeline-section .section__head {
  margin-bottom: 38px;
}

.timeline-wrap {
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-color: rgba(23, 24, 26, .26) transparent;
  scrollbar-width: thin;
}

.timeline {
  min-width: 1180px;
  padding: 26px 28px 24px;
  border: 1px solid rgba(23, 24, 26, .12);
  border-radius: 12px;
  background: #f2efe9;
  box-shadow: 0 12px 34px rgba(25, 23, 20, .04);
}

.timeline__grid {
  position: relative;
  height: 340px;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc((100% / 12) - 1px),
    rgba(23, 24, 26, .1) calc((100% / 12) - 1px),
    rgba(23, 24, 26, .1) calc(100% / 12)
  );
}

.timeline__item {
  position: absolute;
  z-index: 1;
  top: var(--top);
  left: calc(var(--start) / 12 * 100%);
  width: calc(var(--duration) / 12 * 100%);
  min-height: 60px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 48%),
    var(--shade);
  box-shadow:
    0 13px 20px rgba(21, 22, 24, .16),
    0 3px 7px rgba(21, 22, 24, .12);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.timeline__item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.timeline__item--compact {
  min-height: 58px;
  padding: 11px 9px;
  font-size: 12px;
  line-height: 1.3;
}

.timeline__months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: 10px;
}

.timeline__months span {
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 60px;
  align-items: center;
  padding: 62px;
  color: #fff;
  background: var(--dark);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  line-height: .95;
}

.mini-form {
  display: grid;
  gap: 12px;
}

.mini-form input,
.mini-form select {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.mini-form input::placeholder {
  color: rgba(255, 255, 255, .62);
}

.mini-form--quiz input {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}

.mini-form--quiz input::placeholder {
  color: var(--muted);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.consent .consent__box {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.consent__mark {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
}

.consent__mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}

.consent__box:checked ~ .consent__mark {
  border-color: var(--brass);
  background: var(--brass);
}

.consent__box:checked ~ .consent__mark::after {
  transform: rotate(45deg) scale(1);
}

.consent__box:focus-visible ~ .consent__mark {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.consent__text {
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
  line-height: 1.55;
}

.consent__text a {
  color: rgba(255, 255, 255, .86);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  opacity: .45;
}

.btn[aria-disabled="true"] {
  cursor: pointer;
}

.btn[aria-disabled="true"].btn--brass:hover {
  background: var(--brass);
}

.quiz-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 150px 22px 80px;
}

.quiz-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 48px;
  min-height: 580px;
  padding: 42px;
  background: var(--white);
  box-shadow: 0 26px 70px -52px rgba(23, 24, 26, .7);
}

.quiz-card__content {
  min-width: 0;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 82px);
  line-height: .92;
  font-weight: 300;
}

.quiz-step--success p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  background: transparent;
}

.quiz-option.is-selected {
  border-color: var(--ink);
  background: rgba(23, 24, 26, .06);
}

.quiz-card .consent__mark {
  border-color: var(--line-strong);
  background: #fff;
}

.quiz-card .consent__text {
  color: var(--muted);
}

.quiz-card .consent__text a {
  color: var(--brass-dark);
}

.quiz-visual {
  min-height: 100%;
  background: var(--dark);
}

.quiz-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.quiz-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 8, 9, .78);
  backdrop-filter: blur(12px);
}

.quiz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100svh - 68px);
  overflow: auto;
  background: var(--white);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.quiz-modal__close {
  position: sticky;
  z-index: 4;
  top: 14px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  border: 1px solid rgba(23, 24, 26, .18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  font-size: 27px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.quiz-card--modal {
  min-height: min(720px, calc(100svh - 68px));
  box-shadow: none;
}

.floating-quiz {
  position: fixed;
  z-index: 45;
  right: 28px;
  bottom: 28px;
  width: min(360px, calc(100vw - 56px));
  padding: 0;
  color: #fff;
  background: var(--dark);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .7);
  animation: floatingQuizIn .55s var(--ease) both;
}

.floating-quiz[hidden] {
  display: none;
}

@keyframes floatingQuizIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-quiz__open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.floating-quiz__close {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  font-size: 20px;
  line-height: 1;
}

.floating-quiz__copy b {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.floating-quiz__copy > span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.floating-quiz__open em {
  min-height: 44px;
  padding: 10px 18px;
  font-style: normal;
}

.footer {
  padding: 58px 0;
  color: rgba(255, 255, 255, .72);
  background: var(--dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.footer b {
  display: block;
  margin-bottom: 16px;
  color: #fff;
}

@media (max-width: 980px) {
  .nav,
  .header__phone {
    display: none;
  }

  .burger {
    display: block;
  }

  .header.is-open .nav {
    position: fixed;
    inset: 70px 0 auto;
    display: grid;
    gap: 0;
    padding: 24px 22px 34px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line);
  }

  .header.is-open .nav a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(58px, 17vw, 88px);
  }

  .featured-grid,
  .catalog-grid {
    grid-auto-rows: auto;
  }

  .featured-grid,
  .catalog-grid,
  .case-grid,
  .gallery-grid,
  .stats-band,
  .page-hero__row,
  .project-hero-media,
  .content-grid,
  .cta-band,
  .quiz-card,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .project-tile,
  .project-tile--wide {
    grid-column: auto;
    min-height: 360px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .project-hero-media img,
  .project-media-trigger + .project-media-trigger img {
    height: 420px;
  }

  .project-hero-media--compact img,
  .project-hero-media--compact .project-media-trigger + .project-media-trigger img {
    height: 390px;
  }

  .plan-tile {
    min-height: 300px;
    padding: 10px;
  }

  .gallery-tile--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .cta-band {
    padding: 34px 24px;
  }

  .future-calc,
  .founder__layout,
  .process__intro {
    grid-template-columns: 1fr;
  }

  .future-calc {
    gap: 34px;
    align-items: start;
    padding: 42px 30px;
  }

  .founder__portrait,
  .founder__portrait img {
    min-height: 520px;
  }

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

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    grid-column: auto;
    min-height: 340px;
  }

  .quiz-modal {
    padding: 16px;
  }

  .quiz-modal__dialog {
    max-height: calc(100svh - 32px);
  }

  .quiz-card--modal {
    min-height: auto;
  }

  .floating-quiz {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .floating-quiz__copy > span {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 76px 0;
  }

  .hero__content {
    padding: 128px 22px 112px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__trust {
    flex-wrap: wrap;
    gap: 10px 16px;
    letter-spacing: .16em;
  }

  .hero__trust i {
    display: none;
  }

  .section__head--wide {
    display: block;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-hero-media img,
  .project-media-trigger + .project-media-trigger img {
    height: 320px;
  }

  .project-hero-media--compact img,
  .project-hero-media--compact .project-media-trigger + .project-media-trigger img {
    height: 300px;
  }

  .quiz-card {
    padding: 24px;
  }

  .future-calc {
    margin-top: 56px;
  }

  .founder__portrait,
  .founder__portrait img {
    min-height: 430px;
  }

  .founder__portrait figcaption,
  .works__item figcaption {
    display: block;
  }

  .founder__portrait figcaption span,
  .works__item figcaption span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .process__list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

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

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    min-height: 300px;
  }

  .quiz-modal {
    padding: 0;
  }

  .quiz-modal__dialog {
    width: 100%;
    height: 100svh;
    max-height: none;
  }

  .quiz-card--modal {
    min-height: 100svh;
    padding: 72px 22px 30px;
  }

  .quiz-card--modal .quiz-step h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .quiz-card--modal .quiz-visual {
    display: none;
  }

  .floating-quiz__open {
    padding: 15px 16px;
  }
}

/* ============================================================
   Home page: restored v4 visual system + v5 catalog
   ============================================================ */

:root {
  --paper: #f5f2ec;
  --paper-soft: #ece7dd;
  --white: #fffdf9;
  --ink: #1b1c1e;
  --muted: #6b6860;
  --brass: #8a6a39;
  --brass-dark: #75592e;
  --dark: #16181a;
}

body {
  font-size: 16px;
  line-height: 1.7;
  color: #3c3d3a;
  background:
    linear-gradient(90deg, rgba(117, 89, 46, .025) 1px, transparent 1px) 0 0 / 25% 100%,
    var(--paper);
}

.page {
  background: transparent;
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3em;
}

.logo span,
.footer__logo span {
  color: #c5a36e;
}

.header__bar {
  min-height: 76px;
}

.nav {
  margin-left: 42px;
  gap: 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
}

.header__phone {
  font-weight: 600;
}

.btn {
  min-height: 50px;
  padding: 13px 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
}

.btn--header {
  min-height: 44px;
  padding: 10px 24px;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
  background: transparent;
}

.btn--header:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 253, 248, .92);
}

.header.is-solid .btn--header,
.header--plain .btn--header {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.header.is-solid .btn--header:hover,
.header--plain .btn--header:hover {
  color: var(--brass-dark);
  border-color: var(--brass);
  background: transparent;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(22, 24, 26, .6) 0%, rgba(22, 24, 26, .28) 36%, rgba(22, 24, 26, .52) 68%, rgba(22, 24, 26, .92) 100%);
}

.hero__image img {
  object-position: center 65%;
}

.hero__content {
  padding: 150px 22px 116px;
}

.eyebrow {
  margin-bottom: 22px;
  color: #cfa96d;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
}

.hero h1 {
  max-width: 1120px;
  font-size: clamp(49px, 11.2vw, 102px);
  line-height: .98;
  letter-spacing: -.012em;
  color: #f7f4ee;
}

.hero__lead {
  max-width: 650px;
  margin-top: 24px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242, 238, 231, .94);
}

.hero__actions {
  gap: 18px;
  margin-top: 34px;
}

.hero__trust {
  bottom: 30px;
  color: rgba(238, 234, 226, .6);
}

.section {
  padding: 96px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.section__kicker {
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--brass-dark);
}

.section h2 {
  font-size: clamp(36px, 7.5vw, 64px);
  line-height: 1.1;
  letter-spacing: .015em;
  color: var(--ink);
}

.section__lead {
  max-width: 650px;
  margin-top: 22px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: #625f58;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 420px;
}

.project-tile {
  background: #d8d3c9;
}

.project-tile::after {
  inset: auto 0 0;
  height: 74%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 12, .2) 32%, rgba(10, 11, 12, .9) 100%);
}

.project-tile__body {
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.project-tile__meta {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .14em;
}

.project-tile h3 {
  font-size: 40px;
  line-height: 1;
}

.project-tile--wide h3 {
  font-size: clamp(44px, 4.4vw, 62px);
}

.project-tile__price,
.project-tile__action {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}

.project-tile__action {
  font-size: 9.5px;
}

.future-calc {
  gap: 70px;
  margin-top: 88px;
  padding: 58px 62px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(138, 106, 57, .09), transparent 46%),
    #ece7dd;
}

.future-calc::after {
  background: rgba(117, 89, 46, .14);
}

.future-calc h3 {
  font-size: clamp(35px, 5vw, 52px);
  line-height: 1.05;
}

.future-calc p:last-child {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.founder {
  position: relative;
  overflow: hidden;
  color: #eee9df;
  background: #17191a;
}

.founder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, rgba(207, 169, 109, .1), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 25% 100%;
}

.founder .container {
  position: relative;
  z-index: 1;
}

.founder__layout {
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: 70px;
}

.founder__portrait,
.founder__portrait img {
  min-height: 650px;
}

.founder__portrait {
  background: #242729;
}

.founder__portrait img {
  object-position: center 28%;
  filter: saturate(.78) contrast(1.04);
}

.founder__portrait::after {
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 12, .88));
}

.founder__portrait figcaption {
  inset: auto 0 0;
  display: block;
  padding: 70px 24px 24px;
  color: rgba(238, 233, 223, .68);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.founder__portrait figcaption b {
  display: block;
  margin-bottom: 4px;
  font-size: 31px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: none;
  color: #f5f1e8;
}

.founder .section__kicker {
  color: #cfa96d;
}

.founder__content h2 {
  color: #f5f1e8;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.05;
}

.founder__content > p:not(.section__kicker) {
  color: rgba(238, 233, 223, .58);
}

.founder__content .founder__lead {
  margin-top: 28px;
  max-width: 700px;
  color: rgba(245, 241, 232, .9);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
}

.founder__body {
  margin-top: 18px;
  max-width: 680px;
  font-size: 14.5px !important;
  font-weight: 300;
  line-height: 1.85 !important;
}

.founder__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 82px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(238, 233, 223, .14);
  border-left: 1px solid rgba(238, 233, 223, .14);
}

.founder__facts li {
  min-height: 146px;
  padding: 30px 24px;
  border-right: 1px solid rgba(238, 233, 223, .14);
  border-bottom: 1px solid rgba(238, 233, 223, .14);
}

.founder__facts b {
  display: block;
  margin-bottom: 7px;
  color: #f5f1e8;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.05;
}

.founder__facts span {
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(238, 233, 223, .5);
}

.process {
  color: var(--ink);
  background: #ece7dd;
  border-bottom: 1px solid var(--line);
}

.process__intro {
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
}

.process__intro .section__head {
  margin-bottom: 0;
}

.process__intro > p,
.process__lead {
  max-width: 660px;
  margin: 0;
  padding-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.35;
}

.process__list {
  margin-top: 90px;
  border-color: var(--line-strong);
}

.process__list li {
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 38px 0;
}

.process__list li > span {
  padding-top: 5px;
  color: var(--brass-dark);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
}

.process__list h3 {
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
}

.process__list p {
  max-width: 620px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
}

.works {
  background: #fffdf9;
}

.works__grid {
  gap: 0;
}

.works__item {
  min-height: 390px;
  box-shadow: none;
}

.works__item:nth-child(3),
.works__item:nth-child(4),
.works__item:nth-child(5) {
  min-height: 330px;
}

.works__item:nth-child(6) {
  min-height: 430px;
}

.social {
  background: #fffdf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social .section__head {
  max-width: 860px;
}

.social .section__head h2 a {
  color: var(--brass-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}

.case-grid {
  gap: 8px;
  background: transparent;
}

.case-tile {
  background: var(--paper-soft);
}

.social__action {
  margin-top: 44px;
  text-align: center;
}

.social__action .btn--dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.social__action .btn--dark:hover {
  color: var(--brass-dark);
  border-color: var(--brass);
}

.cta {
  background: #f5f2ec;
}

.cta__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
}

.cta__text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 7.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

.cta__text > p {
  max-width: 440px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
}

.cta__phone {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 300;
  letter-spacing: .04em;
}

.cta__text .cta__hint {
  margin-top: 16px;
  font-size: 13px;
}

.cta__form {
  display: grid;
  gap: 14px;
  padding: 38px 34px;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.cta__form input,
.cta__form select {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.cta__form input::placeholder,
.cta__form select:invalid {
  color: var(--muted);
}

.cta__form input:focus,
.cta__form select:focus {
  border-color: var(--brass);
}

.cta__form .consent__mark {
  border-color: var(--line-strong);
  background: #fff;
}

.cta__form .consent__text {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.cta__form .consent__text a {
  color: var(--brass-dark);
}

.catalog-download {
  padding: 0 0 82px;
  background: #ece7dd;
}

.catalog-download__layout {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: 44px;
  color: #f5f1e8;
  background: #141516;
}

.catalog-download__layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--catalog-visual) center 64% / cover no-repeat;
}

.catalog-download__layout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 13, 14, .93) 0%, rgba(12, 13, 14, .8) 48%, rgba(12, 13, 14, .44) 74%, rgba(12, 13, 14, .68) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .34));
}

.catalog-download__copy {
  display: grid;
  align-content: center;
  min-height: 0;
  padding: 0;
}

.catalog-download__copy h2 {
  max-width: 720px;
  margin: 0;
  color: #f5f1e8;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.02;
}

.catalog-download__copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(245, 241, 232, .72);
  font-size: 15px;
  line-height: 1.7;
}

.catalog-download__lead {
  max-width: 680px;
  color: rgba(245, 241, 232, .84);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.catalog-download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.catalog-download__meta span {
  padding: 8px 11px;
  border: 1px solid rgba(216, 183, 127, .32);
  color: rgba(245, 241, 232, .78);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.catalog-download__form {
  align-self: center;
  padding: 26px;
  border: 0;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.catalog-thanks-landing,
.thanks-universal {
  min-height: 100svh;
  padding: 128px 0 70px;
  background:
    linear-gradient(120deg, rgba(197, 163, 110, .12), transparent 38%),
    #ece7dd;
}

.catalog-thanks-landing {
  min-height: 100svh;
  padding: 70px 0 0;
  background: #0f1011;
}

.catalog-thanks-landing > .container {
  max-width: none;
  padding: 0;
}

.catalog-thanks-landing__scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 28px 64px;
  align-items: end;
  min-height: calc(100svh - 70px);
  overflow: hidden;
  padding: clamp(42px, 5vw, 78px);
  color: #f5f1e8;
  background: #141516;
}

.catalog-thanks-landing__scene::before,
.catalog-thanks-landing__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.catalog-thanks-landing__scene::before {
  background: var(--thanks-visual) center / cover no-repeat;
}

.catalog-thanks-landing__scene::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 10, 11, .92) 0%, rgba(9, 10, 11, .64) 38%, rgba(9, 10, 11, .18) 62%, rgba(9, 10, 11, .06) 100%),
    linear-gradient(180deg, rgba(9, 10, 11, .08) 0%, rgba(9, 10, 11, .2) 46%, rgba(9, 10, 11, .74) 100%);
}

.catalog-thanks-landing__download,
.catalog-thanks-landing__andrey {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.catalog-thanks-landing__download {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: end;
  max-width: 790px;
  min-height: 0;
  padding: 0;
  color: #f5f1e8;
}

.catalog-thanks-landing__download .section__kicker,
.thanks-universal__copy .section__kicker {
  color: #d8b77f;
}

.catalog-thanks-landing h1,
.thanks-universal h1 {
  max-width: 100%;
  margin: 0;
  color: #f5f1e8;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 300;
  line-height: .96;
  overflow-wrap: break-word;
}

.catalog-thanks-landing__download p,
.thanks-universal__copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(245, 241, 232, .78);
  font-size: 17px;
  line-height: 1.75;
}

.catalog-thanks-landing__download .btn {
  width: fit-content;
  margin-top: 34px;
}

.catalog-thanks-landing__andrey {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 720px;
  padding: 24px 0 0;
  color: #f5f1e8;
  border-top: 1px solid rgba(245, 241, 232, .24);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.catalog-thanks-landing__andrey p {
  margin: 0 0 13px;
  color: rgba(245, 241, 232, .82);
  font-size: 14.5px;
  line-height: 1.62;
}

.catalog-thanks-landing__andrey b {
  color: #f5f1e8;
  font-weight: 500;
}

.catalog-thanks-landing__andrey .btn {
  width: fit-content;
  margin-top: 12px;
}

.catalog-thanks-landing__andrey .btn--line {
  color: #f5f1e8;
  border-color: rgba(245, 241, 232, .7);
}

.thanks-universal .thanks-universal__copy,
.thanks-universal .thanks-universal__social {
  padding: 0;
}

.thanks-universal .thanks-universal__social {
  border-left: 0;
  background: transparent;
}

.thanks-universal .thanks-universal__social .btn {
  width: fit-content;
  margin-top: 12px;
}

.footer {
  padding: 88px 0 60px;
  color: #d9d4cb;
  background: var(--dark);
}

.footer__grid {
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.footer__logo {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3em;
}

.footer__tag {
  margin-top: 12px;
  color: #8f8c85;
  font-size: 14px;
  font-weight: 300;
}

.footer__geo {
  margin-top: 8px;
  color: #c5a36e;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.footer__head {
  margin: 0 0 18px;
  color: #8f8c85;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a {
  margin: 0;
  font-size: 15.5px;
}

.footer__col a small {
  margin-left: 6px;
  color: #8f8c85;
  font-size: 11.5px;
}

.footer__col p {
  margin: 0;
  color: #8f8c85;
  font-size: 13.5px;
  font-weight: 300;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.footer__social a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(217, 212, 203, .25);
  font-size: 13.5px;
  letter-spacing: .08em;
}

.footer__col .footer__insta {
  color: #c5a36e;
  font-size: 13.5px;
}

.footer__col .footer__privacy {
  margin-top: 4px;
  color: #76736c;
  font-size: 12px;
}

.footer__legal {
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 212, 203, .16);
  color: #8f8c85;
  font-size: 11px;
}

.floating-quiz {
  top: 50%;
  right: 24px;
  bottom: auto;
  width: min(356px, calc(100vw - 48px));
  transform: translateY(-50%);
  background: #17191a;
  box-shadow: 0 28px 80px -34px rgba(0, 0, 0, .72);
}

@keyframes floatingQuizIn {
  from {
    opacity: 0;
    transform: translate(18px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.floating-quiz__open {
  display: block;
  padding: 28px 26px 25px;
}

.floating-quiz__copy b {
  max-width: 270px;
  color: #f5f1e8;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.08;
}

.floating-quiz__copy > span {
  max-width: 260px;
  margin-top: 14px;
  color: rgba(245, 241, 232, .66);
  font-size: 13px;
  line-height: 1.6;
}

.floating-quiz__open em {
  display: inline-block;
  min-height: auto;
  margin-top: 20px;
  padding-bottom: 4px;
  color: #d8b77f;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.message-dock {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-dock__toggle,
.message-dock__link {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .65);
}

.message-dock__toggle {
  position: relative;
  z-index: 2;
  color: #fff;
  background: #111315;
  transform-origin: 50% 50%;
}

.message-dock.is-attention .message-dock__toggle {
  animation: messageDockAttention 2.45s ease-out;
}

.message-dock__toggle::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(197, 163, 110, .45);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
}

.message-dock.is-attention .message-dock__toggle::after {
  animation: messageDockPulse 2.45s ease-out;
}

@keyframes messageDockAttention {
  0%,
  100% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.045);
  }
  66% {
    transform: scale(1.018);
  }
}

.message-dock__toggle svg {
  width: 28px;
  fill: currentColor;
  stroke: none;
}

@keyframes messageDockPulse {
  0% {
    opacity: 0;
    transform: scale(.8);
  }
  28% {
    opacity: .55;
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

.message-dock__links {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}

.message-dock.is-open .message-dock__links {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.message-dock__link {
  color: #fff;
}

.message-dock__brand {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.message-dock__brand--max {
  width: 34px;
  height: 34px;
}

.message-dock__link--wa {
  background: #278e5f;
}

.message-dock__link--max {
  background: linear-gradient(145deg, #20c8ef 0%, #4557ee 54%, #9b24e8 100%);
}

@media (prefers-reduced-motion: reduce) {
  .message-dock.is-attention .message-dock__toggle,
  .message-dock.is-attention .message-dock__toggle::after {
    animation: none;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 136px 0;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 20px;
    margin-left: 24px;
  }

  .btn--header {
    display: none;
  }
}

@media (max-width: 980px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 390px;
  }

  .project-tile--wide {
    grid-column: span 2;
  }

  .founder__layout,
  .process__intro,
  .cta__layout {
    grid-template-columns: 1fr;
  }

  .founder__layout {
    gap: 50px;
  }

  .process__intro {
    gap: 10px;
  }

  .cta__layout {
    gap: 48px;
  }

  .catalog-download__layout,
  .catalog-thanks-landing__scene,
  .thanks-universal__layout {
    grid-template-columns: 1fr;
  }

  .catalog-download__layout {
    padding: 34px;
  }

  .catalog-thanks-landing__scene {
    min-height: 720px;
    padding: 42px;
  }

  .catalog-thanks-landing__andrey {
    max-width: 620px;
  }

  .thanks-universal__social {
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .floating-quiz {
    left: auto;
    right: 18px;
    bottom: auto;
  }
}

@media (max-width: 767px) {
  .header {
    top: 0;
  }

  .header__bar {
    min-height: 66px;
  }

  .header.is-open .nav {
    inset: 66px 0 auto;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(15, 17, 18, .28) 0%, rgba(15, 17, 18, .18) 24%, rgba(15, 17, 18, .62) 58%, rgba(15, 17, 18, .96) 100%);
  }

  .hero__image img {
    object-position: center center;
  }

  .hero__content {
    padding: 124px 22px 126px;
  }

  .eyebrow {
    max-width: 330px;
    font-size: 9.5px;
    line-height: 1.7;
    letter-spacing: .24em;
  }

  .hero h1 {
    font-size: clamp(46px, 12.5vw, 56px);
    line-height: .99;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 1.72;
  }

  .hero__actions {
    display: grid;
    gap: 12px;
    margin-top: 30px;
  }

  .hero__actions .btn {
    min-height: 56px;
    padding-inline: 16px;
    font-size: 10.5px;
    letter-spacing: .15em;
  }

  .hero__trust {
    bottom: 24px;
    gap: 12px;
    font-size: 9.5px;
    letter-spacing: .16em;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-tile,
  .project-tile--wide {
    grid-column: auto;
    min-height: 360px;
  }

  .project-tile h3,
  .project-tile--wide h3 {
    font-size: 38px;
  }

  .future-calc {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 28px;
  }

  .future-calc .btn {
    width: 100%;
  }

  .founder {
    padding-top: 72px;
  }

  .founder__portrait,
  .founder__portrait img {
    min-height: 520px;
  }

  .founder__content h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .founder__facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 68px;
  }

  .founder__facts li {
    min-height: 132px;
    padding: 24px 18px;
  }

  .founder__facts b {
    font-size: 34px;
  }

  .process__lead {
    font-size: 26px;
  }

  .process__list {
    margin-top: 64px;
  }

  .process__list li {
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 30px 0;
  }

  .process__list h3 {
    font-size: 27px;
  }

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

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    grid-column: auto;
    min-height: 280px;
  }

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

  .social .section__head--center {
    margin-inline: 0;
    text-align: left;
  }

  .cta__form {
    padding: 30px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .floating-quiz {
    top: 50%;
    right: 0;
    left: auto;
    width: 48px;
    color: #fff;
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, .75);
  }

  .floating-quiz__open {
    min-height: 174px;
    padding: 14px 9px;
  }

  .floating-quiz__copy {
    display: none;
  }

  .floating-quiz__open em {
    margin: 0;
    padding: 0;
    border: 0;
    color: #f5f1e8;
    font-size: 9px;
    letter-spacing: .14em;
    line-height: 1.4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .floating-quiz__close {
    top: -9px;
    right: 7px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .message-dock {
    right: 14px;
    bottom: 14px;
  }

  .message-dock__toggle,
  .message-dock__link {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .works__grid {
    grid-template-columns: 1fr;
  }

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    min-height: 300px;
  }
}

@media (max-width: 360px) {
  .founder__facts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Refinement pass: catalog controls, quiz and modal forms
   ============================================================ */

.page--home #projects .featured-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.section--catalog .catalog-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.project-tile[data-slug="villa-miya"] > img {
  object-position: center 69%;
}

.project-tile[data-slug="fuji"] > img {
  object-position: center 76%;
}

.future-calc {
  color: #f5f1e8;
  border: 0;
  background:
    linear-gradient(90deg, rgba(12, 14, 15, .9) 0%, rgba(12, 14, 15, .75) 58%, rgba(12, 14, 15, .55) 100%),
    url("projects/Black Wave/main.webp") center bottom / cover;
}

.future-calc .section__kicker {
  color: #d8b77f;
}

.future-calc h3 {
  color: #f5f1e8;
}

.future-calc p:last-child {
  color: rgba(245, 241, 232, .68);
}

.future-calc::after {
  background: rgba(255, 255, 255, .14);
}

.founder {
  background: var(--dark);
}

.founder::before {
  display: none;
}

.founder__content h2 {
  font-size: clamp(36px, 7.5vw, 64px);
}

.social {
  background: #ece7dd;
}

.works__item:nth-child(6) {
  grid-column: 1 / -1;
  height: 520px;
  min-height: 0;
}

.works__item {
  height: 470px;
  min-height: 0;
}

.works__item:nth-child(3),
.works__item:nth-child(4),
.works__item:nth-child(5) {
  height: 340px;
  min-height: 0;
}

.works__item img {
  display: block;
  min-height: 0;
}

.works__item:nth-child(1) img {
  object-position: center 58%;
}

.works__item:nth-child(2) img {
  object-position: center 46%;
}

.works__item:nth-child(3) img {
  object-position: center 24%;
}

.works__item:nth-child(4) img {
  object-position: center 12%;
}

.works__item:nth-child(5) img {
  object-position: center 28%;
}

.works__item:nth-child(6) img {
  object-position: center 25%;
}

.page-hero--catalog {
  padding-bottom: 10px;
}

.page-hero--catalog h1 {
  max-width: 900px;
}

.section--catalog {
  padding-top: 34px;
  padding-bottom: 0;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 34px;
  padding: 20px 26px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 249, .7);
}

.catalog-toolbar__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
  padding-top: 12px;
}

.catalog-toolbar input[data-filter-search] {
  width: 100%;
  min-height: 50px;
  padding: 0 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.catalog-toolbar input[data-filter-search]:focus {
  border-color: var(--brass);
}

.catalog-toolbar__count {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-reset {
  min-height: 0;
  padding: 0 2px 2px;
  border: 0;
  border-bottom: 1px solid var(--brass);
  color: var(--brass-dark);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-group__label {
  flex: 0 0 120px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}

.filter-chip:hover {
  color: var(--brass-dark);
  border-color: var(--brass);
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--brass);
  background: var(--brass);
}

.quiz-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .68fr);
  gap: 0;
  min-height: 650px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: none;
}

.quiz-card__content {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  padding: 48px 54px 38px;
}

.quiz-progress {
  height: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--line);
}

.quiz-progress span {
  display: block;
  width: calc(100% / 8);
  height: 100%;
  background: var(--brass);
  transition: width .65s var(--ease);
}

.quiz-counter {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.quiz-step h1 {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.quiz-step.is-active {
  animation: quizStepIn .55s var(--ease);
}

@keyframes quizStepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quiz-options {
  gap: 10px;
}

.quiz-option {
  min-height: 56px;
  padding: 13px 18px;
  color: #3c3d3a;
  border-color: var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}

.quiz-option:hover {
  border-color: var(--brass);
}

.quiz-option.is-selected {
  color: var(--ink);
  border-color: var(--brass);
  background: rgba(138, 106, 57, .08);
}

.quiz-nav {
  margin-top: auto;
  padding-top: 30px;
}

.quiz-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.quiz-back svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.quiz-back:hover {
  color: var(--ink);
  border-color: var(--brass);
  background: rgba(138, 106, 57, .06);
  transform: translateX(-2px);
}

.quiz-back:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.mini-form--quiz {
  gap: 12px;
}

.mini-form--quiz input {
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.messenger-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.messenger-choice__item {
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.messenger-choice__item:hover {
  border-color: var(--brass);
}

.messenger-choice__item.is-selected {
  color: var(--ink);
  border-color: var(--brass);
  background: rgba(138, 106, 57, .09);
}

.quiz-submit {
  margin-top: 4px;
}

.quiz-visual {
  min-height: 650px;
}

.quiz-visual img {
  object-position: center 68%;
}

.quiz-card--modal {
  min-height: min(700px, calc(100svh - 68px));
}

.quiz-card--modal .quiz-card__content,
.quiz-card--modal .quiz-visual {
  min-height: min(700px, calc(100svh - 68px));
}

.contact-modal {
  position: fixed;
  z-index: 105;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 8, 9, .8);
  backdrop-filter: blur(12px);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 50px;
  align-items: center;
  padding: 56px;
  background: var(--paper);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.contact-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 249, .9);
  font-size: 27px;
  line-height: 1;
}

.contact-modal__copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 300;
  line-height: .98;
}

.contact-modal__copy > p:not(.section__kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.contact-modal__copy > a {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 3px;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
}

.contact-modal__form {
  padding: 32px 28px;
}

.contact-modal__success {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 34px;
  text-align: left;
}

.contact-modal__success[hidden] {
  display: none;
}

.contact-modal.is-sent .contact-modal__copy,
.contact-modal.is-sent .contact-modal__form {
  display: none;
}

.contact-modal__success h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  line-height: .98;
}

.contact-modal__success p:not(.section__kicker) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.contact-modal__success .btn {
  margin-top: 30px;
}

.image-lightbox {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 7, 8, .94);
  backdrop-filter: blur(14px);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  grid-template-columns: clamp(64px, 8vw, 116px) minmax(0, 1fr) clamp(64px, 8vw, 116px);
  overflow: hidden;
}

.image-lightbox__figure {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  place-items: center;
  margin: 0;
  padding: 18px 0;
  overflow: hidden;
  cursor: pointer;
}

.image-lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 36px);
  min-height: 0;
  object-fit: contain;
}

.image-lightbox__figure figcaption {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 22px;
  padding: 28px 12px 10px;
  color: rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 8, .7));
  font-size: 12px;
  letter-spacing: .08em;
  pointer-events: none;
}

.image-lightbox__close {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  background: rgba(17, 19, 21, .66);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.image-lightbox__close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.image-lightbox__nav {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  transition: background .35s var(--ease);
}

.image-lightbox__close:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .12);
}

.image-lightbox__nav--prev:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, .09), transparent);
}

.image-lightbox__nav--next:hover {
  background: linear-gradient(270deg, rgba(255, 255, 255, .09), transparent);
}

.image-lightbox__close svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.image-lightbox__nav svg {
  width: 50px;
  height: 50px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  background: rgba(17, 19, 21, .6);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.image-lightbox__nav--prev:hover svg {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .12);
  transform: translateX(-4px);
}

.image-lightbox__nav--next:hover svg {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .12);
  transform: translateX(4px);
}

.image-lightbox__close:focus-visible,
.image-lightbox__nav:focus-visible {
  outline: 2px solid #d8b77f;
  outline-offset: -4px;
}

@media (max-width: 980px) {
  .timeline-wrap {
    margin-right: -22px;
    padding-right: 22px;
  }

  .timeline {
    min-width: 1180px;
    padding: 24px 24px 20px;
  }

  .timeline__grid {
    height: 340px;
  }

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    height: 360px;
  }

  .quiz-card {
    grid-template-columns: 1fr;
  }

  .quiz-visual {
    display: none;
  }

  .contact-modal__dialog {
    grid-template-columns: 1fr;
    gap: 34px;
    max-height: calc(100svh - 68px);
    overflow: auto;
  }

  .image-lightbox__dialog {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
  }

  .image-lightbox__nav svg {
    width: 44px;
    height: 44px;
    padding: 11px;
  }
}

@media (max-width: 640px) {
  .section.timeline-section {
    padding: 58px 0;
  }

  .timeline-section .section__head {
    margin-bottom: 26px;
  }

  .timeline {
    min-width: 1240px;
    padding: 22px 20px 18px;
    border-radius: 10px;
  }

  .timeline__grid {
    height: 340px;
  }

  .timeline__item {
    min-height: 60px;
    padding: 12px;
    font-size: 13px;
  }

  .timeline__item--compact {
    padding-right: 7px;
    padding-left: 7px;
  }

  .timeline__item--compact span {
    hyphens: none;
  }

  .timeline__months span {
    font-size: 12px;
  }

  .page--home #projects .featured-grid {
    width: 100vw;
  }

  .future-calc {
    margin-right: -22px;
    margin-left: -22px;
    background-position: 50% bottom;
  }

  .works__item,
  .works__item:nth-child(3),
  .works__item:nth-child(4),
  .works__item:nth-child(5),
  .works__item:nth-child(6) {
    height: 320px;
    min-height: 0;
  }

  .catalog-download {
    padding: 0 0 58px;
  }

  .catalog-download__layout {
    min-height: 0;
    padding: 28px 22px;
    gap: 24px;
  }

  .catalog-download__form {
    padding: 28px 22px;
  }

  .catalog-thanks-landing__scene {
    min-height: calc(100svh - 66px);
    padding: 32px 26px;
  }

  .catalog-thanks-landing__scene::before {
    background-position: 58% center;
  }

  .catalog-thanks-landing h1 {
    font-size: clamp(35px, 10.4vw, 44px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .catalog-thanks-landing__andrey {
    padding: 24px;
  }

  .catalog-thanks-landing,
  .thanks-universal {
    padding: 104px 0 54px;
  }

  .catalog-thanks-landing {
    padding: 66px 0 0;
  }

  .thanks-universal__copy,
  .thanks-universal__social {
    padding: 34px 26px;
  }

  .catalog-thanks-landing .thanks-universal__copy {
    padding: 0;
  }

  .catalog-thanks-landing .thanks-universal__social {
    padding: 24px 0 0;
  }

  .section--catalog {
    padding-top: 22px;
    padding-bottom: 0;
  }

  .catalog-toolbar {
    margin-bottom: 28px;
    padding: 16px 18px;
  }

  .catalog-toolbar__summary {
    gap: 10px 14px;
    padding-top: 12px;
  }

  .filter-group {
    align-items: flex-start;
    padding: 14px 0;
  }

  .filter-group__label {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .filter-chip {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .quiz-card,
  .quiz-card--modal {
    border: 0;
  }

  .quiz-card__content,
  .quiz-card--modal .quiz-card__content {
    min-height: 100svh;
    padding: 76px 22px 28px;
  }

  .quiz-step h1,
  .quiz-card--modal .quiz-step h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .messenger-choice {
    grid-template-columns: 1fr;
  }

  .contact-modal {
    padding: 0;
  }

  .contact-modal__dialog {
    width: 100%;
    height: 100svh;
    max-height: none;
    padding: 74px 22px 30px;
  }

  .contact-modal__copy h2 {
    font-size: 48px;
  }

  .contact-modal__form {
    padding: 28px 22px;
  }

  .section.project-about-section--with-plans {
    padding-bottom: 28px;
  }

  .section.project-plans-section {
    padding-top: 28px;
  }

  .section.project-about-section--without-plans {
    padding-bottom: 28px;
  }

  .section.project-gallery-section--after-about {
    padding-top: 28px;
  }

  .image-lightbox__dialog {
    width: 100vw;
    height: 100svh;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
  }

  .image-lightbox__figure {
    padding: 64px 0 18px;
  }

  .image-lightbox__figure img {
    max-height: calc(100svh - 82px);
  }

  .image-lightbox__figure figcaption {
    right: 4px;
    bottom: 18px;
    left: 4px;
    gap: 12px;
    padding: 24px 8px 8px;
    font-size: 10.5px;
  }

  .image-lightbox__close {
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    background: rgba(17, 19, 21, .92);
  }

  .image-lightbox__nav {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .image-lightbox__nav svg {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
}

/* Home: visually join built works and the unified-system process */
.page--home .works {
  padding-bottom: 64px;
}

.page--home .process {
  padding-top: 72px;
  background: #fffdf9;
  border-top: 1px solid var(--line);
}

@media (max-width: 767px) {
  .page--home .works {
    padding-bottom: 38px;
  }

  .page--home .process {
    padding-top: 48px;
  }
}
