/* Place after site.css. Static, readable content is the default. */
.reveal.pending,
.how-item.pending .how-bar::after,
.step.pending .step-bar {
  opacity: 1;
  transform: none;
}

.hero-eyebrow,
.hero-lead,
.hero-link,
.hm-tag,
.display .line-in,
.hm-b {
  opacity: 1;
  transform: none;
  animation: none;
}

.hm-sheen {
  opacity: 0;
  animation: none;
}

.edlen-js[data-motion="on"] .edlen-reveal.is-revealing {
  animation: edlen-reveal 720ms var(--ease, ease-out) both;
  animation-delay: var(--edlen-reveal-delay, var(--d, 0s));
}

@keyframes edlen-reveal {
  from { opacity: 0.2; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

.edlen-js .hero-mark-art {
  isolation: isolate;
}

.edlen-js .hero-mark-art::before {
  content: "";
  position: absolute;
  inset: -20% -26%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 56%, rgba(201, 169, 107, 0.08), rgba(201, 169, 107, 0) 68%);
}

.edlen-js .hm-svg {
  transform-origin: 50% 50%;
}

.edlen-js .hm-b {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 1.4px 0 rgba(56, 36, 8, 0.42));
}

.edlen-js .edlen-art-layer {
  transform-box: view-box;
  transform-origin: center;
}

.edlen-js[data-motion="on"] .is-motion-visible .edlen-art-layer,
.edlen-js[data-motion="on"] .is-motion-visible .hm-b,
.edlen-js[data-motion="on"] .is-motion-visible .hm-svg {
  will-change: transform;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}

.reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brass-300, #e2c98f);
  transform: scaleX(0);
  transform-origin: left center;
}

.motion-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 8.7rem;
  min-height: 44px;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(226, 201, 143, 0.38);
  border-radius: 2px;
  background: rgba(7, 15, 27, 0.94);
  color: var(--on-navy, #f4f0e6);
  box-shadow: 0 4px 18px rgba(7, 15, 27, 0.12);
  font-family: var(--sans, sans-serif);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.motion-toggle:hover {
  border-color: var(--brass-300, #e2c98f);
  background: var(--navy-800, #11233b);
}

.motion-toggle:focus-visible {
  outline: 2px solid var(--brass-300, #e2c98f);
  outline-offset: 4px;
}

.motion-toggle-icon {
  position: relative;
  display: block;
  width: 10px;
  height: 12px;
  border-left: 2px solid var(--brass-300, #e2c98f);
  border-right: 2px solid var(--brass-300, #e2c98f);
}

.motion-toggle[data-paused="true"] .motion-toggle-icon {
  width: 10px;
  height: 12px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--brass-300, #e2c98f);
  border-right: 0;
}

.edlen-js .site-footer {
  /* Keep the final link row clear of the fixed motion control. */
  padding-bottom: 4.5rem;
}

.edlen-js .chapter-nav a {
  position: relative;
}

.edlen-js .chapter-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0;
  left: 0.8rem;
  height: 2px;
  background: var(--brass, #b08d57);
}

[data-lens-panel][hidden] {
  display: none !important;
}

.edlen-js[data-motion="on"] .is-lens-entering {
  animation: edlen-lens-in 450ms var(--ease, ease-out) both;
}

@keyframes edlen-lens-in {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

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

.edlen-copy-helper {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

html[data-motion="off"] {
  scroll-behavior: auto;
}

body.edlen-js[data-page-visibility="hidden"] *,
body.edlen-js[data-page-visibility="hidden"] *::before,
body.edlen-js[data-page-visibility="hidden"] *::after {
  animation-play-state: paused !important;
}

body.edlen-js[data-motion="off"] *,
body.edlen-js[data-motion="off"] *::before,
body.edlen-js[data-motion="off"] *::after {
  animation: none !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

@media (max-width: 860px) {
  /* A failed or disabled script leaves every navigation link reachable. */
  body:not(.edlen-js) .site-header {
    position: relative;
    background: var(--navy-950, #070f1b);
  }

  body:not(.edlen-js) .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 1.25rem 0.8rem;
  }

  body:not(.edlen-js) .menu-toggle {
    display: none;
  }

  body:not(.edlen-js) .nav {
    position: static;
    flex: 1 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem 1.1rem;
    padding: 1rem 0 0;
    opacity: 1;
    visibility: visible;
    background: none;
  }

  body:not(.edlen-js) .nav a,
  body:not(.edlen-js) .nav .nav-cta {
    margin: 0;
    padding: 0.45rem 0;
    border: 0;
    font-family: var(--sans, sans-serif);
    font-size: 0.8rem;
    text-align: left;
  }

  body:not(.edlen-js) .hero {
    padding-top: 0;
  }

  body:not(.edlen-js) .page-hero {
    padding-top: 3rem;
  }
}

@media (max-width: 640px) {
  .motion-toggle {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-width: 8.1rem;
    padding-inline: 0.8rem;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edlen-reveal,
  .edlen-reveal.is-revealing,
  .is-lens-entering {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media print {
  .reading-progress,
  .motion-toggle,
  .chapter-nav {
    display: none !important;
  }

  .edlen-reveal,
  .edlen-art-layer,
  .hm-svg,
  .hm-b {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  [data-lens-panel][hidden] {
    display: block !important;
  }
}

/* Editorial photographs: layout remains in editorial.css, loaded after this file. */
.edlen-js [data-hero-reel][data-reel-ready] [data-hero-slide],
.edlen-js [data-story-stage][data-story-ready] [data-story-panel] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  clip-path: inset(0);
}

.edlen-js [data-hero-reel][data-reel-ready] [data-hero-slide].is-active,
.edlen-js [data-story-stage][data-story-ready] [data-story-panel].is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.edlen-js [data-hero-reel][data-reel-ready] [data-hero-slide].is-leaving,
.edlen-js [data-story-stage][data-story-ready] [data-story-panel].is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.edlen-js[data-motion="on"] [data-hero-reel][data-reel-ready] [data-hero-slide].is-entering {
  animation: edlen-cinema-wipe 1000ms cubic-bezier(.2, .7, .22, 1) both;
}

.edlen-js[data-motion="on"] [data-hero-reel][data-reel-ready] [data-hero-slide].is-entering[data-slide-direction="backward"] {
  animation-name: edlen-cinema-wipe-back;
}

@keyframes edlen-cinema-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes edlen-cinema-wipe-back {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}

.edlen-js[data-motion="on"] [data-hero-reel] [data-hero-slide] [data-photo-layer] {
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0%), 0) scale(var(--hero-scale, 1));
  transform-origin: 50% 50%;
}

.edlen-js[data-motion="on"] [data-hero-reel].is-reel-visible [data-hero-slide].is-active [data-photo-layer],
.edlen-js[data-motion="on"] [data-hero-reel].is-reel-visible [data-hero-slide].is-entering {
  will-change: transform, clip-path;
}

.edlen-js [data-hero-reel] [data-hero-progress] {
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left center;
}

.edlen-js [data-cinema-line] {
  display: block;
}

.edlen-js[data-motion="on"] [data-cinema-line].is-cinema-entering {
  animation: edlen-cinema-line 900ms cubic-bezier(.2, .7, .22, 1) both;
  animation-delay: var(--cinema-line-delay, 0ms);
}

@keyframes edlen-cinema-line {
  from { transform: translate3d(0, 112%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.edlen-js[data-motion="on"] [data-story-stage][data-story-ready] [data-story-panel].is-entering {
  animation: edlen-story-wipe 780ms cubic-bezier(.2, .7, .22, 1) both;
  will-change: clip-path;
}

.edlen-js[data-motion="on"] [data-story-stage][data-story-ready] [data-story-panel].is-entering[data-story-direction="backward"] {
  animation-name: edlen-story-wipe-back;
}

@keyframes edlen-story-wipe {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

@keyframes edlen-story-wipe-back {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

.edlen-js[data-motion="on"] [data-story-panel] .edlen-story-layer {
  transform: translate3d(0, var(--story-y, 0px), 0) scale(var(--story-scale, 1));
  transform-origin: 50% 50%;
}

.edlen-js [data-photo-reveal] {
  overflow: hidden;
}

.edlen-js[data-motion="on"] [data-photo-reveal].is-photo-revealing {
  animation: edlen-photo-open 1150ms cubic-bezier(.2, .7, .22, 1) both;
}

@keyframes edlen-photo-open {
  from { clip-path: inset(13% 16% 13% 16%); }
  to { clip-path: inset(0); }
}

.edlen-js[data-motion="on"] .edlen-photo-layer {
  transform: translate3d(0, var(--photo-y, 0px), 0) scale(var(--photo-scale, 1));
  transform-origin: 50% 50%;
}

.edlen-js[data-motion="on"] .is-photo-visible .edlen-photo-layer {
  will-change: transform;
}

.edlen-js[data-motion="on"] [data-drift-word] {
  transform: translate3d(var(--drift-x, 0px), 0, 0);
}

.edlen-js [data-hero-reel]:not(.is-reel-visible) [data-hero-slide],
.edlen-js [data-hero-reel]:not(.is-reel-visible) [data-cinema-line],
.edlen-js.menu-open [data-hero-slide],
.edlen-js.menu-open [data-cinema-line],
.edlen-js.menu-open [data-story-panel],
.edlen-js.menu-open [data-photo-reveal] {
  animation-play-state: paused !important;
}

.edlen-js[data-motion="off"] [data-photo-layer],
.edlen-js[data-motion="off"] [data-drift-word],
.edlen-js[data-motion="off"] [data-cinema-line] {
  transform: none !important;
}

.edlen-js[data-motion="off"] [data-photo-reveal],
.edlen-js[data-motion="off"] [data-hero-slide],
.edlen-js[data-motion="off"] [data-story-panel] {
  clip-path: none !important;
}

body:not(.edlen-js) [data-hero-go],
body:not(.edlen-js) [data-hero-progress] {
  display: none;
}

@media (max-width: 959px) {
  .edlen-js[data-motion="on"] [data-story-stage] [data-story-panel].is-entering {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edlen-js [data-cinema-line],
  .edlen-js [data-photo-layer],
  .edlen-js [data-drift-word] {
    transform: none !important;
    animation: none !important;
  }

  .edlen-js [data-photo-reveal],
  .edlen-js [data-hero-slide],
  .edlen-js [data-story-panel] {
    clip-path: none !important;
    animation: none !important;
  }
}

@media print {
  [data-photo-layer],
  [data-drift-word],
  [data-cinema-line] {
    transform: none !important;
    animation: none !important;
  }

  [data-hero-slide],
  [data-story-panel],
  [data-photo-reveal] {
    clip-path: none !important;
    animation: none !important;
  }

  [data-panorama] {
    --panorama-open: 1 !important;
  }

  [data-hero-go],
  [data-hero-progress] {
    display: none !important;
  }
}
