/* Dutch Horse Auction */

:root {
  --background: #f7f4ef;
  --foreground: #1a1a1a;
  --muted: #5c534c;
  --surface-raised: #f0ebe3;
  --accent-brown: #3d2e24;
  --accent-gold: #9a8568;
  --border-subtle: rgba(61, 46, 36, 0.12);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --max-w: 72rem;
  /* padding-bottom under CTA row; lot dock uses lift + this to stay aligned */
  --hero-content-bottom: 3.25rem;
  /* raises chip / title / CTA block toward the top of the viewport */
  --hero-content-lift: 1.75rem;
  /* mobile: vertical space reserved for LOT row below CTA (no overlap with note) */
  --hero-mobile-lot-band: 3.75rem;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --reveal-duration: 0.95s;
  --reveal-distance: 1.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.section {
  border-bottom: 1px solid var(--border-subtle);
}

.section--raised {
  background: var(--surface-raised);
}

/* Header — fixed over video: no bar at page top; smooth fill on scroll */
.site-header.site-header--over-media {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.site-header--over-media.is-scrolled {
  background: rgba(247, 244, 239, 0.97);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(61, 46, 36, 0.06);
}

.site-header--over-media .site-header__brand,
.site-header--over-media .site-nav,
.site-header--over-media .site-nav a {
  transition: color 0.35s ease;
}

.site-header--over-media.is-scrolled .site-header__brand {
  color: var(--foreground);
}

.site-header--over-media.is-scrolled .site-nav,
.site-header--over-media.is-scrolled .site-nav a {
  color: var(--muted);
}

.site-header--over-media.is-scrolled .site-nav a:hover {
  color: var(--accent-brown);
}

/* Non–video pages only (single-page site uses --over-media) */
.site-header:not(.site-header--over-media) {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header--over-media .site-header__brand {
  color: var(--background);
}

@media (min-width: 640px) {
  .site-header__brand {
    font-size: 1.375rem;
  }

  .site-header__brand-short {
    display: none;
  }
}

@media (max-width: 639px) {
  .site-header__brand-full {
    display: none;
  }
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  max-width: 65vw;
  overflow-x: auto;
  font-size: 0.875rem;
  color: var(--muted);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.site-header--over-media .site-nav {
  gap: 0.875rem;
  max-width: 58vw;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(247, 244, 239, 0.88);
}

@media (min-width: 640px) {
  .site-header--over-media .site-nav {
    gap: 1.25rem;
    max-width: none;
    font-size: 0.875rem;
  }
}

.site-header--over-media .site-nav a:hover {
  color: #fff;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .site-nav {
    max-width: none;
    gap: 2rem;
    font-size: 1rem;
  }
}

.site-nav a {
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-nav a:hover {
  color: var(--accent-brown);
  text-decoration: underline;
}

.text-muted {
  color: var(--muted);
}

/* Hero — full viewport video, titles overlaid */
.hero {
  padding-top: 0;
  padding-bottom: 0;
}

.hero--immersive {
  border-bottom: none;
}

.hero-immersive {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100svh;
  min-height: 100vh;
  background: #0a0806;
  overflow: hidden;
}

/* Video fills entire immersive area (edge to edge, under fixed header) */
.hero-slider {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100vh;
  background: #1a1a1a;
  overflow: hidden;
}

.hero-slider__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.12) 25%,
    transparent 42%,
    transparent 58%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 6;
}

.hero-slide:not(.is-active) {
  pointer-events: none;
}

.hero-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(26, 26, 26, 0.35) 45%,
    transparent 75%
  );
  pointer-events: none;
}

.hero-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--hero-content-lift);
  z-index: 3;
  padding: 1.5rem max(1.25rem, min(11rem, 52vw)) var(--hero-content-bottom) 1.25rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-slide__content {
    padding: 2rem max(2rem, 10rem) var(--hero-content-bottom) 2rem;
    /* Reserve right column for lot tabs (positioned in same max-width band) */
  }
}

@media (min-width: 1024px) {
  .hero-slide__content {
    padding: 2rem max(3rem, 12rem) var(--hero-content-bottom) 3rem;
  }
}

.hero-slide__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

@media (min-width: 640px) {
  .hero-slide__eyebrow {
    font-size: 0.75rem;
  }
}

.hero-slide__eyebrow--chip {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .hero-slide__eyebrow--chip {
    font-size: 0.875rem;
  }
}

.hero-slide__name {
  margin: 0 0 0.75rem;
  max-width: 100%;
  overflow-wrap: break-word;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 3.75rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--background);
}

.hero-slide__index {
  display: inline-block;
  margin-right: 0.35em;
  font-weight: 600;
  font-size: 0.42em;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: 0.35em;
  font-variant-numeric: tabular-nums;
  color: rgba(247, 244, 239, 0.72);
}

@media (min-width: 640px) {
  .hero-slide__name {
    margin-bottom: 1.25rem;
    font-size: 5rem;
  }
}

.btn--hero-cta {
  background: var(--background);
  color: var(--accent-brown);
  border-color: var(--background);
  text-shadow: none;
  box-shadow: none;
}

.btn--hero-cta:hover {
  background: var(--surface-raised);
  border-color: var(--surface-raised);
  box-shadow: none;
}

.hero-slide__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
}

.hero-slide__cta-note {
  margin: 0;
  flex: 1 1 14rem;
  min-width: min(100%, 11rem);
  max-width: 28rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(247, 244, 239, 0.86);
}

.hero-slide__cta-note strong {
  font-weight: 600;
  color: var(--background);
}

@media (min-width: 640px) {
  .hero-slide__cta-note {
    font-size: 0.875rem;
  }
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(247, 244, 239, 0.35);
  border-radius: 0;
  background: rgba(26, 26, 26, 0.35);
  color: var(--background);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.15rem;
}

.hero-slider__arrow:hover {
  background: rgba(26, 26, 26, 0.55);
}

.hero-slider__arrow--prev {
  left: 0.75rem;
}

.hero-slider__arrow--next {
  right: 0.75rem;
}

@media (min-width: 640px) {
  .hero-slider__arrow--prev {
    left: 1.25rem;
  }

  .hero-slider__arrow--next {
    right: 1.25rem;
  }
}

/* Right-aligned; bottom inset matches .hero-slide__content so LOT row lines up with Register interest */
.hero-slider__lot-dock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  bottom: calc(
    var(--hero-content-lift) + var(--hero-content-bottom) + env(safe-area-inset-bottom, 0px)
  );
  width: 100%;
  max-width: var(--max-w);
  padding-left: 1.25rem;
  padding-right: 3.75rem;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-slider__lot-dock {
    padding-left: 2rem;
    padding-right: max(2rem, 3.75rem);
  }
}

@media (min-width: 1024px) {
  .hero-slider__lot-dock {
    padding-left: 3rem;
    padding-right: max(3rem, 3.75rem);
  }
}

.hero-slider__lot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  max-width: min(26rem, 100%);
  pointer-events: auto;
}

.hero-slider__lot-prefix {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.4);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero-slider__lot-prefix {
    font-size: 0.75rem;
  }
}

.hero-slider__lot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  justify-content: flex-end;
}

.hero-slider__lot-tab {
  margin: 0;
  padding: 0.35rem 0.1rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: rgba(247, 244, 239, 0.4);
  cursor: pointer;
  transition: color 0.25s ease, font-weight 0.2s ease;
}

.hero-slider__lot-tab:hover,
.hero-slider__lot-tab:focus-visible {
  color: rgba(247, 244, 239, 0.75);
}

.hero-slider__lot-tab.is-active {
  color: var(--background);
  font-weight: 600;
}

@media (min-width: 640px) {
  .hero-slider__lot-tab {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
}

/* Hero — mobile: single-line title, LOT row in its own band (no overlap with CTA note) */
@media (max-width: 639px) {
  .hero-slide__content {
    bottom: calc(var(--hero-content-lift) + var(--hero-mobile-lot-band));
    padding: 1.5rem 1.25rem var(--hero-content-bottom) 1.25rem;
  }

  .hero-slide__name {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 7vw + 0.65rem, 2.875rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow-wrap: normal;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-slide__name::-webkit-scrollbar {
    display: none;
  }

  .hero-slide__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-slide__cta-note {
    flex: none;
    min-width: 0;
    max-width: none;
    padding-right: 0;
  }

  .hero-slider__lot-dock {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
  }

  .hero-slider__lot-row {
    justify-content: center;
    max-width: 100%;
  }
}

/* Hero — one-time entrance (class .hero--enter removed after animation) */
@keyframes heroEntranceContent {
  from {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroEntranceDock {
  from {
    opacity: 0;
    transform: translate3d(-50%, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

.hero--enter .hero-slide.is-active .hero-slide__content {
  animation: heroEntranceContent 1.15s var(--ease-premium) 0.12s both;
}

.hero--enter .hero-slider__lot-dock {
  animation: heroEntranceDock 1s var(--ease-premium-soft) 0.45s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero--enter .hero-slide.is-active .hero-slide__content,
  .hero--enter .hero-slider__lot-dock {
    animation: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  height: 3rem;
  min-width: 10rem;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--accent-brown);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent-brown);
  color: var(--background);
  border-color: var(--accent-brown);
}

.btn--primary:hover {
  background: #2a241e;
  border-color: #2a241e;
}

.btn--outline {
  background: transparent;
  color: var(--accent-brown);
}

.btn--outline:hover {
  background: var(--surface-raised);
}

.btn--outline-on-raised:hover {
  background: var(--background);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Notice */
.notice {
  padding-top: clamp(4rem, 10vw, 6rem);
  padding-bottom: clamp(4.5rem, 11vw, 7rem);
}

.notice__inner {
  border-left: 4px solid var(--accent-brown);
  padding-left: 1.5rem;
  max-width: 50rem;
}

@media (min-width: 640px) {
  .notice__inner {
    padding-left: 2.5rem;
  }
}

.notice__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-brown);
  margin: 0;
}

.notice__lead {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .notice__lead {
    font-size: 1.125rem;
  }
}

.notice__text {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .notice__text {
    font-size: 1.1875rem;
  }
}

.notice__countdown-label {
  margin: 2.25rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice__countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 26rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .notice__countdown {
    gap: 0.85rem;
  }
}

.notice__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.35rem;
  background: rgba(61, 46, 36, 0.06);
  border: 1px solid var(--border-subtle);
}

.notice__countdown-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-brown);
}

.notice__countdown-cap {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice__countdown.is-expired {
  display: none;
}

.notice__expired {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--foreground);
  background: rgba(61, 46, 36, 0.08);
  border: 1px solid var(--border-subtle);
}

.notice__expired:not([hidden]) {
  display: block;
}

/* Section headings */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 2.25rem;
  }
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.section-intro--large {
  font-size: 1.125rem;
}

.section-lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}

.viewing-block {
  margin-top: 2.5rem;
}

.viewing-block__line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.viewing-block__line + .viewing-block__line {
  margin-top: 0.75rem;
}

.viewing-block__line--muted {
  font-family: var(--font-sans);
  color: var(--muted);
}

/* Viewing — full-bleed photo + parallax (transform updated in main.js) */
.viewing-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(80vh, 52rem);
}

.viewing-section__parallax {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 104%;
  height: 120%;
  margin-left: -52%;
  z-index: 0;
  pointer-events: none;
}

.viewing-section__parallax-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

.viewing-section__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(18, 15, 12, 0.72) 0%,
    rgba(26, 22, 18, 0.45) 45%,
    rgba(18, 15, 12, 0.65) 100%
  );
  pointer-events: none;
}

.viewing-section__inner {
  position: relative;
  z-index: 2;
}

.viewing-section__title {
  color: var(--background);
  font-size: clamp(2.125rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.viewing-section__block {
  margin-top: 1.75rem;
}

.viewing-section__block .viewing-block__line {
  color: rgba(247, 244, 239, 0.96);
  font-size: clamp(1.1875rem, 2.35vw, 1.3125rem);
  line-height: 1.32;
}

.viewing-section__block .viewing-block__line + .viewing-block__line {
  margin-top: 0.35rem;
}

.viewing-section__block .viewing-block__line strong {
  color: var(--background);
}

.viewing-section__block .viewing-block__line--muted {
  color: rgba(247, 244, 239, 0.78);
}

.viewing-section__block .viewing-block__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(247, 244, 239, 0.45);
}

.viewing-section__block .viewing-block__link:hover {
  color: var(--background);
  text-decoration-color: rgba(247, 244, 239, 0.85);
}

.viewing-section__actions {
  margin-top: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .viewing-section__parallax-img {
    transform: translate3d(0, 0, 0) scale(1.04) !important;
    will-change: auto;
  }
}

.section-block {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-block.viewing-section {
  padding-top: clamp(5.75rem, 15vw, 10rem);
  padding-bottom: clamp(5.75rem, 15vw, 10rem);
}

.section-block__body {
  margin-top: 2.5rem;
  max-width: 36rem;
}

.section-block__body p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.625;
}

.section-block__body p + p {
  margin-top: 0.75rem;
}

.section-block__actions {
  margin-top: 2.5rem;
}

/* Horses — full-width alternating rows (editorial photos) */
.section--horses > .container .section-intro {
  margin-bottom: 0;
}

.horses-showcase {
  margin-top: 2.75rem;
}

.horse-feature {
  display: grid;
  grid-template-columns: 1fr;
}

/* Space above the rule, the divider, then space before the next horse */
.horse-feature + .horse-feature {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.horse-feature__media {
  position: relative;
  margin: 0;
  min-height: 16rem;
  overflow: hidden;
  background: rgba(61, 46, 36, 0.07);
}

.horse-gallery {
  position: relative;
  width: 100%;
  min-height: 16rem;
}

.horse-gallery__viewport {
  position: relative;
  width: 100%;
}

.horse-gallery__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 16rem;
  background: rgba(61, 46, 36, 0.06);
}

.horse-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  z-index: 0;
}

.horse-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.horse-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horse-gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(247, 244, 239, 0.38);
  border-radius: 0;
  background: rgba(26, 26, 26, 0.42);
  color: var(--background);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horse-gallery__btn:hover {
  background: rgba(26, 26, 26, 0.58);
}

.horse-gallery__btn--prev {
  left: 0.5rem;
}

.horse-gallery__btn--next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .horse-gallery__btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.6rem;
  }

  .horse-gallery__btn--prev {
    left: 0.75rem;
  }

  .horse-gallery__btn--next {
    right: 0.75rem;
  }
}

.horse-gallery__counter {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 239, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.horse-feature__panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--background);
}

.horse-feature__inner {
  width: 100%;
  max-width: 28rem;
}

.horse-feature__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.horse-feature__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.horse-feature__chip {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.horse-feature__chip span {
  font-weight: 500;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.horse-feature__desc {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

.horse-feature__cta {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .horse-feature__panel {
    padding: 3rem 2rem 3.5rem;
  }

  .horse-feature__title {
    font-size: 2.375rem;
  }

  .horse-gallery,
  .horse-gallery__slides {
    min-height: 20rem;
  }
}

@media (min-width: 900px) {
  .horse-feature {
    grid-template-columns: 1fr 1fr;
    min-height: min(72vh, 38rem);
    align-items: stretch;
  }

  .horse-feature__media {
    min-height: 0;
    height: 100%;
  }

  .horse-gallery {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }

  /* Slides are absolute; without this the viewport had no height and images vanished. */
  .horse-gallery__viewport {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .horse-gallery__slides {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    min-height: 0;
    height: 100%;
  }

  .horse-feature--img-right .horse-feature__media {
    order: 2;
  }

  .horse-feature--img-right .horse-feature__panel {
    order: 1;
  }

  .horse-feature__panel {
    padding: 3rem clamp(2rem, 4vw, 4rem);
  }
}

/* Contact */
.contact-block {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-block--org {
  gap: 0;
  max-width: 36rem;
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .contact-block--org {
    padding: 1.75rem 1.75rem;
  }
}

.contact-block__party {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.contact-block__lede {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-block__section {
  margin-top: 1rem;
}

.contact-block__section:first-of-type {
  margin-top: 0;
}

.contact-block__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.contact-block__section p:not(.contact-block__label) {
  margin: 0.35rem 0 0;
}

.contact-block__hint {
  margin-top: 0.35rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact-block__address {
  margin: 0;
  color: var(--foreground);
}

.contact-block--org .contact-block__map-link {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(61, 46, 36, 0.35);
  text-underline-offset: 3px;
}

.contact-block--org .contact-block__map-link:hover {
  color: var(--accent-brown);
  text-decoration-color: rgba(61, 46, 36, 0.55);
}

.contact-block__kvk {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact-block a {
  font-weight: 500;
  color: var(--accent-brown);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.contact-context {
  display: none;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-context.is-visible {
  display: block;
}

.contact-context strong {
  color: var(--foreground);
  font-weight: 500;
}

.form {
  margin-top: 2.5rem;
  max-width: 36rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.form__optional {
  font-weight: 400;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border-subtle);
}

.form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__error {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-brown);
}

.form-success {
  display: none;
  margin-top: 2.5rem;
  max-width: 36rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  line-height: 1.625;
}

.form-success.is-visible {
  display: block;
}

/* Scroll & entrance motion (see initScrollReveal in main.js) */
[data-reveal]:not([data-reveal="split"]) {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--ease-premium) var(--reveal-delay),
    transform calc(var(--reveal-duration) * 0.92) var(--ease-premium) var(--reveal-delay);
  will-change: opacity, transform;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="fade-left"] {
  transform: translate3d(calc(var(--reveal-distance) * -1.1), 0, 0);
}

[data-reveal="fade-right"] {
  transform: translate3d(calc(var(--reveal-distance) * 1.1), 0, 0);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal="fade"].is-revealed {
  transform: none;
}

/* Horse rows: image + copy slide in from sides */
[data-reveal="split"] {
  opacity: 1;
  transform: none;
  transition: none;
}

.horse-feature[data-reveal="split"]:not(.is-revealed) .horse-feature__media,
.horse-feature[data-reveal="split"]:not(.is-revealed) .horse-feature__panel {
  opacity: 0;
  will-change: opacity, transform;
}

.horse-feature--img-left[data-reveal="split"]:not(.is-revealed) .horse-feature__media {
  transform: translate3d(-1.5rem, 0, 0);
}

.horse-feature--img-left[data-reveal="split"]:not(.is-revealed) .horse-feature__panel {
  transform: translate3d(1.5rem, 0, 0);
}

.horse-feature--img-right[data-reveal="split"]:not(.is-revealed) .horse-feature__media {
  transform: translate3d(1.5rem, 0, 0);
}

.horse-feature--img-right[data-reveal="split"]:not(.is-revealed) .horse-feature__panel {
  transform: translate3d(-1.5rem, 0, 0);
}

.horse-feature[data-reveal="split"].is-revealed .horse-feature__media,
.horse-feature[data-reveal="split"].is-revealed .horse-feature__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.95s var(--ease-premium),
    transform 0.88s var(--ease-premium);
}

.horse-feature[data-reveal="split"].is-revealed .horse-feature__panel {
  transition-delay: 0.12s;
}

.notice__inner > [data-reveal]:nth-child(1) {
  --reveal-delay: 0ms;
}
.notice__inner > [data-reveal]:nth-child(2) {
  --reveal-delay: 0.07s;
}
.notice__inner > [data-reveal]:nth-child(3) {
  --reveal-delay: 0.14s;
}
.notice__inner > [data-reveal]:nth-child(4) {
  --reveal-delay: 0.2s;
}
.notice__inner > [data-reveal]:nth-child(5) {
  --reveal-delay: 0.26s;
}
.notice__inner > [data-reveal]:nth-child(6) {
  --reveal-delay: 0.32s;
}

.section--horses > .container > h2[data-reveal] {
  --reveal-delay: 0ms;
}

.section--horses > .container > .section-intro[data-reveal] {
  --reveal-delay: 0.1s;
}

#contact .container > h2[data-reveal] {
  --reveal-delay: 0ms;
}

#contact .container > .section-intro[data-reveal] {
  --reveal-delay: 0.08s;
}

#contact .container > .contact-block[data-reveal] {
  --reveal-delay: 0.14s;
}

#contact .container > .contact-context[data-reveal] {
  --reveal-delay: 0.18s;
}

#contact-form > .form__group[data-reveal]:nth-child(3) {
  --reveal-delay: 0.05s;
}
#contact-form > .form__group[data-reveal]:nth-child(4) {
  --reveal-delay: 0.1s;
}
#contact-form > .form__group[data-reveal]:nth-child(5) {
  --reveal-delay: 0.15s;
}
#contact-form > .form__group[data-reveal]:nth-child(6) {
  --reveal-delay: 0.2s;
}

#contact-form > .btn[data-reveal] {
  --reveal-delay: 0.28s;
}

.viewing-section__inner > [data-reveal]:nth-child(1) {
  --reveal-delay: 0ms;
}
.viewing-section__inner > [data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}
.viewing-section__inner > [data-reveal]:nth-child(3) {
  --reveal-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not([data-reveal="split"]) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .horse-feature[data-reveal="split"] .horse-feature__media,
  .horse-feature[data-reveal="split"] .horse-feature__panel {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.site-footer__photo {
  margin-top: 0.75rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-title {
  font-weight: 500;
  color: var(--foreground);
}
