/* ==========================================================================
   UHBC — Homepage sections
   ========================================================================== */

/* --- 01 Hero ------------------------------------------------------------ */

/* Full-bleed rendering below a paper strip, so the header and logo always sit on paper. */
.hero {
  position: relative;
  padding-top: var(--header-h);
}

.hero__stage {
  position: relative;
  height: max(34rem, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-paper);
}

.hero__media {
  position: absolute;
  inset: -8% -2%;
  overflow: hidden;
  will-change: transform;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slides {
  z-index: 0;
}

.hero__slide {
  overflow: hidden;
}

.hero__slide:not(.is-active):not(.is-leaving) {
  visibility: hidden;
}

.hero__slide.is-leaving {
  z-index: 1;
}

.hero__slide.is-active {
  z-index: 2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 60%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 24, 0.86) 0%, rgba(26, 24, 24, 0.55) 30%, rgba(26, 24, 24, 0.12) 58%, rgba(26, 24, 24, 0) 70%),
    linear-gradient(to bottom, rgba(26, 24, 24, 0.55) 0%, rgba(26, 24, 24, 0.18) 16%, rgba(26, 24, 24, 0) 30%);
}

/* Faint column lines across the rendering, aligned to the content grid. */
.hero__grid {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  pointer-events: none;
}

.hero__grid i {
  border-left: 1px solid rgba(247, 247, 244, 0.13);
  transform-origin: top;
}

.hero__grid i:last-child {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--gutter);
}

@media (min-width: 768px) {
  .hero__grid {
    display: grid;
  }
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.25rem, 3.2vh, 2.25rem) clamp(1.5rem, 4.5vh, 3.25rem);
}

.hero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: auto;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
  color: rgba(247, 247, 244, 0.9);
  text-shadow: 0 1px 14px rgba(26, 24, 24, 0.7);
}

.hero__label-rule {
  width: 3rem;
  height: 2px;
  background: var(--c-accent);
}

.hero__feature {
  display: block;
  width: 19rem;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid rgba(247, 247, 244, 0.16);
  background: rgba(26, 24, 24, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.hero__feature .label {
  color: rgba(247, 247, 244, 0.72);
}

.hero__feature-top {
  display: flex;
  justify-content: space-between;
}

.hero__count {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__count > span {
  display: inline-block;
}

.hero__feature-name {
  display: block;
  margin-block: 0.55rem 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.4s var(--ease-out);
}

.hero__feature-name:hover,
.hero__feature-name:focus-visible {
  text-decoration-color: var(--c-accent);
}

/* Fixed two-line height so swapping names doesn't shift the controls. */
.hero__name-mask {
  display: block;
  min-height: 2.6em;
  overflow: hidden;
}

.hero__name {
  display: block;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.hero__controls[hidden] {
  display: none;
}

.hero__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(247, 247, 244, 0.38);
  border-radius: 50%;
  color: var(--c-paper);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.hero__btn:hover,
.hero__btn:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.hero__btn[hidden] {
  display: none;
}

.hero__btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero__btn .hero__icon-play {
  fill: currentColor;
  stroke: none;
}

.hero__btn--toggle .hero__icon-play,
.hero__btn--toggle.is-paused .hero__icon-pause {
  display: none;
}

.hero__btn--toggle.is-paused .hero__icon-play {
  display: block;
}

.hero__dots {
  display: flex;
  flex: 1;
  gap: 0.375rem;
  margin-inline: 0.35rem;
}

.hero__dot {
  position: relative;
  flex: 1;
  height: 1.75rem;
}

.hero__dot::before,
.hero__dot span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}

.hero__dot::before {
  background: rgba(247, 247, 244, 0.3);
  transition: background-color 0.3s var(--ease-out);
}

.hero__dot:hover::before,
.hero__dot[aria-current]::before {
  background: rgba(247, 247, 244, 0.6);
}

.hero__dot span {
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-filled span {
  transform: scaleX(1);
}

@media (max-width: 639px) {
  .hero__head {
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero__feature {
    width: min(100%, 19rem);
    padding: 0.8rem 0.9rem 0.6rem;
  }

  .hero__feature-top {
    display: none;
  }

  .hero__feature-name {
    margin-block: 0 0.3rem;
    font-size: 0.8125rem;
  }

  .hero__name-mask {
    min-height: 0;
  }

  .hero__controls {
    margin-top: 0.75rem;
  }
}

.hero__title {
  font-size: min(var(--fs-hero), 21svh);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-shadow: 0 0.04em 0.6em rgba(26, 24, 24, 0.18);
}

.hero__title em {
  letter-spacing: -0.025em;
}

.hero__title-2 {
  padding-left: 0.04em;
}

@media (min-width: 900px) {
  .hero__title-2 {
    padding-left: 0.62em;
  }
}

/* Hairline with a short logo-red lead-in. */
.hero__rule {
  display: block;
  height: 1px;
  margin-block: clamp(1.25rem, 3.2vh, 2.25rem);
  background: linear-gradient(to right, var(--c-accent) 0 4rem, rgba(247, 247, 244, 0.3) 4rem);
  transform-origin: left;
}

.hero__foot {
  display: grid;
  gap: 1.5rem;
}

.hero__lede {
  max-width: 30rem;
  font-size: clamp(1rem, 0.85rem + 0.45vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(247, 247, 244, 0.88);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero__actions .scroll-cue {
  display: none;
}

.hero__content :focus-visible {
  outline-color: var(--c-paper);
}

@media (min-width: 768px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2.5rem;
  }

  .hero__actions .scroll-cue {
    display: inline-flex;
  }
}

@media (max-width: 639px) {
  .hero__stage {
    height: max(32rem, calc(100svh - var(--header-h)));
  }

  .hero__title {
    font-size: min(17.5vw, 13svh);
  }
}

.js.is-loading [data-hero-line] {
  transform: translateY(110%);
}

.js.is-loading [data-hero-item] {
  opacity: 0;
}

/* --- 02 Intro ----------------------------------------------------------- */

.intro__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--c-line-strong);
}

.intro__title {
  font-size: clamp(2.6rem, 0.9rem + 7.4vw, 8.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.intro__title em {
  letter-spacing: -0.02em;
}

.intro__title-shift {
  padding-left: 0.6em;
}

.intro__pill {
  display: inline-block;
  width: 2.1em;
  height: 0.74em;
  margin-inline: 0.04em;
  overflow: hidden;
  vertical-align: -0.04em;
  background: var(--c-ink);
}

.intro__pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}

.intro__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 7vw, 7rem);
}

/* Feature image with the establishment year */

.intro__figure {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-paper);
}

.intro__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.intro__media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 37% 50%;
}

.intro__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 24, 0.9) 0%, rgba(26, 24, 24, 0.55) 30%, rgba(26, 24, 24, 0) 60%),
    linear-gradient(to bottom, rgba(26, 24, 24, 0.4), rgba(26, 24, 24, 0) 22%);
}

.intro__credit {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  color: rgba(247, 247, 244, 0.78);
}

.intro__since {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
}

.intro__year {
  display: flex;
  margin: 0 0 0.9rem;
  overflow: hidden;
  font-size: clamp(4.5rem, 2rem + 8vw, 10rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.06em;
  padding-bottom: 0.04em;
}

.intro__year span {
  display: inline-block;
}

.intro__span {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  color: rgba(247, 247, 244, 0.72);
}

.intro__span-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(247, 247, 244, 0.25);
}

.intro__span-line b {
  position: absolute;
  inset: -0.5px 0;
  background: var(--c-accent);
  transform-origin: left;
}

.intro__span-line b::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translateY(-50%);
}

.intro__years {
  margin-top: 0.9rem;
}

.intro__years span {
  color: var(--c-paper);
}

/* Copy and facts */

.intro__lede {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.intro__text {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--c-slate);
}

.facts {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--c-line-strong);
}

.facts__item {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-line);
}

.facts__item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-expo);
}

.facts__item dd {
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro__cta {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (hover: hover) {
  .facts__item:hover::before {
    transform: scaleX(1);
  }
}

@media (min-width: 640px) {
  .intro__figure {
    aspect-ratio: 16 / 13;
  }

  .facts__item {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  /* Indent to the 4th column, but never so far that "Driven by possibility." wraps. */
  .intro__title-shift {
    padding-left: clamp(0.6em, calc(100% - 7.9em), calc((100% + 1.5rem) / 4));
  }

  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: start;
  }

  .intro__figure {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    grid-column: 1 / span 5;
    aspect-ratio: 4 / 5;
  }

  .intro__main {
    grid-column: 7 / -1;
    padding-top: clamp(2rem, 6vw, 7rem);
  }
}

/* --- 03 Featured developments ------------------------------------------ */

.projects {
  padding-bottom: var(--section-space);
}

.projects__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.projects__intro {
  max-width: 44ch;
  color: var(--c-slate);
}

.projects__all {
  margin-top: 1.25rem;
  color: var(--c-ink);
}

@media (min-width: 1024px) {
  .projects__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .projects__head .section-index {
    grid-column: 1 / -1;
  }

  .projects__title {
    grid-column: 1 / span 8;
  }

  .projects__intro {
    grid-column: 9 / -1;
    justify-self: end;
  }
}

/* Stacked layout — default, mobile, reduced motion and no-JS */

.projects__list {
  display: grid;
  gap: clamp(4.5rem, 9vw, 8rem);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.project {
  display: grid;
  gap: 1.75rem;
}

.project__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-stone);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.4s var(--ease-expo);
}

.project__badge {
  margin-left: auto;
  padding: 0.35rem 0.6rem;
  border: 1px dashed currentColor;
  font-size: 0.625rem;
  white-space: nowrap;
}

.project__body {
  display: grid;
  gap: 1.5rem;
}

.project__index {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.project__index b {
  font-weight: 500;
  color: var(--c-ink);
}

.project__title {
  font-size: clamp(2.25rem, 1rem + 5.2vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
}

.project__descriptor {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-slate);
}

.project__details {
  display: grid;
  gap: 1.75rem;
  align-content: end;
}

.project__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-strong);
}

.project__meta div {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.project__meta dd {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
}

.project .link-cta {
  justify-self: start;
}

@media (hover: hover) {
  .projects__stage:not(.is-pinned) .project:hover .project__media img {
    transform: scale(1.035);
  }
}

@media (min-width: 640px) {
  .project__media {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 900px) {
  .project__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .project__index {
    grid-column: 1 / -1;
  }

  .project__title {
    grid-column: 1 / span 7;
  }

  .project__details {
    grid-column: 8 / -1;
  }
}

.projects__fallback {
  display: grid;
  gap: 1.5rem;
  max-width: 60rem;
}

.projects__hud {
  display: none;
}

/* Pinned cinematic layout — enabled by JS on larger screens */

.projects__stage.is-pinned {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-paper);
}

.is-pinned .projects__list {
  display: block;
  position: relative;
  height: 100%;
  max-width: none;
  padding: 0;
}

.is-pinned .project {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.is-pinned .project__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: var(--c-ink-2);
}

.is-pinned .project__media img {
  transition: none;
  will-change: transform;
}

.is-pinned .project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 24, 0.94) 0%, rgba(26, 24, 24, 0.72) 30%, rgba(26, 24, 24, 0.3) 52%, rgba(26, 24, 24, 0) 70%),
    linear-gradient(to bottom, rgba(26, 24, 24, 0.45) 0%, rgba(26, 24, 24, 0) 22%);
  pointer-events: none;
}

.is-pinned .project__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  align-items: end;
}

.is-pinned .project__index,
.is-pinned .label {
  color: rgba(247, 247, 244, 0.7);
}

.is-pinned .project__index b {
  color: var(--c-paper);
}

.is-pinned .project__title {
  font-size: clamp(2.75rem, 5.4vw, 8rem);
}

.is-pinned .project__descriptor {
  color: rgba(247, 247, 244, 0.78);
}

.is-pinned .project__meta {
  border-top-color: rgba(247, 247, 244, 0.28);
}

.is-pinned .projects__hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  pointer-events: none;
}

.projects__hud-label {
  position: absolute;
  top: clamp(1.5rem, 4vh, 2.5rem);
  left: var(--gutter);
}

.projects__index {
  position: absolute;
  top: clamp(1.1rem, 3.4vh, 2.1rem);
  right: var(--gutter);
  pointer-events: auto;
}

.projects__index ol {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
}

.projects__index button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.25rem 0;
  color: rgba(247, 247, 244, 0.55);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transition: color 0.4s var(--ease-out);
}

.projects__index button::after {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: right;
  transition: transform 0.6s var(--ease-expo);
}

.projects__index button:hover,
.projects__index button[aria-current="true"] {
  color: var(--c-paper);
}

.projects__index button[aria-current="true"]::after {
  background: var(--c-accent);
  transform: scaleX(1.6);
}

.projects__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(247, 247, 244, 0.12);
}

.projects__progress span {
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 1023px) {
  .is-pinned .project__body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
  }

  .is-pinned .project__title,
  .is-pinned .project__details {
    grid-column: 1 / -1;
  }

  .is-pinned .project__details {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .is-pinned .project__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects__hud-label {
    display: none;
  }
}

/* --- 04 Expertise ------------------------------------------------------- */

.expertise__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.expertise__intro {
  max-width: 40ch;
  color: var(--c-slate);
}

@media (min-width: 1024px) {
  .expertise__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .expertise__head .section-index {
    grid-column: 1 / -1;
  }

  .expertise__title {
    grid-column: 1 / span 8;
  }

  .expertise__intro {
    grid-column: 9 / -1;
    justify-self: end;
  }
}

/* Stacked cards — default for mobile, tablet and no-JS; every panel is open */

.xp {
  display: grid;
  gap: 0.75rem;
}

.xp-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-paper);
}

.xp-card__media {
  position: relative;
  z-index: -1;
  aspect-ratio: 4 / 3;
}

.xp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-expo), filter 0.9s var(--ease-out);
}

.xp-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 24, 0.94) 0%, rgba(26, 24, 24, 0.7) 32%, rgba(26, 24, 24, 0.12) 68%, rgba(26, 24, 24, 0) 100%),
    linear-gradient(to bottom, rgba(26, 24, 24, 0.35), rgba(26, 24, 24, 0) 30%);
}

.xp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -4.5rem;
  padding: 0 clamp(1.25rem, 2.2vw, 2.25rem) clamp(1.5rem, 2.2vw, 2.25rem);
}

/* Short accent bar above each title; it turns orange on the open card. */
.xp-card__mark {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: rgba(247, 247, 244, 0.55);
  transition: background-color 0.5s var(--ease-out), width 0.7s var(--ease-expo);
}

.xp-card__title {
  max-width: 18ch;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  hyphens: auto;
}

.xp-card__text {
  max-width: 40ch;
  margin-top: 1rem;
  color: rgba(247, 247, 244, 0.8);
  font-size: 0.9375rem;
}

.xp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.xp-card__cta:hover {
  background: var(--c-accent-ink);
  color: #fff;
}

.xp-card__cta:hover .icon-arrow {
  transform: translateX(0.25rem);
}

.xp-card__cta:focus-visible {
  outline: 2px solid var(--c-accent-light);
  outline-offset: 3px;
}

.xp-card__credit {
  margin-top: 1.25rem;
  color: rgba(247, 247, 244, 0.6);
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .xp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Expanding row — added by expertise.js from 1024px */

@media (min-width: 1024px) {
  .xp.is-enhanced {
    display: flex;
    height: clamp(30rem, 70vh, 42rem);
  }

  .xp.is-enhanced .xp-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
    transition: flex-grow 0.9s var(--ease-expo);
  }

  .xp.is-enhanced .xp-card.is-active {
    flex-grow: 2.6;
    cursor: auto;
  }

  .xp.is-enhanced .xp-card__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .xp.is-enhanced .xp-card__body {
    justify-content: flex-end;
    margin-top: 0;
    padding: clamp(1rem, 1.6vw, 2rem);
  }

  .xp.is-enhanced .xp-card:not(.is-active) .xp-card__title {
    font-size: clamp(1.0625rem, 0.55rem + 0.8vw, 1.5rem);
    letter-spacing: -0.02em;
  }

  .xp.is-enhanced .xp-card.is-active .xp-card__title {
    width: clamp(17rem, 30vw, 32rem);
    font-size: clamp(2rem, 0.9rem + 1.9vw, 3.25rem);
  }

  .xp.is-enhanced .xp-card:not(.is-active) .xp-card__media img {
    transform: scale(1.12);
    filter: saturate(0.6) brightness(0.72);
  }

  .xp.is-enhanced .xp-card:not(.is-active):hover .xp-card__mark {
    background: var(--c-accent-light);
  }

  .xp.is-enhanced .xp-card.is-active .xp-card__mark {
    width: 4rem;
    background: var(--c-accent);
  }

  /* Fixed width, so the copy doesn't reflow while the card grows; the card clips it until open. */
  .xp.is-enhanced .xp-card__panel {
    width: clamp(17rem, 30vw, 32rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s var(--ease-expo), opacity 0.3s var(--ease-out);
  }

  .xp.is-enhanced .xp-card.is-active .xp-card__panel {
    max-height: 22rem;
    opacity: 1;
    transition: max-height 0.9s var(--ease-expo) 0.15s, opacity 0.6s var(--ease-out) 0.35s;
  }
}

/* --- 05 Philosophy ------------------------------------------------------ */

.philosophy {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-space);
  background: var(--c-ink);
  color: var(--c-paper);
}

.philosophy__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(247, 247, 244, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 247, 244, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(247, 247, 244, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 247, 244, 0.035) 1px, transparent 1px);
  background-size: 320px 320px, 320px 320px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 85%);
  pointer-events: none;
}

.philosophy__inner {
  position: relative;
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
}

.philosophy__head {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.philosophy__title em {
  color: var(--c-accent-light);
}

.philosophy__lede {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: rgba(247, 247, 244, 0.74);
}

.philosophy__drawing {
  display: grid;
  gap: 1rem;
  justify-items: start;
  width: min(100%, 26rem);
}

.philosophy__drawing svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.philosophy__drawing .bp-main path {
  stroke: rgba(247, 247, 244, 0.72);
  stroke-width: 1;
}

.philosophy__drawing .bp-grid line {
  stroke: var(--c-accent-light);
  stroke-opacity: 0.4;
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.philosophy__drawing .bp-bubbles circle {
  stroke: var(--c-accent-light);
  stroke-opacity: 0.7;
  fill: var(--c-ink);
}

.philosophy__drawing .bp-dim path {
  stroke: rgba(247, 247, 244, 0.4);
  stroke-width: 1;
}

.philosophy__drawing text {
  fill: rgba(247, 247, 244, 0.7);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.philosophy__drawing .bp-text--small text {
  font-size: 9px;
  fill: rgba(247, 247, 244, 0.45);
}

.pillars {
  display: grid;
  gap: 2.75rem;
}

.pillar {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.75rem;
}

.pillar__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--c-accent) 0 3rem, rgba(247, 247, 244, 0.3) 3rem);
  transform-origin: left;
}

.pillar__title {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pillar p {
  max-width: 36ch;
  color: rgba(247, 247, 244, 0.68);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
}

@media (min-width: 1024px) {
  .philosophy__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .philosophy__head {
    grid-column: 1 / span 7;
  }

  .philosophy__drawing {
    grid-column: 9 / -1;
    justify-self: end;
    align-self: center;
  }

  .pillars {
    grid-column: 1 / -1;
  }
}

.slogan {
  position: relative;
  margin-top: var(--section-space);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--c-line-light);
  overflow: hidden;
  white-space: nowrap;
}

.slogan__track {
  display: inline-flex;
  gap: 0.4em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(3rem, 1.2rem + 7.5vw, 10.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-paper);
  will-change: transform;
}

.slogan__sep {
  color: var(--c-accent-light);
}

/* --- 06 Leadership ------------------------------------------------------ */

.leadership__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

@media (min-width: 1024px) {
  .leadership__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .leadership__head .section-index {
    grid-column: 1 / -1;
  }

  .leadership__head h2 {
    grid-column: 1 / span 9;
  }
}

/* Leadership index: grouped names, with a portrait viewer beside them on large screens. */
.team {
  display: grid;
  gap: 3rem;
}

/* Portrait viewer (large screens only; rows carry their own thumbnails below that) */
.team__viewer {
  display: none;
}

.team__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-paper-2);
}

.team__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.team__slide.is-prev {
  z-index: 1;
}

.team__slide.is-active {
  z-index: 2;
}

.member-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-portrait--pending {
  display: grid;
  place-items: end center;
  background: linear-gradient(180deg, var(--c-paper-2) 0%, var(--c-stone) 100%);
}

.member-portrait__silhouette {
  width: 58%;
  fill: none;
  stroke: var(--c-stone-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.team__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 0.9rem;
}

.team__caption-name {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.team__caption-role {
  text-align: right;
}

/* Grouped list */

.team__group + .team__group {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.team__group-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--c-accent-ink);
}

.team__group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.team__members {
  border-top: 1px solid var(--c-line-strong);
}

.member {
  position: relative;
  border-bottom: 1px solid var(--c-line);
}

.member::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-expo);
}

.member.is-open::after {
  transform: scaleX(1);
}

.member__heading {
  font: inherit;
}

.member__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  text-align: left;
}

.member__thumb {
  display: block;
  width: 3.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-paper-2);
}

.member__text {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.member__name {
  font-size: clamp(1.35rem, 0.95rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: transform 0.6s var(--ease-expo), color 0.35s var(--ease-out);
}

.member__role {
  line-height: 1.5;
}

/* Plus that turns into a minus when the profile is open. */
.member__icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
}

.member__icon i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.6s var(--ease-expo), background-color 0.3s var(--ease-out);
}

.member__icon i:last-child {
  transform: rotate(90deg);
}

.member.is-open .member__icon i:last-child {
  transform: rotate(0deg);
}

.member.is-open .member__name {
  color: var(--c-accent-ink);
}

.member.is-open .member__icon i {
  background: var(--c-accent-ink);
}

@media (hover: hover) and (pointer: fine) {
  .member__row:hover .member__name {
    transform: translateX(0.4rem);
  }
}

/* Profile: opens smoothly by animating its row from 0 to its natural height. */
.member__profile {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.7s var(--ease-expo), visibility 0s 0.7s;
}

.member.is-open .member__profile {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.7s var(--ease-expo), visibility 0s 0s;
}

.member__profile-inner {
  min-height: 0;
  overflow: hidden;
}

.member__profile-inner::after {
  content: "";
  display: block;
  height: clamp(1.25rem, 2vw, 1.75rem);
}

.member__bio {
  max-width: 54ch;
  color: var(--c-slate);
}

.member__affiliation {
  display: grid;
  gap: 0.35rem;
  max-width: 54ch;
}

.member__bio + .member__affiliation {
  margin-top: 1rem;
}

.member__affiliation .label {
  color: var(--c-accent-ink);
}

.member__more {
  margin-top: 1.25rem;
}

.team-static {
  display: grid;
  gap: 1.25rem;
  max-width: 60rem;
}

@media (min-width: 640px) {
  .member__profile-inner {
    padding-left: calc(3.5rem + 1rem);
  }
}

@media (min-width: 1024px) {
  .team {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: start;
  }

  .team__viewer {
    display: block;
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .team__list {
    grid-column: 7 / -1;
  }

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

  .member__thumb {
    display: none;
  }

  .member__profile-inner {
    padding-left: 0;
  }
}

/* --- 07 Business network ------------------------------------------------ */

/* Shown in the black and gold of Bullion and Capital Investments. */
.network {
  position: relative;
  overflow: clip;
  background: var(--c-bullion-black);
  color: var(--c-paper);
}

/* A soft gold light from the top right, and a gold hairline along the top edge. */
.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(201, 162, 76, 0.16) 0%, rgba(201, 162, 76, 0) 70%),
    linear-gradient(90deg, rgba(201, 162, 76, 0) 0%, var(--c-gold) 30%, var(--c-gold-light) 50%, var(--c-gold) 70%, rgba(201, 162, 76, 0) 100%) top / 100% 1px no-repeat;
  pointer-events: none;
}

.network__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.network__head {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.network .section-index {
  color: rgba(247, 247, 244, 0.68);
}

.network .section-index::before {
  background: var(--c-gold);
}

.network__head h2 em,
.network__head .accent-dot {
  color: var(--c-gold-light);
}

.network-card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--c-gold-line);
  background: linear-gradient(145deg, rgba(201, 162, 76, 0.08) 0%, rgba(201, 162, 76, 0) 55%);
  transition: border-color 0.6s var(--ease-out);
}

/* Gold corner marks. */
.network-card::before,
.network-card::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: var(--c-gold);
  border-style: solid;
  pointer-events: none;
}

.network-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.network-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.network-card:hover {
  border-color: rgba(201, 162, 76, 0.6);
}

/* Frame for Bullion's logo, empty until the original file is supplied. */
.network-card__logo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 1.4;
  padding: 1.25rem;
  border: 1px solid var(--c-gold-line);
  background:
    linear-gradient(135deg, rgba(227, 199, 132, 0.12) 0%, rgba(227, 199, 132, 0) 45%),
    rgba(201, 162, 76, 0.04);
}

.network-card__logo img {
  max-height: 100%;
  width: auto;
}

.network-card__title {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.network-card__body > p {
  margin-top: 0.75rem;
  color: rgba(247, 247, 244, 0.66);
}

.network-card__body > .network-card__services {
  max-width: 58ch;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-gold-line);
  font-size: var(--fs-small);
  line-height: 1.65;
  color: rgba(247, 247, 244, 0.78);
}

.network-card__body .link-cta {
  margin-top: 1.5rem;
  color: var(--c-gold-light);
}

.network-card__body .link-cta::after {
  background: var(--c-gold);
}

.network-card__body .link-cta:hover .icon-arrow,
.network-card__body .link-cta:focus-visible .icon-arrow {
  stroke: var(--c-gold-light);
}

@media (min-width: 640px) {
  .network-card {
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

@media (min-width: 1024px) {
  .network__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: center;
  }

  .network__head {
    grid-column: 1 / span 5;
  }

  .network-card {
    grid-column: 6 / -1;
  }
}

/* Narrow desktops: logo frame above the text, so the description isn't squeezed. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .network-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .network-card__logo {
    max-width: 15rem;
  }
}

/* --- 08 Contact --------------------------------------------------------- */

/* Light, so it stands apart from the black Business Network section before it. */
.contact {
  position: relative;
  overflow: clip;
  background: var(--c-paper-2);
  color: var(--c-ink);
}

/* Faint drawing-board grid, echoing the Philosophy section. */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 24, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 24, 24, 0.05) 1px, transparent 1px);
  background-size: clamp(3rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem);
  mask-image: radial-gradient(ellipse at 20% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}

.contact > .container {
  position: relative;
}

.contact__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.contact__title em {
  color: var(--c-accent-ink);
}

.contact__lede {
  max-width: 40ch;
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--c-slate);
}

.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

/* Contact channels */

.channels {
  border-top: 1px solid var(--c-line-strong);
}

.channel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) 0;
  border-bottom: 1px solid var(--c-line);
}

.channel::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.35);
  z-index: -1;
  background: rgba(26, 24, 24, 0.04);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-expo);
}

.channel__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-ink);
  transition: background-color 0.5s var(--ease-expo), border-color 0.5s var(--ease-expo);
}

.channel__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.channel__body {
  display: grid;
  gap: 0.4rem;
}

.channel__value {
  font-size: clamp(1.25rem, 0.95rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.channel__arrow .icon-arrow {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.6s var(--ease-expo), stroke 0.4s var(--ease-out);
}

.channel:hover::before,
.channel:focus-visible::before {
  transform: scaleY(1);
}

.channel:hover .channel__icon,
.channel:focus-visible .channel__icon {
  border-color: var(--c-accent-ink);
  background: var(--c-accent-ink);
  color: var(--c-paper);
}

.channel:hover .channel__arrow .icon-arrow,
.channel:focus-visible .channel__arrow .icon-arrow {
  transform: translateX(0.4rem);
  stroke: var(--c-accent);
}

/* Address card */

.visit {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--c-line);
  background:
    linear-gradient(rgba(26, 24, 24, 0.05) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    linear-gradient(90deg, rgba(26, 24, 24, 0.05) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    var(--c-paper);
  overflow: hidden;
}

.visit__label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.visit__label .channel__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.visit__address {
  margin-top: 1.5rem;
  font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.visit__address em {
  color: var(--c-accent-ink);
}

.visit__link {
  margin-top: 1.75rem;
}

/* Decorative location marker in the card's corner. */
.visit__mark {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
}

.visit__mark::before,
.visit__mark::after {
  content: "";
  position: absolute;
  background: var(--c-line-strong);
}

.visit__mark::before {
  left: 50%;
  top: -0.75rem;
  bottom: -0.75rem;
  width: 1px;
}

.visit__mark::after {
  top: 50%;
  left: -0.75rem;
  right: -0.75rem;
  height: 1px;
}

.visit__mark i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin: -0.3rem 0 0 -0.3rem;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(233, 56, 25, 0.5);
  animation: visit-pulse 2.6s var(--ease-out) infinite;
}

@keyframes visit-pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 56, 25, 0.5); }
  70%, 100% { box-shadow: 0 0 0 1.4rem rgba(233, 56, 25, 0); }
}

/* Enquiry form card */

.enquiry {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 40px 80px -48px rgba(26, 24, 24, 0.35);
}

.enquiry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--c-accent);
}

.enquiry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}

.enquiry__title {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.enquiry__hint {
  font-size: var(--fs-small);
  color: var(--c-slate);
}

/* Enquiry-type chips (a radio group) */

.field--choices {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}

.field--choices legend {
  padding: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--c-line-strong);
  font-size: 0.875rem;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.choice input:hover + span {
  border-color: var(--c-ink);
}

.choice input:checked + span {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-paper);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.choice input[aria-invalid="true"]:not(:checked) + span {
  border-color: var(--c-error);
}

.enquiry__actions {
  margin-top: 0.5rem;
}

.enquiry__status {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--c-ink);
  background: rgba(26, 24, 24, 0.05);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.enquiry__status.is-visible {
  display: block;
}

.enquiry__status.is-error {
  border-left-color: var(--c-error);
  background: rgba(168, 23, 42, 0.06);
}

.enquiry__status.is-success {
  border-left-color: var(--c-success);
  background: rgba(47, 107, 79, 0.07);
}

.enquiry__status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .visit__mark i {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .contact__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .contact__head .section-index {
    grid-column: 1 / -1;
  }

  .contact__title {
    grid-column: 1 / span 8;
  }

  .contact__lede {
    grid-column: 9 / -1;
    justify-self: end;
  }

  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: start;
  }

  .contact__details {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .enquiry {
    grid-column: 7 / -1;
  }
}

/* --- Footer ------------------------------------------------------------- */

/* The logo row stays light (the logo's lettering is dark and must not be altered);
   the links, wordmark and legal line sit on a black panel below it. */
.site-footer {
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
}

.site-footer > .container {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.site-footer__panel {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--c-ink);
  color: var(--c-paper);
}

.site-footer__panel .label {
  color: rgba(247, 247, 244, 0.55);
}

.site-footer__panel .link-underline {
  color: var(--c-paper);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand--footer .brand__logo {
  height: clamp(3.5rem, 2.8rem + 2vw, 5rem);
}

.site-footer__slogan {
  font-size: var(--fs-h4);
  line-height: 1.2;
}

.site-footer__nav {
  display: grid;
  gap: 2.25rem;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.site-footer__col ul {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}

.site-footer__col a {
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

.site-footer__wordmark {
  margin-block: clamp(3rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem);
  font-size: clamp(3rem, 0.5rem + 8.6vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line-light);
  font-size: 0.8125rem;
  color: rgba(247, 247, 244, 0.6);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
