:root {
  --editorial-rule: color-mix(in srgb, var(--color-text) 20%, transparent);
  --editorial-wash: color-mix(in srgb, var(--color-surface-muted) 54%, var(--color-background));
  --editorial-title: clamp(2.7rem, 5.3vw, 5.7rem);
  --editorial-heading: clamp(1.95rem, 3.5vw, 3.7rem);
  --display-face: "Vazirmatn", Tahoma, sans-serif;
  --display-weight: 640;
}

:root:lang(en) {
  --display-face: Georgia, "Times New Roman", serif;
  --display-weight: 400;
}

:is(h1, h2, .exhibit-caption h3, .team-card h3, .library-entry-link h3, .price-panel h3, .gallery-card h3) {
  font-family: var(--display-face);
}

.site-header {
  border-color: var(--editorial-rule);
}

.header-inner {
  min-block-size: 4.5rem;
}

.site-header .wordmark::after {
  display: none;
}

:is(.site-header, .site-footer) .wordmark bdi {
  font-size: 1.14rem;
  font-weight: 500;
  letter-spacing: .14em;
}

:is(.site-header, .site-footer) .wordmark svg {
  inline-size: 1.25rem;
  color: var(--color-action);
}

.header-cta {
  min-block-size: 2.6rem;
  padding-inline: .9rem;
  background: var(--color-text);
  border-color: var(--color-text);
  font-size: .82rem;
}

.button, .menu-toggle, .filter-button, .search-label input, .form-fields select {
  border-radius: 0;
}

.text-link {
  font-weight: 590;
}

.section-heading h2, .team-copy h2, .cta-band h2, .home-gallery-copy h2,
.exhibit-rail h2, .journey .section-heading h2, .price-process h2 {
  font-size: var(--editorial-heading);
  font-weight: var(--display-weight);
  line-height: 1.13;
}

:root:lang(en) :is(h1, .section-heading h2, .home-gallery-copy h2, .team-copy h2, .cta-band h2) {
  letter-spacing: -.04em;
}

:is(.page-heading h1, .team-copy h2, .home-faq .section-heading h2)::after,
:is(.team-copy h2, .home-faq .section-heading h2)::before {
  content: none;
}

.home-services, .home-gallery, .home-team, .home-faq {
  padding-block: var(--section-space);
}

.home-services, .journey {
  color: var(--color-text);
  background: var(--color-background);
  border-block-end: 1px solid var(--editorial-rule);
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.8fr);
  gap: clamp(1.7rem, 6vw, 7.75rem);
}

.exhibit-rail {
  position: sticky;
  inset-block-start: 3rem;
  align-self: start;
}

.exhibit-rail p {
  max-inline-size: 34ch;
  margin-block: .75rem 1.35rem;
  color: var(--color-text-muted);
}

.exhibit-nav {
  display: grid;
  margin-block: 0 1.25rem;
}

.exhibit-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  position: relative;
  min-block-size: 3.25rem;
  padding-block: .45rem;
  border-block-start: 1px solid var(--editorial-rule);
  color: var(--color-text);
  text-decoration: none;
}

.exhibit-nav a svg, .exhibit-arrow svg {
  flex: 0 0 auto;
  inline-size: 1.2rem;
}

.exhibit-nav a:is(:hover, [aria-current]) {
  border-block-start-color: var(--color-action);
  color: var(--color-action);
}

.editorial-motion .exhibit-nav a[aria-current] {
  border-block-start-color: var(--editorial-rule);
}

.editorial-motion .exhibit-nav a[aria-current]::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  block-size: 2px;
  background: var(--color-action);
  transform: scaleX(var(--chapter-progress, 0));
  transform-origin: left;
}

[dir="rtl"] .editorial-motion .exhibit-nav a[aria-current]::before {
  transform-origin: right;
}

.exhibit-list {
  display: grid;
  gap: clamp(2rem, 4.6vw, 5rem);
}

.exhibit-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.exhibit-photo {
  aspect-ratio: 1.78;
  overflow: hidden;
  background: var(--editorial-wash);
}

.editorial-motion .exhibit-photo {
  --chapter-inset: calc((1 - var(--chapter-open, 1)) * 25%);
  --chapter-left: var(--chapter-inset);
  --chapter-right: 0%;
  clip-path: inset(0 var(--chapter-right) 0 var(--chapter-left));
}

:is([dir="rtl"] .editorial-motion .exhibit-card:nth-child(odd), [dir="ltr"] .editorial-motion .exhibit-card:nth-child(even)) .exhibit-photo {
  --chapter-left: 0%;
  --chapter-right: var(--chapter-inset);
}

.exhibit-photo img {
  block-size: 100%;
  object-fit: cover;
  transform: translateY(calc(var(--photo-travel, 0) * 6%)) scale(calc(1.08 + var(--photo-progress, 0) * .15));
}

.exhibit-link:focus-visible .exhibit-photo {
  clip-path: none;
}

:is(#treatment-hair .exhibit-photo, .gallery-card[data-category="hair"] .compare-stage) img {
  object-position: center 30%;
}

.exhibit-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .9rem 1.2rem;
  border-block-end: 1px solid var(--editorial-rule);
}

.exhibit-caption h3, .team-card h3, .gallery-card h3 {
  font-size: clamp(1.4rem, 2.45vw, 2.45rem);
  font-weight: var(--display-weight);
}

.exhibit-caption p {
  margin-block-start: .2rem;
  color: var(--color-text-muted);
}

.exhibit-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  aspect-ratio: 1;
  border: 1px solid var(--editorial-rule);
  border-radius: 50%;
  color: var(--color-action);
}

.exhibit-link:hover .exhibit-arrow {
  color: var(--color-on-action);
  background: var(--color-action);
  border-color: var(--color-action);
}

.journey > .shell {
  display: block;
}

.journey .section-heading {
  margin-block-end: clamp(1.45rem, 3.2vw, 2.8rem);
}

.journey-grid :is(h3, p) {
  color: var(--color-text);
}

.journey-grid::before, .journey-grid > *::before {
  background: var(--color-action);
}

.home-team, .cta-band {
  color: var(--color-inverse-text);
  background: var(--color-inverse-background);
  border-color: var(--color-inverse-background);
}

.home-team .split-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(1.6rem, 6.2vw, 6rem);
}

.home-team :is(.team-copy p, .text-link), .cta-band p {
  color: var(--color-inverse-muted);
}

:is(.home-team, .cta-band) :focus-visible {
  outline-color: var(--color-focus-inverse);
}

.home-gallery {
  background: var(--editorial-wash);
}

.home-gallery .split-grid {
  align-items: center;
  gap: clamp(1.8rem, 5.2vw, 5.5rem);
}

.home-gallery-copy h3 {
  margin-block-start: .8rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.cta-band .shell {
  padding-block: clamp(1.8rem, 4.3vw, 4rem);
}

.cta-band .button:hover {
  background: var(--color-on-action);
  border-color: var(--color-on-action);
  color: var(--color-action);
}

.site-footer {
  border-color: var(--editorial-rule);
}

.footer-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.footer-brand p {
  max-inline-size: 37ch;
}

.footer-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: .89rem;
}

.page-intro, .guide-intro {
  padding-block: clamp(.95rem, 2vw, 1.85rem) clamp(2.15rem, 4.8vw, 4.75rem);
  background: var(--editorial-wash);
  border-block-end: 1px solid var(--editorial-rule);
}

.intro-shell {
  display: grid;
  gap: .8rem clamp(1.5rem, 5.4vw, 5rem);
}

.page-intro--media .intro-shell, .detail-hero-row {
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.16fr);
  align-items: center;
}

.intro-shell .breadcrumbs {
  grid-column: 1 / -1;
  margin-block: 0 .85rem;
}

.intro-shell .page-heading, .detail-hero-copy {
  max-inline-size: none;
}

.intro-shell .page-heading h1, .detail-hero-copy h1, .consultation-intro h1 {
  max-inline-size: 16ch;
  font-size: var(--editorial-title);
  font-weight: var(--display-weight);
  line-height: 1.09;
}

[dir="rtl"] :is(.intro-shell .page-heading h1, .detail-hero-copy h1, .consultation-intro h1) {
  font-size: clamp(2.35rem, 4.85vw, 4.85rem);
  line-height: 1.22;
}

.intro-shell .page-heading p, .detail-hero-copy p, .consultation-intro p {
  margin-block-start: .85rem;
  max-inline-size: 45ch;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.intro-art, .guide-photo, .price-hero .guide-photo {
  overflow: hidden;
  aspect-ratio: 1.8;
  border-radius: 0;
  background: var(--color-surface-muted);
}

:is(.intro-art, .guide-photo, .profile-photo) img {
  block-size: 100%;
  object-fit: cover;
}

:is(.catalog-hero, .price-hero) .guide-photo img {
  object-position: 72% center;
}

.page--services .library-section {
  padding-block-start: clamp(1.1rem, 3vw, 2.2rem);
}

.library-results-head h2, .price-explorer h2, .price-panel h3 {
  font-weight: var(--display-weight);
}

.library-entry-link {
  padding-inline: .45rem;
}

.library-entry-link:is(:hover, :focus-visible) {
  background: var(--editorial-wash);
}

.library-preview {
  aspect-ratio: 1.18;
  border-radius: 0;
}

.page--services .cta-band {
  color: var(--color-inverse-text);
  background: var(--color-inverse-background);
}

.page--services .cta-band .button:hover {
  background: var(--color-on-action);
  color: var(--color-action);
}

@media (min-width: 761px) {
  .editorial-motion [data-story-journey]::before {
    transform: scaleX(var(--journey-progress, 0));
  }

  .detail-reading {
    grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.45fr);
    grid-template-areas: "sidebar reading";
    column-gap: clamp(2rem, 6vw, 7rem);
  }

  .detail-list {
    grid-area: reading;
  }

  .detail-sidebar {
    grid-area: sidebar;
  }

  .page--team .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--contact .split-grid {
    grid-template-columns: minmax(0, .63fr) minmax(0, 1.37fr);
    align-items: center;
  }

  :is(.catalog-hero, .price-hero) {
    position: relative;
    isolation: isolate;
    min-block-size: clamp(22rem, 32vw, 33rem);
  }

  :is(.catalog-hero, .price-hero) .guide-photo {
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline: 47% 0;
    aspect-ratio: auto;
  }

  :is(.catalog-hero, .price-hero) .detail-hero-copy {
    padding-block-end: 1rem;
  }

  .price-factors > div {
    display: grid;
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    gap: clamp(1rem, 3.2vw, 2.4rem);
  }
}

.service-detail .detail-list > section {
  scroll-margin-block-start: .85rem;
}

.detail-list > h2, .detail-list > section h3 {
  font-family: var(--display-face);
  font-weight: var(--display-weight);
}

.detail-list > h2 {
  font-size: clamp(1.5rem, 2.65vw, 2.5rem);
}

.detail-list > section h3 {
  font-size: clamp(1.2rem, 1.85vw, 1.75rem);
}

.detail-index li a[aria-current="location"] {
  color: var(--color-action);
  text-decoration-thickness: 2px;
}

.price-explorer {
  background: var(--color-background);
}

.price-process {
  background: var(--editorial-wash);
}

.page--team .section--tinted {
  background: var(--color-background);
}

.team-grid {
  gap: clamp(1.25rem, 3.3vw, 3.4rem);
}

.team-grid .team-card {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.15fr);
  gap: clamp(.8rem, 1.6vw, 1.65rem);
  align-items: start;
  padding-block: 1rem;
  border-block-start: 1px solid var(--editorial-rule);
  background: transparent;
}

.team-card .profile-photo {
  overflow: hidden;
  aspect-ratio: .79;
}

.team-card .card-body {
  padding: 0;
}

.team-card .button {
  border-color: var(--color-action);
  background: transparent;
  color: var(--color-action);
}

.team-card .button:hover {
  background: var(--color-action);
  color: var(--color-on-action);
}

.page--gallery .page-intro {
  background: var(--color-background);
  border: 0;
  padding-block-end: clamp(1.05rem, 2.2vw, 2.25rem);
}

.page--gallery .page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .45rem clamp(1.5rem, 5.3vw, 5.6rem);
}

.page--gallery .page-heading p {
  margin-block: 0 .3rem;
}

.gallery-exhibits {
  padding-block-start: 0;
}

.gallery-exhibits .catalog-controls {
  padding: .4rem clamp(.65rem, 2.2vw, 1.75rem);
  background: var(--editorial-wash);
}

.gallery-exhibits .filter-button {
  border-color: transparent;
  border-block-end: 2px solid transparent;
  color: var(--color-text);
  background: transparent;
}

.gallery-exhibits .filter-button:is(:hover, [aria-pressed="true"]) {
  border-block-end-color: var(--color-action);
  color: var(--color-action);
}

.gallery-grid .gallery-card {
  border-color: var(--editorial-rule);
}

.gallery-grid .card-body {
  display: grid;
  grid-template-areas: "title note" "description description";
  align-items: start;
  gap: .27rem 1rem;
  padding-block: .9rem .15rem;
}

.gallery-grid .card-body .demo-note {
  grid-area: note;
  justify-self: end;
}

.gallery-grid .card-body h3 {
  grid-area: title;
}

.gallery-grid .card-body p:last-child {
  grid-area: description;
  margin: 0;
}

@media (min-width: 820px) {
  .gallery-grid:not(:has([hidden])) .gallery-card:is(:first-child,:last-child),
  .gallery-grid:has([hidden]) .gallery-card:not([hidden]) {
    grid-column: 1 / -1;
  }

  .gallery-grid:not(:has([hidden])) .gallery-card:is(:first-child,:last-child) .compare-stage,
  .gallery-grid:has([hidden]) .gallery-card:not([hidden]) .compare-stage {
    aspect-ratio: 2.03;
  }
}

.faq-list {
  max-inline-size: 58rem;
}

.faq-list details {
  border-color: var(--editorial-rule);
}

.faq-list details:last-child {
  border-color: var(--editorial-rule);
}

.faq-list summary {
  padding-block: 1rem;
}

.faq-list details[open] summary {
  color: var(--color-action);
}

.page--faq .faq-list {
  margin-inline: auto;
}

.page--contact .page-intro {
  border: 0;
}

.page--contact .page-intro + .section {
  padding-block-start: 0;
  background: var(--editorial-wash);
}

.contact-grid {
  display: block;
}

.contact-grid .info-card {
  padding: .9rem 0;
  border: 0;
  border-block-start: 1px solid var(--editorial-rule);
}

.contact-media figure, .team-media {
  overflow: hidden;
}

.consultation-section {
  padding-block: clamp(1.45rem, 4.5vw, 4.3rem);
  background: var(--color-background);
}

.consultation-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 4.25vw, 4.5rem);
  align-items: stretch;
}

.consultation-intro {
  display: flex;
  flex-direction: column;
}

.consultation-intro figure {
  overflow: hidden;
  margin-block-start: clamp(1rem, 2.8vw, 2.2rem);
  aspect-ratio: 1.65;
}

.consultation-intro figure img {
  block-size: 100%;
  object-fit: cover;
}

.consultation-panel {
  padding: clamp(1rem, 3.5vw, 3.8rem);
  background: var(--editorial-wash);
  max-inline-size: none;
}

.consultation-panel .progress-steps {
  gap: .45rem;
}

.consultation-panel .progress-steps li {
  display: grid;
  align-content: start;
  gap: .35rem;
  min-block-size: 3.9rem;
  padding: .5rem 0;
  background: transparent;
  border-color: var(--editorial-rule);
  line-height: 1.35;
}

.consultation-panel .progress-steps li span:first-child {
  font-size: .72rem;
}

.consultation-panel .progress-steps [aria-current="step"] {
  border-color: var(--color-action);
  color: var(--color-action);
  font-weight: 680;
}

.consultation-panel .form-step, .consultation-panel .form-success {
  border: 0;
  padding: 0;
  background: transparent;
}

.consultation-panel .form-actions {
  justify-content: end;
}

.consultation-panel select {
  background: var(--color-background);
  border-color: var(--editorial-rule);
}

[data-scroll-drift] img {
  scale: calc(1 + var(--drift, 0) * .2);
  translate: 0 calc(var(--drift, 0) * -5.5%);
}

@media (min-width: 1100px) {
  .price-tabs.has-indicator {
    position: relative;
  }

  .price-tabs.has-indicator::after {
    content: "";
    position: absolute;
    inset: auto auto -1px 0;
    inline-size: 1px;
    block-size: 2px;
    background: var(--color-action);
    pointer-events: none;
    transform-origin: left center;
    transform: translateX(var(--indicator-x, 0px)) scaleX(var(--indicator-width, 0));
  }

  .price-tabs.has-indicator a[aria-selected="true"] {
    border-block-end-color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .exhibit-arrow, .button {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .faq-list details[open] > :not(summary),
  .price-panel[role="tabpanel"]:not([hidden]) > *,
  .form-step:not([hidden], [data-step="0"]) > :not(legend),
  .form-success:not([hidden]) {
    animation: content-appear 340ms var(--ease-out) both;
  }

  .nav-ready [data-site-nav].is-open {
    animation: content-appear 240ms var(--ease-out) both;
  }
}

@keyframes content-appear {
  from { opacity: 0; translate: 0 .5rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 760px) {
  .consultation-layout, .exhibit, .home-team .split-grid,
  .page-intro--media .intro-shell, .detail-hero-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .exhibit-rail {
    position: static;
  }

  .exhibit-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .9rem;
  }

  .exhibit-nav a {
    font-size: .86rem;
  }

  .exhibit-photo {
    aspect-ratio: 1.5;
  }

  .editorial-motion .exhibit-photo {
    clip-path: inset(calc((1 - var(--chapter-open, 1)) * 12%) 0 0);
  }

  .exhibit-photo img {
    transform: scale(calc(1 + var(--photo-progress, 0) * .08));
  }

  .consultation-intro {
    display: contents;
  }

  .consultation-intro .breadcrumbs {
    margin-block-end: 0;
  }

  .consultation-panel {
    grid-row: 3;
  }

  .consultation-intro figure {
    margin: 0;
    aspect-ratio: 2.45;
  }

  .home-gallery .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid .team-card {
    grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .nav-ready .site-header .header-inner {
    flex-wrap: nowrap;
    min-block-size: 3.8rem;
    padding-block: .35rem;
  }

  :is(.site-header, .site-footer) .wordmark,
  .site-header .header-tools, .site-header .language-links {
    gap: .38rem;
  }

  .site-header .wordmark bdi {
    font-size: .95rem;
  }

  .site-header .language-links a {
    font-size: .68rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid .card-body {
    grid-template-areas: "title" "description" "note";
  }

  .gallery-grid .card-body .demo-note {
    justify-self: start;
  }
}
