:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}

.arrow-link::after {
  content: none;
}

.benefit-section {
  padding: 0;
  overflow: clip;
}

.benefit-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 80px);
  padding-block: clamp(96px, 12vw, 175px);
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

.benefit-section:not(.benefit-control) .benefit-card {
  padding-bottom: clamp(44px, 7vw, 96px);
}

#about.section {
  padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 100px) !important;
}

.section.portfolio-section {
  padding-top: clamp(68px, 8vw, 112px) !important;
}

.benefit-control .benefit-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
}

.benefit-control .benefit-copy {
  grid-column: 2;
  grid-row: 1;
}

.benefit-control .benefit-facts {
  grid-column: 1;
  grid-row: 1;
}

.concept-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  opacity: .58;
  filter: blur(7px) saturate(.75);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.benefit-control .concept-art {
  object-position: 18% center;
}

.benefit-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background:
    linear-gradient(0deg, #080909, transparent 35%, transparent 67%, #080909),
    linear-gradient(90deg, #080909 2%, rgba(8,9,9,.9) 37%, rgba(8,9,9,.2) 78%, #080909);
}

.benefit-control .benefit-card::before {
  background:
    linear-gradient(0deg, #080909, transparent 35%, transparent 67%, #080909),
    linear-gradient(270deg, #080909 2%, rgba(8,9,9,.88) 38%, rgba(8,9,9,.15) 80%, #080909);
}

.benefit-copy h2 {
  font-size: clamp(36px, 5.7vw, 82px);
  letter-spacing: -.075em;
  line-height: .96;
  margin: 0 0 24px;
}

.benefit-copy p {
  max-width: 36ch;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.5;
  color: #c5c8c4;
  margin: 0;
}

.benefit-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 34px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  padding: 10px 15px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 8px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  animation: fact-float 7s ease-in-out infinite alternate;
}

.benefit-facts b {
  flex: 0 0 22px;
  color: var(--acid);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.benefit-facts li:nth-child(even) {
  justify-self: end;
  margin-top: 18px;
  animation-delay: -3s;
}

.benefit-control .benefit-facts li:nth-child(odd) {
  margin-top: 18px;
}

.benefit-control .benefit-facts li:nth-child(even) {
  margin-top: 0;
}

@keyframes fact-float {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  position: relative;
  gap: 14px;
  isolation: isolate;
}

.timeline-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  fill: none;
  stroke: var(--acid);
  stroke-opacity: .58;
  stroke-width: 1;
  pointer-events: none;
}

.step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 6px;
}

.step i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: #101211;
  color: var(--acid);
  font-style: normal;
  font-weight: bold;
}

.step:nth-of-type(even) {
  padding-top: 48px;
}

.step b {
  font-size: 16px;
  line-height: 1.15;
}

.step span {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.projects .real-project {
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.projects .real-project img,
.project-catalog .work-preview img {
  display: block;
  width: 100%;
  height: clamp(250px, 29vw, 370px) !important;
  object-fit: cover;
}

:is([data-case="pearl"], [data-open-project="pearl"]) img {
  object-position: 50% 55%;
}

:is([data-case="project-02"], [data-open-project="project-02"]) img {
  object-position: 60% 59%;
}

:is([data-case="project-03"], [data-open-project="project-03"]) img {
  object-position: 45% 64%;
}

.real-project .project-num {
  padding: 18px 24px 0;
}

.real-project > div {
  padding: 10px 24px 24px;
}

.project-cover {
  display: block;
}

.project-title {
  display: inline-block;
}

.project-title:hover {
  color: var(--acid);
}

.projects .project-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  min-height: 44px;
  padding: 6px 0;
  color: #c4cac1;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #667065;
  text-underline-offset: .28em;
}

.projects .real-project:hover .project-cta {
  color: #c4cac1;
}

.projects .real-project .project-cta:is(:hover, :focus-visible) {
  color: var(--acid);
  text-decoration-color: currentColor;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 10px;
  margin: 4px 0 20px;
  line-height: 1.4;
  font-size: 14px;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--acid);
}

.consent a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.form .field {
  font-size: 16px;
}

.form .notice {
  color: var(--white);
}

dialog.project-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: var(--white);
  background: transparent;
}

dialog.project-dialog[open] {
  display: grid;
}

dialog.project-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.project-dialog .modal {
  max-height: calc(100dvh - 40px);
  background: #111 !important;
  overscroll-behavior: contain;
}

.project-dialog .modal-close {
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
}

@media (min-width: 781px) {
  .hero h1.hero-title-ladder {
    line-height: .91 !important;
  }

  .hero-title-ladder span:last-child {
    margin-top: .04em;
  }
}

@media (max-width: 1050px) and (min-width: 781px) {
  #about .about-grid {
    grid-template-columns: 1fr !important;
  }

  #about .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  :root {
    --mobile-gutter: clamp(16px, 5vw, 28px);
    --mobile-radius: 16px;
  }

  .container,
  .benefit-section .benefit-card {
    width: calc(100% - 2 * var(--mobile-gutter));
  }

  .site-head .nav {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    padding-block: 5px;
  }

  .site-head .brand {
    min-height: 44px;
    font-size: 14px !important;
  }

  .site-head .brand img {
    object-fit: cover !important;
    object-position: left center;
  }

  .site-head .nav-links {
    grid-column: 1;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: visible;
  }

  .site-head .nav-links a {
    display: grid;
    place-items: center;
    min-height: 44px;
    line-height: 1.2;
    font-size: clamp(11px, 3vw, 14px);
    padding: 8px 5px !important;
  }

  .site-head .nav-links .active {
    color: var(--acid) !important;
  }

  .hero {
    min-height: clamp(405px, 68svh, 590px) !important;
    padding-block: 40px;
  }

  .hero h1.hero-title-ladder {
    font-size: clamp(38px, 15.35vw, 105px) !important;
    line-height: .95 !important;
    margin-block: 20px 26px;
  }

  .hero-title-ladder span:nth-child(2) {
    margin-left: 11vw;
  }

  .hero-title-ladder span:nth-child(3) {
    margin-left: 22vw;
  }

  .hero p {
    max-width: 35ch;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .arrow-link,
  .hero-actions .button-acid {
    min-height: 44px;
    margin-top: 0 !important;
  }

  .hero-actions .arrow-link {
    padding-inline: 10px !important;
  }

  .hero-geometry i:nth-child(1) {
    top: 20%;
    right: -22%;
    width: 51vw;
  }

  .hero-geometry i:nth-child(2) {
    top: 57%;
    left: -10%;
    width: 18vw;
  }

  .hero-geometry i:nth-child(3) {
    display: block;
    right: 5%;
    bottom: 12%;
    width: 16vw;
  }

  .page-hero,
  .catalog-head {
    min-height: 0 !important;
    padding-block: clamp(54px, 12vw, 96px) !important;
  }

  .page-hero h1.inner-title-ladder,
  .catalog-head h1.inner-title-ladder {
    font-size: clamp(43px, 13.2vw, 90px) !important;
    line-height: .9 !important;
  }

  .legal.container {
    padding-block: 60px 78px;
  }

  .legal.container h1 {
    font-size: clamp(36px, 10vw, 62px);
  }

  .section {
    padding-block: clamp(56px, 10vw, 85px) !important;
  }

  .section .section-head {
    display: flex !important;
    align-items: end;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 26px !important;
  }

  .section-head .arrow-link {
    min-height: 44px;
    padding-inline: 0 !important;
    margin-top: 0 !important;
  }

  .section-intro {
    max-width: 42ch;
  }

  .section.benefit-section {
    padding: 0 !important;
  }

  .benefit-section .benefit-card {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 7vw, 42px);
    padding-block: clamp(55px, 12vw, 92px);
  }

  .benefit-section:not(.benefit-control) .benefit-card {
    padding-bottom: clamp(28px, 6.5vw, 54px);
  }

  .concept-art {
    inset-inline: calc(-1 * var(--mobile-gutter));
    width: calc(100% + 2 * var(--mobile-gutter));
    opacity: .74;
    filter: blur(5px) saturate(.75);
  }

  .benefit-control .benefit-copy,
  .benefit-control .benefit-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .benefit-control .benefit-copy {
    text-align: right;
  }

  .benefit-control .benefit-copy p {
    margin-left: auto;
  }

  .benefit-copy h2 {
    font-size: clamp(37px, 10.2vw, 72px);
    margin-bottom: 14px;
  }

  .benefit-card::before,
  .benefit-control .benefit-card::before {
    background: linear-gradient(0deg, #080909, rgba(8,9,9,.34) 43%, #080909);
  }

  .benefit-facts {
    gap: 16px 10px;
  }

  .benefit-facts li {
    min-height: 44px;
    padding: 7px 9px;
    gap: 5px;
    font-size: clamp(13px, 3.2vw, 15px);
    border-radius: 19px;
    backdrop-filter: blur(12px);
  }

  .benefit-facts b {
    flex-basis: 18px;
    font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif;
    font-size: 17px;
  }

  .benefit-facts li:nth-child(even) {
    margin-top: 11px;
  }

  .benefit-control .benefit-facts li:nth-child(odd) {
    margin-top: 11px;
  }

  .benefit-control .benefit-facts li:nth-child(even) {
    margin-top: 0;
  }

  #about::before,
  #consultation::before {
    right: 0;
  }

  #about.section {
    padding-block: clamp(30px, 7vw, 48px) clamp(48px, 11vw, 82px) !important;
  }

  #about .metrics {
    gap: 27px 20px !important;
    margin-top: 24px !important;
    padding-bottom: 14px;
  }

  #about .metric:nth-child(even) {
    transform: translateY(12px) !important;
  }

  #about .metric b {
    font-size: clamp(52px, 15.5vw, 90px) !important;
  }

  #about .metric span {
    font-size: 14px !important;
  }

  .projects .real-project,
  .project-catalog .work-preview,
  .contact-page .contact-card,
  .modal .review {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .projects .real-project,
  .project-catalog .work-preview {
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .projects .real-project {
    min-height: 0 !important;
  }

  .projects .real-project img,
  .project-catalog .work-preview img {
    height: auto !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--mobile-radius);
  }

  .projects .real-project > div,
  .project-catalog .work-preview > div,
  .contact-page .contact-card {
    padding-inline: 0 !important;
  }

  .projects .real-project .project-num {
    padding-inline: 0;
  }

  .projects .real-project:hover,
  .project-catalog .work-preview:hover {
    transform: none !important;
    background: transparent !important;
  }

  .project-catalog {
    padding-top: 0 !important;
  }

  .project-index a strong {
    font-size: clamp(28px, 7.5vw, 50px);
    line-height: 1.02;
  }

  .project-index a {
    padding-block: 19px;
  }

  .accordion-toggle {
    padding: 19px 14px;
    font-size: clamp(21px, 5.5vw, 30px);
  }

  .contact-page .contact-card {
    min-height: 0;
  }

  .contact-wrap .form,
  .contact-page .form {
    padding: clamp(16px, 4.6vw, 27px) !important;
  }

  .form .field,
  .form button,
  .project-dialog .modal-close {
    min-height: 44px;
  }

  dialog.project-dialog {
    padding: 12px;
  }

  .project-dialog .modal {
    max-height: calc(100dvh - 24px);
  }

  .project-dialog .modal-content {
    padding: 16px;
  }

  .project-dialog .modal-close {
    top: 10px;
    margin: 10px;
    min-width: 44px;
  }

  .project-dialog .modal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .project-dialog .modal-gallery img:nth-child(n) {
    grid-column: auto;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }

  .project-dialog .modal-gallery img:first-child,
  .project-dialog .modal-gallery img:last-child:nth-child(even) {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .site-head:has(.nav-toggle:not([hidden])) {
    z-index: 10;
  }

  .site-head .nav:has(.nav-toggle:not([hidden])) {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .nav-toggle:not([hidden]) {
    display: grid;
    grid-column: 2;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #ffffff1f;
    border-radius: 13px;
    background: linear-gradient(145deg, #222624, #121513);
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle-icon {
    display: grid;
    gap: 5px;
    width: 19px;
  }

  .nav-toggle-icon span {
    height: 1px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .nav-toggle[aria-expanded="true"] {
    color: var(--acid);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-head .nav-toggle:not([hidden]) + .nav-links {
    position: absolute;
    inset: calc(100% + 7px) 0 auto auto;
    display: none;
    width: min(100%, 340px);
    max-height: calc(100dvh - 95px);
    overflow: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    background: #171b18f5 !important;
    backdrop-filter: blur(18px);
    box-shadow: inset 0 0 0 1px #ffffff20, 0 20px 50px #0009 !important;
  }

  .site-head .nav-toggle[aria-expanded="true"] + .nav-links {
    display: grid;
  }

  .site-head .nav-toggle:not([hidden]) + .nav-links a {
    justify-items: start;
    border-radius: 9px;
    padding-inline: 14px !important;
    font-size: 15px;
  }
}

@media (max-width: 649px) {
  .projects .real-project[data-case="pearl"] img,
  .project-catalog .work-preview[data-open-project="pearl"] img {
    aspect-ratio: 4 / 5;
  }

  .projects .real-project[data-case="project-02"] img,
  .project-catalog .work-preview[data-open-project="project-02"] img {
    aspect-ratio: 6 / 5;
  }

  .projects .real-project[data-case="project-03"] img,
  .project-catalog .work-preview[data-open-project="project-03"] img {
    aspect-ratio: 4 / 3;
  }

  .projects,
  .project-catalog {
    gap: 26px !important;
  }

  .projects .real-project:nth-child(even),
  .project-catalog .work-preview:nth-child(even) {
    width: 92% !important;
    justify-self: end;
  }

  .projects .real-project:nth-child(3),
  .project-catalog .work-preview:nth-child(3) {
    width: 94% !important;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .step,
  .step:nth-of-type(even) {
    grid-template-columns: clamp(78px, 25vw, 118px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    row-gap: 4px;
    min-height: 62px;
    padding: 0;
  }

  .step i {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
  }

  .step:nth-of-type(even) i {
    justify-self: end;
  }

  .step b,
  .step span {
    grid-column: 2;
    align-self: center;
  }
}

@media (min-width: 650px) and (max-width: 780px) {
  .site-head .nav {
    grid-template-columns: auto 1fr !important;
    gap: 24px !important;
  }

  .site-head .nav-links {
    grid-column: 2;
    justify-content: flex-end;
    gap: 12px !important;
  }

  .site-head .nav-links a {
    padding-inline: 9px !important;
  }

  .benefit-section .benefit-card,
  .benefit-section.benefit-control .benefit-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .benefit-control .benefit-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .benefit-control .benefit-facts {
    grid-column: 1;
    grid-row: 1;
  }

  .benefit-copy h2 {
    font-size: clamp(33px, 5.7vw, 46px);
  }

  .benefit-facts li {
    font-size: 13px;
  }

  #about .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #about .metric:nth-child(even) {
    transform: none !important;
  }

  #about .metric b {
    font-size: clamp(52px, 9vw, 69px) !important;
  }

  .container .projects,
  .project-catalog.container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .projects .real-project h3,
  .project-catalog .work-preview b {
    font-size: 22px;
  }

  .timeline {
    gap: 9px;
  }

  .step b {
    font-size: 15px;
  }

  .contact-wrap.container,
  .contact-page.container {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-facts li {
    animation: none;
  }
}

.form .form-destination {
  margin: 0 0 15px;
  color: #c5cac1;
  font-size: 14px;
}

.form .telegram-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 6px 0 0 12px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form button:disabled {
  opacity: .7;
  cursor: wait;
}

.project-coming .container {
  text-align: center;
}

.project-coming .eyebrow {
  color: var(--acid) !important;
}

.project-coming h1.inner-title-ladder {
  align-items: center !important;
  gap: .08em;
  font-size: clamp(37px, 9vw, 111px) !important;
  line-height: .9 !important;
}

.project-coming h1.inner-title-ladder span {
  margin-left: 0;
}

.project-catalog .work-preview[data-open-project="pearl"] img {
  object-position: 50% 56%;
}

.project-catalog .work-preview[data-open-project="project-02"] img {
  object-position: 53% 58%;
}

.project-catalog .work-preview[data-open-project="project-03"] img {
  object-position: 49% 59%;
}

/* Legal titles use the shared hero geometry with room for longer words. */
.hero--legal h1.hero-title-ladder {
  font-size: clamp(32px, 7.4vw, 112px) !important;
}

.hero--legal .hero-title-ladder span:nth-child(3) {
  margin-left: 12vw;
}

.hero--legal .hero-title-ladder span:nth-child(4) {
  margin-left: 20vw;
}

@media (max-width: 780px) {
  .hero--legal h1.hero-title-ladder {
    font-size: clamp(27px, 8.3vw, 61px) !important;
  }
}

#about .metrics.metrics--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
