
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Inter:wght@400;500;600&display=swap');

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#0a0a0a;color:#fff;font-family:Inter,Arial,sans-serif}
body{overflow-x:hidden}
button,a{font:inherit;color:inherit}
a{text-decoration:none}

.site-header{
  position:fixed;z-index:40;left:0;right:0;top:0;height:80px;
  padding:0 4vw;display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;color:#fff;mix-blend-mode:difference;pointer-events:none
}
.site-header>*{pointer-events:auto}
.brand{display:flex;flex-direction:column;line-height:.9;justify-self:start}
.brand>span{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:31px;letter-spacing:-.04em}
.brand small{margin-top:7px;font-size:7px;letter-spacing:.28em}
.hint{justify-self:end;font-size:8px;letter-spacing:.2em;text-transform:uppercase}

.state-nav{display:flex;gap:24px}
.state-nav button{
  border:0;background:none;padding:8px 0;color:rgba(255,255,255,.54);
  text-transform:uppercase;letter-spacing:.15em;font-size:8px;cursor:pointer;
  transition:color .5s ease
}
.state-nav button.active{color:white}

.scroll-runway{position:relative;height:100vh}
.sticky-stage{
  position:sticky;top:0;width:100%;height:100vh;overflow:hidden;background:#111
}
#morphCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.shade{
  position:absolute;z-index:2;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.10) 50%,rgba(0,0,0,.28)),
    linear-gradient(0deg,rgba(0,0,0,.38),transparent 42%)
}

.state{
  position:absolute;z-index:8;left:7vw;top:50%;
  width:min(610px,48vw);
  opacity:0;transform:translateY(-40%) scale(.985);
  pointer-events:none;will-change:opacity,transform;
}
.state h1{
  margin:12px 0 20px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(72px,9vw,148px);
  line-height:.76;font-weight:400;letter-spacing:-.055em
}
.kicker{margin:0;font-size:9px;letter-spacing:.26em;text-transform:uppercase;font-weight:600}
.lead{max-width:440px;color:rgba(255,255,255,.72);line-height:1.65;font-size:14px}
.state.active{opacity:1}

.gallery-tiles,.portrait-card,.workshop-strip,.contact-panel{
  position:absolute;z-index:6;opacity:0;pointer-events:none;will-change:opacity,transform
}

.gallery-tiles{
  right:7vw;top:50%;transform:translateY(-44%);
  display:grid;grid-template-columns:repeat(3,11vw);gap:12px
}
.tile{height:26vw;max-height:430px;background-size:cover;background-position:center}
.t1{background-image:url("assets/art-blue.jpg")}
.t2{background-image:url("assets/art-gold.jpg")}
.t3{background-image:url("assets/detail-blue.jpg")}

.portrait-card{
  right:8vw;top:50%;transform:translateY(-44%);
  width:30vw;max-width:470px
}
.portrait{
  aspect-ratio:4/5;background:
    linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12)),
    url("assets/art-gold.jpg") center/cover
}
.portrait-card span{
  display:block;margin-top:12px;font-size:8px;letter-spacing:.18em;text-transform:uppercase
}

.workshop-strip{
  right:6vw;bottom:10vh;display:flex;gap:10px;transform:translateX(5vw)
}
.ws{width:11vw;height:15vw;min-width:95px;min-height:130px;background-size:cover;background-position:center}
.w1{background-image:url("assets/detail-blue.jpg")}
.w2{background-image:url("assets/art-gold.jpg")}
.w3{background-image:url("assets/art-blue.jpg")}

.contact-panel{
  right:8vw;top:50%;transform:translateY(-45%);
  width:30vw;min-width:290px
}
.contact-panel a{
  display:block;padding:22px 0;border-bottom:1px solid rgba(255,255,255,.35);
  font-family:"Cormorant Garamond",Georgia,serif;font-size:32px
}

.side-progress{
  position:absolute;z-index:12;right:28px;top:50%;transform:translateY(-50%);
  height:330px;display:grid;grid-template-rows:auto 1fr auto;gap:12px;
  align-items:center;font-size:8px
}
.line{position:relative;width:1px;height:100%;background:rgba(255,255,255,.28);justify-self:center}
.line i{position:absolute;left:-1px;top:0;width:3px;height:0;background:white}

.bottom-state{
  position:absolute;z-index:12;left:7vw;right:7vw;bottom:28px;
  display:flex;justify-content:space-between;font-size:8px;
  text-transform:uppercase;letter-spacing:.2em;color:rgba(255,255,255,.72)
}

@media(max-width:850px){
  .site-header{grid-template-columns:1fr auto}
  .state-nav{display:none}
  .hint{grid-column:2}
  .scroll-runway{height:100vh}
  .state{left:6vw;width:82vw}
  .state h1{font-size:20vw}
  .portrait-card{right:6vw;top:17vh;width:44vw}
  .gallery-tiles{right:5vw;bottom:8vh;top:auto;transform:none;grid-template-columns:repeat(3,24vw)}
  .tile{height:32vw}
  .workshop-strip{right:5vw}
  .ws{width:23vw;height:31vw}
  .contact-panel{left:6vw;right:auto;top:67vh;width:82vw;transform:none}
  .side-progress{right:10px;height:220px}
}


/* Caribbean palette accents */
.state-nav button.active,
.kicker,
.brand small {
  color: #d6a24a;
}
.line i {
  background: #d6a24a;
}
.bottom-state {
  color: rgba(255,255,255,.82);
}

/* Curaçao tone refinement */
.shade{
  background:
    linear-gradient(90deg,rgba(2,21,29,.68),rgba(2,21,29,.10) 50%,rgba(2,21,29,.22)),
    linear-gradient(0deg,rgba(5,28,35,.28),transparent 42%);
}


/* ------------------------------------------------------------
   MOBILE CONTACT FIX
   Contact copy and social links use separate vertical zones.
   ------------------------------------------------------------ */
@media(max-width:850px){
  .state-contact{
    top:34%;
    left:6vw;
    width:82vw;
    transform:translateY(-50%);
  }

  .state-contact h1{
    margin-bottom:16px;
  }

  .state-contact .lead{
    max-width:78vw;
    font-size:14px;
    line-height:1.55;
    margin-bottom:0;
  }

  .contact-panel{
    left:6vw;
    right:8vw;
    top:56%;
    bottom:auto;
    width:auto;
    min-width:0;
    transform:none !important;
    z-index:10;
  }

  .contact-panel a{
    display:block;
    padding:18px 0;
    border-bottom:1px solid rgba(255,255,255,.38);
    font-size:clamp(30px,9vw,44px);
    line-height:1;
  }

  .bottom-state{
    bottom:24px;
  }
}

/* Extra room for short iPhone screens */
@media(max-width:850px) and (max-height:740px){
  .state-contact{
    top:30%;
  }

  .state-contact h1{
    font-size:17vw;
    margin-bottom:10px;
  }

  .state-contact .lead{
    font-size:12px;
    line-height:1.4;
  }

  .contact-panel{
    top:52%;
  }

  .contact-panel a{
    padding:13px 0;
    font-size:30px;
  }
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.scroll-runway {
  height: 100vh !important;
}


/* Strict one-gesture navigation */
html, body, .sticky-stage, .scroll-runway {
  overscroll-behavior: none;
}
.sticky-stage {
  touch-action: none;
}


/* ============================================================
   MOBILE FULL-VIEWPORT FIX
   Use the dynamic viewport so browser toolbars never leave
   an uncovered black strip at the bottom.
   ============================================================ */
html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #071b22;
}

.scroll-runway {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

.sticky-stage {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

#morphCanvas,
.shade {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Fallback for browsers without dvh */
@supports not (height: 100dvh) {
  html,
  body,
  .scroll-runway,
  .sticky-stage {
    height: 100%;
    min-height: 100%;
  }
}


/* ============================================================
   FINAL MOBILE VIEWPORT HEIGHT FIX
   --app-height is set from visualViewport.height / innerHeight.
   ============================================================ */
:root {
  --app-height: 100vh;
}

html,
body {
  width: 100%;
  height: var(--app-height) !important;
  min-height: var(--app-height) !important;
  max-height: var(--app-height) !important;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  background: #071b22;
}

.scroll-runway,
.sticky-stage {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: var(--app-height) !important;
  min-height: var(--app-height) !important;
  max-height: var(--app-height) !important;
  overflow: hidden !important;
}

#morphCanvas,
.shade {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}


/* ============================================================
   INTERACTIVE GALLERY
   Always 3 visible; horizontal scroll reveals further works.
   ============================================================ */
.gallery-tiles {
  display: none !important;
}

.gallery-shell{
  position:absolute;
  z-index:10;
  right:5.5vw;
  top:50%;
  transform:translateY(-38%);
  width:min(58vw,900px);
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 42px;
  gap:10px;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.gallery-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -ms-overflow-style:none;
  overscroll-behavior-x:contain;
  touch-action:pan-x;
  padding:8px 0 14px;
}
.gallery-track::-webkit-scrollbar{display:none}

.gallery-card{
  flex:0 0 calc((100% - 28px)/3);
  min-width:0;
  scroll-snap-align:start;
  cursor:pointer;
  border:0;
  padding:0;
  background:transparent;
  color:white;
  text-align:left;
}
.gallery-card-image{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  display:block;
  border:1px solid rgba(255,255,255,.28);
  transition:transform .28s ease, border-color .28s ease;
}
.gallery-card:hover .gallery-card-image{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.72);
}
.gallery-card-title{
  display:block;
  margin-top:9px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:17px;
  line-height:1;
}
.gallery-card-meta{
  display:block;
  margin-top:4px;
  font-size:7px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
}

.gallery-arrow{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(0,0,0,.16);
  color:#fff;
  font-family:Georgia,serif;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(6px);
}
.gallery-arrow:disabled{
  opacity:.25;
  cursor:default;
}

/* Fullscreen artwork viewer */
.art-lightbox{
  position:fixed;
  z-index:1000;
  inset:0;
  width:100%;
  height:var(--app-height,100dvh);
  display:grid;
  grid-template-columns:64px 1fr 64px;
  align-items:center;
  background:rgba(3,18,23,.96);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease;
}
.art-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.lightbox-stage{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:70px 16px 38px;
  touch-action:pan-y;
}
.lightbox-stage img{
  display:block;
  max-width:min(86vw,1000px);
  max-height:calc(var(--app-height,100dvh) - 190px);
  width:auto;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}
.lightbox-caption{
  width:min(86vw,1000px);
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 20px;
  align-items:end;
  padding-top:18px;
  color:white;
}
.lightbox-caption h2{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(30px,5vw,52px);
  font-weight:400;
  line-height:1;
}
.lightbox-caption p{
  grid-column:1;
  margin:0;
  color:rgba(255,255,255,.65);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.lightbox-caption span{
  grid-column:2;
  grid-row:1/3;
  align-self:end;
  font-size:9px;
  letter-spacing:.15em;
}
.lightbox-nav,.lightbox-close{
  border:0;
  color:white;
  background:transparent;
  cursor:pointer;
}
.lightbox-nav{
  width:56px;
  height:56px;
  font-family:Georgia,serif;
  font-size:46px;
}
.lightbox-close{
  position:absolute;
  z-index:3;
  top:22px;
  right:26px;
  width:48px;
  height:48px;
  font-size:34px;
  line-height:1;
}

@media(max-width:850px){
  .gallery-shell{
    left:16vw;
    right:auto;
    top:auto;
    bottom:12vh;
    width:79vw;
    transform:none !important;
    grid-template-columns:1fr;
    gap:0;
  }

  .gallery-track{
    gap:10px;
    padding:4px 0 10px;
  }

  .gallery-card{
    flex-basis:calc((100% - 20px)/3);
  }

  .gallery-card-title,
  .gallery-card-meta{
    display:none;
  }

  .gallery-arrow{
    display:none;
  }

  .art-lightbox{
    grid-template-columns:1fr;
  }

  .lightbox-nav{
    position:absolute;
    z-index:4;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:54px;
    background:rgba(0,0,0,.18);
    border-radius:22px;
    font-size:38px;
  }
  .lightbox-prev{left:6px}
  .lightbox-next{right:6px}

  .lightbox-stage{
    padding:64px 12px 26px;
    touch-action:none;
  }

  .lightbox-stage img{
    max-width:92vw;
    max-height:calc(var(--app-height,100dvh) - 165px);
  }

  .lightbox-caption{
    width:92vw;
    padding:14px 4px 0;
  }

  .lightbox-caption h2{
    font-size:34px;
  }
}


/* Artist profile image uploaded from admin */
.portrait.has-profile-image{
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}


/* Workshop cards loaded from admin */
.workshop-card{
  position:relative;
  overflow:hidden;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
.workshop-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.68),transparent 58%);
}
.workshop-card-overlay{
  position:absolute;
  z-index:2;
  left:12px;
  right:12px;
  bottom:12px;
  color:white;
}
.workshop-card-overlay h3{
  margin:0 0 4px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:20px;
  font-weight:400;
  line-height:1;
}
.workshop-card-overlay p{
  margin:0;
  font-size:7px;
  line-height:1.35;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.72);
}


/* ============================================================
   WORKSHOP DETAIL VIEWER
   Vertical scroll for long text + horizontal swipe between items.
   ============================================================ */

.workshop-card{
  border:0;
  padding:0;
  color:white;
  text-align:left;
  cursor:pointer;
}
.workshop-card-short{
  margin-top:7px !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-transform:none !important;
  letter-spacing:0 !important;
  font-size:9px !important;
  line-height:1.35 !important;
  color:rgba(255,255,255,.82) !important;
}

.workshop-lightbox{
  position:fixed;
  z-index:1100;
  inset:0;
  width:100%;
  height:var(--app-height,100dvh);
  display:grid;
  grid-template-columns:60px minmax(0,1fr) 60px;
  align-items:center;
  background:rgba(4,19,23,.96);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease;
}
.workshop-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.workshop-lightbox-card{
  width:min(1080px,88vw);
  height:min(86vh,820px);
  max-height:calc(var(--app-height,100dvh) - 80px);
  justify-self:center;
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);
  overflow:hidden;
  background:#f2ece2;
  color:#17333b;
}
.workshop-lightbox-image-wrap{
  min-width:0;
  height:100%;
  background:#0a2026;
}
.workshop-lightbox-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.workshop-lightbox-content{
  min-width:0;
  height:100%;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:44px 44px 50px;
}
.workshop-lightbox-kicker{
  margin:0 0 10px;
  color:#b98532;
  font-size:9px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.workshop-lightbox-content h2{
  margin:0 0 13px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(46px,6vw,78px);
  font-weight:400;
  line-height:.88;
}
.workshop-lightbox-meta{
  margin:0 0 24px;
  color:#657176;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  line-height:1.5;
}
.workshop-lightbox-short{
  margin:0 0 28px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:26px;
  line-height:1.15;
  color:#31535a;
}
.workshop-lightbox-description{
  padding-top:22px;
  border-top:1px solid rgba(20,50,58,.18);
  font-size:15px;
  line-height:1.72;
  color:#40575c;
}
.workshop-lightbox-description p{
  margin:0 0 20px;
}
.workshop-lightbox-counter{
  margin-top:38px;
  padding-top:18px;
  border-top:1px solid rgba(20,50,58,.18);
  font-size:9px;
  letter-spacing:.15em;
}
.workshop-lightbox-nav,.workshop-lightbox-close{
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.workshop-lightbox-nav{
  width:52px;
  height:58px;
  font-family:Georgia,serif;
  font-size:44px;
}
.workshop-lightbox-close{
  position:absolute;
  z-index:3;
  top:20px;
  right:22px;
  width:48px;
  height:48px;
  font-size:34px;
}

@media(max-width:850px){
  .workshop-lightbox{
    grid-template-columns:1fr;
  }

  .workshop-lightbox-card{
    width:100%;
    height:var(--app-height,100dvh);
    max-height:none;
    grid-template-columns:1fr;
    grid-template-rows:42% 58%;
  }

  .workshop-lightbox-image-wrap{
    height:100%;
  }

  .workshop-lightbox-content{
    padding:26px 24px 44px;
  }

  .workshop-lightbox-content h2{
    font-size:44px;
  }

  .workshop-lightbox-short{
    font-size:22px;
  }

  .workshop-lightbox-description{
    font-size:14px;
  }

  .workshop-lightbox-nav{
    position:absolute;
    z-index:4;
    top:22%;
    transform:translateY(-50%);
    width:42px;
    height:52px;
    border-radius:22px;
    background:rgba(0,0,0,.22);
  }
  .workshop-lightbox-prev{left:6px}
  .workshop-lightbox-next{right:6px}

  .workshop-lightbox-close{
    top:10px;
    right:10px;
    background:rgba(0,0,0,.22);
    border-radius:50%;
  }
}


/* Workshop click interaction fix */
#workshopStrip{
  z-index: 9 !important;
}
#workshopStrip .workshop-card{
  position: relative;
  z-index: 16;
  pointer-events: auto !important;
  touch-action: manipulation;
}
#workshopStrip .workshop-card *{
  pointer-events: none;
}
.workshop-lightbox{
  z-index: 5000 !important;
}
.workshop-lightbox.open{
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* Workshop video */
.workshop-video-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:0 0 26px;
  padding:0 18px;
  border:1px solid #b98532;
  background:transparent;
  color:#8a5b18;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.13em;
  cursor:pointer;
}
.workshop-video-link[hidden]{
  display:none !important;
}

.video-lightbox{
  position:fixed;
  z-index:7000;
  inset:0;
  width:100%;
  height:var(--app-height,100dvh);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.96);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}
.video-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.video-lightbox video{
  width:min(96vw,1200px);
  max-height:calc(var(--app-height,100dvh) - 40px);
  background:#000;
}
.video-lightbox-close{
  position:absolute;
  z-index:2;
  top:14px;
  right:14px;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:32px;
  cursor:pointer;
}

@media(max-width:850px){
  .video-lightbox{
    padding:0;
  }
  .video-lightbox video{
    width:100vw;
    max-height:var(--app-height,100dvh);
  }
}


/* Minimalistische laadintro */
.site-preloader{
  position:fixed;
  z-index:10000;
  inset:0;
  width:100%;
  height:var(--app-height,100dvh);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#071b22;
  color:#fff;
  opacity:1;
  visibility:visible;
  transition:opacity .45s ease, visibility .45s ease;
}
.site-preloader.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.site-preloader-inner{
  width:min(360px,72vw);
  text-align:center;
}
.site-preloader-brand{
  margin-bottom:22px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:36px;
  font-style:italic;
  letter-spacing:-.03em;
}
.site-preloader-track{
  width:100%;
  height:1px;
  background:rgba(255,255,255,.20);
  overflow:hidden;
}
.site-preloader-bar{
  width:0%;
  height:1px;
  background:#d6a24a;
  transition:width .22s ease;
}
.site-preloader-label{
  margin-top:10px;
  font-size:8px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
body.is-loading{
  overflow:hidden !important;
}
body.site-ready .sticky-stage{
  animation:siteReveal .7s ease both;
}
@keyframes siteReveal{
  from{opacity:.88;transform:scale(1.008)}
  to{opacity:1;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .site-preloader,
  .site-preloader-bar,
  body.site-ready .sticky-stage{
    transition:none;
    animation:none;
  }
}


/* Mobile preloader visibility fix */
.site-preloader{
  height:100dvh !important;
  min-height:100dvh !important;
}
@supports not (height:100dvh){
  .site-preloader{
    height:100vh !important;
    min-height:100vh !important;
  }
}


/* Mobile natural-thumb swipe fix
   Vertical state navigation is allowed over Gallery and Workshop visuals.
   Gallery keeps horizontal panning for its carousel. */
#galleryTrack{
  touch-action: pan-x;
}
#workshopStrip,
#workshopStrip .workshop-card{
  touch-action: none !important;
}

/* 2026-08-28: clearer desktop navigation */
.state-nav button{color:#fff !important;font-size:11px !important;font-weight:600;text-shadow:0 1px 5px rgba(0,0,0,.45)}
.state-nav button.active{color:#fff !important;font-weight:800}
.gallery-card{position:relative}
.gallery-series-badge{position:absolute;top:10px;right:10px;z-index:2;background:rgba(8,35,43,.86);color:#fff;border-radius:999px;padding:6px 9px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;pointer-events:none}
@media(max-width:116px){.state-nav button{font-size:10px !important}}


/* 2026-08-28: Home logo + clearly visible main navigation */
.site-header .state-nav button,
.site-header .state-nav button:not(.active),
.site-header .state-nav button.active {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.site-header .state-nav button.active{
  border-bottom: 1px solid rgba(255,255,255,.95);
}

.site-logo{
  display:block;
  width:auto;
  max-width:180px;
  max-height:64px;
  object-fit:contain;
  object-position:left center;
}
.site-logo[hidden]{display:none !important}
#siteLogoFallback[hidden],
#siteLogoSubline[hidden]{display:none !important}

@media(max-width:850px){
  .site-header .state-nav button,
  .site-header .state-nav button:not(.active),
  .site-header .state-nav button.active{
    font-size:10px !important;
  }
  .site-logo{
    max-width:145px;
    max-height:54px;
  }
}


/* ===== TisArt nav visibility / active state ===== */
.site-header .state-nav{
  display:flex !important;
  gap:24px;
  align-items:center;
  justify-content:center;
}

.site-header .state-nav button,
.site-header .state-nav button:not(.active),
.site-header .state-nav button.active{
  position:relative;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
  font-size:11px !important;
  font-weight:600 !important;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
  padding:10px 0 8px !important;
}

.site-header .state-nav button::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:2px;
  height:1.5px;
  background:#fff;
  transition:right .24s ease;
}

.site-header .state-nav button.active::after{
  right:0;
}

@media(max-width:850px){
  .site-header{
    grid-template-columns:auto 1fr !important;
    gap:10px;
    height:auto !important;
    min-height:72px;
    padding:10px 4vw 8px !important;
    align-items:start !important;
  }

  .site-header .brand{
    grid-column:1;
    grid-row:1;
    align-self:start;
  }

  .site-header .state-nav{
    display:flex !important;
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    gap:0 !important;
    justify-content:space-between;
    align-items:center;
    margin-top:7px;
    overflow:visible;
  }

  .site-header .state-nav button,
  .site-header .state-nav button:not(.active),
  .site-header .state-nav button.active{
    flex:0 1 auto;
    min-width:0;
    font-size:9px !important;
    letter-spacing:.12em;
    padding:8px 2px 7px !important;
  }

  /* remove the old top-right scroll hint on mobile */
  .site-header .hint{
    display:none !important;
  }
}

@media(max-width:420px){
  .site-header .state-nav button,
  .site-header .state-nav button:not(.active),
  .site-header .state-nav button.active{
    font-size:8px !important;
    letter-spacing:.08em;
  }
}

@media(max-width:850px){
  .bottom-state span:last-child{
    display:none !important;
  }
}

/* ===== first interaction swipe hint ===== */
.first-swipe-hint{
  position:fixed;
  z-index:80;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:64px;
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:1;
  transition:opacity .32s ease, transform .32s ease;
}

.first-swipe-hint.is-hidden{
  opacity:0;
  transform:translate(-50%,-46%);
}

.first-swipe-icon{
  position:relative;
  width:38px;
  height:62px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:22px;
  background:rgba(3,24,30,.18);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

.first-swipe-icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:14px;
  width:4px;
  height:16px;
  border-radius:4px;
  background:#fff;
  transform:translateX(-50%);
  animation:tisSwipeDot 1.35s ease-in-out infinite;
}

.chev{
  position:absolute;
  left:50%;
  width:10px;
  height:10px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:translateX(-50%) rotate(45deg);
  opacity:.9;
}
.chev-top{bottom:15px}
.chev-bottom{bottom:8px;opacity:.5}

@keyframes tisSwipeDot{
  0%{transform:translate(-50%,0);opacity:.3}
  45%{opacity:1}
  100%{transform:translate(-50%,16px);opacity:0}
}

@media(prefers-reduced-motion:reduce){
  .first-swipe-icon::before{animation:none}
}

/* ===== smoother Gallery slider ===== */
#galleryTrack{
  scroll-behavior:smooth !important;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
}
#galleryTrack > *{
  scroll-snap-align:center;
  scroll-snap-stop:normal;
}


/* ===== FINAL DESKTOP NAV FIX ===== */
.site-header{
  mix-blend-mode: normal !important;
}

.site-header .state-nav,
.site-header .state-nav *{
  mix-blend-mode: normal !important;
}

.site-header .state-nav button,
.site-header .state-nav button:hover,
.site-header .state-nav button:focus,
.site-header .state-nav button:active,
.site-header .state-nav button.active,
.site-header .state-nav button:not(.active){
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:0 1px 3px rgba(0,0,0,.35) !important;
}

.site-header .state-nav button::after{
  background:#ffffff !important;
}

/* scroll labels removed on all viewport sizes */
.site-header .hint,
.bottom-state span:last-child{
  display:none !important;
}


/* ===== MOBILE SWIPE HINT: label + up/down ===== */
.first-swipe-hint{
  position:fixed;
  z-index:80;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  pointer-events:none;
  opacity:1;
  transition:opacity .32s ease, transform .32s ease;
}

.first-swipe-label{
  font-size:11px;
  letter-spacing:.22em;
  font-weight:600;
  color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}

.first-swipe-icon{
  position:relative;
  width:46px;
  height:78px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:24px;
  background:rgba(3,24,30,.18);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

.swipe-arrow{
  position:absolute;
  left:50%;
  width:12px;
  height:12px;
  border-left:2px solid #fff;
  border-top:2px solid #fff;
  opacity:.9;
}

.swipe-arrow-up{
  top:13px;
  transform:translateX(-50%) rotate(45deg);
}

.swipe-arrow-down{
  bottom:13px;
  transform:translateX(-50%) rotate(225deg);
}

.swipe-dot{
  position:absolute;
  left:50%;
  top:50%;
  width:5px;
  height:18px;
  border-radius:4px;
  background:#fff;
  transform:translate(-50%,-50%);
  animation:tisSwipeBounce 1.35s ease-in-out infinite;
}

@keyframes tisSwipeBounce{
  0%,100%{transform:translate(-50%,-50%) translateY(-8px);opacity:.35}
  50%{transform:translate(-50%,-50%) translateY(8px);opacity:1}
}

/* Show this helper only on mobile/touch-sized layouts */
@media(min-width:851px){
  .first-swipe-hint{display:none !important}
}


/* ===== Gallery: continuous, not jumpy ===== */
#galleryTrack{
  scroll-behavior:auto !important;
  scroll-snap-type:none !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
#galleryTrack > *{
  scroll-snap-align:none !important;
  scroll-snap-stop:normal !important;
}


/* V4: mobile swipe hint points upward only */
.swipe-arrow-down{display:none !important}
.first-swipe-icon{
  height:68px !important;
}
.swipe-arrow-up{
  top:12px !important;
}
.swipe-dot{
  top:56% !important;
  height:16px !important;
  animation:tisSwipeUp 1.25s ease-in-out infinite !important;
}
@keyframes tisSwipeUp{
  0%{transform:translate(-50%,-50%) translateY(9px);opacity:.25}
  55%{opacity:1}
  100%{transform:translate(-50%,-50%) translateY(-10px);opacity:0}
}


/* V4: smooth horizontal Gallery viewer transition */
#lightboxImage{
  transform:translateX(0);
  opacity:1;
  transition:transform .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease;
  will-change:transform,opacity;
}
#lightboxImage.slide-left{
  transform:translateX(-18%);
  opacity:.28;
}
#lightboxImage.slide-right{
  transform:translateX(18%);
  opacity:.28;
}
#lightboxImage.slide-enter-right{
  transform:translateX(18%);
  opacity:.28;
  transition:none !important;
}
#lightboxImage.slide-enter-left{
  transform:translateX(-18%);
  opacity:.28;
  transition:none !important;
}


/* ===== Contact state managed from admin ===== */
.contact-state-link{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:26px;
  color:#fff !important;
  text-decoration:none;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.contact-state-link::after{
  content:"";
  display:block;
  width:100%;
  min-width:130px;
  height:2px;
  background:#fff;
}
.contact-state-link:hover{
  opacity:.86;
}


/* ===== Contact V2: title left, managed links right ===== */
.state-contact{
  display:grid !important;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  align-items:center;
  column-gap:clamp(60px,10vw,180px);
}
.state-contact .contact-left{
  align-self:center;
}
.state-contact .contact-links{
  width:100%;
  max-width:440px;
  justify-self:end;
}
.state-contact .contact-links a{
  display:block;
  padding:22px 0 24px;
  border-bottom:1px solid rgba(255,255,255,.28);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-decoration:none;
  font-family:Georgia,serif;
  font-size:clamp(22px,2.1vw,31px);
  line-height:1;
  transition:padding-left .35s ease, opacity .25s ease;
}
.state-contact .contact-links a:hover{
  padding-left:12px;
  opacity:.82;
}
/* Old single contact link is no longer used */
.contact-state-link{display:none !important}

@media(max-width:850px){
  .state-contact{
    grid-template-columns:1fr !important;
    align-content:center;
    gap:38px;
  }
  .state-contact .contact-links{
    max-width:none;
    justify-self:stretch;
  }
  .state-contact .contact-links a{
    font-size:23px;
    padding:17px 0 19px;
  }
}


/* ===== CONTACT FINAL CLEANUP ===== */
.contact-panel,
.contact-links-static{
  display:none !important;
}

.state-contact{
  display:grid !important;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr) !important;
  align-items:center !important;
  column-gap:clamp(70px,10vw,180px) !important;
}

.state-contact .contact-left{
  min-width:0;
}

.state-contact .contact-links{
  display:block !important;
  position:static !important;
  width:100% !important;
  max-width:440px !important;
  justify-self:end !important;
  opacity:1 !important;
  transform:none !important;
  pointer-events:auto !important;
}

.state-contact .contact-links a{
  display:block !important;
  width:100% !important;
  padding:22px 0 24px !important;
  border-bottom:1px solid rgba(255,255,255,.28) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-decoration:none !important;
  font-family:Georgia,serif !important;
  font-size:clamp(22px,2.1vw,31px) !important;
  line-height:1 !important;
}

@media(max-width:850px){
  .state-contact{
    grid-template-columns:1fr !important;
    gap:34px !important;
  }
  .state-contact .contact-links{
    max-width:none !important;
    justify-self:stretch !important;
  }
}


/* ===== SCROLL/STATES FIX =====
   Keep Contact state compatible with the same transform/opacity animation
   used for Home, Artist, Gallery and Workshops. */
.state-contact{
  position:absolute !important;
  z-index:8 !important;
  left:7vw !important;
  top:50% !important;
  width:86vw !important;
  max-width:none !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr) !important;
  align-items:center !important;
  column-gap:clamp(70px,10vw,180px) !important;
  pointer-events:none;
  will-change:opacity,transform;
}

.state-contact.active{
  pointer-events:auto;
}

@media(max-width:850px){
  .state-contact{
    left:6vw !important;
    width:88vw !important;
    grid-template-columns:1fr !important;
    gap:34px !important;
  }
}
