/* Next Page Vault — hero carousel (Home page). Shared by the site and the admin's live
   preview, so it carries its own colors and button styles. Sizes use em so the preview,
   drawn at a fixed width, matches the site exactly. */
.hero-carousel{--plum:#2b1e3e;--plum-soft:#4a3163;--gold:#e0a83e;--gold-deep:#8a5a24;--cream:#faf6ec;--dawn:#f6e9d3;--line:#e2d6c4;--white:#fffdf8;
  position:relative;overflow:hidden;font-size:1rem;container-type:inline-size;background:var(--cream);isolation:isolate;color:var(--plum);font-family:Georgia,"Times New Roman",serif;line-height:1.75}
.hc-track{position:relative;height:34em}
.h-compact .hc-track{height:26em}.h-tall .hc-track{height:40em}.h-screen .hc-track{height:min(100svh,44em)}
.hc-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
.hc-slide.is-active{opacity:1;visibility:visible;transition:opacity .9s ease,visibility 0s}
.t-slide .hc-slide{opacity:1;transform:translate3d(100%,0,0);transition:transform .8s cubic-bezier(.65,0,.35,1),visibility 0s linear .8s}
.t-slide .hc-slide.is-active{transform:translate3d(0,0,0);transition:transform .8s cubic-bezier(.65,0,.35,1),visibility 0s}
.t-slide .hc-slide.is-leaving{transform:translate3d(-100%,0,0);visibility:visible}
/* Going back (previous arrow, a swipe to the right): the new slide comes in from the left. */
.t-slide.is-back .hc-slide{transform:translate3d(-100%,0,0)}
.t-slide.is-back .hc-slide.is-active{transform:translate3d(0,0,0)}
.t-slide.is-back .hc-slide.is-leaving{transform:translate3d(100%,0,0)}
.hc-bg,.hc-dim{position:absolute;inset:0}
.hc-dim{background:#130c1d}
.hc-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hc-img{position:absolute;z-index:1;max-width:none;height:auto;pointer-events:none}
.hc-content ~ .hc-img{z-index:3}
.hc-content{position:absolute;z-index:2;width:min(var(--hc-w,62%),92%)}
.hc-content.align-center{text-align:center}.hc-content.align-right{text-align:right}
.hc-eyebrow{font-size:.78em;letter-spacing:.2em;text-transform:uppercase;font-weight:bold;color:var(--gold-deep);margin:0 0 1em}
.hc-heading{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:clamp(2.3em,7.4cqw,4.9em);line-height:1.04;letter-spacing:-.01em;margin:0 0 .4em;text-wrap:balance}
.hc-sub{font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:600;font-size:clamp(1.15em,2.7cqw,1.65em);line-height:1.4;color:var(--plum-soft);margin:0 0 1.2em;text-wrap:balance}
.hc-rule{width:72px;height:2px;background:var(--gold);margin:0}
.align-center .hc-rule{margin:0 auto}.align-right .hc-rule{margin-left:auto}
.hc-buttons{display:flex;flex-wrap:wrap;gap:.7em;margin-top:1.6em}
.align-center .hc-buttons{justify-content:center}.align-right .hc-buttons{justify-content:flex-end}
.theme-light{color:var(--white)}
.theme-light .hc-heading{text-shadow:0 2px 24px rgba(0,0,0,.25)}
.theme-light .hc-sub{color:#f3eaf4}
.theme-light .hc-eyebrow{color:#f0d9a8}
.theme-light .btn-outline{border-color:var(--white);color:var(--white)}
.theme-light .btn-outline:hover{background:var(--white);color:var(--plum)}
.hc-controls{position:absolute;z-index:4;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:rgba(255,253,248,.82);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:999px;padding:4px 6px}
.hc-arrow,.hc-pause{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--plum);font:1.4rem/1 Georgia,serif;cursor:pointer}
.hc-pause{font-size:.7rem;letter-spacing:-.1em}
.hc-arrow:hover,.hc-pause:hover{background:var(--dawn)}
.hc-dots{display:flex;gap:2px}
.hc-dot{width:28px;height:40px;border:0;background:transparent;cursor:pointer;position:relative}
.hc-dot::after{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:50%;background:var(--line);transform:translate(-50%,-50%);transition:background .2s,width .2s}
.hc-dot.is-active::after{background:var(--gold);width:20px;border-radius:999px}

.hero-carousel .btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.7em;padding:.65em 1.45em;border-radius:999px;background:var(--gold);border:2px solid var(--gold);color:var(--plum);font:bold 1em/1.3 Georgia,serif;text-decoration:none;text-align:center;transition:background-color .2s,color .2s,border-color .2s}
.hero-carousel .btn:hover{background:var(--plum);border-color:var(--plum);color:var(--cream)}
.hero-carousel .btn-outline{background:transparent;border-color:var(--plum)}
.hero-carousel p{margin:0}
/* Phone layout. A container query (not a media query), so the admin's phone preview, drawn
   at phone width inside a desktop page, shows exactly what phones get. */
@container (max-width:719px){
  .hc-track{height:36em}.h-compact .hc-track{height:30em}.h-tall .hc-track{height:40em}
  .hc-content{left:50%!important;width:90%!important;transform:translate(-50%,var(--hc-ty,-50%))!important}
  .hc-img.hide-mobile,.hc-label.hide-mobile{display:none}
  /* Controls sit to the left on phones, clear of the floating Contact button. */
  .hc-controls{left:16px;transform:none;gap:2px}
  .hc-arrow,.hc-pause{width:36px}
  .hc-dot{width:24px}
}
/* Frames behind the words (set per slide in the admin) */
.hc-content[class*="hc-frame-"]>:last-child{margin-bottom:0}
.hc-frame-panel,.hc-frame-glass{background:var(--hc-frame);border-radius:var(--hc-fr);padding:var(--hc-fp) calc(var(--hc-fp)*1.3);box-shadow:0 1.5em 3em -1.6em rgba(0,0,0,.45)}
.hc-frame-glass{-webkit-backdrop-filter:blur(14px) saturate(1.25);backdrop-filter:blur(14px) saturate(1.25);box-shadow:0 1.5em 3em -1.6em rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.22)}
.hc-frame-band{isolation:isolate}
.hc-frame-band::before{content:"";position:absolute;z-index:-1;top:calc(var(--hc-fp)*-1);bottom:calc(var(--hc-fp)*-1);left:-400%;right:-400%;background:var(--hc-frame)}
.hc-frame-shadow{isolation:isolate}
.hc-frame-shadow::before{content:"";position:absolute;z-index:-1;inset:calc(var(--hc-fp)*-1.4);background:radial-gradient(closest-side,var(--hc-frame),transparent);filter:blur(1.2em)}
.hc-frame-shadow .hc-heading,.hc-frame-shadow .hc-sub,.hc-frame-shadow .hc-eyebrow{text-shadow:0 .05em .5em var(--hc-frame)}

/* Progress on the active dot, and a note while the slideshow is held */
.hc-dot.is-active::after{width:26px;background:linear-gradient(90deg,var(--gold) calc(var(--p,0)*100%),#e8d9bd calc(var(--p,0)*100%))}
.hc-status{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);margin:0;white-space:nowrap;padding:5px 12px;border-radius:999px;background:var(--plum);color:var(--cream);font:italic .8rem/1.3 Georgia,serif;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;box-shadow:0 8px 18px -10px rgba(43,30,62,.6)}
.hero-carousel.is-held .hc-status{opacity:1;transform:translate(-50%,0)}
.hc-status:empty{display:none}

/* Extra text labels (each placed and styled on its own in the admin) */
.hc-label{position:absolute;z-index:2;margin:0;width:min(var(--hc-w,40%),92%);color:var(--hc-lc,var(--plum));font-weight:400;font-style:normal;line-height:1.25;text-wrap:balance}
.hc-label.align-left{text-align:left}.hc-label.align-center{text-align:center}.hc-label.align-right{text-align:right}
.hc-k-heading{font-family:"Playfair Display",Georgia,serif;font-size:calc(var(--hc-ls,1)*clamp(2.1em,6.4cqw,4.4em));line-height:1.06;letter-spacing:-.01em}
.hc-k-subheading{font-family:"Playfair Display",Georgia,serif;font-size:calc(var(--hc-ls,1)*clamp(1.1em,2.6cqw,1.6em));line-height:1.35}
.hc-k-label{font-family:Georgia,"Times New Roman",serif;font-size:calc(var(--hc-ls,1)*clamp(.72em,1.2cqw,.9em));letter-spacing:.18em;text-transform:uppercase;line-height:1.5}
.hc-k-body{font-family:Georgia,"Times New Roman",serif;font-size:calc(var(--hc-ls,1)*clamp(.95em,1.7cqw,1.2em));line-height:1.6}
.hc-label.is-bold{font-weight:700}.hc-label.is-italic{font-style:italic}
.hc-label.hc-frame-shadow{text-shadow:0 .05em .5em var(--hc-frame)}
/* Main words in a custom colour */
.hc-content.has-color,.hc-content.has-color .hc-sub,.hc-content.has-color .hc-eyebrow{color:var(--hc-c)}
.hc-status{width:max-content;max-width:min(30em,calc(100vw - 32px));white-space:normal;text-align:center;text-wrap:balance}

/* Event slides: added to the carousel automatically from Admin › Events (template in
   npv_render_event_slide). Layouts: ev-photo (picture fills the slide), ev-card (photos framed
   beside the words) and ev-plain (no picture). */
.hc-ev .hc-bg{background:linear-gradient(135deg,#faf6ec 0%,#f6e9d3 55%,#f0dfb0 100%)}
.hc-ev.ev-plain .hc-bg{background:radial-gradient(ellipse 70% 90% at 88% 12%,rgba(224,168,62,.28),transparent 60%),linear-gradient(135deg,#2b1e3e 0%,#3b2954 55%,#2b1e3e 100%)}
.hc-ev-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,14,36,calc(var(--ev-dim,.45) + .35)) 0%,rgba(24,14,36,var(--ev-dim,.45)) 48%,rgba(24,14,36,calc(var(--ev-dim,.45) * .3)) 100%)}
.hc-ev-inner{position:absolute;inset:0;z-index:2;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2.4em;padding:2.4em max(7%,calc(50% - 26em)) 4.4em}
.ev-card .hc-ev-inner{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)}
.ev-card .hc-ev-title{font-size:clamp(1.8em,4.4cqw,3em)}
.ev-card .hc-ev-sum{-webkit-line-clamp:2}
.hc-ev-text{min-width:0;max-width:40em}
.hc-ev-date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:6.6em;padding:.75em 0 .85em;border-radius:1em;background:var(--white);color:var(--plum);border-top:.45em solid var(--gold);box-shadow:0 1.2em 2.4em -1.2em rgba(0,0,0,.5);line-height:1}
.hc-ev-date .ed-m{font-size:.85em;letter-spacing:.2em;text-transform:uppercase;font-weight:bold;color:var(--gold-deep)}
.hc-ev-date .ed-d{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:3.1em;line-height:1.05;margin:.06em 0 .04em}
.hc-ev-date .ed-w{font-size:.8em;letter-spacing:.14em;text-transform:uppercase;color:var(--plum-soft)}
.hc-ev .hc-eyebrow{margin-bottom:.8em}
.hc-ev-title{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:clamp(2em,5.4cqw,3.6em);line-height:1.06;letter-spacing:-.01em;margin:0 0 .4em;text-wrap:balance}
.hc-ev-meta{list-style:none;margin:0 0 .9em;padding:0;display:flex;flex-wrap:wrap;gap:.35em 1.5em;font-size:1.05em;line-height:1.4}
.hc-ev-meta li{display:flex;align-items:center;gap:.5em;min-width:0}
.hc-ev .icon{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hc-ev-meta .icon{color:var(--gold-deep)}
.hc-ev-sum{font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:600;font-size:clamp(1em,1.9cqw,1.25em);line-height:1.45;color:var(--plum-soft);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hc-ev .hc-buttons{margin-top:1.4em}
.ev-photo .hc-ev-text,.ev-plain .hc-ev-text{color:var(--white)}
.ev-photo .hc-ev-sum,.ev-plain .hc-ev-sum{color:#f3eaf4}
.ev-photo .hc-eyebrow,.ev-plain .hc-eyebrow{color:#f0d9a8}
.ev-photo .hc-ev-meta .icon,.ev-plain .hc-ev-meta .icon{color:var(--gold)}
.ev-photo .hc-ev-title{text-shadow:0 2px 24px rgba(0,0,0,.3)}
.ev-photo .btn:hover,.ev-plain .btn:hover{background:var(--white);border-color:var(--white);color:var(--plum)}
/* Photos beside the words: the main photo in front, the others tucked behind it */
.hc-ev-photos{position:relative;align-self:center;height:min(24em,100%);min-height:14em}
.hc-ev-photos img{position:absolute;object-fit:cover;border:.42em solid var(--white);border-radius:.5em;box-shadow:0 1.4em 2.6em -1.1em rgba(43,30,62,.55)}
.hc-ev-photos.n1 img{left:3%;top:6%;width:94%;height:86%;transform:rotate(1.5deg)}
.hc-ev-photos.n2 img:nth-child(1){left:0;top:12%;width:74%;height:66%;transform:rotate(-2.5deg);z-index:2}
.hc-ev-photos.n2 img:nth-child(2){right:0;top:2%;width:58%;height:54%;transform:rotate(3.5deg)}
.hc-ev-photos.n3 img:nth-child(1){left:0;top:16%;width:70%;height:62%;transform:rotate(-2deg);z-index:3}
.hc-ev-photos.n3 img:nth-child(2){right:0;top:0;width:52%;height:46%;transform:rotate(4deg)}
.hc-ev-photos.n3 img:nth-child(3){right:4%;bottom:0;width:48%;height:42%;transform:rotate(-3deg);z-index:2}
@container (max-width:719px){
  .hc-ev-inner,.ev-card .hc-ev-inner{grid-template-columns:minmax(0,1fr);align-content:center;gap:1.1em;padding:1.6em 7% 5em}
  .hc-ev-photos{display:none}
  .hc-ev-date{flex-direction:row;align-items:baseline;gap:.45em;width:auto;justify-self:start;padding:.5em .95em;border-top:0;border-left:.35em solid var(--gold);border-radius:.6em}
  .hc-ev-date .ed-d{font-size:1.45em;margin:0}
  .hc-ev-meta{flex-direction:column;font-size:.95em}
  .hc-ev-sum{-webkit-line-clamp:2}
  .ev-photo .hc-ev-shade{background:linear-gradient(180deg,rgba(24,14,36,calc(var(--ev-dim,.45) + .2)),rgba(24,14,36,calc(var(--ev-dim,.45) + .3)))}
}

/* ---------- Behaviour added by assets/site.js (.hc-js), 2026-10 ---------- */
.hero-carousel.hc-js{touch-action:pan-y}
.hc-js .hc-slide.is-active,.hc-js .hc-slide.is-leaving{will-change:opacity,transform}
.hc-instant .hc-slide{transition:none!important}
.hero-carousel.is-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}
.hero-carousel.is-dragging .hc-slide{will-change:transform}
.hc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Slide number next to the dots: "2 / 5" */
.hc-count{min-width:3.4em;padding:0 .2em;text-align:center;font:italic .82rem/1 Georgia,serif;color:var(--plum-soft);font-variant-numeric:tabular-nums;white-space:nowrap}
.hc-count b{font-style:normal;color:var(--plum)}

/* Time left: in the dot (cd-dot), a line along the bottom (cd-line), both, or neither */
.hc-line{position:absolute;z-index:4;left:0;right:0;bottom:0;height:3px;background:rgba(43,30,62,.1);pointer-events:none}
.hc-line span{display:block;height:100%;background:var(--gold);transform-origin:0 50%;transform:scaleX(0)}
.cd-line .hc-dot.is-active::after,.cd-none .hc-dot.is-active::after{background:var(--gold)}

/* Words come in one after another after the slide changes (fx-words) */
@keyframes hc-rise{from{opacity:0;translate:0 .7em}}
@keyframes hc-fade{from{opacity:0}}
.hc-motion.fx-words .hc-slide.is-shown :is(.hc-content>*,.hc-label,.hc-ev-date,.hc-ev-text>*,.hc-ev-photos){animation:hc-rise .75s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(.3s + var(--hc-n,0)*.12s)}
.hc-motion.fx-words .hc-slide.is-shown .hc-img{animation:hc-fade .9s ease backwards;animation-delay:calc(.3s + var(--hc-n,0)*.12s)}

/* Gentle depth (fx-depth): the background drifts slower than the page and away from the
   mouse; pictures in front move a little more than those behind. */
.hc-motion.fx-depth .hc-bg{scale:1.06;translate:calc(var(--hx,0)*-10px) calc(var(--hy,0)*-8px + var(--hs,0)*1px)}
.hc-motion.fx-depth .hc-img{translate:calc(var(--hx,0)*10px) calc(var(--hy,0)*8px)}
.hc-motion.fx-depth .hc-content~.hc-img{translate:calc(var(--hx,0)*22px + var(--hd,0)*8%) calc(var(--hy,0)*16px)}

@media (pointer:fine){.hc-js .hc-track{cursor:grab}.hc-js .hc-track a,.hc-js .hc-track button{cursor:pointer}}
@media (prefers-reduced-motion:reduce){.hc-slide,.t-slide .hc-slide{transition-duration:.01s!important}}
/* Phones: the "paused" note lines up with the controls on the left (after the base rules). */
@container (max-width:719px){
  .hc-status{left:0;transform:translate(0,4px);max-width:calc(100cqw - 32px)}
  .hero-carousel.is-held .hc-status{transform:none}
}
