/* ─── Font ───────────────────────────────────────────────── */
@font-face {
  font-family: 'AcuminVC';
  src: url('fonts/AcuminVariableConcept.subset.woff2') format('woff2'),
       url('fonts/AcuminVariableConcept.woff2') format('woff2'),
       url('fonts/AcuminVariableConcept.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ───────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: #ffffff;
  color: #111111;
  font-family: 'AcuminVC', sans-serif;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page layout ────────────────────────────────────────── */
.page {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 26px;
}

/* ─── Tagline ────────────────────────────────────────────── */
.tagline {
  padding-top: 19dvh;
  text-align: center;
}

.tagline p {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111111;
  line-height: 1.5;
}

/* ─── Wordmark ───────────────────────────────────────────── */
.wordmark-wrap {
  margin-top: 14dvh;
  width: 100%;
  min-width: 0;
}

.wordmark-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ─── Capabilities section ───────────────────────────────── */
.capabilities {
  margin-top: 18dvh;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 14dvh;
}

.label {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 16px;
}

.heading {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #111111;
  margin-bottom: auto;
}

/* ─── CTA Button ─────────────────────────────────────────── */

/* Outer trough — sunken slot the pill sits inside */
.cta-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: #e9e9e9;
  padding: 6px;
  box-shadow:
    inset 3px 4px 10px rgba(0, 0, 0, 0.13),   /* dark top-left inner edge */
    inset -2px -3px 7px rgba(255, 255, 255, 0.8); /* light bottom-right inner edge */
  margin-top: 11dvh;
}

/* Inner raised pill */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 35px;
  background: #ffffff;
  color: #111111;
  font-family: 'AcuminVC', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 100px;
  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide-to-unlock: pill shifts right on track hover */
.cta-track:not(.is-dragging):hover .cta {
  transform: translateX(8px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.20),
    0 3px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Shimmer on 'Get Started' text */
.cta-text {
  background: linear-gradient(90deg, #111111 25%, #999999 50%, #111111 75%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cta-shimmer 3s ease-in-out infinite;
}

/* Arrow section — flat in trough, continuously slides right */
.cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: #111111;
  font-size: 0.8rem;
  flex-shrink: 0;
  animation: arrow-slide 2.2s ease-in-out infinite;
}

.cta-track:not(.is-dragging):hover .cta-arrow {
  animation: none;
  opacity: 0.35;
}

/* Drag-active state — suppress hover side-effects while dragging */
.cta-track.is-dragging .cta-arrow {
  animation: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes cta-shimmer {
  0%   { background-position: 100% center; }
  100% { background-position:   0% center; }
}

@keyframes arrow-slide {
  0%   { transform: translateX(0);   opacity: 1; }
  35%  { transform: translateX(7px); opacity: 0; }
  36%  { transform: translateX(0);   opacity: 0; }
  65%  { transform: translateX(0);   opacity: 1; }
  100% { transform: translateX(0);   opacity: 1; }
}

/* ─── Fade-to-white overlay ─────────────────────────────── */
.slide-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
  z-index: 100;
}

.slide-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Capability rotator ─────────────────────────────────── */

/* Lock height to two lines so layout never shifts between items */
.heading {
  min-height: calc(1.125rem * 1.5 * 2);
}

[data-capability-rotator] {
  display: block;
  will-change: opacity, filter, transform;
  transition:
    opacity   500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter    500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* State: blurring out — text rises and blurs away */
[data-capability-rotator].is-outgoing {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(-3px);
}

/* State: snap-set before blur-in — applied instantly (transition: none),
   removed immediately after, so the browser transitions from here → visible */
[data-capability-rotator].is-pre-incoming {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(3px);
  transition: none;
}

/* ─── Reduced-motion override ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-capability-rotator] {
    will-change: auto;
    transition: opacity 250ms linear;
  }

  [data-capability-rotator].is-outgoing {
    opacity: 0;
    filter: none;
    transform: none;
  }

  [data-capability-rotator].is-pre-incoming {
    opacity: 0;
    filter: none;
    transform: none;
    transition: none;
  }

  .cta-text {
    animation: none;
    -webkit-text-fill-color: #111111;
    background: none;
  }

  .cta-arrow {
    animation: none;
  }

  .cta-track:hover .cta {
    transform: none;
  }

  .slide-overlay {
    transition: none;
  }
}

/* ─── Booking page ───────────────────────────────────────── */
.book-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6dvh 26px 6dvh;
}

.book-headline {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: #111111;
  line-height: 1.6;
  max-width: 680px;
  text-align: center;
  margin-bottom: 5dvh;
}

.book-calendly {
  width: 100%;
  max-width: 900px;
}

/* On mobile, cap the Calendly widget height at Calendly's minimum (630px)
   so the enquiry section is reachable without excessive scrolling */
.calendly-inline-widget {
  height: 630px !important;
}

@media (min-width: 768px) {
  .book-page {
    padding: 8dvh 8vw 6dvh;
  }

  .book-headline {
    margin-bottom: 8dvh;
  }

  /* Restore full height on desktop where screen real estate is ample */
  .calendly-inline-widget {
    height: 700px !important;
  }
}

/* ─── Desktop layout ─────────────────────────────────────── */
@media (min-width: 768px) {
  .page {
    max-width: 100%;
    padding: 0 8vw;
  }

  .tagline {
    padding-top: 12dvh;
  }

  .tagline p {
    font-size: clamp(0.875rem, 0.95vw, 1.1rem);
    letter-spacing: 0.22em;
    line-height: 1.6;
  }

  .wordmark-wrap {
    margin-top: 5dvh;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .capabilities {
    margin-top: 5dvh;
    padding-top: 17dvh;
    padding-bottom: 8dvh;
  }

  .label {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    margin-bottom: 12px;
  }

  .heading {
    font-size: clamp(1.125rem, 1.5vw, 1.75rem);
    letter-spacing: 0.2em;
    min-height: 2lh;
  }

  .cta-track {
    margin-top: 5dvh;
    padding: 7px;
  }

  .cta {
    padding: 13px 45px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .cta-arrow {
    width: 53px;
    font-size: 0.88rem;
  }
}

/* ─── Back link ──────────────────────────────────────────── */
.back-link {
  align-self: flex-start;
  font-family: 'AcuminVC', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999999;
  text-decoration: none;
  margin-bottom: 4dvh;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #111111;
}

/* ─── Enquiry Form ───────────────────────────────────────── */
.enquiry-section {
  width: 100%;
  max-width: 560px;
  margin-top: 10dvh;
  padding-bottom: 10dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enquiry-section__label {
  text-align: center;
}

.enquiry-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.enquiry-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enquiry-form__label {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #999999;
}

.enquiry-form__input {
  font-family: 'AcuminVC', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-variation-settings: 'slnt' 0;
  color: #111111;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #e9e9e9;
  border-radius: 0;
  padding: 10px 0;
  width: 100%;
  outline: none;
  -webkit-font-smoothing: antialiased;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.enquiry-form__input:focus {
  border-bottom-color: #111111;
}

.enquiry-form__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.enquiry-form__status {
  font-family: 'AcuminVC', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.enquiry-form__status--success { color: #111111; }
.enquiry-form__status--error   { color: #999999; }

.enquiry-form__submit {
  align-self: center;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 52px;
  background: #111111;
  color: #ffffff;
  font-family: 'AcuminVC', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: 'slnt' 0;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.enquiry-form__submit:hover {
  background: #222222;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.enquiry-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.enquiry-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .enquiry-form__input,
  .enquiry-form__submit { transition: none; }
}
