* { box-sizing: border-box; }
:root {
  --paper: #f8f6f3;
  --ink: #201e1c;
  --muted: #9c9c9c;
  --grey: #477854;
  --gold: #b99a4d;
  --ease: cubic-bezier(.22, .75, .2, 1);
}
html { scroll-behavior: smooth; }
.hero-slider {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 0;
  background: var(--ink);
  box-shadow: 0 20px 70px rgba(35, 29, 20, .08);
}
.visual-panel { 
  position: absolute;
  min-height: 100%;
  overflow: hidden;
  background: var(--ink);
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
}
.slides, .image-slide { position: absolute; inset: 0; }
.image-slide {
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateX(3%);
  filter: blur(8px);
  transition: opacity 900ms ease, visibility 900ms, transform 900ms var(--ease), filter 900ms ease;
}
.image-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transform: translateX(0); filter: blur(0); }
.image-slide img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  transform: scale(1.04) rotate(1deg);
  transition: transform 6.5s cubic-bezier(.2,.65,.25,1);
}
.image-slide.is-active img { transform: scale(1) rotate(0); }
.image-frame {
  position: absolute; z-index: 2; inset: 65px;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}
.image-index {
  position: absolute; z-index: 2; left: 7%; bottom: 3.2%;
  font-size: clamp(76px, 11vw, 150px); line-height: .8;
  letter-spacing: -.08em;
  transition: opacity .4s ease;
}
.image-caption {
  position: absolute; z-index: 3; left: 7%; bottom: 7%;
  font-size: 10px; font-weight: 600;color: var(--paper);
  letter-spacing: .22em; text-shadow: 0 1px 10px rgba(0,0,0,.22);
}
.image-caption span { padding: 0 7px; }
.content-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0;
  position: absolute;
  z-index: 3;
  width: 45%;
  height: 100%;
  top: 0;
  right: 0;
  color: #fff;
  background: rgb(51 51 51 / 50%);
}
.content-inner { width: 100%; max-width: 620px; margin: 0 40px; }
.copy-stack { margin-top: clamp(12px, 3vh, 72px); }
.kicker {
  margin: 0 0 clamp(8px, 1.7vh, 17px);
  transform: translateY(14px);
  font: 500 clamp(42px, 6vw, 42px) / 1.08 var(--serif);
    letter-spacing: -0.035em;
}
h1 {text-transform: uppercase;overflow-wrap: anywhere;
}
p#headline {
    font-size: 1.4rem; margin-top: 0;
}
.title-word { display: inline-block; max-width: 100%; opacity: 0; }
.title-rule { width: 110px; height: 2px; margin: clamp(12px, 3vh, 30px) 0 clamp(14px, 3.5vh, 36px); background: var(--paper); transform: scaleX(0); transform-origin: left; }
.description {
  max-width: 460px; margin: 0;
  font-size: clamp(14px, min(1.35vw, 2.3vh), 21px); line-height: 1.6;transform: translateY(18px);
}
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(16px, 3vh, 60px); }
.button {
  min-height: clamp(48px, 7.4vh, 66px); display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 0 30px; border: 1px solid transparent; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  text-decoration: none;
}
button span {
  color: #fff;
}
.button:hover { transform: translateY(-3px); }
.button-primary { min-width: 220px; background: var(--gold); color: white; }
.button-primary:hover { background: #a1843e; }
.button-primary span { font-size: 17px; transition: transform .25s ease; }
.button-primary:hover span { transform: translate(3px,-3px); }
.slider-footer { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(12px, 2.5vh, 26px); width: 90% }
.arrows { display: flex; gap: 14px; }
.arrow {
  width: clamp(44px, 6.5vh, 58px); height: clamp(44px, 6.5vh, 58px);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
  border: 1px solid #d0ccc7; background: transparent; cursor: pointer;
  font-size: 25px; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.hero-slider .arrow span,
.hero-slider .button-primary > span[aria-hidden="true"] {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.hero-slider .arrow span {
    line-height: 16px;
    display: block;
    height: 20px;
}
.arrow:hover, .arrow:focus-visible { background: var(--ink); color: white; border-color: var(--ink); }
.arrow:focus-visible, .button:focus-visible { outline: 2px solid var(--grey); outline-offset: 4px; }
.counter { display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: 13px; letter-spacing: .2em; }
.counter-divider { color: #c3beb7; }
.progress-track { width: 90%; height: 2px; margin-top: clamp(12px, 2.8vh, 28px); background: #e7e3de; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--gold); }
.hero-slider.is-animating .kicker { animation: reveal .65s .12s var(--ease) forwards; }
.hero-slider.is-animating .title-word {
  animation: title-word-reveal .55s calc(.15s + var(--word-index) * .12s) var(--ease) both;
}
.hero-slider.is-animating .title-rule { animation: draw .6s .48s var(--ease) forwards; }
.hero-slider.is-animating .description { animation: reveal .7s .42s var(--ease) forwards; }
.hero-slider.is-animating .actions { animation: rise .7s .55s var(--ease) both; }
.hero-slider.is-animating .slider-footer { animation: rise .7s .68s var(--ease) both; }
.hero-slider.is-animating .image-index { animation: rise .7s .25s var(--ease) both; }
.hero-slider.is-animating .image-caption { animation: rise .7s .4s var(--ease) both; }
.arrow:active { transform: scale(.92); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes title-word-reveal {
  from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { transform: scaleX(1); } }
@media (min-width: 1500px) {
  .content-panel { padding: 70px 6.2%; }
  h1 { font-size: clamp(30px, min(4.1vw, 7vh), 76px); }
}
@media (max-width: 1050px) {
  .content-panel { padding: clamp(18px, 3.8vh, 38px); }
  .button { min-width: 0; flex: 1 1 180px; padding: 0 18px; }
}
@media (min-width: 781px) and (max-height: 500px) {
  .content-panel { padding: 12px 24px; }
  .copy-stack { margin-top: 6px; }
  .kicker { margin-bottom: 6px; }
  h1 { font-size: clamp(22px, min(3.4vw, 6vh), 40px); }
  .title-rule { margin: 6px 0 8px; }
  .description { font-size: 12px; line-height: 1.3; }
  .actions { gap: 10px; margin-top: 10px; }
  .button { min-height: 42px; padding: 0 14px; }
  .slider-footer { margin-top: 8px; }
  .arrow { width: 40px; height: 40px;display: flex; }
  .progress-track { margin-top: 8px; }
}
@media (max-width: 780px) {
  body { display: block; padding: 0; background: var(--paper); }
  .hero-slider { display: flex; flex-direction: column; height: auto; min-height: 100svh; border-radius: 0; box-shadow: none; }
  .hero-slider .content-inner { margin: 0; }
  .visual-panel { flex: none; min-height: 0; height: 48vh; height: 48svh; max-height: 520px; position: relative; }
  .image-frame { inset: 8px;opacity: 0.4; }
  .image-index { font-size: 90px; bottom: 5%; }
  .image-caption { bottom: 7%; font-size: 9px; }
  .content-panel { flex: 1; padding: 0 25px 28px; align-items: flex-start; position: relative;width: 100%; }
  .copy-stack { margin-top: 30px; }
  .kicker { margin-bottom: 12px; letter-spacing: 0.12em; font-size: 1.5rem; }
  h1 { font-size: clamp(34px, 9vw, 52px); }
  .title-rule { margin: 22px 0; width: 75px; }
  .description { display: none; }
  .actions { margin-top: 27px; gap: 10px;  }
  .button { min-height: 54px; flex: 1 1 calc(50% - 10px); font-size: 10px; letter-spacing: .1em; gap: 8px; }
  .slider-footer { margin-top: 22px; width: 100%; }
  .arrow { width: 48px; height: 48px; }
  .progress-track { margin-top: 20px; width: 100%; }
  .brand { left: 0; width: 70px; height: 70px; padding: 0; margin:8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slider.is-animating .title-word { animation-delay: 0s !important; }
}
