/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shape utility — the asymmetric single-corner radius brand signature.
   Default rounds only the bottom-left corner; use a modifier to move it.
   -------------------------------------------------------------------------- */
.corner-shape {
  border-radius: 0 0 0 var(--radius-md);
}
.corner-shape--sm   { border-radius: 0 0 0 var(--radius-sm); }
.corner-shape--lg   { border-radius: 0 0 0 var(--radius-lg); }
.corner-shape--xl   { border-radius: 0 0 0 var(--radius-xl); }
.corner-shape--tl   { border-radius: var(--radius-md) 0 0 0; }
.corner-shape--tr   { border-radius: 0 var(--radius-md) 0 0; }
.corner-shape--br   { border-radius: 0 0 var(--radius-md) 0; }

/* --------------------------------------------------------------------------
   Preloader — a brief on-load sequence: a pulsing geometric mark, then two
   stacked color panels wipe away on a diagonal to reveal the page. Pure CSS
   (no dependency), triggered by adding .is-done via JS once the page is
   ready. Skips straight to "done" under prefers-reduced-motion.
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader__panel,
.preloader__accent {
  position: absolute;
  inset: -10% -10%; /* overshoot so the skew never reveals an edge */
  transform-origin: bottom center;
}

.preloader__panel { background: var(--color-ink); }
.preloader__accent {
  background: var(--color-lime);
  transition-delay: 0.1s;
}

.preloader__mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-bg);
  transition: opacity var(--duration-fast) var(--ease-out-quart);
}

.preloader__shape {
  width: 1.4rem;
  height: 2.4rem;
  background: var(--color-lime);
  clip-path: polygon(50% 42%, 100% 0%, 100% 100%, 50% 58%, 0% 100%, 0% 0%);
  animation: preloader-pinch 1s var(--ease-in-out-quad) infinite alternate;
}

.preloader__word {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

@keyframes preloader-pinch {
  0%   { clip-path: polygon(50% 50%, 100% 0%, 100% 100%, 50% 50%, 0% 100%, 0% 0%); }
  100% { clip-path: polygon(50% 18%, 100% 0%, 100% 100%, 50% 82%, 0% 100%, 0% 0%); }
}

.preloader.is-done {
  transition: visibility 0s 1.1s;
  visibility: hidden;
  pointer-events: none;
}
.preloader.is-done .preloader__mark {
  opacity: 0;
}
.preloader.is-done .preloader__panel,
.preloader.is-done .preloader__accent {
  transform: translateY(-100%) skewY(-8deg);
  transition: transform 1s var(--ease-in-out-quart);
}

@media (prefers-reduced-motion: reduce) {
  .preloader__shape { animation: none; }
  .preloader.is-done .preloader__panel,
  .preloader.is-done .preloader__accent {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Placeholder media — stand-in for photography in this demo build
   -------------------------------------------------------------------------- */
.placeholder-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(135deg, var(--p1, var(--color-purple)) 0%, var(--p2, var(--color-ink)) 100%);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-4);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 45px;
  padding: 0 1.6rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--color-lime);
  color: var(--color-ink);
  border-radius: 0 0 0 18px;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              border-radius var(--duration-fast) var(--ease-out-quart),
              background-color var(--duration-fast) var(--ease-out-quart);
}
.btn:hover {
  transform: translateY(-2px);
  border-radius: 0 0 0 4px;
}
.btn:active { transform: translateY(0); }

.btn--dark {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--lg {
  height: 56px;
  padding: 0 2rem;
  font-size: 0.8125rem;
  border-radius: 0 0 0 22px;
}

/* Button group wrapper — lays out multiple .btn elements side by side,
   wrapping onto a new line if the row runs out of room. */
.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* A text-only link CTA, e.g. "View our work" / "Explore insights" */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
}
.link-cta__arrow {
  transition: transform var(--duration-fast) var(--ease-out-quart);
}
.link-cta:hover .link-cta__arrow {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Logo — a small geometric mark (the single-corner shape, pinched into a
   bowtie-ish silhouette) paired with the wordmark. Pure CSS, no image asset.
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo__mark {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  background: var(--color-lime);
  clip-path: polygon(50% 38%, 100% 0%, 100% 100%, 50% 62%, 0% 100%, 0% 0%);
}

.logo__word {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  white-space: nowrap;
}

.logo--on-dark .logo__word { color: var(--color-bg); }

/* In the sticky header specifically, the logo scrolls over whatever section
   background is currently underneath it — give it a solid chip so the
   wordmark stays legible over dark sections too. */
.site-header .logo {
  padding: 0.35em 0.7em 0.35em 0.5em;
  margin-left: -0.5em;
  border-radius: 0 0 var(--radius-xs) 0;
  background: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--section-pad-x);
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  padding: 0.35em 0.7em;
  margin-left: -0.7em;
  border-radius: 0 0 var(--radius-xs) 0;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-bg);
}

.menu-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  height: 72px;
  background: var(--color-lime);
  border-radius: 0 0 0 40px;
  transition: border-radius var(--duration-base) var(--ease-in-out-quart);
}
.menu-toggle:hover { border-radius: 0 0 0 12px; }
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--duration-base) var(--ease-in-out-quart), opacity var(--duration-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Fullscreen menu overlay — diagonal color wipe reveal
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-6) var(--section-pad-x);
  background: var(--color-ink);
  clip-path: circle(0px at calc(100% - 60px) 60px);
  transition: clip-path var(--duration-slower) var(--ease-in-out-quart);
  pointer-events: none;
  visibility: hidden;
  transition-property: clip-path, visibility;
  transition-delay: 0s, var(--duration-slower);
}
.menu-overlay.is-open {
  clip-path: circle(150% at calc(100% - 60px) 60px);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.menu-overlay__wordmark {
  position: absolute;
  left: var(--section-pad-x);
  bottom: var(--space-6);
  font-size: clamp(3rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-white-40);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-quart) 0.2s;
}
.menu-overlay.is-open .menu-overlay__wordmark { opacity: 1; }

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.menu-overlay__link {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--color-bg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-base) var(--ease-out-quart),
              transform var(--duration-base) var(--ease-out-quart),
              color var(--duration-fast) var(--ease-out-quart);
}
.menu-overlay.is-open .menu-overlay__link {
  opacity: 1;
  transform: none;
}
.menu-overlay__link:hover { color: var(--color-lime); }
.menu-overlay.is-open .menu-overlay__link:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(2) { transition-delay: 0.1s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(4) { transition-delay: 0.2s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(5) { transition-delay: 0.25s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(6) { transition-delay: 0.3s; }

.menu-overlay__close {
  position: absolute;
  top: var(--space-6);
  right: var(--section-pad-x);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-9) clamp(8rem, 6rem + 10vw, 14rem);
}

.hero__shape {
  position: absolute;
  z-index: 0;
  filter: blur(0px);
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 50rem;
}

.hero__eyebrow {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.hero__heading {
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  margin-bottom: var(--space-6);
}

.hero__lede {
  font-size: var(--text-body-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 34rem;
}

/* Full diagonal color-block backdrop, a ghost wordmark watermark sitting
   behind everything, and a tilted "spotlight" photo card that settles into
   place on load — the layered, dimensional hero treatment. */
.hero__diagonal {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(55% 0%, 100% 0%, 100% 100%, 28% 100%);
  background: var(--color-purple-soft);
  transform-origin: 100% 0%;
  animation: hero-diagonal-grow 1.6s var(--ease-out-quart) both;
  animation-delay: 1.4s;
}

@keyframes hero-diagonal-grow {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.hero__ghost-wordmark {
  position: absolute;
  z-index: 0;
  bottom: -0.12em;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(4.5rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(100deg, var(--color-ink-20) 30%, var(--color-purple-soft) 55%, var(--color-ink-20) 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordmark-sheen 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__diagonal { animation: none; }
  .hero__ghost-wordmark { animation: none; background-position: 40% 0; }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .hero__grid .hero__lede-col {
    padding-top: var(--space-9);
    text-align: right;
    margin-left: auto;
  }
}

.hero__spotlight {
  position: relative;
  z-index: 2;
  max-width: 24rem;
  margin: var(--space-7) auto 0;
  border-radius: 0 0 0 var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
  transition: transform var(--duration-slow) var(--ease-out-quart);
}

.hero__spotlight:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero__spotlight img,
.hero__spotlight video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero__spotlight-caption {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: var(--color-bg);
  padding: 0.4rem 0.9rem;
  border-radius: 0 0 0 var(--radius-xs);
  font-size: var(--text-small);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hero__spotlight { transition: none; }
}

/* --------------------------------------------------------------------------
   Scroll list — big bold repeated text, active/centered item accented
   (client logos, city names, etc.)
   -------------------------------------------------------------------------- */
.scroll-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.scroll-list__item {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-white-40);
  transition: color var(--duration-base) var(--ease-out-quart),
              opacity var(--duration-base) var(--ease-out-quart);
}

.scroll-list__item.is-active {
  color: var(--color-lime);
}

.scroll-list--on-light .scroll-list__item.is-active {
  color: var(--color-purple);
}

/* --------------------------------------------------------------------------
   Client logo wall
   -------------------------------------------------------------------------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-ink-20);
  border: 1px solid var(--color-ink-20);
}

@media (min-width: 40rem) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .client-grid { grid-template-columns: repeat(4, 1fr); }
}

.client-grid__item {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  min-height: 9.5rem;
}

.client-grid__item img {
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-grid__item--text {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Some client logos are exported white-on-transparent (built for a dark
   header on the client's own site) and are invisible on our white tiles.
   Give those specific tiles a dark backdrop instead of forcing a light bg. */
.client-grid__item--dark {
  background: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Feature / highlight project card
   -------------------------------------------------------------------------- */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 var(--radius-lg);
  color: var(--color-white);
  background: var(--color-ink);
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
}

.feature-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.feature-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
}

.feature-card__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

.feature-card__tags {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.feature-card__tag {
  padding: 0.35rem 0.9rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--color-white-40);
  backdrop-filter: blur(6px);
  border-radius: 0 0 0 10px;
}

.feature-card__title {
  font-size: var(--text-h3);
  max-width: 32rem;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  max-width: 26rem;
  color: var(--color-white-70);
  font-weight: 300;
}

/* Optional photo strip under a feature card's video/media */
.feature-card__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}
.feature-card__gallery img,
.feature-card__gallery video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Service block — full-bleed color section, alternating media side
   -------------------------------------------------------------------------- */
.service-block {
  background: var(--tone, var(--color-lime-light));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 64rem) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .service-block--reverse .service-block__media { order: 2; }
  .service-block--reverse .service-block__text { order: 1; }
}

.service-block__index {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.service-block__title {
  margin-bottom: var(--space-5);
}

.service-block__desc {
  font-size: var(--text-body-lg);
  font-weight: 300;
  max-width: 28rem;
}

.service-block__media {
  aspect-ratio: 4 / 5;
  border-radius: 0 0 0 var(--radius-lg);
  overflow: hidden;
}

.service-block__media img,
.service-block__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.testimonial {
  max-width: 44rem;
}

.testimonial__video {
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 0 var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--color-ink);
}
.testimonial__video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.testimonial__author {
  font-weight: 600;
}

.testimonial__role {
  color: var(--color-text-muted);
}

.testimonial__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-ink-20);
}

.testimonial__pagination {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

.testimonial__pagination strong {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Stat grid
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7) var(--space-6);
}

@media (min-width: 48rem) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 72rem) {
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
}

.stat__value {
  display: flex;
  align-items: flex-start;
  font-size: clamp(2.5rem, 3vw + 1.5rem, 4.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
}

.stat__suffix {
  font-size: 0.4em;
  margin-top: 0.15em;
  margin-left: 0.15em;
}

.stat__label {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  max-width: 16rem;
}

/* --------------------------------------------------------------------------
   Insight / blog card
   -------------------------------------------------------------------------- */
.insight-card {
  display: block;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-ink-20);
  transition: opacity var(--duration-fast) var(--ease-out-quart);
}

.insight-card__date {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.insight-card__title {
  font-size: var(--text-h4);
  font-weight: 500;
  max-width: 40rem;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.insight-card:hover .insight-card__title {
  color: var(--color-purple);
}

/* --------------------------------------------------------------------------
   CTA band — a closing call-to-action strip before the footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--color-ink);
  color: var(--color-bg);
  text-align: center;
  padding-block: var(--space-9);
}

.cta-band__title {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   Contact ticket — a floating action button that opens a modal styled like
   an event ticket stub (perforated divider, torn-edge notches).
   -------------------------------------------------------------------------- */
.contact-fab {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 60;
  height: 52px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-lime);
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 0 0 0 24px;
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              border-radius var(--duration-fast) var(--ease-out-quart),
              opacity var(--duration-fast) var(--ease-out-quart);
}
.contact-fab:hover { transform: translateY(-3px); border-radius: 0 0 0 8px; }

/* Hidden while the hero (which has its own CTAs) is in view, so the fixed
   button never sits on top of hero copy on short mobile viewports. JS-only:
   without JS the button just stays visible, which is a fine fallback. */
.contact-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out-quart), visibility 0s var(--duration-base);
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-base) var(--ease-out-quart), visibility 0s;
}

.ticket {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-bg-raised);
  border-radius: 0 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform var(--duration-base) var(--ease-out-quart);
}
.contact-modal.is-open .ticket { transform: none; }

.ticket__stub {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-radius: 0 0 0 var(--radius-lg);
  position: relative;
}
.ticket__stub-title { font-size: 1.4rem; font-weight: 600; letter-spacing: var(--tracking-tight); }
.ticket__stub-sub { color: var(--color-white-70); font-size: var(--text-small); margin-top: var(--space-2); }

.ticket__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-white-70);
}
.ticket__close:hover { color: var(--color-bg); }

/* Perforated tear-line between the stub and the form */
.ticket__perforation {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--color-ink-20);
}
.ticket__perforation::before,
.ticket__perforation::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.55); /* matches modal backdrop so it reads as a cut notch */
}
.ticket__perforation::before { left: -10px; }
.ticket__perforation::after { right: -10px; }

.ticket__form {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.ticket__form[hidden] { display: none; }

.ticket__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.ticket__row .ticket__field {
  min-width: 0; /* lets grid items shrink below an input's intrinsic default
                   width instead of forcing the row (and ticket) to overflow */
}
@media (max-width: 26rem) {
  .ticket__row { grid-template-columns: 1fr; }
}

.ticket__field label {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.ticket__field input,
.ticket__field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--text-small);
  background: var(--color-bg);
  border: 1.5px solid var(--color-ink-20);
  border-radius: 0 0 0 var(--radius-xs);
  transition: border-color var(--duration-fast) var(--ease-out-quart);
}
.ticket__field input:focus,
.ticket__field textarea:focus {
  outline: none;
  border-color: var(--color-purple);
}

.ticket__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}
.ticket__submit[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.ticket__status {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.ticket__status[data-state="error"] {
  color: #b3261e;
}

.ticket__success {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  text-align: center;
}
.ticket__success[hidden] { display: none; }
.ticket__success-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.ticket__success-sub {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-bg);
  padding-block: var(--space-9) var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.footer__heading {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white-40);
  margin-bottom: var(--space-4);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-body-lg);
}

.footer__wordmark {
  margin-top: var(--space-9);
  font-size: clamp(3.5rem, 14vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  background: linear-gradient(100deg, var(--color-ink) 30%, var(--color-lime) 55%, var(--color-ink) 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordmark-sheen 6s linear infinite;
}

@keyframes wordmark-sheen {
  0%   { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-small);
  color: var(--color-white-40);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .footer__wordmark { animation: none; background-position: 40% 0; }
}

/* --------------------------------------------------------------------------
   Pinned scale-reveal — a heading stays pinned while media grows from a
   small centered box to full width as the section scrolls past. Driven by
   GSAP ScrollTrigger (scrub + pin) when the library is present, and
   degrades to a static, already-expanded layout without it.
   -------------------------------------------------------------------------- */
.pin-reveal {
  position: relative;
  min-height: 250vh; /* scroll runway the scrub animates across; the inner
                         .pin-reveal__pin is what GSAP actually pins in place */
}

.pin-reveal__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
  text-align: center;
}

.pin-reveal__title {
  max-width: 30rem;
}

.pin-reveal__media-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pin-reveal__media {
  width: 40%;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 0 var(--radius-lg);
  overflow: hidden;
  transition: width var(--duration-slow) var(--ease-out-quart);
}

.pin-reveal__media video,
.pin-reveal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* JS adds this once ScrollTrigger has taken control, so CSS no longer
   needs to guess the width — GSAP drives it via an inline style. */
.pin-reveal.is-scroll-driven .pin-reveal__media {
  transition: none;
}

/* No-JS / reduced-motion fallback: show media at full size already */
.no-js .pin-reveal__media,
.pin-reveal__media.is-static {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Region tabs — click a region to swap the visible city/location list.
   -------------------------------------------------------------------------- */
.region-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.region-tabs__tab {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 0 0 0 var(--radius-xs);
  transition: background-color var(--duration-fast) var(--ease-out-quart),
              color var(--duration-fast) var(--ease-out-quart);
}

.region-tabs__tab.is-active {
  background: var(--color-ink);
  color: var(--color-bg);
}

.region-tabs__panel {
  display: none;
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.region-tabs__panel.is-active {
  display: block;
}

.region-tabs__panel mark {
  background: none;
  color: var(--color-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Scroll-list logo reveal — an optional chip that swaps to match whichever
   item is currently active, echoing the "name list + revealed mark" pattern.
   -------------------------------------------------------------------------- */
.scroll-list__logo {
  margin-top: var(--space-5);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-lime);
  border-radius: 0 0 0 var(--radius-xs);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--duration-base) var(--ease-out-quart),
              transform var(--duration-base) var(--ease-out-quart);
}

.scroll-list__logo.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Trusted-by layout — a centered-active name list on the left, with the
   matching client logo pinned at the right edge as the list scrolls past.
   -------------------------------------------------------------------------- */
.trusted-by__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 48rem) {
  .trusted-by__layout {
    grid-template-columns: 1fr 12rem;
  }
}

.trusted-by__logo-frame {
  display: none;
}

@media (min-width: 48rem) {
  .trusted-by__logo-frame {
    display: flex;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 10rem;
    height: 10rem;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 0 0 0 var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-5);
  }
}

.trusted-by__logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-quart);
}

.trusted-by__logo-frame img.is-visible {
  opacity: 1;
}
