/* ============================================================
   PRIVATE SESSIONS — page + homepage teaser
   Reuses existing tokens/classes: .section, .container, .btn,
   .btn--primary, .btn--ghost, .world-cta, .eyebrow, .display-*,
   .body-l, .editorial-image, .italic, .text-muted, .reveal,
   .statement, .final-cta — only new ps-/pv- prefixed classes below.

   Changelog vs previous version:
   - Added .eyebrow--dark (used on the hero over a dark image,
     was referenced in the HTML but never defined anywhere).
   - .ps-form__session-option now display:inline-flex so the
     absolutely-positioned radio input always aligns exactly
     with its visible <span>, including on wrap.
   - Added :disabled / [aria-busy] states for the submit button
     so a "submitting…" state is visually obvious.
   - Added custom appearance for <select> elements to match the
     minimal, borderless editorial look instead of the browser
     default arrow/box.
   - Added invalid/error field state (border color) tied to
     aria-invalid, to pair with the existing .ps-form__error text.
   - Added a disabled-radio state so a fully booked session type
     can be visually greyed out from the markup alone.
   - Minor a11y polish: visible focus ring on native selects,
     reduced-motion guard scoped locally as a safety net.
   ============================================================ */

/* ---------- Page shell ---------- */
.ps-page {
  --ps-ink: var(--text-primary, #3f3027);
  --ps-muted: var(--text-muted, #9a8b80);
  --ps-accent: var(--accent, #6f523e);
  --ps-border: var(--border, #e8e2dd);
  --ps-surface: #fffdf9;
  --ps-wash: #f7f2ec;
}

/* ---------- Eyebrow variant (dark hero background) ---------- */
.eyebrow--dark {
  color: rgba(250, 248, 244, 0.86);
}

/* ---------- Hero ---------- */
.ps-hero {
  --ps-hero-pad-block: clamp(1.1rem, 2.8vh, 2.25rem);
  --ps-hero-title: clamp(2rem, 3.8vw + 1.2vh, 3.65rem);

  position: relative;
  height: calc(100svh - var(--header-h, 84px));
  max-height: calc(100svh - var(--header-h, 84px));
  min-height: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #faf8f4;
}

.ps-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ps-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

@media (min-width: 768px) {
  .ps-hero__media img {
    object-position: center center;
  }
}

.ps-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 16, 13, 0.08) 0%, rgba(20, 16, 13, 0) 42%),
    linear-gradient(
      180deg,
      rgba(20, 16, 13, 0.12) 0%,
      rgba(20, 16, 13, 0.28) 48%,
      rgba(20, 16, 13, 0.78) 86%,
      rgba(20, 16, 13, 0.88) 100%
    );
}

.ps-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  margin-inline: 0;
  padding-block: var(--ps-hero-pad-block);
  display: grid;
  gap: clamp(0.45rem, 1.4vh, 0.85rem);
}

.ps-hero__title,
.ps-hero__title.display-xl {
  margin: 0;
  font-size: var(--ps-hero-title);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.ps-hero__title-line {
  display: block;
}

.ps-hero__title-line--accent .italic {
  color: rgba(250, 248, 244, 0.94);
}

.ps-hero__lead {
  margin: 0;
  color: rgba(250, 248, 244, 0.86);
  max-width: 34rem;
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.12rem);
  line-height: 1.55;
}

.ps-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: clamp(0.35rem, 1.2vh, 0.85rem);
}

.ps-hero__ctas .btn {
  min-height: 42px;
  padding: 0.72em 1.35em;
  font-size: 0.78rem;
}

@media (min-width: 1024px) {
  .ps-hero {
    --ps-hero-title: clamp(2.35rem, 2.4vw + 1.4vh, 3.35rem);
    justify-items: end;
  }

  .ps-hero > .ps-hero__inner.container {
    width: min(44%, 38rem);
    max-width: 38rem;
    margin-inline-start: auto;
    margin-inline-end: 0;
    padding-inline-end: var(--container-pad);
    text-align: start;
  }

  html[dir="rtl"] .ps-hero > .ps-hero__inner.container {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }

  .ps-hero__ctas {
    justify-content: flex-start;
  }
}

@media (max-height: 760px) {
  .ps-hero {
    --ps-hero-pad-block: clamp(0.85rem, 2vh, 1.35rem);
    --ps-hero-title: clamp(1.75rem, 3.2vw + 0.8vh, 2.65rem);
  }

  .ps-hero__lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .ps-hero__ctas .btn {
    min-height: 38px;
    padding: 0.62em 1.15em;
  }
}

@media (max-height: 620px) {
  .ps-hero__lead {
    display: none;
  }
}

.ps-hero__ctas .btn--primary {
  background: #faf8f4;
  border-color: #faf8f4;
  color: var(--ps-ink, #3f3027);
  box-shadow: 0 10px 28px rgba(20, 16, 13, 0.28);
}

.ps-hero__ctas .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ps-accent, #6f523e);
  box-shadow: 0 14px 32px rgba(20, 16, 13, 0.34);
}

.ps-hero__ctas .btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--ghost-dark {
  border-color: rgba(250, 248, 244, 0.72);
  color: #faf8f4;
  background: rgba(20, 16, 13, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost-dark:hover {
  border-color: #faf8f4;
  background: rgba(250, 248, 244, 0.14);
  color: #fff;
}

.btn--ghost-dark:focus-visible {
  outline: 2px solid #faf8f4;
  outline-offset: 2px;
}

/* ---------- Intro ---------- */
.ps-intro {
  max-width: 44rem;
}

.ps-intro__title {
  margin-block: 0.75rem 1rem;
}

.ps-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* ---------- Experiences ---------- */
.ps-experiences__head {
  max-width: 34rem;
  margin-block-end: clamp(2rem, 5vw, 3.5rem);
}

.ps-experiences__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 980px) {
  .ps-experiences__grid {
    grid-template-columns: 1fr;
  }
}

.ps-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ps-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.ps-card__media {
  aspect-ratio: 4 / 5;
  margin-block-end: 1.25rem;
  border-radius: 0.85rem;
  overflow: hidden;
}

.ps-card__title {
  margin-block: 0.35rem 0.6rem;
}

.ps-card__desc {
  margin-block-end: 1rem;
}

.ps-card__details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.75;
}

.ps-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

/* Global .section--bone .world-cta keeps background transparent on hover
   while .world-cta:hover turns text white — fix for experience cards. */
.section--bone .ps-card .world-cta:hover {
  background: var(--ps-ink);
  border-color: var(--ps-ink);
  color: #fff;
}

.ps-card__cta:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 4px;
}

/* ---------- Why private ---------- */
.ps-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 980px) {
  .ps-why__grid {
    grid-template-columns: 1fr;
  }
}

.ps-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.ps-why__list li {
  border-block-start: 1px solid var(--border, #e8e2dd);
  padding-block-start: 1.25rem;
}

.ps-why__num {
  display: block;
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  opacity: 0.55;
  margin-block-end: 0.5rem;
}

/* ---------- Request form ---------- */
.ps-request {
  background: var(--ps-wash);
}

.ps-request__inner {
  max-width: min(100%, 44rem);
}

.ps-request__head {
  margin-block-end: clamp(1.75rem, 4vw, 2.5rem);
}

.ps-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  border: 1px solid rgba(111, 82, 62, 0.16);
  border-radius: 1.25rem;
  background: var(--ps-surface);
  box-shadow: 0 18px 44px rgba(63, 48, 39, 0.06);
}

.ps-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .ps-form__row {
    grid-template-columns: 1fr;
  }
}

.ps-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.ps-form legend {
  padding: 0;
  margin-block-end: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-accent);
  opacity: 1;
}

.ps-form__field--sessions {
  padding-block-end: 0.35rem;
  border-bottom: 1px solid var(--ps-border);
}

.ps-form__field label,
.ps-form__static-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ps-ink);
  opacity: 1;
  margin-block-end: 0.5rem;
}

.ps-form__field input[type='text'],
.ps-form__field input[type='tel'],
.ps-form__field input[type='email'],
.ps-form__field input[type='number'],
.ps-form__field input[type='date'],
.ps-form__field input[type='time'],
.ps-form__field select,
.ps-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ps-border);
  background: #fff;
  color: var(--ps-ink);
  font: inherit;
  border-radius: 0.65rem;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ps-form__field input[type='number'] {
  -moz-appearance: textfield;
}

.ps-form__field input[type='number']::-webkit-outer-spin-button,
.ps-form__field input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ps-form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ps-muted);
  line-height: 1.45;
}

.ps-form__note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(111, 82, 62, 0.18);
  background: var(--ps-wash);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ps-ink);
}

.ps-form__field input:focus,
.ps-form__field select:focus,
.ps-form__field textarea:focus {
  outline: none;
  border-color: var(--ps-accent);
  box-shadow: 0 0 0 3px rgba(111, 82, 62, 0.1);
}

/* Visible focus fallback for keyboard users on browsers/themes
   where :focus alone is too subtle against a transparent field */
.ps-form__field input:focus-visible,
.ps-form__field select:focus-visible,
.ps-form__field textarea:focus-visible {
  outline: 2px solid var(--accent, #6f523e);
  outline-offset: 2px;
}

.ps-form__field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

/* Custom select appearance — replaces the native box/arrow so
   selects match the flat, borderless editorial inputs above */
.ps-form__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-inline-end: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.35rem) center,
    calc(100% - 1rem) center;
  background-size: 0.4rem 0.4rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ps-form__field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error state — pairs with the existing .ps-form__error text and
   is driven by aria-invalid="true" set on the field by JS */
.ps-form__field input[type='number'][aria-invalid='true'],
.ps-form__field input[aria-invalid='true'],
.ps-form__field select[aria-invalid='true'],
.ps-form__field textarea[aria-invalid='true'] {
  border-color: #a3402e;
}

.ps-form__field--static .ps-form__static-value {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--ps-border);
  border-radius: 0.65rem;
  background: var(--ps-wash);
  font-size: 0.95rem;
  color: var(--ps-ink);
}

.ps-form__sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ps-form__session-option {
  position: relative;
  display: inline-flex;
}

.ps-form__session-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.ps-form__session-option input:disabled {
  cursor: not-allowed;
}

.ps-form__session-option span {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ps-ink);
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.ps-form__session-option:hover span {
  border-color: var(--ps-accent);
  background: rgba(111, 82, 62, 0.06);
  color: var(--ps-ink);
}

.ps-form__session-option input:checked + span {
  border-color: var(--ps-accent);
  background: rgba(111, 82, 62, 0.12);
  color: var(--ps-ink);
}

.ps-form__session-option input:focus-visible + span {
  outline: 2px solid var(--accent, #6f523e);
  outline-offset: 2px;
}

.ps-form__session-option input:disabled + span {
  opacity: 0.45;
  border-style: dashed;
}

.ps-form__error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #a3402e;
}

.ps-form__submit {
  justify-self: stretch;
  width: 100%;
  margin-top: 0.35rem;
  position: relative;
}

@media (min-width: 640px) {
  .ps-form__submit {
    justify-self: start;
    width: auto;
    min-width: 12rem;
  }
}

.ps-form__submit:disabled,
.ps-form__submit[aria-busy='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.ps-form__status {
  font-size: 0.85rem;
  opacity: 0.8;
}

.ps-form__status[data-status='error'] {
  color: #a3402e;
  opacity: 1;
}

.ps-form__success {
  max-width: 30rem;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(111, 82, 62, 0.2);
  border-radius: 1rem;
  background: var(--ps-surface);
}

.ps-form__success h3 {
  margin-block-end: 0.5rem;
}

/* ---------- Homepage teaser section ---------- */
.section--pv-teaser {
  scroll-margin-top: calc(var(--header-h, 4.5rem) + 1rem);
}

.pv-teaser__num {
  display: block;
  margin-block-end: 0.35rem;
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent, #6f523e);
}

.pv-teaser__head {
  max-width: 34rem;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.pv-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 980px) {
  .pv-teaser__grid {
    grid-template-columns: 1fr;
  }
}

.pv-teaser__item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pv-teaser__item:focus-visible {
  outline: 2px solid var(--accent, #6f523e);
  outline-offset: 4px;
}

.pv-teaser__media {
  aspect-ratio: 3 / 4;
  margin-block-end: 0.85rem;
}

.pv-teaser__name {
  display: block;
  margin-block-end: 0.25rem;
}

.pv-teaser__desc {
  font-size: 0.85rem;
  opacity: 0.7;
}

.pv-teaser__foot {
  display: flex;
  justify-content: center;
}

html[dir="rtl"] .ps-hero__title,
html[dir="rtl"] .ps-hero__title.display-xl {
  line-height: 1.38;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: clamp(1.85rem, 7.2vw, 3.1rem);
}

html[dir="rtl"] .ps-hero__title-line {
  line-height: 1.38;
}

html[dir="rtl"] .ps-hero__lead {
  max-width: 100%;
  line-height: 1.7;
}

html[dir="rtl"] .ps-hero__title .italic {
  font-style: normal;
}

/* ---------- Reduced motion (local safety net; primary handling
   is global via .reveal / GSAP setup) ---------- */
@media (prefers-reduced-motion: reduce) {
  .ps-form__field input,
  .ps-form__field select,
  .ps-form__field textarea,
  .ps-form__session-option span,
  .btn--ghost-dark,
  .ps-card__cta,
  .pv-teaser__item {
    transition: none;
  }
}