main h1, main h2, main h3 {
  text-transform: none !important;
  text-wrap: balance;
}

main h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem) !important;
  line-height: 1.15 !important;
}

main h2 { font-size: clamp(1.4rem, 2.2vw, 1.95rem) !important; }
main h3 { font-size: clamp(1.05rem, 1.7vw, 1.35rem) !important; }

.figma-cover, .figma-page, .figma-page-copy,
.figma-contacts .figma-page-copy, .figma-works .figma-page-copy-short {
  min-height: 0 !important;
}

.figma-page-copy,
.figma-contacts .figma-page-copy, .figma-prices .figma-page-copy {
  padding-block: clamp(2rem, 4vw, 3.5rem) !important;
  margin-inline: auto;
}

.figma-page { padding-bottom: 0 !important; }
.figma-cover-benefits { position: relative !important; inset: auto !important; }
.figma-work-grid { margin-block: 0 2rem !important; }
.figma-contacts .figma-page-copy { padding-inline-end: min(53%, 690px); }
.figma-socials, .figma-side-panel { top: 2.5rem !important; }
.figma-about .figma-side-panel { bottom: 2rem; }
.figma-socials { bottom: auto; }
.page-intro, .price-intro { min-height: 0 !important; padding-block: 2rem !important; }
.preview-note { color: inherit; }
.restored-legacy { width: min(65ch, calc(100% - 2.5rem)); margin: 2rem auto; }
.restored-legacy p { margin-block: .8rem; }

@media (max-width: 1050px) {
  .figma-socials, .figma-side-panel { top: auto !important; }
}

@media (max-width: 700px) {
  .figma-contacts .figma-page-copy { padding-inline-end: 0 !important; }
  .figma-socials { margin: 0 auto 1.5rem !important; }
  .services-jump { position: static !important; }
}

.figma-cover { background: #101110; }
.project-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(28rem, 62svh, 37rem);
  padding-block: 3rem;
}
.project-hero-copy {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(12 13 12 / .28), transparent 36%),
    linear-gradient(90deg, rgb(12 13 12 / .96) 0%, rgb(12 13 12 / .88) 30%, rgb(12 13 12 / .46) 65%, rgb(12 13 12 / .26) 100%);
}
.project-hero h1 { max-width: 22ch; margin: 0; color: #f5f2ea; }
.project-hero-copy > p { max-width: 42ch; margin: 1rem 0 1.4rem; color: #d1d0c8; line-height: 1.6; }
.project-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.project-calculator { display: inline-block; padding: .7rem 0; margin-top: .4rem; color: #ffd328; text-decoration: underline; text-underline-offset: .25em; }
.project-hero-photo { position: absolute; inset: 0; z-index: -2; }
.project-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; }

.inquiry-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #171917;
  color: #f5f2ea;
  border: 1px solid #5d5c51;
  border-radius: .8rem;
}
.inquiry-dialog::backdrop { background: rgb(0 0 0 / .75); }
.inquiry-dialog-content { padding: clamp(1rem, 4vw, 1.75rem); }
.inquiry-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.inquiry-dialog-heading h2 { font-size: 1.5rem; margin: 0; }
.inquiry-close { width: 44px; height: 44px; flex: 0 0 44px; background: #242624; color: inherit; font-size: 1.5rem; cursor: pointer; }
.inquiry-dialog-content > p { color: #d1d0c8; margin: .45rem 0 1rem; }
.inquiry-dialog .lead-form { display: grid; padding: 0; margin: 0; border: 0; width: 100%; background: transparent; }
.inquiry-dialog :focus-visible, .project-hero :focus-visible { outline: 2px solid #ffd328; outline-offset: 3px; }
html:has(.inquiry-dialog[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .project-hero { min-height: clamp(25rem, 57svh, 32rem); align-items: end; padding-block: 2.25rem; }
  .project-hero-copy { width: calc(100% - 40px); }
  .project-hero-photo img { object-position: 66% center; }
  .project-hero::after {
    background: linear-gradient(0deg, rgb(12 13 12 / .97) 0%, rgb(12 13 12 / .88) 36%, rgb(12 13 12 / .48) 76%, rgb(12 13 12 / .35) 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-hero-photo img { animation: tkachi-project-view 650ms cubic-bezier(.16, 1, .3, 1) both; }
  .inquiry-dialog[open] { animation: tkachi-dialog-in 230ms cubic-bezier(.16, 1, .3, 1) both; }
  .inquiry-dialog[open]::backdrop { animation: tkachi-backdrop-in 180ms ease-out both; }
  .button, .inquiry-close, .project-calculator { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease; }
  .button:active, .inquiry-close:active { transform: translateY(1px); }
  .figma-work-grid > a > img { transition: transform 350ms cubic-bezier(.16, 1, .3, 1); }
  .figma-work-grid > a:focus-visible > img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .figma-work-grid > a:hover > img { transform: scale(1.035); }
}
@keyframes tkachi-project-view { from { transform: scale(1.045); opacity: .86; } }
@keyframes tkachi-dialog-in { from { opacity: 0; transform: translateY(9px) scale(.985); } }
@keyframes tkachi-backdrop-in { from { opacity: 0; } }
