:root{
  --paper:#141d33;
  --paper-alt:#1c2847;
  --ink:#f2ede2;
  --ink-soft:#aab4d1;
  --coral:#e8623c;
  --teal:#5fc4b8;
  --gold:#d9a441;
  --storm:#2c3e63;
  --storm-light:#7ba0dd;
  --card:#1a2645;
  --border:#33406b;
  --maxw:1120px;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', system-ui, sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
h1,h2,h3{font-family:'Playfair Display', Georgia, serif;}

::selection{background:var(--coral);color:#fff;}

header{
  position:sticky;top:0;z-index:100;
  background:rgba(20,29,51,0.88);
  backdrop-filter:blur(8px);
  border-bottom:2px solid var(--border);
}
nav{
  max-width:var(--maxw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.5rem;
}
.logo{
  display:flex;align-items:center;gap:0.7rem;
  font-family:'Playfair Display',serif;
  font-weight:700;font-size:1.5rem;
}
.logo-mark{
  height:50px;
  width:auto;
  display:block;
  transform:rotate(-6deg);
}
.nav-links{display:flex;gap:2rem;list-style:none;}
.nav-links a{
  font-size:1.15rem;font-weight:600;color:var(--ink);
  transition:color 0.2s;
  position:relative;
  display:inline-block;
  padding:0.3rem 0;
  -webkit-tap-highlight-color:rgba(232,98,60,0.25);
}
.nav-links a:hover{color:var(--coral);}
.nav-links a:active{color:var(--coral);}
.nav-links a.active{color:var(--coral);}
.nav-toggle{display:none;background:none;border:none;color:var(--ink);font-size:1.6rem;cursor:pointer;}

section{
  max-width:var(--maxw);
  margin:0 auto;
  padding:2.75rem 1.5rem 5.5rem;
  position:relative;
}

/* Hero */
.hero{
  position:relative;
  isolation:isolate;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:0.9rem;
  overflow:hidden;
  padding:2.2rem 1.4rem;
  max-width:none;
  width:100%;
  margin:0;
}
.hero-bg-fade{position:absolute;inset:0;z-index:0;}
.hero-bg-fade .hero-slide{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.06);
  transition:opacity 1.6s ease, transform 7s ease;
}
.hero-bg-fade .hero-slide.active{opacity:1;transform:scale(1);}
.hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:none;
}
.hero-content{
  position:relative;z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:0.9rem;
  max-width:900px;
}
.hero .eyebrow{
  display:inline-flex;align-items:center;gap:0.5rem;
  color:#f1eee7;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:1.15rem;
  background:none;
  padding:0.5rem 0;
  text-shadow:0 2px 6px rgba(0,0,0,0.65), 0 0 28px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.35);
  width:fit-content;
}
.hero h1{
  font-size:clamp(2.1rem,4.5vw,2.9rem);
  font-weight:800;
  line-height:1.08;
  max-width:780px;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,0.65), 0 0 28px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.35);
}
.hero h1 .accent{color:var(--gold);}
.hero p.lead{
  max-width:580px;
  color:var(--ink-soft);
  font-size:1.15rem;
}
.cta-row{display:flex;gap:1rem;margin-top:0.5rem;flex-wrap:wrap;}
.btn{
  display:inline-flex;align-items:center;gap:0.4rem;
  padding:0.85rem 1.7rem;
  border-radius:999px;
  font-weight:700;
  font-size:0.95rem;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
  border:2px solid transparent;
}
.btn-primary{
  background:var(--coral);
  color:#fff;
  box-shadow:0 6px 0 #b7492a;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 0 #b7492a;}
.hero .btn-primary{background:#5E94C8;box-shadow:0 6px 0 #3f6a97;}
.hero .btn-primary:hover{box-shadow:0 8px 0 #3f6a97;}
.btn-outline{
  border-color:var(--ink);
  color:var(--ink);
}
.btn-outline:hover{background:var(--ink);color:var(--paper);}
.btn-storm{
  background:var(--storm);
  color:#fff;
  box-shadow:0 6px 0 #1a2645;
}
.btn-storm:hover{transform:translateY(-2px);box-shadow:0 8px 0 #1a2645;}
.btn-gallery-hero{
  background:transparent;
  border:2px solid rgba(255,255,255,0.75);
  color:#fff;
  box-shadow:none;
  font-size:1.05rem;
  padding:1.05rem 2.2rem;
}
.btn-gallery-hero:hover{background:#fff;color:var(--paper);border-color:#fff;transform:translateY(-2px);}

/* Hero menu tile — a slim bar above the carousel */
.hero-menu-tile{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:0.7rem 2rem;
  background:none;
  border:none;
  padding:0.3rem 0;
  max-width:900px;
  width:100%;
  align-self:center;
}
.hero-menu-tile p.lead{
  flex:1 1 100%;
  margin:0 0 0.3rem;
  font-size:0.96rem;
  max-width:none;
}
.hero-menu-list{
  display:flex;flex-wrap:wrap;
  align-items:center;
  gap:0.35rem 1.3rem;
  margin:0;
  flex:1 1 auto;
  list-style:none;
}
.hero-menu-list a{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:0.98rem;
  color:var(--ink);
  transition:color 0.2s;
}
.hero-menu-list a:hover{color:var(--coral);}
.hero-menu-tile .cta-row{margin:0 auto;flex:0 0 auto;justify-content:center;}

/* Hero rotating carousel — the main feature */
.hero-carousel{
  position:relative;
  width:100%;
  max-width:900px;
  aspect-ratio:16/8;
  border-radius:20px;
  overflow:hidden;
  background:transparent;
  align-self:center;
}
.hero-slide{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  transition:opacity 1.4s ease;
  pointer-events:none;
}
.hero-slide.active{opacity:1;pointer-events:auto;}
.hero-slide img{width:100%;height:100%;object-fit:contain;}
.hero-slide > img{
  transform:scale(1.06);
  transition:transform 6s ease;
}
.hero-slide.active > img{transform:scale(1);}
.hero-slide-book{
  width:100%;height:100%;
  background:var(--storm);
  color:#f1eee7;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0.7rem;padding:1.5rem;text-align:center;
}
.hero-slide-book img{max-width:130px;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,0.35);}
.hero-slide-book .book-badge{margin:0;}
.hero-slide-book h3{color:#fff;font-size:1.3rem;}
.hero-slide-cta{
  width:100%;height:100%;
  background:var(--storm);
  color:#f1eee7;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0.9rem;padding:2rem;text-align:center;
}
.hero-slide-cta h3{color:#fff;font-size:1.7rem;font-family:'Playfair Display',serif;}
.hero-slide-cta p{max-width:460px;color:#d9d4ea;font-size:1rem;}
.hero-slide-cta .cta-row{justify-content:center;margin-top:0.4rem;}
.hero-carousel-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,0.55);
  border:none;color:var(--ink);
  font-size:1.8rem;line-height:1;
  width:2.4rem;height:2.4rem;border-radius:50%;
  cursor:pointer;z-index:2;
  display:flex;align-items:center;justify-content:center;
  transition:background 0.15s ease;
}
.hero-carousel-nav:hover{background:rgba(255,255,255,0.85);}
.hero-carousel-prev{left:0.7rem;}
.hero-carousel-next{right:0.7rem;}
.hero-carousel-dots{
  display:none;
  position:absolute;bottom:0.8rem;left:0;right:0;
  justify-content:center;gap:0.4rem;z-index:2;
}
.hero-carousel-dots span{
  width:7px;height:7px;border-radius:50%;
  background:rgba(255,255,255,0.55);
  cursor:pointer;
}
.hero-carousel-dots span.active{background:#fff;}
.hero-visual-row{
  display:flex;flex-direction:column;gap:1.1rem;align-items:center;
  width:100%;max-width:900px;
}

/* Section headers */
.section-head{margin-bottom:2.75rem;}
.section-head .tag{
  color:var(--coral);
  font-size:0.85rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
}
.section-head h2{
  font-size:clamp(1.8rem,4vw,2.5rem);
  margin-top:0.4rem;
}
.page-title-accent{
  font-size:clamp(2.1rem,4.5vw,2.9rem)!important;
  color:var(--coral);
}

/* Process page — teaser banner */
.process-hero{
  position:relative;
  min-height:42vh;
  min-height:42svh;
  border-radius:20px;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
}
.process-hero-bg{position:absolute;inset:0;z-index:0;}
.process-hero-bg img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 25%;
  opacity:0;
  transition:opacity 1.1s ease;
}
.process-hero-bg img.active{opacity:1;}
.process-hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(20,29,51,0.5) 0%, rgba(20,29,51,0.3) 50%, rgba(20,29,51,0.65) 100%);
}
.process-hero-title{
  position:relative;z-index:2;
  color:#fff;
  font-size:clamp(2rem,5vw,3.2rem);
  text-align:center;
  text-shadow:0 2px 24px rgba(0,0,0,0.4);
  padding:0 1.4rem;
  margin-top:7rem;
}
.section-head p.sub{color:var(--ink-soft);margin-top:0.6rem;max-width:620px;}

/* About / text pages */
.about-grid{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:3rem;
  align-items:start;
}
.about-portrait{
  width:260px;height:320px;
  border-radius:50% 50% 8% 8% / 60% 60% 8% 8%;
  background:linear-gradient(180deg,#c7d6e6,#93aac9);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  box-shadow:12px 12px 0 var(--paper-alt), 12px 12px 0 1px var(--border);
}
.about-portrait img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 15%;
}
.about-text p{color:var(--ink-soft);margin-bottom:1.1rem;font-size:1.02rem;}
.about-text-center{text-align:center;max-width:700px;margin:0 auto;}
.phase-label{color:var(--coral);font-size:1.35rem;font-weight:700;}
.text-link{color:#5B96CC;text-decoration:underline;font-weight:600;}
.text-link:hover{color:var(--storm-light);}
.about-sub{
  font-family:'Fraunces','Playfair Display',serif;
  font-style:italic;
  font-weight:500;
  color:var(--coral);
  font-size:1.2rem;
  margin:1.8rem 0 0.7rem;
}
.about-text h3.about-sub:first-child{margin-top:0;}
.about-sub.subtitle-accent{font-size:1.6rem;}
.about-sub.subtitle-accent.subtitle-lg{font-size:2.3rem;}
.about-text strong{color:var(--ink);}
.fact-row{display:flex;flex-wrap:wrap;row-gap:0.5rem;margin-top:1.6rem;padding-top:1.3rem;border-top:1px solid var(--border);}
.fact-row span{
  font-size:0.88rem;
  font-weight:600;
  color:var(--ink-soft);
  padding:0 1.2rem;
  position:relative;
}
.fact-row span:first-child{padding-left:0;}
.fact-row span:not(:first-child)::before{
  content:'';
  position:absolute;
  left:0;top:50%;
  transform:translateY(-50%);
  width:1px;height:14px;
  background:var(--border);
}

/* Book teaser */
.book-section{
  background:var(--storm);
  color:#f1eee7;
  border-radius:20px;
  max-width:640px;
  margin:2rem auto;
  padding:0;
  overflow:hidden;
}
.hero-slide .book-section{
  margin:0;
  max-width:700px;
  width:100%;
  box-shadow:0 20px 40px rgba(0,0,0,0.3);
}
.book-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  align-items:stretch;
}
.book-cover-wrap{
  background:linear-gradient(160deg,var(--paper-alt),#a8c8dc);
  display:flex;align-items:center;justify-content:center;
  padding:0.9rem;
  position:relative;
}
.book-cover-img{
  width:100%;
  max-width:210px;
  border-radius:6px;
  transform:rotate(-3deg);
  position:relative;
  z-index:1;
}
.book-content{padding:1.25rem 1.5rem;text-align:center;}
.book-badge{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  padding:0.3rem 0.75rem;
  border-radius:999px;
  margin-bottom:1rem;
}
.book-heading-block{text-align:center;}
.book-content h2{font-size:clamp(1.15rem,2vw,1.5rem);margin-bottom:0.5rem;color:#fff;line-height:1.2;}
.book-cta-row{text-align:center;margin-top:0.4rem;}
.book-cta-row .btn{padding:0.45rem 1rem;font-size:0.8rem;}
.book-content p{color:#d9d4ea;margin-bottom:0.8rem;font-size:0.92rem;}
.book-meta{
  display:flex;gap:1.2rem;flex-wrap:wrap;
  justify-content:center;
  margin:0.9rem 0;
  padding:0.8rem 0;
  border-top:1px solid rgba(255,255,255,0.15);
  border-bottom:1px solid rgba(255,255,255,0.15);
}
.book-meta div{font-size:0.85rem;}
.book-meta div b{display:block;color:#fff;font-size:0.95rem;margin-bottom:0.15rem;}
.book-meta div span{color:#b8c0dd;}

/* Gallery — category tiles */
.filter-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:0.9rem;
  margin-bottom:7.2rem;
}
.filter-btn{
  position:relative;
  aspect-ratio:4/3;
  border-radius:14px;
  overflow:hidden;
  border:2px solid transparent;
  padding:0;
  cursor:pointer;
  background:var(--card);
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.filter-btn img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
}
.filter-btn .tile-mosaic{
  position:absolute;inset:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:2px;
  background:var(--paper);
}
.filter-btn .tile-mosaic .mosaic-cell{
  position:relative;
  display:block;
  min-width:0;min-height:0;
  overflow:hidden;
}
.filter-btn .tile-mosaic .mosaic-cell img{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:cover;
}
.filter-btn .tile-label{
  position:absolute;left:0;right:0;bottom:0;
  padding:0.7rem 0.8rem 0.55rem;
  background:linear-gradient(to top, rgba(10,14,28,0.88), rgba(10,14,28,0));
  color:#fff;
  font-weight:700;
  font-size:0.85rem;
  text-align:left;
  z-index:2;
}
.filter-btn:hover{border-color:var(--coral);transform:translateY(-2px);}
.filter-btn.active{border-color:var(--coral);}
/* "Return to Gallery Menu" button: phones only */
.gallery-back-btn{
  display:none;
  scroll-margin-top:5.5rem;
  margin:0 0 1.2rem;
  padding:0.7rem 1.3rem;
  background:transparent;
  color:#fff;
  border:2px solid var(--coral);
  border-radius:999px;
  font-family:inherit;
  font-weight:700;
  font-size:0.95rem;
  cursor:pointer;
}
.gallery-back-btn:hover{background:var(--coral);}
#filterRow{scroll-margin-top:5.5rem;}
@media (max-width:760px){
  .gallery-back-btn{display:inline-block;}
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.6rem;
}
.art-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.art-card:hover{
  transform:translateY(-5px) rotate(-0.4deg);
  box-shadow:0 14px 28px rgba(43,35,32,0.12);
}
.art-thumb{
  height:190px;
  display:flex;align-items:center;justify-content:center;
  color:rgba(43,35,32,0.45);
  font-size:0.85rem;
  text-align:center;
  padding:1rem;
  font-weight:600;
}
.art-thumb.c1{background:linear-gradient(135deg,#f4d9c6,#e8623c33);}
.art-thumb.c2{background:linear-gradient(135deg,#cfe3df,#1f6f6a33);}
.art-thumb.c3{background:linear-gradient(135deg,#f2e3b8,#d9a44144);}
.art-thumb.c4{background:linear-gradient(135deg,#cbd3e8,#2c3e6333);}
.art-thumb-img{padding:0;overflow:hidden;background:#e9e2d3;cursor:zoom-in;}
.art-thumb-img img{width:100%;height:100%;object-fit:cover;}

/* Lightbox */
.lightbox{
  display:none;
  position:fixed;inset:0;
  background:rgba(20,16,12,0.92);
  z-index:1000;
  align-items:center;justify-content:center;
  padding:2rem;
}
.lightbox.open{display:flex;}
.lightbox-inner{max-width:min(90vw,900px);max-height:90vh;text-align:center;}
.lightbox-inner img{
  max-width:100%;max-height:80vh;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  margin:0 auto;
}
.lightbox-inner p{color:#f1eee7;margin-top:1rem;font-size:0.95rem;}
.lightbox-frame{position:relative;display:none;margin:0 auto;max-width:100%;}
.lightbox.emerging #lightboxImg{display:none;}
.lightbox.emerging .lightbox-frame{display:inline-block;}
.lightbox-frame img{max-width:100%;max-height:80vh;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,0.5);margin:0 auto;display:block;}
.lightbox-frame img.stage-overlay{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity var(--fade-dur, 0s) ease-in-out;
}
.lightbox-frame img.stage-overlay.active{opacity:1;}
.lightbox-cat{
  display:inline-block;margin-top:0.6rem;
  font-size:0.72rem;font-weight:800;text-transform:uppercase;letter-spacing:0.5px;
  color:#A8C5EC;background:rgba(123,160,221,0.24);
  padding:3px 9px;border-radius:10px;
}
.lightbox-close{
  position:absolute;top:1.5rem;right:1.5rem;
  background:none;border:none;
  color:#fff;font-size:2.2rem;line-height:1;
  cursor:pointer;
}
.lightbox-nav{
  position:absolute;top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.12);
  border:none;
  color:#fff;
  font-size:2.4rem;
  line-height:1;
  width:52px;height:52px;
  border-radius:50%;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background 0.15s ease;
}
.lightbox-nav:hover{background:rgba(255,255,255,0.25);}
.lightbox-prev{left:1rem;}
.lightbox-next{right:1rem;}
@media (max-width:600px){
  .lightbox-nav{width:42px;height:42px;font-size:2rem;}
  .lightbox-prev{left:0.4rem;}
  .lightbox-next{right:0.4rem;}
}
.art-body{padding:1.2rem 1.3rem 1.4rem;}
.art-body h3{font-size:1.05rem;margin-bottom:0.3rem;}
.art-body .art-meta{font-size:0.8rem;color:var(--ink-soft);font-style:italic;}
.extra-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.8rem;
}
.extra-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
}
.extra-thumb{
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e9e2d3;
  display:flex;align-items:center;justify-content:center;
  color:rgba(43,35,32,0.45);
  font-weight:600;
  padding:1rem;
  text-align:center;
  cursor:zoom-in;
}
.extra-thumb img{width:100%;height:100%;object-fit:contain;}
.extra-thumb-portrait{aspect-ratio:3/4;}

/* Emergence crossfade frames */
.emergence-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  align-items:start;
  gap:1.8rem;
  margin-top:2rem;
}
.emergence-stack{
  display:flex;
  flex-direction:column;
  gap:1.8rem;
}
.emergence-card{text-align:center;}
.emergence-frame{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  border-radius:16px;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 14px 30px rgba(0,0,0,0.25);
  cursor:zoom-in;
}
.emergence-frame-portrait{aspect-ratio:3/4;}
.emergence-frame img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
}
.emergence-frame img.stage{
  z-index:1;
  opacity:0;
  transition:opacity var(--fade-dur, 0s) ease-in-out;
}
.emergence-frame img.stage.active{
  z-index:2;
  opacity:1;
}
.emergence-caption{
  margin-top:0.8rem;
  font-family:'Fraunces','Playfair Display',serif;
  font-style:italic;
  color:var(--ink-soft);
  font-size:1rem;
}
@media(max-width:760px){
  .emergence-grid{grid-template-columns:1fr;}
}
.extra-body{padding:1.2rem 1.3rem 1.4rem;}
.extra-body h3{font-size:1.05rem;margin-bottom:0.3rem;}
.extra-body p{font-size:0.85rem;color:var(--ink-soft);}
@media(max-width:760px){
  /* Side by Side on phones: before and after always visible together.
     Landscape paintings stack (45 min above finished, full width);
     portrait paintings sit side by side. No descriptive text, no empty frame. */
  .extra-grid{grid-template-columns:1fr 1fr;gap:0.5rem;}
  .extra-card-wide{grid-column:1 / -1;}
  .extra-card{border-radius:12px;}
  .extra-thumb{aspect-ratio:auto;padding:0;background:none;display:block;}
  .extra-thumb img{width:100%;height:auto;display:block;object-fit:cover;}
  .extra-body{padding:0.45rem 0.7rem 0.6rem;}
  .extra-body h3{font-size:0.78rem;line-height:1.25;margin:0;}
  .extra-body p{display:none;}
  /* Vertical paintings use a before/after slider on phones instead of two tiny images */
  .extra-card:not(.extra-card-wide){display:none;}
  .extra-grid .ba-slider{display:block;grid-column:1 / -1;}
}

/* Before/after slider (phones only; hidden on larger screens) */
.ba-slider{display:none;}
.ba-stage{
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:12px;
  background:var(--card);
  touch-action:pan-y;
  user-select:none;-webkit-user-select:none;
}
.ba-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
}
.ba-top{clip-path:inset(0 calc(100% - var(--pos)) 0 0);}
.ba-line{
  position:absolute;top:0;bottom:0;
  left:var(--pos);
  width:2px;margin-left:-1px;
  background:#fff;
  box-shadow:0 0 6px rgba(0,0,0,0.5);
  pointer-events:none;
}
.ba-knob{
  position:absolute;top:50%;
  left:var(--pos);
  width:42px;height:42px;margin:-21px 0 0 -21px;
  border-radius:50%;
  background:#fff;color:var(--paper);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;font-weight:700;
  box-shadow:0 2px 10px rgba(0,0,0,0.45);
  pointer-events:none;
}
.ba-tag{
  position:absolute;top:0.6rem;
  padding:0.25rem 0.6rem;
  border-radius:999px;
  background:rgba(20,29,51,0.7);
  color:#fff;
  font-size:0.75rem;font-weight:700;
  pointer-events:none;
}
.ba-tag-left{left:0.6rem;}
.ba-tag-right{right:0.6rem;}
.ba-range{
  position:absolute;inset:0;
  width:100%;height:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
  touch-action:pan-y;
  -webkit-appearance:none;appearance:none;
}
.ba-caption{
  margin:0.45rem 0 0.9rem;
  text-align:center;
  font-size:0.8rem;
  color:var(--ink-soft);
}

/* Gallery-page bottom carousels, side by side */
.gallery-extras-row{
  display:flex;flex-wrap:wrap;gap:3rem;
  margin-top:4rem;
  padding-top:3rem;
  border-top:1px solid var(--border);
}
.gallery-extras-row > div{flex:1;min-width:300px;}

.closeup-carousel{
  display:flex;align-items:center;justify-content:center;gap:1rem;
  max-width:600px;margin:0 auto;
}
.closeup-viewport{
  width:100%;aspect-ratio:4/3;
  background:#e9e2d3;border-radius:16px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  color:rgba(43,35,32,0.45);font-weight:600;text-align:center;padding:1rem;
  position:relative;
}
.closeup-viewport img{width:100%;height:100%;object-fit:contain;}
.closeup-nav{
  background:var(--card);border:1px solid var(--border);border-radius:50%;
  width:2.6rem;height:2.6rem;flex-shrink:0;
  font-size:1.4rem;color:var(--ink);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background 0.2s;
}
.closeup-nav:hover{background:var(--paper-alt);}
.closeup-counter{
  text-align:center;margin-top:0.8rem;
  font-size:0.8rem;color:var(--ink-soft);
}
.art-cat{
  display:block;
  margin-top:0.35rem;
  font-size:0.72rem;font-weight:800;text-transform:uppercase;letter-spacing:0.5px;
  color:#A8C5EC;
}

/* Contact */
.contact-box{
  background:linear-gradient(135deg,var(--card),var(--paper-alt));
  border:2px dashed var(--border);
  border-radius:24px;
  padding:3rem 2.5rem;
  text-align:center;
}
.contact-box h2{font-size:2rem;margin-bottom:0.7rem;}
.contact-box p{color:var(--ink-soft);margin-bottom:1.8rem;max-width:480px;margin-left:auto;margin-right:auto;}
.contact-links{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;}
.press-note{
  margin-top:1.8rem;
  font-size:0.85rem;
  color:var(--ink-soft);
}

footer{
  text-align:center;
  padding:2rem 1.5rem;
  color:var(--ink-soft);
  font-size:0.85rem;
  border-top:2px solid var(--border);
}

@media (max-width:760px){
  .nav-links{
    position:absolute;top:100%;left:0;right:0;
    background:var(--paper);
    flex-direction:column;
    padding:1.5rem;
    gap:1rem;
    display:none;
    border-bottom:2px solid var(--border);
  }
  .nav-links.open{display:flex;}
  .nav-links a{display:block;width:100%;padding:0.7rem 0.2rem;}
  .nav-toggle{display:block;}
  .about-grid{grid-template-columns:1fr;}
  .about-portrait{width:200px;height:250px;margin:0 auto;box-shadow:none;}
  .book-inner{grid-template-columns:1fr;}
  .book-cover-wrap{padding:1.25rem 1rem;}
  .hero-visual-row{flex-direction:column;}

  /* Keep the hero's book tile fully visible on narrow screens, with a bigger cover */
  .hero-carousel{aspect-ratio:2/3;}
  .hero-slide .book-section{max-height:100%;overflow-y:auto;overflow-x:hidden;}
  .hero-slide .book-inner{grid-template-columns:1fr;}
  .hero-slide .book-cover-wrap{padding:1.1rem 1rem 0.3rem;}
  .hero-slide .book-cover-img{max-width:190px;}
  .hero-slide .book-content{padding:0.7rem 1.1rem 1rem;}
  .hero-slide .book-content h2{font-size:1.15rem;margin-bottom:0.4rem;}
  .hero-slide .book-content p{font-size:0.85rem;margin-bottom:0.6rem;}
  .hero-slide .book-meta{gap:0.7rem 1.2rem;margin:0.6rem 0;padding:0.6rem 0;}
  .hero-slide .book-meta div{font-size:0.78rem;}
  .hero-slide .book-meta div b{font-size:0.88rem;}
  .hero-slide .book-badge{font-size:0.65rem;padding:0.25rem 0.6rem;}
  .hero-slide .book-cta-row .btn{padding:0.5rem 1rem;font-size:0.82rem;}
}
