/* Bespoke Services — About-aligned scroll landing (centered measure, progress rail) */

body.support-bespoke-scroll-page {
  background: var(--gal-parchment, #fcfaf7);
  --gal-bespoke-accent: var(--gal-gold, #c9a227);
  --acc-float-nav-w: 0;
  --acc-nav-content-gap: 0;
  --acc-content-inset-left: max(20px, env(safe-area-inset-left));
  --acc-content-inset-right: max(20px, env(safe-area-inset-right));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 900px) {
  body.support-bespoke-scroll-page {
    --acc-content-inset-left: clamp(28px, 4vw, 56px);
    --acc-content-inset-right: clamp(28px, 4vw, 56px);
  }
}

body.support-bespoke-scroll-page .corp-header--landing {
  flex: 0 0 auto;
  border-bottom: none;
  background: var(--gal-parchment, #fcfaf7);
}

body.support-bespoke-scroll-page .acc-scroll-main > .acc-slide--section {
  border-top: none;
}

body.support-bespoke-scroll-page #gal-bespoke-main.acc-scroll-main {
  scroll-snap-type: y mandatory;
}

@media (prefers-reduced-motion: reduce) {
  body.support-bespoke-scroll-page #gal-bespoke-main.acc-scroll-main {
    scroll-snap-type: y proximity;
  }
}

/* One viewport per snap section — min-height snap; no nested scroll traps */
body.support-bespoke-scroll-page #gal-bespoke-main > .gal-bespoke-slide {
  min-height: var(--acc-scroll-snap-h, 100%);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
}

body.support-bespoke-scroll-page #gal-bespoke-main > .gal-bespoke-slide.acc-slide--section {
  justify-content: center;
  padding-top: clamp(12px, 2vh, 24px);
  padding-bottom: clamp(12px, 2vh, 24px);
}

/* Site footer — last scroll destination after service sections (injected by hub-footer.js). */
body.support-bespoke-scroll-page #gal-bespoke-main.acc-scroll-main > .corp-footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  width: 100%;
  box-sizing: border-box;
  min-height: auto;
  height: auto;
  flex-shrink: 0;
  margin-top: 0;
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

body.support-bespoke-scroll-page #gal-bespoke-main.acc-scroll-main > .corp-footer .corp-footer-inner {
  max-width: min(72rem, 100%);
  margin: 0 auto;
}

/* accreditation.css sets section panels to flex:none — re-enable shrink for snap units */
body.support-bespoke-scroll-page #gal-bespoke-main > .gal-bespoke-slide.acc-slide--section .gal-bespoke-section-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#bespoke-slide-hero.acc-slide--landing {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

#gal-bespoke-main.acc-scroll-main > .gal-bespoke-slide {
  background: var(--gal-parchment, #fcfaf7);
}

#gal-bespoke-main.acc-scroll-main > .gal-bespoke-slide--band {
  background: #fff;
}

.gal-bespoke-scroll-rail {
  position: fixed;
  left: clamp(14px, 2.2vw, 28px);
  top: 50%;
  z-index: 35;
  transform: translateY(-50%);
  pointer-events: none;
}

.gal-bespoke-scroll-rail__track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0;
}

.gal-bespoke-scroll-rail__track::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: color-mix(in srgb, var(--gal-midnight, #0f172a) 22%, transparent);
}

.gal-bespoke-scroll-rail__progress {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  pointer-events: none;
  transition: height 0.35s ease;
}

.gal-bespoke-scroll-rail__dot {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  margin: 0.7rem 0;
  border: 2px solid color-mix(in srgb, var(--gal-midnight, #0f172a) 35%, #fff);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gal-midnight, #0f172a) 8%, transparent);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.gal-bespoke-scroll-rail__dot.is-active {
  background: var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  border-color: var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--gal-bespoke-accent, var(--gal-gold, #c9a227)) 28%, transparent),
    0 1px 4px color-mix(in srgb, var(--gal-midnight, #0f172a) 12%, transparent);
  transform: scale(1.2);
}

@media (max-width: 479px) {
  .gal-bespoke-scroll-rail {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .gal-bespoke-scroll-rail__dot {
    width: 6px;
    height: 6px;
    margin: 0.55rem 0;
    border-width: 1.5px;
  }
}

/* --- Hero (mirrors .gal-about-hero) --- */

.gal-bespoke-mission-panel {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-content: center;
}

.gal-bespoke-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .gal-bespoke-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(2.5rem, 4vw, 3.5rem);
  }
}

.gal-bespoke-kicker {
  display: block;
  margin: 0 0 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gal-stone, #64748b);
  font-weight: 700;
}

.gal-bespoke-hero-title {
  margin: 0 0 1.35rem;
  font-family: inherit;
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-hero-intro {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.85vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--gal-slate, #475569);
}

.gal-bespoke-hero-fellows {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-hero-prompt {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-scroll-hint {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gal-stone, #64748b);
}

.gal-bespoke-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.gal-bespoke-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gal-bespoke-hero-btn--secondary {
  background: #fff;
  border-color: color-mix(in srgb, var(--gal-midnight, #0f172a) 18%, transparent);
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-hero-btn--secondary:hover,
.gal-bespoke-hero-btn--secondary:focus-visible {
  background: color-mix(in srgb, var(--gal-midnight, #0f172a) 6%, #fff);
  outline: none;
}

.gal-bespoke-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 28rem);
  padding: clamp(1rem, 3vw, 2rem);
}

.gal-bespoke-hero-logo {
  width: min(100%, 26rem);
  max-height: min(52vh, 28rem);
  height: auto;
  object-fit: contain;
}

/* --- Section panels (mirrors .gal-about-authority-shell) --- */

.gal-bespoke-section-panel {
  width: 100%;
  max-width: none;
}

.gal-bespoke-section-panel--center {
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.gal-bespoke-section-frame {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
}

.gal-bespoke-section-frame--narrow {
  max-width: 42rem;
}

.gal-bespoke-section-shell {
  display: grid;
  gap: clamp(0.85rem, 1.75vh, 1.25rem);
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.gal-bespoke-section-body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.25vh, 0.9rem);
  min-width: 0;
  min-height: 0;
}

.gal-bespoke-section-visual {
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 2px solid var(--gal-midnight, #0f172a);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}

.gal-bespoke-section-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(160px, 28vh, 280px);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(184, 134, 11, 0.12));
}

@media (min-width: 900px) {
  .gal-bespoke-section-shell {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 36%);
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .gal-bespoke-section-shell--reverse {
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  }

  .gal-bespoke-section-shell--reverse .gal-bespoke-section-body {
    order: 2;
  }

  .gal-bespoke-section-shell--reverse .gal-bespoke-section-visual {
    order: 1;
  }

  .gal-bespoke-section-visual {
    align-self: stretch;
    max-height: 100%;
  }

  .gal-bespoke-section-photo {
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 899px) {
  .gal-bespoke-section-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .gal-bespoke-section-body {
    display: contents;
  }

  .gal-bespoke-section-title {
    grid-row: 1;
  }

  .gal-bespoke-section-visual {
    grid-row: 2;
    max-height: min(30vh, 220px);
  }

  .gal-bespoke-section-photo {
    min-height: 0;
    max-height: min(30vh, 220px);
    aspect-ratio: 16 / 9;
  }

  .gal-bespoke-services-grid {
    grid-row: 3;
  }

  .gal-bespoke-section-foot {
    grid-row: 4;
  }
}

.gal-bespoke-section-title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.55rem, 1vh, 0.75rem);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.gal-bespoke-section-foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.75vh, 0.65rem);
}

.gal-bespoke-section-enquiry {
  margin: 0;
  font-size: clamp(0.8125rem, 1.25vw, 0.9375rem);
  line-height: 1.5;
  color: var(--gal-slate, #475569);
}

.gal-bespoke-enquiry-link {
  color: var(--gal-midnight, #0f172a);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gal-gold, #c9a227) 70%, transparent);
  text-underline-offset: 0.15em;
}

.gal-bespoke-enquiry-link:hover,
.gal-bespoke-enquiry-link:focus-visible {
  color: var(--gal-gold, #c9a227);
  outline: none;
}

@media (min-width: 600px) {
  .gal-bespoke-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .gal-bespoke-services-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .gal-bespoke-services-grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gal-bespoke-service-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(0.75rem, 1.4vw, 1rem);
  background: var(--gal-parchment, #fcfaf7);
  border: 1px solid color-mix(in srgb, var(--gal-midnight, #0f172a) 10%, transparent);
  border-top: 3px solid var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  min-height: 0;
}

.gal-bespoke-slide--band .gal-bespoke-service-card {
  background: #fff;
}

.gal-bespoke-service-card-title {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gal-midnight, #0f172a);
}

.gal-bespoke-service-card-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gal-midnight, #0f172a) 35%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.gal-bespoke-service-card-title a:hover,
.gal-bespoke-service-card-title a:focus-visible {
  color: var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  border-bottom-color: var(--gal-bespoke-accent, var(--gal-gold, #c9a227));
  outline: none;
}

.gal-bespoke-service-card-body {
  margin: 0;
  font-size: clamp(0.875rem, 1.35vw, 0.975rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gal-slate, #475569);
}

@media (prefers-reduced-motion: reduce) {
  .gal-bespoke-hero-btn,
  .gal-bespoke-service-card-title a,
  .gal-bespoke-enquiry-link {
    transition: none;
  }

  .gal-bespoke-scroll-rail__dot,
  .gal-bespoke-scroll-rail__progress {
    transition: none;
  }
}
