/* [CV-001] Cheval Volant — design tokens and base (see CODE_INDEX.md) */
:root {
  --cv-hunter: #14261c;
  --cv-black-green: #0d1712;
  --cv-ivory: #f6f1e8;
  --cv-bone: #eae1d3;
  --cv-charcoal: #2b2b2b;
  --cv-brass: #a88442;
  --cv-leather: #6a4b33;
  --cv-font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --cv-font-sans: "Jost", system-ui, sans-serif;
  --cv-max: 1320px;
  --cv-text-max: 720px;
  --cv-header-h: 4.25rem;
  --cv-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --cv-duration: 0.45s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cv-font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cv-charcoal);
  background: var(--cv-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--cv-black-green);
  color: var(--cv-ivory);
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* [CV-002] Typography */
h1,
h2,
h3,
.section-title {
  font-family: var(--cv-font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cv-black-green);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.35rem 0 0;
}

.section-label {
  font-family: var(--cv-font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cv-brass);
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-bone);
  margin: 0 0 1rem;
  opacity: 0.9;
}

/* [CV-003] Layout primitives */
.container {
  width: min(100% - 3rem, var(--cv-max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 3rem, var(--cv-text-max));
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--statement {
  background: var(--cv-bone);
  text-align: center;
}

.section--worlds {
  background: var(--cv-ivory);
}

.section--editorial {
  padding: 0;
  background: var(--cv-black-green);
  color: var(--cv-bone);
}

.section--editorial .section-label {
  color: var(--cv-brass);
}

.section--editorial .section-title {
  color: var(--cv-ivory);
}

.section--pillars {
  background: var(--cv-hunter);
  color: var(--cv-bone);
}

.section--pillars .section-title,
.section--pillars .section-label {
  color: var(--cv-ivory);
}

.section--pillars .section-label {
  color: var(--cv-brass);
}

.section--horse {
  background: var(--cv-ivory);
}

.section--journal {
  background: var(--cv-bone);
}

.section--contact {
  background: var(--cv-black-green);
  color: var(--cv-bone);
  text-align: center;
}

.section--contact .section-title {
  color: var(--cv-ivory);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header--split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .section-header--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.section-header--center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-lede {
  margin: 0;
  max-width: 28rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-lede--center {
  margin-inline: auto;
  max-width: 36rem;
  margin-top: 1rem;
}

.prose p {
  margin: 0 0 1.25rem;
  font-weight: 300;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--horse {
  max-width: 40rem;
  margin-inline: auto;
  text-align: left;
}

/* [CV-004] Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--cv-header-h);
  display: flex;
  align-items: center;
  transition: background var(--cv-duration) var(--cv-ease), box-shadow var(--cv-duration) var(--cv-ease);
}

.site-header.is-scrolled {
  background: rgba(13, 23, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  width: min(100% - 2rem, var(--cv-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--cv-font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cv-ivory);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.wordmark--footer {
  font-size: 1.5rem;
  color: var(--cv-ivory);
}

.site-nav--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav--desktop {
    display: block;
  }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.site-nav__list a {
  color: var(--cv-bone);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--cv-ease);
}

.site-nav__list a:hover {
  color: var(--cv-ivory);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--cv-ivory);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--cv-brass);
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--cv-ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* [CV-005] Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--cv-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--cv-duration) var(--cv-ease), color var(--cv-duration) var(--cv-ease), border-color var(--cv-duration) var(--cv-ease);
}

.btn:focus-visible {
  outline: 2px solid var(--cv-brass);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--cv-brass);
  color: var(--cv-black-green);
  border-color: var(--cv-brass);
}

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

.btn--ghost {
  background: transparent;
  color: var(--cv-ivory);
  border-color: rgba(246, 241, 232, 0.35);
}

.btn--ghost:hover {
  border-color: var(--cv-ivory);
  background: rgba(255, 255, 255, 0.06);
}

.section--contact .btn--primary {
  margin-top: 0.5rem;
}

.btn--link {
  background: transparent;
  color: var(--cv-bone);
  border: none;
  letter-spacing: 0.18em;
  padding-inline: 0.5rem;
}

.btn--link:hover {
  color: var(--cv-ivory);
}

/* [CV-006] Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(13, 23, 18, 0.5);
  opacity: 0;
  transition: opacity 0.35s var(--cv-ease);
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(100%, 320px);
  height: 100vh;
  height: 100dvh;
  background: var(--cv-black-green);
  padding: calc(var(--cv-header-h) + 1.5rem) 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--cv-ease);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.mobile-drawer__list a {
  display: block;
  padding: 0.85rem 0;
  color: var(--cv-bone);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__list a:hover {
  color: var(--cv-ivory);
}

.mobile-drawer__cta {
  width: 100%;
}

/* [CV-007] Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 12vw, 8rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
  color: var(--cv-ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cv-black-green);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 23, 18, 0.85) 0%,
    rgba(13, 23, 18, 0.35) 45%,
    rgba(13, 23, 18, 0.2) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero__title {
  font-size: clamp(2.35rem, 6vw, 4rem);
  color: var(--cv-ivory);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero__sub {
  margin: 0 0 2rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cv-bone);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* [CV-008] World grid */
.world-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .world-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .world-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .world-tile:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .world-tile:nth-child(2) {
    grid-column: span 2;
  }

  .world-tile--wide {
    grid-column: span 4;
  }

  .world-tile:nth-child(4) {
    grid-column: span 2;
  }

  .world-tile:nth-child(5) {
    grid-column: span 2;
  }
}

.world-tile__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.world-tile {
  min-width: 0;
}

.world-tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cv-hunter);
}

.world-tile--wide .world-tile__media {
  aspect-ratio: 16 / 9;
}

.world-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--cv-ease);
}

.world-tile__link:hover .world-tile__media img {
  transform: scale(1.04);
}

.world-tile__body {
  padding: 1.25rem 0 0;
}

.world-tile__title {
  font-family: var(--cv-font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--cv-black-green);
}

.world-tile__desc {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--cv-charcoal);
}

.world-tile__arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-brass);
}

/* [CV-009] Editorial split */
.editorial-split {
  display: grid;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: 1.05fr 1fr;
    min-height: min(90vh, 900px);
  }
}

.editorial-split__media {
  min-height: 320px;
  background: var(--cv-hunter);
  min-width: 0;
}

.editorial-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

@media (min-width: 900px) {
  .editorial-split__media img {
    min-height: 100%;
  }
}

.editorial-split__content {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.editorial-split__text {
  margin: 0;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(234, 225, 211, 0.92);
  max-width: 32rem;
}

/* [CV-010] Pillars */
.pillar-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

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

@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar__title {
  font-family: var(--cv-font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--cv-ivory);
}

.pillar__text {
  margin: 0;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(234, 225, 211, 0.88);
}

/* [CV-011] Horse tabs */
.horse-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(20, 38, 28, 0.12);
  padding-bottom: 0.5rem;
}

.horse-tabs__tab {
  font-family: var(--cv-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--cv-charcoal);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s var(--cv-ease), color 0.25s var(--cv-ease);
}

.horse-tabs__tab:hover {
  opacity: 0.85;
}

.horse-tabs__tab[aria-selected="true"] {
  opacity: 1;
  color: var(--cv-hunter);
  box-shadow: inset 0 -2px 0 var(--cv-brass);
}

.horse-tabs__tab:focus-visible {
  outline: 2px solid var(--cv-brass);
  outline-offset: 2px;
}

.horse-panel {
  animation: cvFade 0.5s var(--cv-ease);
}

.horse-panel[hidden] {
  display: none;
}

@keyframes cvFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.horse-overview {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .horse-overview {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.horse-overview__media {
  background: var(--cv-bone);
  overflow: hidden;
  min-width: 0;
}

.horse-overview__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.horse-overview__intro {
  margin: 0 0 1.75rem;
  font-weight: 300;
  line-height: 1.7;
}

.horse-stats {
  margin: 0;
}

.horse-stats__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(20, 38, 28, 0.12);
  font-size: 0.9375rem;
}

.horse-stats__row dt {
  margin: 0;
  font-weight: 500;
  color: var(--cv-hunter);
  letter-spacing: 0.04em;
}

.horse-stats__row dd {
  margin: 0;
  font-weight: 300;
}

/* [CV-012] Horse gallery + lightbox */
.horse-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .horse-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.horse-gallery__item {
  position: relative;
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: var(--cv-bone);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.horse-gallery__item--landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

@media (min-width: 700px) {
  .horse-gallery__item--landscape {
    grid-column: span 2;
  }
}

.horse-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--cv-ease);
}

.horse-gallery__item:hover img {
  transform: scale(1.03);
}

.horse-gallery__item:focus-visible {
  outline: 2px solid var(--cv-brass);
  outline-offset: 2px;
}

.horse-gallery__note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(43, 43, 43, 0.7);
  text-align: center;
}

.horse-gallery__note code {
  font-size: 0.75rem;
}

.horse-honors {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
  padding: 1rem 0 2rem;
}

.horse-honors__title {
  font-family: var(--cv-font-serif);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--cv-black-green);
}

.horse-honors__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: 22rem;
  margin-inline: auto;
}

.horse-honors__list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(20, 38, 28, 0.1);
  font-weight: 300;
  padding-left: 1.25rem;
  position: relative;
}

.horse-honors__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 5px;
  height: 5px;
  background: var(--cv-brass);
  border-radius: 50%;
}

.horse-video__frame {
  max-width: 900px;
  margin-inline: auto;
  background: var(--cv-black-green);
}

.horse-video__el {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.horse-video__placeholder {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--cv-bone);
  line-height: 1.6;
}

.horse-video__placeholder code {
  font-size: 0.8rem;
  color: var(--cv-brass);
}

/* [CV-013] Journal */
.journal-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .journal-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .journal-card--feature {
    grid-row: span 2;
  }
}

.journal-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--cv-ivory);
  transition: box-shadow 0.35s var(--cv-ease);
}

.journal-card__link:hover {
  box-shadow: 0 16px 40px rgba(13, 23, 18, 0.08);
}

.journal-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cv-hunter);
}

.journal-card {
  min-width: 0;
}

.journal-card--feature .journal-card__media {
  aspect-ratio: 16 / 11;
}

.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--cv-ease);
}

.journal-card__link:hover .journal-card__media img {
  transform: scale(1.03);
}

.journal-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.journal-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cv-brass);
  margin: 0 0 0.35rem;
}

.journal-card__title {
  font-family: var(--cv-font-serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--cv-black-green);
}

.journal-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--cv-charcoal);
}

/* [CV-014] Contact + footer */
.contact__text {
  margin: 1rem 0 0.5rem;
  font-weight: 300;
  max-width: 28rem;
  margin-inline: auto;
}

.contact__email {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

.contact__email a {
  color: var(--cv-brass);
  text-decoration: none;
}

.contact__email a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #0a1210;
  color: var(--cv-bone);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-weight: 300;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--cv-bone);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer__list a:hover {
  color: var(--cv-ivory);
}

.site-footer__meta p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.site-footer__meta a {
  color: var(--cv-bone);
  text-decoration: none;
}

.site-footer__meta a:hover {
  color: var(--cv-brass);
}

.site-footer__copy {
  margin-top: 1rem !important;
  font-size: 0.75rem !important;
  opacity: 0.55;
}

/* [CV-015] Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 23, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: none;
  background: transparent;
  color: var(--cv-ivory);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2.25rem;
}

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--cv-brass);
}

/* [CV-016] Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--cv-ease), transform 0.8s var(--cv-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .world-tile__media img,
  .journal-card__media img,
  .horse-gallery__item img {
    transition: none;
  }

  .horse-panel {
    animation: none;
  }
}

/* [CV-017] Standalone error page (404.html) */
.cv-error {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--cv-ivory);
  box-sizing: border-box;
}

.cv-error .section-label {
  color: var(--cv-brass);
}

.cv-error__title {
  font-family: var(--cv-font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--cv-black-green);
  margin: 0.5rem 0 1rem;
  max-width: 20ch;
}

.cv-error__text {
  margin: 0 0 1.75rem;
  font-weight: 300;
  color: var(--cv-charcoal);
  max-width: 28rem;
}
