/* ========== WJK Fullscreen Hero Slider (feather on <figure>::before) ========== */
:root{
  --wjk-hero-height: 100svh;
  --wjk-slide-duration: 6500ms;
  --wjk-fade: 2600ms;
  --wjk-ui-max: 1200px;
  --wjk-ui-pad: clamp(16px, 4vw, 40px);

  /* Controls sizing/alignment */
  --wjk-arrow-size: 44px;
  --wjk-gap: 12px;
  --wjk-meta-lift: clamp(20px, 5vh, 96px);

  /* Feather tones */
  --wjk-feather-top: rgba(0,0,0,.65);
  --wjk-feather-mid: rgba(0,0,0,0);
  --wjk-feather-bot: rgba(0,0,0,.65);

  /* UI colors */
  --wjk-text: #fff;
  --wjk-text-dim: rgba(255,255,255,.85);
  --wjk-track: rgba(255,255,255,.25);
  --wjk-fill: #fff;

  /* Arrow visuals */
  --wjk-arrow-bg: rgba(255,255,255,.12);
  --wjk-arrow-bg-hover: rgba(255,255,255,.22);
}

html, body { margin: 0; padding: 0; }

.wjk-hero{
  position: relative; width: 100%;
  height: var(--wjk-hero-height);
  color: var(--wjk-text);
  isolation: isolate;
  background:#000;
}
@supports (height: 100dvh){ .wjk-hero{ height:100dvh; } }

.wjk-hero__viewport{ position: relative; width: 100%; height: 100%; overflow: hidden; }

/* ---------- Slides ---------- */
.wjk-hero__slide{
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.wjk-hero__slide:first-child{ opacity:1; }

.wjk-hero__slide img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  z-index: 0;
}

/* Feather overlay */
.wjk-hero__slide::before{
  content:"";
  position:absolute; inset:0;
  z-index: 1;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    var(--wjk-feather-top) 0%,
    rgba(0,0,0,.35) 18%,
    var(--wjk-feather-mid) 40%,
    var(--wjk-feather-mid) 60%,
    rgba(0,0,0,.35) 82%,
    var(--wjk-feather-bot) 100%
  );
}

/* ---------- Per-slide meta ---------- */
.wjk-hero__meta{
  position: absolute; inset-inline: 0;
  bottom: calc(
    max(0px, env(safe-area-inset-bottom)) + var(--wjk-arrow-size) + var(--wjk-gap) + var(--wjk-meta-lift)
  );
  z-index: 2;
  pointer-events: none;
}

.wjk-hero__meta-inner{
  width: calc(100vw - 60px);
  margin-left: calc(50% - 50vw + 30px);
  margin-right: calc(50% - 50vw + 30px);

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;

  padding-left: calc(var(--wjk-arrow-size) + var(--wjk-gap));
  padding-right: calc(var(--wjk-arrow-size) + var(--wjk-gap));

  pointer-events: auto;
}

/* tablet gutters */
@media (max-width:1024px){
  .wjk-hero__meta-inner{
    width: calc(100vw - 40px);
    margin-left: calc(50% - 50vw + 20px);
    margin-right: calc(50% - 50vw + 20px);
  }
}

/* mobile gutters */
@media (max-width:640px){
  .wjk-hero__meta-inner{
    width: calc(100vw - 32px);
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }
}

.wjk-hero__title{
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--wjk-text);
  font-family: "Garamond","Adobe Garamond Pro","EB Garamond",Georgia,serif;
  font-weight: 400;
}

.wjk-hero__jump{
  position: relative;
  font-size: clamp(12px, 1.6vw, 12px);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--wjk-text-dim);
  padding-bottom: 2px;
  border: none;
  transition: color 0.3s ease;
}

.wjk-hero__jump::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:1px;
  background-color:currentColor;
  transition:width .3s ease;
}

.wjk-hero__jump:hover,
.wjk-hero__jump:focus-visible{
  color:var(--wjk-text);
}

.wjk-hero__jump:hover::after,
.wjk-hero__jump:focus-visible::after{
  width:100%;
}

/* ---------- Controls & Progress ---------- */

.wjk-hero__controls{
  position:absolute;
  left:0;
  right:0;
  bottom:calc(max(0px, env(safe-area-inset-bottom)) + 40px);
  z-index:10;

  /* UPDATED TO MATCH SITE GUTTERS */
  width:calc(100vw - 60px);
  margin-left:calc(50% - 50vw + 30px);
  margin-right:calc(50% - 50vw + 30px);

  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:var(--wjk-gap);

  padding:0 0 clamp(16px,3vh,28px) 0;
}

/* tablet gutters */
@media (max-width:1024px){
  .wjk-hero__controls{
    width:calc(100vw - 40px);
    margin-left:calc(50% - 50vw + 20px);
    margin-right:calc(50% - 50vw + 20px);
  }
}

/* mobile gutters */
@media (max-width:640px){
  .wjk-hero__controls{
    width:calc(100vw - 32px);
    margin-left:calc(50% - 50vw + 16px);
    margin-right:calc(50% - 50vw + 16px);
  }
}

/* Arrow buttons */
.wjk-hero .wjk-hero__controls .wjk-hero__arrow{
  all:unset;
  box-sizing:border-box;
  width:var(--wjk-arrow-size);
  height:var(--wjk-arrow-size);
  display:grid;
  place-items:center;
  border:2px solid rgba(255,255,255,.95) !important;
  border-radius:10px;
  background:transparent !important;
  color:#fff;
  cursor:pointer;
  line-height:0;
  font-size:0;
  box-shadow:none !important;
  text-transform:none !important;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.wjk-hero .wjk-hero__controls .wjk-hero__arrow:hover,
.wjk-hero .wjk-hero__controls .wjk-hero__arrow:focus-visible{
  background:rgba(255,255,255,.12) !important;
  border-color:#fff !important;
  outline:none;
  transform:translateY(-1px);
}

.wjk-hero .wjk-hero__controls .wjk-hero__arrow::before{
  content:"";
  width:18px;
  height:18px;
  display:block;
  background:currentColor;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  opacity:.95;
}

#wjk-next::before{ transform:scaleX(-1); }

.wjk-hero__progress{
  position:relative;
  height:2px;
  background:var(--wjk-track);
  border-radius:2px;
  overflow:hidden;
}

.wjk-hero__progress-fill{
  position:absolute;
  inset:0 auto 0 0;
  width:0%;
  background:var(--wjk-fill);
  transform-origin:left center;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width:768px){
  :root{ --wjk-arrow-size:40px; }
  .wjk-hero .wjk-hero__controls .wjk-hero__arrow::before{
    width:16px;
    height:16px;
  }
}

@media (prefers-reduced-motion:reduce){
  .wjk-hero__progress-fill{ transition:none !important; }
}

/* Utility spacing guards */
.wjk-hero + * { margin-top:0; }
* + .wjk-hero { margin-top:0; }