/* ==========================================================================
   main.css — core / global + page-section styles

   1. Design tokens
   2. Base (reset, typography)
   3. Layout utilities (container, section, section head)
   4. Page sections: hero · solutions · expertise · process · philosophy ·
      ecosystem · exhibition · contact
   5. Reduced-motion

   Reusable UI (buttons, header, footer, forms, carousel …) lives in
   components.css. Brand art / campaign-specific styling lives in customer.css.
   Breakpoints used everywhere: 1600 / 1000 / 800 / 640 px (max-width, desktop-first).
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --color-ink: #101418;
  --color-heading: #000;
  --color-accent: #405e89;
  --color-error: #b3261e;
  --color-focus: #345585;
  --color-orange: #ff5c35;
  --color-navy: #0a2d5b;
  --color-surface: #eef4f8;

  --font-body: Geist, Arial, sans-serif;
  --font-heading: Manrope, sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Typography scale tokens */
  --text-base: 16px;
  --line-height-base: 1.5;
  /* 24px */
  --text-sm: 14px;
  --line-height-sm: 1.4;
  --text-xs: 12px;
  --text-lg: 18px;
  --line-height-lg: 1.45;

  --container: min(1296px, calc(100% - 48px));
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1296px);
  }
}

/* 2. Base ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

/* Pin measurements must use immediate native scrolling. Lenis handles smooth anchors. */
html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

/* Normal text baseline */
p,
li,
dd,
figcaption {
  font-size: var(--text-base);
  line-height: var(--line-height-base);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* 3. Layout utilities ---------------------------------------------------- */
.jj-container {
  width: var(--container);
  margin: auto;
}

.jj-section {
  padding: 86px 0;
}

.jj-section__head {
  display: grid;
  grid-template-columns: 524px minmax(0, 736px);
  column-gap: 20px;
  row-gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.jj-section__head>div:first-child {
  display: contents;
}

.jj-section__head>div:first-child>.jj-section__title {
  grid-column: 1 / -1;
}

.jj-section__title,
.expertise__title {
  margin: 0;
  font: 600 48px/1.08 var(--font-heading);
  letter-spacing: -0.045em;
  color: #000;
}

.jj-section__accent {
  display: block;
  margin-top: 2px;
  font-size: 84px;
  line-height: 1.05;
  color: var(--color-accent);
}

.jj-section__intro {
  grid-column: 2;
  width: 100%;
  max-width: 760px;
  min-height: 42px;
  margin: 0;
  color: #717171;
  font: 400 16px/21px var(--font-body);
}

.jj-section__rule {
  grid-column: 1;
  width: 524px;
  height: 8px;
  align-self: center;
  background: url("../images/decor/section-rule.png") center / 100% 100% no-repeat;
  margin: 0;
}

@media (max-width: 1000px) {
  .jj-section__head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jj-section__head>div:first-child {
    display: block;
  }

  .jj-section__head>div:first-child>.jj-section__title {
    grid-column: 1;
  }

  .jj-section__rule {
    width: min(524px, 100%);
    margin-top: 20px;
  }

  .jj-section__intro {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .jj-section {
    padding: 64px 0;
  }

  .jj-section__title,
  .expertise__title {
    font-size: 32px;
  }

  .jj-section__accent {
    font-size: 44px;
  }
}

/* 4a. Hero --------------------------------------------------------------- */
.hero {
  --hero-height: clamp(620px, calc(100svh - var(--header-height)), 780px);
  --header-offset: 0px;
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: var(--hero-height);
  overflow: hidden;
  color: #fff;
  background: #061b36;
}

/* Legibility overlay on the navy portion only */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(0, 10, 25, 0.45),
      rgba(0, 10, 25, 0.08));
}

/* White top block — the hero "overlay" from the Figma: the kicker + top half
   of the Performance title sit on white, the bottom half extends into the
   navy hero. Height is a share of the hero so it scales with the viewport. */
.hero__white-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Height set in px (not %) so the straddle point is stable regardless of hero height */
  height: var(--hero-split, 250px);
  z-index: 1;
  background: #fff;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .hero__white-top {
    height: var(--hero-split, 250px);
  }
}

@media (max-width: 640px) {
  .hero__white-top {
    height: var(--hero-split, 145px);
  }
}

/* Background image itself is set in customer.css */
.hero__bg {
  transform: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: var(--hero-height);
  min-height: var(--hero-height);
  padding-top: 26px;
  padding-bottom: 46px;
}

.hero__heading {
  margin: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin: 0 0 18px;
  background-color: #d1d6dc;
  border-radius: 4px;
  font: 500 14px/1.2 var(--font-body);
  letter-spacing: -0.01em;
  color: #0f1e35;
}

.hero__kicker {
  display: block;
  margin: 0 0 4px;
  font: 400 64px/1 var(--font-body);
  letter-spacing: -0.04em;
  color: #0f1e35;
}

.hero__title {
  display: block;
  /* Align the visible P glyph with the shared hero column. */
  position: relative;
  left: -0.06em;
  max-width: 1180px;
  margin: 0;
  font: 700 184px/0.94 var(--font-body);
  letter-spacing: -0.07em;
  color: #0f1e35;
}

.hero__body {
  width: min(650px, 70%);
}

.hero__copy {
  margin: 0 0 18px;
  font-size: var(--text-base);
  line-height: 1.55;
  color: #f3f5f7;
}

.hero__body .jj-btn {
  padding: 13px 24px;
}

.hero__ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 24px;
  color: #fff;
}

@media (max-width: 1000px) {
  .hero {
    --hero-height: clamp(620px, calc(100svh - var(--header-height)), 780px);
    --header-offset: 0px;
  }

  .hero__inner {
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: clamp(70px, 14vw, 120px);
  }
}

@media (max-width: 640px) {
  .hero {
    --hero-height: max(600px, calc(100svh - var(--header-height)));
    --header-offset: 0px;
  }

  .hero__inner {
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .hero__kicker {
    font-size: clamp(23px, 6.1vw, 30px);
  }

  .hero__title {
    margin-bottom: 26px;
    font-size: clamp(43px, 11.2vw, 68px);
    letter-spacing: -0.065em;
  }

  .hero__body {
    width: 100%;
  }
}

/* 4b. Solutions (carousel itself is a component) -------------------------- */
.solutions {
  position: relative;
  z-index: 3;
  isolation: isolate;
  padding-bottom: 48px;
  background: #fff;
  box-shadow: 0 -1px 0 #fff;
}

@media (max-width: 640px) {
  .solutions {
    padding-bottom: 64px;
  }
}

@media (min-width: 641px) and (max-width: 1280px) {
  .hero__kicker {
    font-size: clamp(36px, 4.444vw, 64px);
  }
}

@media (min-width: 1001px) and (max-width: 1280px) {
  .hero__title {
    font-size: clamp(74px, 12.778vw, 184px);
  }
}

/* 4c. Expertise (accordion) ---------------------------------------------- */
.expertise {
  position: relative;
  z-index: 3;
  background: #edf4f9;
}

.expertise__title {
  margin-bottom: 44px;
}

.expertise__body {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: start;
  margin-left: 9%;
  margin-right: 5%;
}

.expertise__item {
  position: relative;
  padding: 23px 0;
  border-bottom: 1px solid #c6ced6;
}

.expertise__item:first-child {
  padding-top: 0;
}

.expertise__item.is-active {
  border-bottom-color: #f5b396;
}

/* Orange end-dots on the open item's rule */
.expertise__item.is-active::before,
.expertise__item.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-orange);
}

.expertise__item.is-active::after {
  left: auto;
  right: -2px;
  z-index: 2;
}

.expertise__heading {
  margin: 0;
}

.expertise__trigger {
  display: block;
  width: 100%;
  padding: 0 20px 0 0;
  border: 0;
  background: none;
  text-align: left;
  font: 500 clamp(24px, 2.8vw, 42px)/1.15 var(--font-heading);
  letter-spacing: -0.045em;
  color: #626971;
  cursor: pointer;
  transition: color 0.3s;
}

.expertise__item.is-active .expertise__trigger {
  color: #f4511e;
}

.expertise__trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.expertise__panel:not([hidden]) {
  animation: expertise-panel-in 0.35s ease both;
}

.expertise__text {
  max-width: 340px;
  margin: 13px 28px 14px 0;
  font-size: var(--text-base);
  line-height: 1.5;
  color: #616870;
}

.expertise__link {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
}

.expertise__link>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.expertise__media {
  position: relative;
  aspect-ratio: 1.085;
  border-radius: 18px;
  overflow: hidden;
  background: #dde6ee;
}

.expertise__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.expertise__photo.is-active {
  opacity: 1;
}

/* Optimized image files now have the correct orientation. */
.expertise__photo--rotated {
  transform: none;
}

@keyframes expertise-panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .expertise__title {
    margin-bottom: 30px;
  }

  .expertise__body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
  }

  .expertise__item {
    padding: 20px 0;
  }

  .expertise__item:first-child {
    padding-top: 0;
  }

  .expertise__trigger {
    font-size: 28px;
  }
}

/* 4d. Process ------------------------------------------------------------ */
.process {
  position: relative;
  overflow: clip;
}

.process__grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

/* Orbit lines belong only to the card canvas, never the section heading. */
.process__grid::before,
.process__grid::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 0;
  width: 1109px;
  height: calc(100% + var(--process-stagger, 0px));
  pointer-events: none;
  clip-path: inset(0);
}

.process__grid::before {
  top: 280px;
  right: 45%;
}

.process__grid::after {
  left: 52%;
}

.process-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 14px 14px 0 0;
}

.process-card:nth-child(2) {
  transform: none;
}

.process-card:nth-child(3) {
  transform: none;
}

.process-card:nth-child(4) {
  transform: none;
}

.process-card__img {
  width: 100%;
  height: 346px;
  object-fit: cover;
  border-radius: 14px;
}

/* Optimized image files now have the correct orientation. */
.process-card__img--flipped {
  transform: none;
}

.process-card__title {
  margin: 12px 0 6px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.process-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  color: #6e7378;
}

@media (max-width: 1279px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card:nth-child(n) {
    margin-top: 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  .process__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .process-card__img {
    height: 200px;
  }

  .process-card__title {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .process-card__text {
    font-size: var(--text-base);
  }
}

/* 4e. Philosophy (stat tiles) -------------------------------------------- */
.philosophy__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.philosophy__stats {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.philosophy__media {
  border-radius: 20px;
  overflow: hidden;
}

.philosophy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 411 / 229;
  padding: 30px 32px;
  border-radius: 20px;
  overflow: hidden;
  transform-origin: center;
  background-color: #fdefe3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.stat-card__value {
  display: block;
  margin: 0;
  font: 500 clamp(22px, 2.15vw, 32px)/1.12 var(--font-heading);
  letter-spacing: -0.035em;
  color: #956511;
}

.stat-card__label {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.45;
  color: #111827;
}

@media (max-width: 1000px) and (min-width: 801px) {

  .philosophy__tiles,
  .philosophy__stats {
    gap: 18px;
  }

  .stat-card {
    aspect-ratio: auto;
    min-height: 188px;
    padding: 22px 20px;
  }
}

@media (max-width: 800px) {
  .philosophy__tiles {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .philosophy__stats {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }

  .philosophy__media {
    aspect-ratio: 410 / 483;
    max-height: 520px;
  }

  .philosophy__media img {
    object-fit: contain;
  }

  .stat-card {
    aspect-ratio: auto;
    min-height: 190px;
    padding: 22px 18px;
    background-size: cover;
  }

  .stat-card__value {
    font-size: 23px;
  }

}

/* 4f. Ecosystem ---------------------------------------------------------- */
.ecosystem__diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1281 / 407;
  margin-top: 22px;
}

.ecosystem__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecosystem__waves {
  display: none;
}

.ecosystem__rule-desktop {
  display: none;
}

.ecosystem__bottom {
  display: none;
}

.ecosystem__brand {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  height: 27%;
  padding: 16px;
  border-radius: 100px;
  background: linear-gradient(100deg, #edf4ff, #fafcff);
}

.ecosystem__brand img {
  width: 72%;
  max-height: 70%;
  height: auto;
  object-fit: contain;
}

.ecosystem__brand--parent {
  left: 50%;
  top: 14%;
  height: 28%;
  background: #fff9df;
}

.ecosystem__brand--parent img {
  width: 67%;
}

.ecosystem__brand--jenkins {
  left: 23.4%;
  top: 55%;
}

.ecosystem__brand--leesona {
  left: 77%;
  top: 55%;
}

.ecosystem__center {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 18%;
  height: 32%;
  padding: 12px;
  border-radius: 18px;
  background: #fff9df;
  text-align: center;
  color: #13294b;
}

.ecosystem__center-title {
  display: block;
  margin: 0;
  padding: 10px 3px;
  border-radius: 10px;
  background: #fff;
  font-size: clamp(10px, 1.3vw, 18px);
  font-weight: 600;
  white-space: nowrap;
}

.ecosystem__center-text {
  margin: 0;
  font-size: clamp(10px, 1.2vw, 16px);
  line-height: 1.4;
}

.ecosystem .ecosystem__cta {
  position: absolute;
  left: 50%;
  top: 94%;
  transform: translate(-50%, -50%);
  width: 194px;
  height: 52px;
  padding: 0;
  justify-content: center;
  color: #ebeae8;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.ecosystem .ecosystem__cta .jj-icon--white {
  color: #ebeae8;
}

@media (max-width: 1000px) {
  .ecosystem__center {
    gap: 6px;
    padding: 8px;
  }

  .ecosystem__center-title {
    padding: 6px 2px;
  }
}

@media (max-width: 640px) {

  .ecosystem__waves,
  .ecosystem__bottom,
  .ecosystem__rule-desktop,
  .desktop-only {
    display: none !important;
  }

  .ecosystem__diagram {
    aspect-ratio: auto;
    height: 280px;
  }

  .ecosystem__brand {
    width: 29%;
    height: 20%;
    padding: 8px;
  }

  .ecosystem__brand img {
    width: 92%;
  }

  .ecosystem__brand--parent {
    top: 14%;
    width: 32%;
    height: 24%;
  }

  .ecosystem__brand--jenkins {
    left: 17%;
    top: 55%;
  }

  .ecosystem__brand--leesona {
    left: 83%;
    top: 55%;
  }

  .ecosystem__center {
    gap: 4px;
    width: 30%;
    height: 28%;
    padding: 6px;
    border-radius: 12px;
  }

  .ecosystem__center-title {
    font-size: 10px;
    white-space: normal;
  }

  .ecosystem__center-text {
    font-size: 10px;
  }

  .ecosystem .ecosystem__cta {
    width: 194px;
    height: 52px;
    padding: 0;
    font-size: 15px;
  }
}

/* Desktop Redesign (min-width: 641px) */
@media (min-width: 641px) {
  .ecosystem {
    background-color: #ffffff;
    padding-block: 76px 70px;
  }

  .ecosystem .jj-section__head {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(0, 480px);
    justify-content: space-between;
    align-items: end;
    margin-bottom: 44px;
    gap: 32px;
  }

  .ecosystem .jj-section__head>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ecosystem .jj-section__head>div:first-child>.jj-section__title {
    grid-column: auto;
    font: 600 clamp(30px, 3vw, 44px)/1.15 var(--font-heading);
    letter-spacing: -0.035em;
    color: #121212;
  }

  .ecosystem .jj-section__accent {
    display: block;
    font-size: clamp(38px, 4.4vw, 68px);
    line-height: 1.05;
    color: #345585;
    margin-top: 4px;
    white-space: nowrap;
  }

  .ecosystem .jj-section__rule {
    display: none !important;
  }

  .ecosystem__rule-desktop {
    display: block;
    width: 100%;
    max-width: 530px;
    height: 6px;
    margin-top: 24px;
  }

  .ecosystem .jj-section__intro {
    align-self: end;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #6B7280;
    max-width: 480px;
    padding-bottom: 6px;
  }

  .ecosystem__diagram {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 267;
    max-width: 1360px;
    margin: 40px auto 0;
  }

  .ecosystem__waves {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  .ecosystem__waves img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .ecosystem__brand {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: 2;
  }

  .ecosystem__brand img {
    height: auto;
    object-fit: contain;
  }

  .ecosystem__brand--jenkins {
    left: 14%;
    top: 52%;
    width: clamp(140px, 14vw, 196px);
  }

  .ecosystem__brand--jenkins img {
    width: 100%;
    max-height: 54px;
  }

  .ecosystem__brand--parent {
    left: 50%;
    top: 50%;
    width: clamp(220px, 22vw, 320px);
    background: none !important;
  }

  .ecosystem__brand--parent img {
    width: 100%;
    max-height: 85px;
  }

  .ecosystem__brand--leesona {
    left: 86%;
    top: 52%;
    width: clamp(150px, 15vw, 215px);
  }

  .ecosystem__brand--leesona img {
    width: 100%;
    max-height: 40px;
  }

  .ecosystem__rings,
  .ecosystem__center,
  .ecosystem__diagram>.ecosystem__cta {
    display: none !important;
  }

  .ecosystem__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    text-align: center;
  }

  .ecosystem__bottom-title {
    font: 700 clamp(24px, 2.3vw, 32px)/1.2 var(--font-heading);
    letter-spacing: -0.02em;
    color: #345585;
    margin: 0 0 24px 0;
    text-align: center;
  }

  .ecosystem__bottom-cta {
    min-width: 180px;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 9999px;
    background: #13294B;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .ecosystem__bottom-cta:hover {
    background: #1c3d6e;
    transform: translateY(-1px);
    color: #ffffff !important;
  }
}

/* 4g. Exhibition (COMPAMED band) ------------------------------------------ */
.exhibition {
  position: relative;
  z-index: 0;
  padding-top: 0;
  background: #fff;
}

/* Background image set in customer.css */
.exhibition__band {
  position: relative;
  z-index: 1;
  min-height: 440px;
  color: #fff;
}

.exhibition__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(3, 24, 50, 0.55),
      rgba(3, 24, 50, 0.2));
}

.exhibition__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 440px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.exhibition__content {
  max-width: 620px;
}

.exhibition__heading {
  margin: 0;
}

.exhibition__lead {
  display: block;
  font: 400 clamp(24px, 2.4vw, 34px)/1.25 var(--font-heading);
  color: #fff;
}

.exhibition__emphasis {
  position: relative;
  z-index: 2;
  display: block;
  margin: 14px 0 24px;
  font: 600 clamp(64px, 6.4vw, 96px)/1.08 var(--font-heading);
  letter-spacing: -0.045em;
  color: #fff;
}

.exhibition__copy {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Exhibition Slider Container & Track */
.exhibition__slider {
  position: relative;
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  border-radius: 20px;
  touch-action: pan-y;
  user-select: none;
  margin-bottom: 80px;
}

.exhibition__slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibition__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.exhibition__card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(190, 204, 219, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibition__slide:not(.is-active) .exhibition__card {
  opacity: 0.35;
  transform: scale(0.97);
}

.exhibition__slide.is-active .exhibition__card {
  opacity: 1;
  transform: scale(1);
}

/* Pagination Dots */
.exhibition__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.exhibition__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibition__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.exhibition__dot.is-active {
  width: 26px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Top row: Brand logo badge on the left, prev/next arrows on the right */
.exhibition__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.exhibition__brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.exhibition__brand-logo {
  display: block;
  height: 80px;
  max-height: 88px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.exhibition__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.exhibition__brand-mark {
  display: block;
  width: auto;
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
}

.exhibition__nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.exhibition__nav-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.exhibition__nav-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.exhibition__nav-btn .jj-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
}

.exhibition__address {
  margin-top: 6px;
}

.exhibition__venue {
  margin: 8px 0;
  font: 500 28px var(--font-heading);
}

.exhibition__card p {
  font-size: 12px;
  opacity: 0.9;
}

.exhibition__date {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.exhibition__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .exhibition__inner {
    gap: 28px;
  }

  .exhibition__card {
    max-width: 580px;
  }
}

@media (max-width: 640px) {
  .exhibition__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0;
  }

  .exhibition__content {
    max-width: 100%;
  }

  .exhibition__lead {
    font-size: 23px;
  }

  .exhibition__emphasis {
    font-size: 60px;
  }

  .exhibition__copy {
    font-size: 12px;
  }

  .exhibition__card {
    padding: 22px;
  }
}

/* 4h. Contact ------------------------------------------------------------ */
.contact {
  position: relative;
  z-index: 4;
  padding: 76px 0 42px;
  border-top: 1px solid var(--color-surface);
  overflow: hidden;
  background: var(--color-surface);
}

/* Decorative concentric arcs */
.contact::after {
  content: "";
  position: absolute;
  right: -455px;
  bottom: -276px;
  width: 1109px;
  height: 469px;
  background: url("../images/decor/process-orbit-art.svg") center / 1109px 469px no-repeat;
  filter: grayscale(1) brightness(0.92);
  transform: rotate(90deg);
  pointer-events: none;
}

.contact .jj-section__head {
  position: relative;
  z-index: 2;
  margin-bottom: 38px;
}

.contact .jj-section__title {
  font-weight: 600;
}

.contact .contact-form {
  max-width: 60.5%;
}

@media (min-width: 1600px) {


  .contact .jj-section__intro {
    font-size: 18px;
  }

  .contact .contact-form {
    column-gap: 16px;
    row-gap: 34px;
  }

  .contact .jj-field,
  .contact .jj-file,
  .contact .jj-captcha {
    height: 60px;
    font-size: 18px;
  }

  .contact .jj-file {
    height: 56px;
  }

  .contact .jj-field--message {
    height: 138px;
  }
}

@media (max-width: 1000px) {
  .contact .jj-section__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact .contact-form {
    max-width: 80%;
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 56px 0;
  }

  .contact::after {
    opacity: 0.4;
  }

  .contact .jj-section__head {
    margin-bottom: 28px;
  }

  .contact .contact-form {
    max-width: 100%;
  }
}

/* 5. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .expertise__panel:not([hidden]) {
    animation: none;
  }

  .expertise__photo {
    transition: none;
  }
}

/* Shared offset for native anchors and the smooth-scroll adapter. */
:root {
  --header-height: 132px;
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

@media (max-width: 1400px) {
  :root {
    --header-height: 94px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 78px;
  }
}

.process--static .process-card {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .process-card {
    transform: none !important;
  }
}

/* Semantic dark heading and a decorative white copy meet at the same boundary. */
.hero__heading {
  position: relative;
}

.hero__heading--light {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.hero__heading--light .hero__eyebrow {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero__heading--light .hero__kicker,
.hero__heading--light .hero__title {
  color: #fff;
}

.hero__heading--light {
  display: none;
}

.hero--reveal .hero__heading--light {
  display: block;
}

.hero__heading-wrap {
  position: relative;
}

.exhibition__band {
  overflow: hidden;
  isolation: isolate;
}

.exhibition__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../images/backgrounds/event-band-bg.webp') center / cover no-repeat;
}

/* Fixed exhibition artwork is independent of GSAP's pin transforms. */
.exhibition__background {
  transform: none;
  background-position: center;
  background-size: cover;
}

.exhibition__band {
  width: 100%;
}

/* The following section overlaps the second half of this sticky stage. */
.exhibition-pin-stage.is-pinned {
  height: calc(var(--band-height) + var(--pin-travel));
  margin-bottom: calc(var(--pin-travel) * -1);
}

.exhibition-pin-stage.is-pinned>.exhibition {
  position: sticky;
  top: var(--pin-top);
}

/* Preserve the desktop stagger when the viewport is too short for a pin. */
@media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
  .process--staggered-static .process__grid {
    padding-bottom: 274px;
  }

  .process--staggered-static .process-card:nth-child(2) {
    transform: translateY(74px);
  }

  .process--staggered-static .process-card:nth-child(3) {
    transform: translateY(192px);
  }

  .process--staggered-static .process-card:nth-child(4) {
    transform: translateY(274px);
  }
}

/* Performance is an image cutout; only the kicker retains its white reveal. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero--reveal.hero--text-mask .hero__heading:not(.hero__heading--light) .hero__title {
    background-image: var(--hero-mask-image);
    background-size: var(--hero-mask-size);
    background-position: var(--hero-mask-position);
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .hero--reveal.hero--text-mask .hero__heading--light .hero__title {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}


/* Exhibition image cutout shares the stationary artwork's exact pixel position. */
.exhibition__band {
  min-height: 683px;
}

.exhibition__band::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--exhibition-split, 248px);
  z-index: 1;
  background: #fff;
  pointer-events: none;
}

.exhibition__inner {
  min-height: 683px;
  align-items: start;
  column-gap: 40px;
  row-gap: 28px;
}

.exhibition__content {
  display: contents;
}

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

.exhibition__lead {
  font: 400 64px/1.15 var(--font-heading);
  letter-spacing: -.02em;
  color: #121212;
}

.exhibition__emphasis {
  margin: 0;
  font: 700 184px/1 var(--font-heading);
  letter-spacing: -.045em;
  position: relative;
  left: -.025em;
  color: #121212;
}

.exhibition__copy {
  font-size: var(--text-base);
  max-width: 634px;
}

.exhibition__card {
  width: 100%;
  max-width: none;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .exhibition--text-mask .exhibition__emphasis {
    background-image: var(--exhibition-mask-image);
    background-size: var(--exhibition-mask-size);
    background-position: var(--exhibition-mask-position);
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 1279px) {
  .exhibition__lead {
    font-size: clamp(23px, 4.45vw, 64px);
  }

  .exhibition__emphasis {
    font-size: clamp(52px, 12.78vw, 184px);
  }
}

@media (max-width: 640px) {
  .exhibition__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .exhibition__band {
    min-height: 0;
  }

  .exhibition__card {
    margin-top: 0;
  }

  .exhibition__brand-badge {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .exhibition__brand-logo {
    height: 60px;
    max-height: 60px;
    max-width: 180px;
  }
}