/* Motion is progressive enhancement. The document stays readable without JS. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, #be8228, var(--accent), #fff0bd);
  transform: scaleX(0);
  transform-origin: left;
}
.site-header {
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgb(12 12 14 / 88%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 24%);
}
.nav-links a { position: relative; text-decoration: none; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links [aria-current='page'] { text-decoration: none; }
.nav-links a:hover::after, .nav-links a:focus-visible::after,
.nav-links [aria-current='page']::after { transform: scaleX(1); }
.hero-photo { translate: 0 var(--portrait-offset, 0px); }
.hero-photo img { transition: transform .55s ease, box-shadow .55s ease, filter .55s ease; }
.card, .timeline li, .faq-list details {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.card-number { transition: transform .35s ease, color .35s ease; }
.button { position: relative; overflow: hidden; }
.button::after {
  content: '';
  position: absolute;
  inset: -50% auto -50% -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 28%), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.button:hover::after, .button:focus-visible::after { left: 135%; }
.button:active { transform: translateY(0) scale(.98); }
.tags li, .social-shortcuts a, .contact-item {
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.contact-form input, .contact-form textarea, .contact-form select {
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form :is(input, textarea, select):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(233 180 76 / 8%);
}
.band {
  background: radial-gradient(ellipse at 50% 0, rgb(233 180 76 / 13%), transparent 72%), var(--panel);
}
.timeline li.is-visible::before { background: var(--accent); box-shadow: 0 0 18px rgb(233 180 76 / 30%); }
.faq-list details[open] p { animation: answer-in .3s ease both; }
@keyframes answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .card:focus-within {
    transform: translateY(-7px);
    border-color: #8b6c33;
    background: #19181a;
    box-shadow: 0 20px 45px rgb(0 0 0 / 26%), 0 0 28px rgb(233 180 76 / 5%);
  }
  .card:hover .card-number { transform: translateX(5px); }
  .hero-photo:hover img { filter: grayscale(0); }
  .timeline li:hover { transform: translateX(5px); border-color: #8b6c33; }
  .tags li:hover { border-color: var(--accent); transform: translateY(-2px); }
  .social-shortcuts a:hover { transform: translateY(-4px) scale(1.06); }
  a.contact-item:hover { transform: translateX(5px); }
  .faq-list details:hover { border-color: #8b6c33; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-heading > * { animation: intro-in .8s cubic-bezier(.22, 1, .36, 1) backwards; }
  .hero-copy > :nth-child(2), .page-heading > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3), .page-heading > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-copy > :nth-child(6) { animation-delay: .4s; }
  .reveal {
    transition: opacity .7s ease, translate .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-pending { opacity: 0; translate: 0 24px; }
  .reveal.is-visible { opacity: 1; translate: 0 0; }
  .reveal:focus-within { opacity: 1; translate: 0 0; }
}
@keyframes intro-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .hero-photo { translate: none; }
  .reveal.is-pending { translate: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { translate: none; }
  .reveal.is-pending { opacity: 1; translate: none; }
  .scroll-progress { display: none; }
  .card:hover, .timeline li:hover, .tags li:hover, .social-shortcuts a:hover,
  a.contact-item:hover, .hero-photo:hover img, .button:hover, .button:active {
    transform: none;
  }
}
