/* MasqproT.com - Masquerade Protocol */
/* Palette: #FAFAF7 cream, #3B2F2F bark, #2D5016 moss, #FFB7C5 blush, #FF6B6B coral, #FFD93D gold, #6EC6FF sky, #1A1A1A ink */
/* Fonts: Zen Kaku Gothic New (display), Karla (body), Anybody (variable) */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root{
  --coral:#FF6B6B;
  --sky:#6EC6FF;
  --cream:#FAFAF7;
  --gold:#FFD93D;
  --blush:#FFB7C5;
  --bark:#3B2F2F;
  --ink:#1A1A1A;
  --moss:#2D5016;
  --font-display:'Zen Kaku Gothic New',sans-serif;
  --font-body:'Karla',sans-serif;
  --font-fluid:'Anybody','Karla',sans-serif;
  --ease:cubic-bezier(0.4,0,0.2,1);
  --ease-flip:cubic-bezier(0.23,1,0.32,1);
}

html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--bark);
  overflow-x:hidden;
  font-size:17px;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}

/* === ASANOHA HEMP-LEAF BACKGROUND PATTERN === */
.asanoha-bg{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(30deg,rgba(59,47,47,0.03) 12%,transparent 12.5%,transparent 87%,rgba(59,47,47,0.03) 87.5%,rgba(59,47,47,0.03)),
    linear-gradient(150deg,rgba(59,47,47,0.03) 12%,transparent 12.5%,transparent 87%,rgba(59,47,47,0.03) 87.5%,rgba(59,47,47,0.03)),
    linear-gradient(30deg,rgba(59,47,47,0.03) 12%,transparent 12.5%,transparent 87%,rgba(59,47,47,0.03) 87.5%,rgba(59,47,47,0.03)),
    linear-gradient(150deg,rgba(59,47,47,0.03) 12%,transparent 12.5%,transparent 87%,rgba(59,47,47,0.03) 87.5%,rgba(59,47,47,0.03)),
    linear-gradient(60deg,rgba(59,47,47,0.015) 25%,transparent 25.5%,transparent 75%,rgba(59,47,47,0.015) 75%);
  background-size:40px 70px;
  background-position:0 0,0 0,20px 35px,20px 35px,0 0;
}

/* === SAKURA PETAL FIELD === */
.sakura-field{position:fixed;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.sakura-petal{position:absolute;width:22px;height:22px;opacity:0.75;will-change:transform}
.sakura-petal.p1{left:8%;top:-5%;animation:petalDrift 11s linear infinite;animation-delay:0s}
.sakura-petal.p2{left:22%;top:-8%;animation:petalDrift 9s linear infinite;animation-delay:-2s;width:16px;height:16px}
.sakura-petal.p3{left:38%;top:-12%;animation:petalDrift 13s linear infinite;animation-delay:-5s}
.sakura-petal.p4{left:55%;top:-6%;animation:petalDrift 10s linear infinite;animation-delay:-1s;width:18px;height:18px}
.sakura-petal.p5{left:70%;top:-9%;animation:petalDrift 12s linear infinite;animation-delay:-4s}
.sakura-petal.p6{left:82%;top:-4%;animation:petalDrift 8s linear infinite;animation-delay:-6s;width:14px;height:14px}
.sakura-petal.p7{left:91%;top:-10%;animation:petalDrift 14s linear infinite;animation-delay:-3s}
.sakura-petal.p8{left:48%;top:-15%;animation:petalDrift 15s linear infinite;animation-delay:-7s;width:24px;height:24px}

@keyframes petalDrift{
  0%{transform:translate(0,0) rotate(0deg);opacity:0}
  5%{opacity:0.75}
  50%{transform:translate(40px,55vh) rotate(220deg);opacity:0.8}
  95%{opacity:0.5}
  100%{transform:translate(-30px,110vh) rotate(440deg);opacity:0}
}

/* === FLUID VARIABLE LABEL TYPOGRAPHY === */
.fluid-label{
  font-family:var(--font-fluid);
  font-weight:500;
  font-variation-settings:'wdth' 100;
  letter-spacing:0.04em;
  transition:font-variation-settings 400ms ease-out,letter-spacing 400ms ease-out,color 300ms ease;
}
.fluid-label:hover{font-variation-settings:'wdth' 125;letter-spacing:0.08em}
.fluid-wordmark{font-variation-settings:'wdth' 75;animation:wordmarkExpand 1.2s ease-out 2.4s forwards}

@keyframes wordmarkExpand{
  from{font-variation-settings:'wdth' 75}
  to{font-variation-settings:'wdth' 100}
}

/* === NOREN PRELOADER === */
#noren-preloader{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;background:transparent;
}
.noren-left,.noren-right{
  position:absolute;top:0;width:50%;height:100%;
  background:var(--cream);
  transition:transform 1.2s cubic-bezier(0.77,0,0.175,1);
  box-shadow:inset 0 0 120px rgba(59,47,47,0.08);
}
.noren-left{
  left:0;transform-origin:left center;
  background-image:repeating-linear-gradient(180deg,rgba(59,47,47,0.04) 0 2px,transparent 2px 26px);
}
.noren-right{
  right:0;transform-origin:right center;
  background-image:repeating-linear-gradient(180deg,rgba(59,47,47,0.04) 0 2px,transparent 2px 26px);
}
#noren-preloader.open .noren-left{transform:translateX(-102%)}
#noren-preloader.open .noren-right{transform:translateX(102%)}
#noren-preloader.hidden{display:none}
.noren-text{position:relative;z-index:10;display:flex;gap:0.35em}
.jp-char{
  font-family:var(--font-display);
  font-size:4.2rem;font-weight:700;
  color:var(--bark);
  opacity:0;
  animation:charFade 0.7s ease forwards;
}
.jp-char:nth-child(1){animation-delay:0.25s}
.jp-char:nth-child(2){animation-delay:0.55s;color:var(--coral)}
.jp-char:nth-child(3){animation-delay:0.85s}
#noren-preloader.open .noren-text{opacity:0;transition:opacity 0.4s ease}

@keyframes charFade{
  from{opacity:0;transform:translateY(24px) scale(0.95)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* === NAVIGATION === */
#nav-mask{
  position:fixed;top:0;left:0;width:100%;z-index:100;
  padding:1.1rem 2.5rem;
  background:rgba(250,250,247,0.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(59,47,47,0.08);
  transform:translateY(-100%);
  transition:transform 0.5s var(--ease);
}
#nav-mask.visible{transform:translateY(0)}
.nav-inner{
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
}
.nav-wordmark{
  font-family:var(--font-fluid);
  font-size:1.3rem;font-weight:700;
  color:var(--bark);text-decoration:none;
  letter-spacing:0.08em;
}
.nav-links{display:flex;gap:2.2rem}
.nav-link{
  font-size:0.85rem;
  color:var(--bark);text-decoration:none;
  text-transform:uppercase;
  position:relative;padding:0.35em 0;
}
.nav-link::after{
  content:'';position:absolute;bottom:-2px;left:0;
  width:0;height:2px;
  background:var(--coral);
  transition:width 0.35s var(--ease);
}
.nav-link:hover::after{width:100%}
.nav-link.active::after{width:100%;background:var(--gold)}

/* === SCROLL PROGRESS === */
#scroll-progress{
  position:fixed;top:0;left:0;width:100%;height:3px;z-index:101;
  background:rgba(59,47,47,0.06);
}
.progress-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--coral),var(--gold),var(--sky));
  transition:width 0.1s linear;
}

/* === SECTION BASE === */
.section{
  min-height:100vh;position:relative;overflow:hidden;
  z-index:1;
}

/* === HEXAGONAL CELL BASE === */
.hex-cell,.protocol-hex,.mask-card{perspective:1200px;cursor:pointer}

.hex-cell{
  width:220px;height:254px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  position:absolute;
}
.hex-inner{
  width:100%;height:100%;position:relative;
  transform-style:preserve-3d;
  transition:transform 0.7s var(--ease-flip),box-shadow 0.35s ease;
}
.hex-cell.flipped .hex-inner,
.protocol-hex.flipped .hex-inner,
.mask-card.flipped .hex-inner{
  transform:rotateY(180deg);
}
.hex-cell:hover:not(.flipped) .hex-inner,
.protocol-hex:hover:not(.flipped) .hex-inner{
  box-shadow:0 8px 32px rgba(26,26,26,0.14);
}
.hex-face{
  position:absolute;width:100%;height:100%;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:1.5rem;
}
.hex-front{
  background:var(--cream);
  border:2px solid var(--bark);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.hex-back{
  background:var(--cream);
  color:var(--bark);
  transform:rotateY(180deg);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  text-align:center;
  padding:2rem 1.6rem;
}
.hex-back--blush{background:linear-gradient(145deg,var(--blush),#ffd6df);color:var(--bark)}
.hex-back--coral{background:linear-gradient(145deg,var(--coral),#ff8a8a);color:var(--cream)}
.hex-back--gold{background:linear-gradient(145deg,var(--gold),#fff3a0);color:var(--bark)}
.hex-back--sky{background:linear-gradient(145deg,var(--sky),#b0e0ff);color:var(--bark)}
.hex-back--moss{background:linear-gradient(145deg,var(--moss),#4a7a2a);color:var(--cream)}
.hex-back--gradient-coral{background:linear-gradient(145deg,var(--coral) 0%,var(--gold) 100%);color:var(--cream)}
.hex-back--coral-gold{background:linear-gradient(145deg,var(--coral) 0%,var(--gold) 100%);color:var(--cream)}
.hex-back--blush-coral{background:linear-gradient(160deg,var(--blush) 0%,var(--coral) 100%);color:var(--cream)}
.hex-back--coral-ink{background:linear-gradient(160deg,var(--coral) 0%,var(--ink) 100%);color:var(--cream)}
.hex-back--gold-moss{background:linear-gradient(160deg,var(--gold) 0%,var(--moss) 100%);color:var(--cream)}

/* hover states on hex */
.hex-cell:hover:not(.flipped) .hex-front{border-color:var(--coral)}
.hex-cell:hover:not(.flipped){transform:scale(1.03)}
.hex-cell{transition:transform 0.35s var(--ease)}

.botanical-svg{
  width:72%;height:72%;
  transition:opacity 0.4s ease,transform 0.4s ease;
}
.hex-cell:hover .botanical-svg{transform:scale(1.06)}

.hex-front-label{
  position:absolute;bottom:34px;left:50%;transform:translateX(-50%);
  font-size:0.7rem;text-transform:uppercase;
  color:var(--bark);opacity:0.55;letter-spacing:0.15em;
}

/* === HIVE SECTION === */
.section--hive{
  display:flex;align-items:center;justify-content:center;
  background:var(--cream);
  padding:4rem 2rem;
}
.hive-grid{position:relative;width:700px;height:700px;max-width:100%}

.hive-vines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}

.hex-center{left:240px;top:223px;z-index:3}
.hex-top{left:240px;top:0px;z-index:2}
.hex-top-right{left:410px;top:112px;z-index:2}
.hex-bottom-right{left:410px;top:335px;z-index:2}
.hex-bottom{left:240px;top:446px;z-index:2}
.hex-bottom-left{left:70px;top:335px;z-index:2}
.hex-top-left{left:70px;top:112px;z-index:2}

/* Central hexagon slightly larger */
.hex-center{width:240px;height:278px;left:230px;top:211px}

.wordmark{
  font-family:var(--font-fluid);
  font-size:2.1rem;font-weight:700;
  letter-spacing:0.08em;margin-bottom:0.45rem;
}
.wordmark-sub{
  font-family:var(--font-body);
  font-size:0.72rem;letter-spacing:0.22em;
  text-transform:uppercase;opacity:0.85;
  margin-bottom:0.4rem;
}
.wordmark-jp{
  font-family:var(--font-display);
  font-size:0.9rem;opacity:0.8;
}

.hex-label{
  font-family:var(--font-fluid);
  font-size:0.95rem;font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:0.55rem;
  display:block;
}
.hex-text{
  font-family:var(--font-body);
  font-size:0.8rem;
  text-align:center;
  line-height:1.5;
  opacity:0.92;
}

.scroll-hint{
  position:absolute;bottom:2rem;left:50%;
  transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:0.4rem;
  animation:hintBounce 2s ease infinite;
  z-index:5;
}
.scroll-hint-text{
  font-size:0.72rem;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--bark);opacity:0.55;
}
.scroll-arrow{opacity:0.5}

@keyframes hintBounce{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(8px)}
}

.urban-wires{
  position:absolute;bottom:0;left:0;
  width:100%;height:80px;z-index:1;pointer-events:none;
}

/* === PROTOCOL SECTION === */
.section--protocol{
  background:var(--ink);color:var(--cream);
  display:flex;align-items:center;justify-content:center;
  padding:6rem 2rem;
  position:relative;
}
.section--protocol::before{
  content:'';position:absolute;inset:0;
  background-image:repeating-linear-gradient(135deg,rgba(250,250,247,0.02) 0 2px,transparent 2px 40px);
  pointer-events:none;
}
.protocol-container{max-width:1100px;width:100%;position:relative;z-index:1}
.section-header{text-align:center;margin-bottom:3.5rem}
.section-overline{
  font-size:0.75rem;text-transform:uppercase;
  letter-spacing:0.3em;color:var(--gold);
  margin-bottom:1rem;display:block;
}
.section-title{
  font-family:var(--font-display);
  font-size:clamp(2.4rem,5vw,3.6rem);
  font-weight:700;letter-spacing:0.08em;
  margin-bottom:0.6rem;
  color:var(--cream);
}
.section-subtitle{
  font-family:var(--font-body);
  font-size:0.95rem;letter-spacing:0.1em;
  color:var(--blush);opacity:0.85;
}
.section-title--light{color:var(--cream)}
.section-subtitle--light{color:var(--blush);opacity:0.85}

.section--gallery .section-title{color:var(--bark)}
.section--gallery .section-subtitle{color:var(--moss);opacity:0.85}
.section--gallery .section-overline{color:var(--coral)}

.protocol-hex-grid{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:1.2rem;
  margin-bottom:3rem;
}
.protocol-hex{
  width:200px;height:231px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  position:relative;
}
.protocol-hex .hex-inner{
  width:100%;height:100%;position:relative;
  transform-style:preserve-3d;
  transition:transform 0.7s var(--ease-flip),box-shadow 0.35s ease;
}
.protocol-hex .hex-front{
  background:rgba(250,250,247,0.05);
  border:2px solid rgba(250,250,247,0.2);
  color:var(--cream);
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  backface-visibility:hidden;
  padding:1.5rem;
}
.protocol-hex .hex-back{
  position:absolute;inset:0;transform:rotateY(180deg);
  backface-visibility:hidden;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  padding:1.8rem;
  display:flex;align-items:center;justify-content:center;
}
.protocol-hex:hover:not(.flipped) .hex-front{border-color:var(--coral)}
.protocol-hex:hover:not(.flipped){transform:scale(1.03)}
.protocol-hex{transition:transform 0.35s var(--ease)}

.protocol-number{
  font-family:var(--font-display);
  font-size:3.2rem;font-weight:900;
  color:var(--gold);
  line-height:1;margin-bottom:0.6rem;
}
.protocol-name{
  font-family:var(--font-fluid);
  font-size:1rem;font-weight:700;
  letter-spacing:0.14em;text-transform:uppercase;
  color:var(--cream);
}
.protocol-index{
  font-family:var(--font-body);
  font-size:0.7rem;letter-spacing:0.25em;
  opacity:0.45;margin-top:0.4rem;
}
.protocol-detail{
  font-family:var(--font-body);
  font-size:0.9rem;line-height:1.65;
  text-align:center;color:var(--cream);
}

/* Pine-needle list */
.pine-list{
  list-style:none;
  max-width:560px;margin:0 auto;
  text-align:center;
}
.pine-list li{
  font-size:0.95rem;
  padding:0.55rem 0;
  color:var(--cream);opacity:0.75;
  border-bottom:1px dashed rgba(250,250,247,0.15);
}
.pine-list li:last-child{border-bottom:none}
.pine-bullet{
  color:var(--gold);
  margin-right:0.75rem;
  font-family:var(--font-display);
}

/* === GALLERY SECTION === */
.section--gallery{
  background:var(--cream);
  display:flex;align-items:center;justify-content:center;
  padding:6rem 2rem 5rem;
  position:relative;
}
.gallery-container{max-width:1100px;width:100%;position:relative;z-index:1}
.mask-gallery{
  display:flex;justify-content:center;gap:2.2rem;flex-wrap:wrap;
  margin-bottom:3rem;
}
.mask-card{
  width:280px;height:360px;
}
.mask-card .hex-inner{
  width:100%;height:100%;position:relative;
  transform-style:preserve-3d;
  transition:transform 0.7s var(--ease-flip),box-shadow 0.35s ease;
}
.mask-card .hex-front,
.mask-card .hex-back{
  position:absolute;inset:0;
  backface-visibility:hidden;
  border-radius:1.2rem;
  padding:1.75rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.mask-card .hex-front{
  background:var(--cream);
  border:2px solid rgba(59,47,47,0.1);
  box-shadow:0 4px 24px rgba(26,26,26,0.04);
}
.mask-card .hex-back{
  transform:rotateY(180deg);
  padding:2rem 1.75rem;
  text-align:center;
}
.mask-card:hover:not(.flipped) .hex-front{border-color:var(--coral);box-shadow:0 8px 32px rgba(26,26,26,0.12)}
.mask-svg{width:160px;height:180px;margin-bottom:0.8rem}
.mask-name{
  font-family:var(--font-fluid);
  font-size:1.15rem;font-weight:700;
  letter-spacing:0.14em;color:var(--bark);
  text-transform:uppercase;
}
.mask-kana{
  font-family:var(--font-display);
  font-size:0.85rem;color:var(--coral);
  margin-top:0.2rem;
}
.mask-title{
  font-family:var(--font-display);
  font-size:1.4rem;font-weight:700;
  margin-bottom:0.75rem;color:var(--cream);
}
.mask-description{
  font-family:var(--font-body);
  font-size:0.88rem;line-height:1.65;
  opacity:0.95;color:var(--cream);
}
.mask-era{
  display:block;margin-top:1rem;
  font-size:0.7rem;letter-spacing:0.25em;
  text-transform:uppercase;opacity:0.7;
}

.kawara-silhouette{
  position:absolute;bottom:0;left:0;width:100%;height:50px;
  pointer-events:none;
}

/* === UNMASKING SEQUENCE SECTION (sticky stacked hexagons) === */
.section--sequence{
  background:var(--cream);
  padding:0;
  min-height:250vh;
  position:relative;
}
.sequence-container{position:relative;height:100%}
.sticky-layers{position:relative}
.layer{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:2rem;
  transition:opacity 0.6s ease;
}
.layer-inner{
  position:relative;
  width:min(520px,90vw);height:min(520px,90vw);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:3rem 3.5rem;
  text-align:center;
  box-shadow:0 24px 80px rgba(26,26,26,0.18);
  transition:transform 0.6s var(--ease),box-shadow 0.6s var(--ease);
}
.layer-1{top:0}
.layer-2{top:6vh}
.layer-3{top:12vh}
.layer-4{top:18vh}

.layer-1 .layer-inner{background:var(--cream);color:var(--bark);border:2px solid var(--bark)}
.layer-2 .layer-inner{background:linear-gradient(145deg,var(--blush),#ffd6df);color:var(--bark)}
.layer-3 .layer-inner{background:linear-gradient(145deg,var(--coral),#ff8a8a);color:var(--cream)}
.layer-4 .layer-inner{background:linear-gradient(145deg,var(--moss),#4a7a2a);color:var(--cream)}

.layer-jp{
  font-family:var(--font-display);
  font-size:3.5rem;font-weight:700;
  opacity:0.35;
  line-height:1;margin-bottom:1rem;
}
.layer-title{
  font-family:var(--font-display);
  font-size:clamp(2rem,5vw,3rem);
  font-weight:700;
  letter-spacing:0.08em;
  margin-bottom:1.2rem;
}
.layer-text{
  font-family:var(--font-body);
  font-size:1rem;line-height:1.8;
  max-width:360px;
}

/* Peel effect: earlier layers drift up/fade as next arrives */
.layer.peeled .layer-inner{
  transform:translateY(-40px) scale(0.96);
  opacity:0.15;
}

/* === UNMASK SECTION === */
.section--unmask{
  background:linear-gradient(180deg,var(--ink) 0%,#2a1f1f 100%);
  color:var(--cream);
  display:flex;align-items:center;justify-content:center;
  padding:6rem 2rem;
  position:relative;
}
.section--unmask::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle at 20% 30%,rgba(255,107,107,0.08) 0%,transparent 40%),radial-gradient(circle at 80% 70%,rgba(110,198,255,0.06) 0%,transparent 40%);
  pointer-events:none;
}
.unmask-container{
  max-width:1100px;width:100%;
  display:flex;align-items:center;gap:4rem;
  position:relative;z-index:1;
}
.unmask-mask-visual{
  flex:1;display:flex;align-items:center;justify-content:center;
}
#unmask-mask-svg{
  width:100%;max-width:440px;height:auto;
  cursor:pointer;
}
.unmask-text{flex:1;max-width:500px}
.unmask-narrative{
  font-family:var(--font-body);
  font-size:1.05rem;line-height:1.8;
  margin:1.5rem 0;
  color:var(--cream);opacity:0.9;
}
.unmask-cta{margin-top:2.2rem}

.mask-left,.mask-right{transition:transform 1s var(--ease)}
.true-face{transition:opacity 1s ease 0.4s}
.glow-circle{opacity:0.5;transition:opacity 0.6s ease}

.section--unmask.unmasked .mask-left{transform:translate(-70px,-24px) rotate(-18deg)}
.section--unmask.unmasked .mask-right{transform:translate(70px,-24px) rotate(18deg)}
.section--unmask.unmasked .true-face{opacity:1}
.section--unmask.unmasked .glow-circle{opacity:0.9}

/* Hex Button */
.hex-button{
  font-family:var(--font-fluid);
  font-size:1.05rem;font-weight:700;
  letter-spacing:0.1em;
  background:var(--coral);color:var(--cream);
  border:none;
  padding:1.1rem 2.6rem;cursor:pointer;
  position:relative;
  clip-path:polygon(10% 0%,90% 0%,100% 50%,90% 100%,10% 100%,0% 50%);
  transition:background 0.4s ease,transform 0.3s var(--ease),color 0.4s ease;
  display:inline-flex;flex-direction:column;align-items:center;gap:0.2rem;
}
.hex-button:hover{background:var(--gold);color:var(--ink);transform:scale(1.05)}
.btn-text{display:block}
.btn-jp{
  display:block;
  font-family:var(--font-display);
  font-size:0.75rem;font-weight:500;
  opacity:0.85;
}

/* === SEAL / FOOTER HIVE === */
.section--seal{
  background:var(--cream);
  display:flex;align-items:center;justify-content:center;
  padding:5rem 2rem 3rem;min-height:auto;
  position:relative;
}
.seal-container{text-align:center;max-width:800px;width:100%}
.seal-svg{
  width:180px;height:180px;margin-bottom:1.5rem;
  transition:transform 0.6s var(--ease);
}
.seal-text{
  font-family:var(--font-body);
  font-size:1.05rem;letter-spacing:0.05em;
  color:var(--bark);opacity:0.7;margin-bottom:2rem;font-style:italic;
}

.footer-hive{
  display:flex;justify-content:center;flex-wrap:wrap;
  gap:1.2rem;margin:2.5rem 0;
}
.foot-hex{
  width:64px;height:74px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background:var(--cream);
  border:1px solid rgba(59,47,47,0.2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  position:relative;
  cursor:pointer;
  transition:transform 0.4s var(--ease),background 0.4s ease;
}
.foot-hex svg{width:30px;height:30px;transition:transform 0.4s ease}
.foot-hex:hover{background:var(--gold)}
.foot-hex:hover svg{transform:scale(1.1)}
.fh-label{
  position:absolute;bottom:-22px;
  font-size:0.6rem;letter-spacing:0.15em;
  text-transform:uppercase;
  color:var(--bark);opacity:0.6;
  white-space:nowrap;
}
.fh1{animation:footFloat 5.5s ease-in-out infinite;animation-delay:-0.2s}
.fh2{animation:footFloat 6.0s ease-in-out infinite;animation-delay:-0.5s}
.fh3{animation:footFloat 6.8s ease-in-out infinite;animation-delay:-1s}
.fh4{animation:footFloat 7.2s ease-in-out infinite;animation-delay:-0.3s}
.fh5{animation:footFloat 5.8s ease-in-out infinite;animation-delay:-0.7s}
.fh6{animation:footFloat 6.4s ease-in-out infinite;animation-delay:-1.4s}
.fh7{animation:footFloat 7.0s ease-in-out infinite;animation-delay:-0.1s}
.fh8{animation:footFloat 6.2s ease-in-out infinite;animation-delay:-0.9s}

@keyframes footFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

.seal-copyright{
  display:block;
  font-size:0.72rem;color:var(--bark);opacity:0.5;
  margin-top:2rem;letter-spacing:0.18em;
  text-transform:uppercase;
}

/* === SCROLL REVEAL BASE === */
.section-header,.protocol-hex,.mask-card,.unmask-text,.unmask-mask-visual{
  opacity:0;transform:translateY(30px);
  transition:opacity 0.8s ease,transform 0.8s ease;
}
.section-header.visible,.protocol-hex.visible,.mask-card.visible,.unmask-text.visible,.unmask-mask-visual.visible{
  opacity:1;transform:translateY(0);
}
.protocol-hex:nth-child(2){transition-delay:0.08s}
.protocol-hex:nth-child(3){transition-delay:0.16s}
.protocol-hex:nth-child(4){transition-delay:0.24s}
.protocol-hex:nth-child(5){transition-delay:0.32s}
.mask-card:nth-child(2){transition-delay:0.15s}
.mask-card:nth-child(3){transition-delay:0.3s}

/* Hex cell entrance */
.hex-cell{opacity:0;transform:scale(0.7);transition:opacity 0.7s ease,transform 0.7s ease,box-shadow 0.35s ease}
.hex-cell.visible{opacity:1;transform:scale(1)}
.hex-cell.hex-center.visible{transform:scale(1)}
.hex-top{transition-delay:0.1s}
.hex-top-right{transition-delay:0.2s}
.hex-bottom-right{transition-delay:0.3s}
.hex-bottom{transition-delay:0.4s}
.hex-bottom-left{transition-delay:0.5s}
.hex-top-left{transition-delay:0.6s}
.hex-center{transition-delay:0.7s}

/* Vine path-draw */
.hive-vines .vine-path.drawn{
  transition:stroke-dashoffset 1.8s ease-in-out;
  stroke-dashoffset:0;
}

/* === RESPONSIVE === */
@media(max-width:900px){
  .unmask-container{flex-direction:column;gap:2rem;text-align:center}
  .unmask-text{max-width:100%}
}

@media(max-width:768px){
  body{font-size:16px}
  .section--hive{padding:6rem 1rem 4rem}
  .hive-grid{width:380px;height:500px;transform:scale(0.78);transform-origin:center center}
  .hex-cell{width:150px;height:173px}
  .hex-center{left:115px;top:163px;width:150px;height:173px}
  .hex-top{left:115px;top:10px}
  .hex-top-right{left:220px;top:87px}
  .hex-bottom-right{left:220px;top:240px}
  .hex-bottom{left:115px;top:317px}
  .hex-bottom-left{left:10px;top:240px}
  .hex-top-left{left:10px;top:87px}
  .nav-links{gap:1rem}
  .nav-link{font-size:0.7rem}
  .protocol-hex-grid{gap:0.8rem}
  .protocol-hex{width:158px;height:182px}
  .protocol-number{font-size:2.4rem}
  .mask-gallery{flex-direction:column;align-items:center}
  .section-title{font-size:2.1rem}
  .layer-inner{padding:2rem;width:min(380px,88vw);height:min(380px,88vw)}
  .wordmark{font-size:1.5rem}
  #nav-mask{padding:0.8rem 1.2rem}
}

@media(max-width:480px){
  .hive-grid{transform:scale(0.58)}
  .nav-wordmark{font-size:1.1rem}
  .nav-links{gap:0.5rem}
  .nav-link{font-size:0.6rem;letter-spacing:0.03em}
  .jp-char{font-size:2.8rem}
  .footer-hive{gap:0.6rem}
  .foot-hex{width:52px;height:60px}
  .foot-hex svg{width:22px;height:22px}
  .fh-label{font-size:0.55rem;bottom:-18px}
}
