/* Photographs behind card titles and labels. */
:is(.home-page .service-link, .section--method .step-link, .office-page .office-value,
    .services-page .detail-summary, .process-page .stage-summary) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: clamp(245px, 24vw, 325px);
  border: 0;
  border-radius: 6px;
  background: #2c2329;
  color: #fff;
}

:is(.service-link, .step-link, .office-value, .detail-summary, .stage-summary)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #211820 3%, rgb(33 24 32 / .92) 31%,
      rgb(33 24 32 / .72) 62%, rgb(33 24 32 / .12) 100%);
}

:is(.home-page .service-image, .section--method .step-image, .office-page .office-value > img,
    .process-page .stage-image) {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

:is(.service-image, .step-image, .detail-image, .stage-image) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(.home-page .service-copy, .section--method .step-copy, .office-page .office-value-copy,
    .services-page .detail-summary-copy, .process-page .stage-summary-copy) {
  min-height: 0;
  flex: 0 0 auto;
  padding: clamp(16px, 2vw, 27px);
}

:is(.service-copy, .step-copy, .office-value-copy, .detail-summary-copy, .stage-summary-copy) p {
  color: #fff5f6;
  max-width: 47ch;
}

:is(.service-link, .step-link, .office-value, .detail-summary, .stage-summary)
  :is(.card-action, .step-action, .disclosure-action, .office-value-copy > span),
:is(.service-link, .step-link):is(:hover, :focus-visible) :is(.card-action, .step-action) {
  color: #ffe4ba;
}

.office-page .office-value:hover h3 { color: #fff; }
.services-page .detail-summary:is(:hover, :focus-visible),
.services-page .detail-panel[open] .detail-summary,
.process-page .stage-summary:is(:hover, :focus-visible),
.process-page .stage-card[open] .stage-summary { background: #2c2329; }

.process-page .stage-summary { min-block-size: clamp(210px, 21vw, 280px); }
.services-page .detail-summary { height: 100%; }
.services-page .detail-panel[open] .detail-summary { height: auto; }
.home-page .service-copy { min-height: clamp(175px, 16vw, 210px); }
.home-page .service-copy .card-action { margin-top: auto; }
.section--method .step-copy { min-height: 140px; }
.section--method .step-copy .step-action { margin-top: auto; }

.office-page .office-area-links { gap: 9px; }
.office-page .office-area {
  min-block-size: 100px;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  --title-focus: center;
  --title-gradient: linear-gradient(105deg, rgb(34 24 33 / .88), rgb(34 24 33 / .67));
}

.office-page .office-area:nth-last-child(-n+2) { border: 0; }
.office-page .office-area span { color: #fff1df; }
.office-page .office-area:is(:hover, :focus-visible) { background: #2c2329; color: #fff; }

.official-inner .official-resource {
  min-block-size: 95px;
  border: 0;
  color: #fff;
  background: #2c2329;
  --title-gradient: linear-gradient(105deg, rgb(29 22 29 / .91), rgb(29 22 29 / .70));
}

.official-inner .official-resource:is(:hover, :focus-visible) { background: #241c24; }
.official-resource .resource-detail { color: #fff5f6; }
.official-resource .resource-domain { color: #ffe4ba; }

.contact-page .directory-heading {
  padding: 13px;
  min-block-size: 94px;
  border-radius: 6px;
  color: #fff;
  --title-focus: center;
  --title-gradient: linear-gradient(105deg, rgb(29 22 29 / .89), rgb(29 22 29 / .65));
}

.contact-page .directory-heading .directory-motion { color: #ffe4ba; }
.office-feature-photo img, .office-page .office-profile-photo img { object-fit: cover; }
.office-page .office-profile-photo img { object-position: center 58%; }

.guide-list { border-top: 0; }
.guide-item.photo-title {
  border: 0;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  --title-gradient: linear-gradient(105deg, rgb(29 22 29 / .89), rgb(29 22 29 / .72));
}
.guide-item + .guide-item { margin-top: 8px; }
.guide-item summary {
  padding: 12px 15px;
  min-block-size: 68px;
}
.guide-item summary::after { color: #ffe4ba; }
.guide-answer { padding: 10px 15px 15px; }
.guide-answer p { color: #fff5ef; }
.guide-answer .text-link { color: #ffe4ba; }

/* Keep the edges of the photographed surfaces on the site's content grid. */
:is(.home-page .service-film, .services-page .services-closing) { background: var(--paper); }
:is(.home-page .service-film-layout, .services-page .services-closing .service-film-layout) {
  gap: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--deep);
}
.service-film-layout .service-film-copy { padding: clamp(20px, 4vw, 58px); }
.service-film-layout .service-film-screen { border-radius: 0; }

:is(.office-page .office-values-grid, .services-page .detail-panels) { gap: var(--card-gap); }
.process-page .stage-section > .container { display: block; }
.process-page .stage-heading { position: relative; margin-bottom: var(--card-gap); }
.process-page .stage-heading nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--card-gap);
}
.process-page .stage-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  border-top: 0;
}
.process-page .stage-card { border-bottom: 0; }
.process-page .stage-summary { align-items: stretch; }
.process-page .stage-summary-copy { min-block-size: 135px; }

.contact-page .directory-grid { gap: var(--card-gap); border: 0; background: transparent; }
.contact-page .directory-grid .directory-section {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--tint);
}
.contact-page .directory-heading { margin: 0; border-radius: 6px 6px 0 0; }
.contact-page .directory-detail { padding: clamp(14px, 2vw, 24px); }

.photo-panel {
  padding: clamp(20px, 3.2vw, 48px);
  border-radius: 6px;
}
.photo-panel :is(h2, h3, .eyebrow) { color: #fff; }
.photo-panel :is(p:not(.eyebrow), address) { color: #fff5ef; }
.section-heading.photo-panel {
  align-content: end;
  min-height: clamp(156px, 16vw, 216px);
  margin-bottom: var(--card-gap);
}
.section-heading.photo-panel:not(:has(.section-lead)) { display: flex; align-items: end; }
.section-heading.photo-panel #office-values-title { margin: 0; }
.office-feature-inner, .office-page .office-profile-grid { align-items: stretch; gap: var(--card-gap); }
.office-feature-photo, .office-page .office-profile-photo { border-radius: 6px; }
.office-feature-copy.photo-panel, .office-page .office-profile-copy.photo-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3.6vw, 50px);
}
.office-feature-copy.photo-panel {
  min-height: clamp(260px, 30vw, 420px);
  --title-focus: center 79%;
  --title-gradient: linear-gradient(100deg, rgb(24 18 24 / .84), rgb(24 18 24 / .68) 62%, rgb(24 18 24 / .49));
}
.office-feature-copy.photo-panel > p:not(.eyebrow),
.office-profile-copy.photo-panel > p:not(.eyebrow),
.feature-band-copy.photo-panel > p:not(.eyebrow) { color: #fff5ef; }
.photo-panel .office-profile-contacts { margin-block: 17px; }
.photo-panel .office-profile-contacts a { border-color: #fff5ef66; }
.office-profile-copy.photo-panel :is(.text-link, .office-profile-contacts a span),
.office-profile-copy.photo-panel .office-profile-contacts a:is(:hover, :focus-visible) strong { color: #ffe4ba; }
.office-profile-copy.photo-panel .text-link { align-self: flex-start; }
.service-film-layout .service-film-copy.photo-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
}
.service-top.photo-panel { padding: 0; margin-bottom: var(--card-gap); }
.services-page .service-top .section-heading { padding: clamp(20px, 3.2vw, 48px); margin: 0; }
.services-page .service-top .service-shortcuts { margin: 0; }
.services-page .service-top .service-shortcuts a {
  background: rgb(28 23 29 / .55);
  color: #fff;
  outline-color: #fff4da;
}
.services-page .service-top .service-shortcuts a:is(:hover, :focus-visible) { background: #fff1df; color: var(--ink); }
.process-page .stage-heading.photo-panel nav,
.process-page .stage-heading.photo-panel nav a { border-color: #fff5ef66; }
.process-page .stage-heading.photo-panel nav a { color: #fff; }
.process-page .stage-heading.photo-panel nav a:is(:hover, :focus-visible) { color: #ffe4ba; }
.faq-grid.photo-panel { --title-gradient: linear-gradient(105deg, rgb(22 19 24 / .87), rgb(22 19 24 / .75)); }
.faq-grid.photo-panel .faq-intro .section-heading { margin: 0; }
.faq-grid.photo-panel .faq-list,
.faq-grid.photo-panel .faq-list details { border-color: #fff5ef66; }
.faq-grid.photo-panel .faq-list summary::after { color: #ffe4ba; }
.faq-grid.photo-panel .faq-list p { color: #fff5ef; }
.legal-page .page-hero-content.photo-title { max-width: none; }
:is(.legal-page, .error-page) .page-hero .photo-title .eyebrow { color: #fff5ef; }

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.video-poster :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-poster canvas[hidden], .video-toggle[hidden] { display: none; }
.video-poster.is-behind-video { z-index: auto; }

.video-toggle {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-start: 4px;
  z-index: 3;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.video-toggle::before {
  content: "";
  grid-area: 1 / 1;
  inline-size: 28px;
  block-size: 28px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  background: rgb(24 19 24 / .68);
}

.video-toggle-glyph {
  grid-area: 1 / 1;
  inline-size: 10px;
  block-size: 11px;
  border-inline: 3px solid currentColor;
}

.video-toggle[aria-pressed="true"] .video-toggle-glyph {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(1px);
}

.video-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px #241e24;
}

@media (hover: hover) {
  .video-toggle:hover::before { background: rgb(24 19 24 / .92); }
}

.whatsapp-float .whatsapp-logo { flex: 0 0 24px; width: 24px; height: 24px; }

.home-title-rotation { display: grid; }
.home-title-rotation > span {
  grid-area: 1 / 1;
  align-self: end;
  visibility: hidden;
}
.home-title-rotation > .is-current { visibility: visible; }

@media (max-width: 760px) {
  .process-page .stage-heading nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-page .stage-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 510px) {
  .home-page .services-grid { grid-template-columns: minmax(0, 1fr); }
  :is(.home-page .service-link, .section--method .step-link, .office-page .office-value,
      .services-page .detail-summary, .process-page .stage-summary) { min-block-size: 230px; }
  .home-page .service-copy, .section--method .step-copy { min-height: 0; }
  .office-page .office-area { padding-inline: 10px; }
}

/* Only text moves. Layout and interactive targets stay in place. */
@media (prefers-reduced-motion: no-preference) {
  .home-title-rotation > span {
    opacity: 0;
    transform: translateY(-9px);
    transition: opacity .32s ease, transform .32s ease, visibility 0s linear .32s;
  }
  .home-title-rotation > .is-current {
    opacity: 1;
    transform: none;
    transition: opacity .48s ease .16s, transform .48s ease .16s;
  }
  [data-title-motion="enter"] { animation: title-enter .62s cubic-bezier(.2,.65,.28,1) both; }
  [data-title-motion="enter"].title-motion-label { animation-delay: .085s; }
  [data-title-motion="exit"] { animation: title-exit .26s ease-in; }
  :is(a, summary):focus-visible [data-title-motion],
  [data-title-motion]:focus-visible { animation: none; opacity: 1; transform: none; }
}

@keyframes title-enter {
  from { opacity: .58; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
