/* ==========================================================================
   Homepage Sections, The Neighbourhood Penryn
   ========================================================================== */

/* ---- S1: Hero (v1.1, editorial, "Hustle, Calmly") ----
   Typography-led by default. .hero--has-media flips to image-overlay
   treatment when an image or video is supplied via ACF.
*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-warm-white) 0%, var(--color-limestone) 100%);
  color: var(--color-ink);
}

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

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.25) 0%,
    rgba(26, 26, 26, 0.45) 60%,
    rgba(26, 26, 26, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(6rem, 14vh, 12rem);
  width: 100%;
}

.hero__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.2rem + 6.5vw, 7.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: inherit;
  margin-bottom: var(--space-xl);
}

.hero__title-em {
  font-style: italic;
  font-weight: var(--weight-light);
  opacity: 0.72;
  display: inline;
}

.hero__title-roman {
  font-style: normal;
  font-weight: var(--weight-regular);
  display: inline;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
  max-width: 36ch;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0.5;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* When image/video supplied, switch to dark-overlay treatment */
.hero--has-media {
  background: none;
  color: var(--color-warm-white);
}

.hero--has-media .hero__label {
  color: rgba(255, 255, 255, 0.65);
}

.hero--has-media .hero__title-em {
  opacity: 0.78;
}

.hero--has-media .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero--has-media .hero__scroll-cue {
  color: rgba(255, 255, 255, 0.5);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }

  .hero__title {
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__scroll-cue {
    display: none;
  }
}

/* ---- S2: Hustle, Calmly (v1.1, the workspace ritual) ----
   Editorial tasting-note structure: centered intro, numbered list,
   hairline rules, italic descriptors. Reads like a wine list.
*/
.hustle-calmly {
  padding-block: var(--space-section);
  background-color: var(--color-limestone);
}

.hustle-calmly__intro {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.hustle-calmly__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-top: var(--space-xl);
}

.hustle-calmly__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 540px;
  border-top: var(--rule-hairline);
}

.hustle-calmly__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-lg);
  align-items: baseline;
  padding-block: var(--space-xl);
  border-bottom: var(--rule-hairline);
}

.hustle-calmly__number {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.hustle-calmly__item-body {
  margin: 0;
}

.hustle-calmly__item-heading {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.hustle-calmly__item-detail {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--text-secondary);
  margin: 0;
  max-width: 34ch;
}

.hustle-calmly__cta {
  margin-top: var(--space-3xl);
  text-align: center;
}

@media (max-width: 640px) {
  .hustle-calmly__intro {
    margin-bottom: var(--space-2xl);
  }

  .hustle-calmly__item {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-md);
    padding-block: var(--space-lg);
  }

  .hustle-calmly__cta {
    margin-top: var(--space-2xl);
  }
}

/* ---- LEGACY: S2 Brand Statement (unused, removed from front-page.php v1.1) ---- */
/* ---- S2: Brand Statement ---- */
.brand-statement {
  text-align: center;
  padding-block: var(--space-section);
}

.brand-statement__headline {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.brand-statement__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---- S3: The Space ---- */
.the-space {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 80vh;
}

.the-space__image {
  overflow: hidden;
}

.the-space__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.the-space__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) clamp(2rem, 5vw, 6rem);
}

.the-space__content .section-heading {
  max-width: 16ch;
}

.the-space__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-xl);
}

.the-space__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-brand);
  line-height: var(--leading-snug);
  border-left: 2px solid var(--color-brand);
  padding-left: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 30ch;
}

@media (max-width: 768px) {
  .the-space {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .the-space__image {
    aspect-ratio: 4 / 3;
  }

  .the-space__content {
    padding: var(--space-2xl) var(--gutter);
  }
}

/* ---- S4: Food & Wine ---- */
.food-wine {
  overflow: hidden;
}

.food-wine__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--space-2xl);
}

.food-wine-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.food-wine-card__image {
  position: absolute;
  inset: 0;
}

.food-wine-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.food-wine-card:hover .food-wine-card__image img {
  transform: scale(1.04);
}

.food-wine-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.75) 0%, transparent 60%);
}

.food-wine-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
}

.food-wine-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-warm-white);
  margin-bottom: var(--space-sm);
}

.food-wine-card__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  max-width: 30ch;
}

@media (max-width: 768px) {
  .food-wine__grid {
    grid-template-columns: 1fr;
  }

  .food-wine-card {
    aspect-ratio: 16 / 10;
  }
}

/* ---- S5: Bookings ---- */
.bookings-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 70vh;
}

.bookings-section__image {
  overflow: hidden;
}

.bookings-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bookings-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) clamp(2rem, 5vw, 6rem);
  background-color: var(--bg-secondary);
}

.bookings-section__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-xl);
}

.bookings-section__details {
  margin-top: var(--space-lg);
}

.bookings-detail {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-light);
}

.bookings-detail:last-child {
  border-bottom: 1px solid var(--border-light);
}

.bookings-detail__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  min-width: 100px;
}

.bookings-detail__value {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.bookings-section__actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .bookings-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bookings-section__image {
    aspect-ratio: 16 / 9;
  }

  .bookings-section__content {
    padding: var(--space-2xl) var(--gutter);
  }
}

/* ---- S6: Events / Private Hire ---- */
.events-section__content {
  text-align: center;
  max-width: var(--container-content);
  margin-inline: auto;
}

.events-section__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.events-section__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.event-feature {
  text-align: center;
}

.event-feature__icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  color: var(--color-brand);
}

.event-feature__title {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
}

.event-feature__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 28ch;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .events-section__features {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ---- S7: Gallery ---- */
.gallery-section {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-xs);
}

.gallery-grid__item {
  overflow: hidden;
  position: relative;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-grid__item:hover img {
  transform: scale(1.04);
}

.gallery-grid__item--wide {
  grid-column: span 2;
}

.gallery-grid__item--tall {
  grid-row: span 2;
}

.gallery-grid__item:nth-child(1) {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 9;
}

.gallery-grid__item:nth-child(2) {
  aspect-ratio: 1;
}

.gallery-grid__item:nth-child(3) {
  aspect-ratio: 1;
}

.gallery-grid__item:nth-child(4) {
  aspect-ratio: 3 / 4;
  grid-row: span 2;
}

.gallery-grid__item:nth-child(5) {
  aspect-ratio: 1;
}

.gallery-grid__item:nth-child(6) {
  aspect-ratio: 16 / 9;
  grid-column: 2 / 4;
}

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

  .gallery-grid__item:nth-child(1) {
    grid-column: 1 / 3;
  }

  .gallery-grid__item:nth-child(4) {
    grid-row: span 1;
  }

  .gallery-grid__item:nth-child(6) {
    grid-column: 1 / 3;
  }
}

/* ---- S8: Story ---- */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  min-height: 70vh;
}

.story-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) clamp(2rem, 5vw, 6rem);
  order: -1;
}

.story-section__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-md);
}

.story-section__image {
  overflow: hidden;
}

.story-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .story-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-section__content {
    order: 1;
    padding: var(--space-2xl) var(--gutter);
  }

  .story-section__image {
    aspect-ratio: 4 / 3;
    order: 0;
  }
}

/* ---- S9: Social Proof ---- */
.testimonials-section {
  overflow: hidden;
}

.testimonials__carousel {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-md);
}

.testimonials__carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 min(100%, 480px);
  scroll-snap-align: start;
  text-align: center;
  padding: var(--space-2xl);
}

.testimonial-card__stars {
  color: var(--color-brass);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.2em;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  max-width: 38ch;
  margin-inline: auto;
}

.testimonial-card__author {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.testimonials__dot.is-active {
  background-color: var(--color-brand);
}

/* ---- S10: Shop / Gifting ---- */
.shop-section__intro {
  text-align: center;
  max-width: var(--container-content);
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.shop-section__text {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 50ch;
  margin-inline: auto;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.product-card {
  background-color: var(--bg-primary);
  overflow: hidden;
  text-align: center;
  transition: transform var(--duration-base) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}

.product-card__price {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

/* ---- S11: Newsletter ---- */
.newsletter-section {
  text-align: center;
}

.newsletter-section__text {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form__input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 1em 1.25em;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: var(--color-warm-white);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.newsletter-form__input:focus {
  border-color: var(--color-brass);
}

.newsletter-form__input::placeholder {
  color: var(--color-stone);
}

.newsletter-form__btn {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 1em 2em;
  background-color: var(--color-brand);
  color: var(--color-warm-white);
  border: 1px solid var(--color-brand);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.newsletter-form__btn:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.newsletter-form__consent {
  font-size: var(--text-xs);
  color: var(--color-stone);
  margin-top: var(--space-md);
  max-width: 400px;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__input {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
  }

  .newsletter-form__input:focus {
    border-color: var(--color-brass);
  }
}

/* ---- S3: Wine & Small Plates (v1.2, sensory offer copy) ---- */
.wine-section {
  padding-block: var(--space-section);
  background-color: var(--color-warm-white);
}

.wine-section .section-heading {
  max-width: 22ch;
  margin-inline: auto;
  margin-block: var(--space-xl) var(--space-lg);
}

.atmosphere__body,
.community-section__body,
.wine-section__body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
}

/* Embedded quotes (em tags) stay italic for typographic contrast
   against the roman body. */
.atmosphere__body em,
.community-section__body em,
.wine-section__body em {
  font-style: italic;
  color: var(--text-primary);
}

/* ---- S6: Hustle, Calmly, italic/roman heading (v1.2, migrated from hero) ---- */
.hustle-calmly__heading-em {
  font-style: italic;
  font-weight: var(--weight-light);
  opacity: 0.72;
  display: inline;
}

.hustle-calmly__heading-roman {
  font-style: normal;
  font-weight: var(--weight-regular);
  display: inline;
}

/* ---- S7: Visit aside (v1.2, quiet secondary link to Hustle, Calmly) ---- */
.visit-section__aside {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
}

.text-link--quiet {
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-quiet);
}

.text-link--quiet em {
  font-style: italic;
}

.text-link--quiet svg {
  width: 14px;
  height: 14px;
}

.text-link--quiet:hover {
  color: var(--text-secondary);
}

/* ---- S8: Final CTA (v1.2, wine close, type-led default) ----
   Mirrors hero pattern: typography-led by default; .final-cta--has-media
   flips to image-overlay treatment when ACF final_cta_image is supplied.
*/
.final-cta {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-limestone) 0%, var(--color-warm-white) 100%);
  color: var(--color-ink);
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0.65) 100%);
}

.final-cta__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-content);
  padding: var(--space-2xl);
}

.final-cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1rem + 4vw, 4.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
  margin: 0;
}

.final-cta__heading em {
  font-style: italic;
  font-weight: var(--weight-light);
  opacity: 0.78;
}

.final-cta--has-media {
  background: none;
  color: var(--color-warm-white);
}

/* ---- v1.3 additions (article-driven copy) ---- */

/* S2: The Space, intro block sits above the gallery grid.
   Uses its own padding because parent .atmosphere uses .section--flush. */
.atmosphere__intro {
  padding-block: var(--space-section);
  padding-inline: var(--gutter);
}

.atmosphere__intro .section-heading {
  max-width: 22ch;
  margin-inline: auto;
  margin-block: var(--space-md) var(--space-lg);
}

/* S5: Community, new section between Story and Hustle, Calmly. */
.community-section {
  padding-block: var(--space-section);
  background-color: var(--color-warm-white);
}

.community-section .section-heading {
  max-width: 24ch;
  margin-inline: auto;
  margin-block: var(--space-xl) var(--space-lg);
}

/* S4: Story, paragraph spacing for the expanded multi-paragraph copy,
   and slight color emphasis on embedded em quotes.
   (Kept for /about/ page which uses the same .story-section__text class
    pattern; homepage Story section was removed in v1.4.) */
.story-section__text p + p {
  margin-top: var(--space-md);
}

.story-section__text em {
  font-style: italic;
  color: var(--text-primary);
}

/* ---- v1.4, Story Teaser (replaces homepage Story section) ----
   Short paragraph + link to /about/ where the deeper narrative lives. */
.story-teaser {
  padding-block: var(--space-section);
  background-color: var(--color-warm-white);
}

.story-teaser .section-heading {
  max-width: 22ch;
  margin-inline: auto;
  margin-block: var(--space-xl) var(--space-lg);
}

.story-teaser__body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* ---- v1.4, Atmosphere intro minimal variant ----
   Shorter top padding for the label + H2 only (no body paragraph) above
   the gallery grid. The architectural body migrated to /about/. */
.atmosphere__intro--minimal {
  padding-block: var(--space-2xl) var(--space-xl);
}

/* ==========================================================================
   v2.0, Digital front door homepage
   ========================================================================== */

/* S2, Front-door welcome statement */
.front-door {
  background-color: var(--color-paper);
}

.front-door__statement {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  max-width: 28ch;
  margin-inline: auto;
}

/* S3, Two primary journeys, equal weight, tactile */
.journeys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--border-light);
}

.journey-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-paper);
}

.journey-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.journey-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-quiet);
}

.journey-card:hover .journey-card__media img {
  transform: scale(1.03);
}

.journey-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-2xl) clamp(1.5rem, 4vw, 3.5rem);
}

.journey-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
}

.journey-card__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 38ch;
}

.journey-card__body .section-label {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .journeys {
    grid-template-columns: 1fr;
  }
}

/* S4–S6, Teasers (quiet line + link to the deeper page) */
.teaser__line {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  max-width: 34ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* S8, Closing line */
.closing {
  background-color: var(--color-paper);
}

.closing__line {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.closing__line em {
  font-style: italic;
  opacity: 0.78;
}

/* ==========================================================================
   v2.2, Editorial-split homepage (CMX Method v2.0 · "warm belonging")
   Asymmetric split layout, split hero, the two rituals, expansive density.
   ========================================================================== */

/* ---- Split hero: type panel + image/video window ---- */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--color-paper);
  overflow: hidden;
}

.hero__type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vh, 9rem) clamp(1.5rem, 5vw, 5.5rem);
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-granite);
  margin-bottom: var(--space-xl);
}

.hero--split .hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-optical-sizing: auto;
}

.hero--split .hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-brand);
}

.hero__lede {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-quiet);
}
.hero__secondary svg { width: 1em; height: 1em; transition: transform var(--duration-base) var(--ease-quiet); }
.hero__secondary:hover { color: var(--color-brand); }
.hero__secondary:hover svg { transform: translateX(4px); }

.hero__window {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
.hero__window img,
.hero__window video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__window-fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 72% 18%, oklch(74% 0.05 65 / 0.55), transparent 62%),
    linear-gradient(158deg, var(--color-oat) 0%, var(--color-espresso) 135%);
}

@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__window { order: -1; min-height: 0; aspect-ratio: 16 / 11; }
  .hero__type { padding-block: var(--space-3xl); }
}

/* ---- Editorial split sections (sticky masthead rail + flowing body) ---- */
.editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.editorial__rail {
  position: sticky;
  top: calc(var(--space-2xl) + 2rem);
  align-self: start;
}
.editorial__rail .section-label { margin-bottom: var(--space-md); }

.editorial__aside {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--text-tertiary);
  max-width: 22ch;
}

.editorial__heading {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 18ch;
  margin-bottom: var(--space-lg);
  font-optical-sizing: auto;
}

.editorial__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .editorial__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .editorial__rail { position: static; }
}

/* Owners portrait in the Story rail (editorial margin photo) */
.story-portrait {
  margin: var(--space-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 1740 / 1660;
  max-width: 15rem;
}
.story-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .story-portrait { max-width: 18rem; }
}

/* ---- Atmosphere figures (reveal by light) ---- */
.atmosphere-figure { overflow: hidden; margin: 0 0 var(--grid-gap); }
.atmosphere-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atmosphere-figure--wide { aspect-ratio: 16 / 10; }
.atmosphere-figure--tall { aspect-ratio: 4 / 5; max-width: 26rem; }

/* ---- The two rituals ---- */
.ritual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.ritual + .ritual { margin-top: var(--space-3xl); }
.ritual--reverse .ritual__media { order: 2; }

.ritual__media { overflow: hidden; aspect-ratio: 5 / 4; }
.ritual__media img { width: 100%; height: 100%; object-fit: cover; }

.ritual__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-block: var(--space-sm) var(--space-md);
  font-optical-sizing: auto;
}
.ritual__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 38ch;
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .ritual { grid-template-columns: 1fr; gap: var(--space-lg); }
  .ritual--reverse .ritual__media { order: -1; }
}

/* ---- Pull quote (build trust) ---- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  border: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  max-width: 24ch;
  font-optical-sizing: auto;
}
.pull-quote__cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
}

/* ---- Visit facts ---- */
.visit-facts {
  margin: var(--space-xl) 0;
  border-top: var(--rule-hairline);
}
.visit-fact {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: var(--rule-hairline);
}
.visit-fact dt {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.visit-fact dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}
.visit-actions { margin-top: var(--space-lg); }

/* Closing line, restated for v2.2 (Fraunces, brand-red emphasis) */
.closing__line {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  font-optical-sizing: auto;
}
.closing__line em { font-style: italic; color: var(--color-brand); opacity: 1; }

@media (max-width: 480px) {
  .visit-fact { grid-template-columns: 1fr; gap: var(--space-2xs); }
}

/* ---- Warm tonal placeholders until real photography lands ----
   The design must read complete before photos arrive. These warm,
   candlelit panels (echoing the hero window) stand in for imagery and
   are covered the moment a real <img> is wired in. */
.atmosphere-figure,
.ritual__media {
  position: relative;
}

.media-fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 110% at 72% 22%, oklch(78% 0.05 64 / 0.5), transparent 60%),
    linear-gradient(158deg, var(--color-oat) 0%, var(--color-clay) 72%, var(--color-espresso) 150%);
}

/* A cooler stone variant for rhythm on alternating panels */
.atmosphere-figure--tall .media-fill,
.ritual--reverse .media-fill {
  background:
    radial-gradient(120% 100% at 28% 18%, oklch(82% 0.03 72 / 0.45), transparent 60%),
    linear-gradient(202deg, var(--color-chalk) 0%, var(--color-bone) 58%, var(--color-stone) 150%);
}

/* (Media-fill unveil settle is handled globally via the CSS scroll timeline.) */
