:root{
  --paper: #f1ebf6;
  --paper-2: #e9defa;
  --ink: #22112b;
  --purple: #7c2df0;
  --purple-deep: #3c1173;
  --purple-mid: #9b5cf6;
  --muted: #6c5b78;
  --white: #fdfbff;

  --ease-in: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --ease-island: cubic-bezier(0.34, 1.45, 0.64, 1);
  --island-dur: 620ms;
}

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

html{ scroll-behavior:smooth; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: 'Shippori Mincho', serif;
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;

  /* Layout fix: body is a flex column, min 100vh tall, so the
     footer is pushed to the bottom on short-content pages or
     on tall/wide PC screens where the grid doesn't fill the
     viewport. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main{ flex: 1 0 auto; }

a{ color: inherit; }

.display{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }

/* ── MASTHEAD ─────────────────────────────────── */
.masthead{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  transition: background 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease;
}

.masthead.scrolled{
  background: rgba(241,235,246,0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.masthead-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.masthead-actions{
  display:flex;
  align-items:center;
  gap: 0.6rem;
}

.wordmark{
  display:flex;
  align-items:baseline;
  gap: 0.6rem;
  text-decoration:none;
}

.wordmark .display{
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.wordmark small{
  font-family: 'Shippori Mincho', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
}

.m-links{
  display:flex;
  align-items:center;
  gap: 1.9rem;
  list-style:none;
}

.m-links a{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration:none;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0.1rem;
}

.m-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple);
  transition: right 320ms var(--ease-bounce);
}

.m-links a:hover::after, .m-links a.active::after{ right: 0; }

/* ── BUBBLE BUTTONS ───────────────────────────── */
.bubble-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  min-height: 44px;
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:800;
  font-size:1.05rem;
  text-decoration:none;
  color: var(--white);
  background: var(--purple);
  border: 3px solid var(--ink);
  padding: 0.5rem 1.3rem;
  border-radius: 22px 22px 22px 4px;
  box-shadow: 4px 4px 0 var(--ink);

  transform-origin: 50% 60%;
  will-change: transform;
  transition:
    transform 460ms var(--ease-island),
    box-shadow 260ms var(--ease-island);
}

.bubble-btn:hover{
  transform: translate(-2px,-2px) scale(1.04, 1.02);
  box-shadow: 6px 6px 0 var(--ink);
}
.bubble-btn:active{
  transform: translate(0,0) scale(0.95, 0.97);
  box-shadow: 1px 1px 0 var(--ink);
  transition:
    transform 240ms var(--ease-island),
    box-shadow 160ms ease;
}

.bubble-btn.ghost{
  background: transparent;
  color: var(--ink);
}

.menu-island-close,
.fab-close{
  transition:
    transform 420ms var(--ease-island),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}
.menu-island-close:hover,
.fab-close:hover{ transform: scale(1.12); }
.menu-island-close:active,
.fab-close:active{
  transform: scale(0.86);
  transition-duration: 240ms;
}

.m-burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  width: 44px;
  height: 44px;
  align-items:center;
  justify-content:center;
  transform-origin: 50% 50%;
  transition: transform 420ms var(--ease-island);
}
.m-burger:hover{ transform: scale(1.08); }
.m-burger:active{ transform: scale(0.9); transition-duration: 240ms; }

.m-burger span{
  width:24px;
  height:3px;
  background: var(--ink);
  transition: transform var(--island-dur) var(--ease-island),
              opacity 220ms ease;
}
.m-burger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.m-burger.open span:nth-child(2){ opacity: 0; }
.m-burger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   MENU ISLAND
══════════════════════════════════════════════════ */
.menu-island-slot{
  position: absolute;
  top: calc(100% + 3px);
  right: 1.75rem;
  margin-top: 0.6rem;
  z-index: 45;
  pointer-events: none;
}

.menu-island-drag{
  will-change: transform;
  pointer-events: none;
}
.menu-island-drag.active{ pointer-events: auto; }

.menu-island{
  position: relative;
  width: 6px;
  height: 6px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 0 0 transparent;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  opacity: 0;
  pointer-events: none;
  transform-origin: 100% 0%;
  cursor: grab;

  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    width         var(--island-dur) var(--ease-island),
    height        var(--island-dur) var(--ease-island),
    border-radius var(--island-dur) var(--ease-island),
    opacity       260ms ease,
    box-shadow    380ms ease,
    background    240ms ease;

  will-change: transform, width, height;
}

.menu-island.open{
  width: 220px;
  height: 320px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 1;
  pointer-events: auto;
}
.menu-island.open.dragging{ cursor: grabbing; }

.menu-island-head{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 1.05rem;
  border-bottom: 1px solid rgba(34,17,43,0.15);

  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 220ms ease,
    transform 240ms ease;
}
.menu-island.open .menu-island-head{
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 300ms ease 180ms,
    transform var(--island-dur) var(--ease-island) 180ms;
}

.menu-island-title{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}

.menu-island-nav{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.menu-island-nav a{
  flex: 1;
  display: flex;
  align-items: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0 1.05rem;
  border-bottom: 1px solid rgba(34,17,43,0.15);

  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 200ms ease,
    transform 240ms ease;
}
.menu-island-nav a:last-child{ border-bottom: 0; }
.menu-island-nav a:hover{ background: rgba(124,45,240,0.06); }

.menu-island.open .menu-island-nav a{
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 320ms ease,
    transform var(--island-dur) var(--ease-island);
}
.menu-island.open .menu-island-nav a:nth-child(1){ transition-delay: 200ms; }
.menu-island.open .menu-island-nav a:nth-child(2){ transition-delay: 240ms; }
.menu-island.open .menu-island-nav a:nth-child(3){ transition-delay: 280ms; }
.menu-island.open .menu-island-nav a:nth-child(4){ transition-delay: 320ms; }
.menu-island.open .menu-island-nav a:nth-child(5){ transition-delay: 360ms; }
.menu-island.open .menu-island-nav a:nth-child(6){ transition-delay: 400ms; }

/* ── SCROLL-REVEAL ────────────────────────────── */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 550ms var(--ease-in), transform 650ms var(--ease-in);
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ── HERO PANELS ──────────────────────────────── */
.panels{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.panel{
  background: var(--paper);
  padding: 3rem 2.25rem;
  position:relative;
  overflow:hidden;
  transition: transform 420ms var(--ease-bounce), box-shadow 420ms var(--ease-bounce);
}

.panel-narrow, .panel-wide{ cursor: default; }

.panel-narrow:hover, .panel-wide:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 0 -6px rgba(34,17,43,0.18);
  z-index: 2;
}
.panel-narrow:active, .panel-wide:active{
  transform: translateY(-2px) scale(0.99);
}

.panel-hero{
  grid-column: span 6;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height: 480px;
}

.panel-hero > *{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-in), transform 700ms var(--ease-in);
}
.panel-hero.in > *{ opacity: 1; transform: translateY(0); }
.panel-hero > *:nth-child(2){ transition-delay: 90ms; }
.panel-hero > *:nth-child(3){ transition-delay: 160ms; }
.panel-hero > *:nth-child(4){ transition-delay: 230ms; }
.panel-hero > *:nth-child(5){ transition-delay: 300ms; }

.speed-lines{
  position:absolute;
  inset: -20% -10%;
  background: repeating-conic-gradient(from -12deg at 8% 32%, rgba(124,45,240,0.07) 0deg 1.4deg, transparent 1.4deg 7deg);
  pointer-events:none;
}

.kicker{
  position:relative;
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:700;
  font-size: 0.95rem;
  color: var(--purple-deep);
  margin-bottom: 1rem;
}

.panel-hero h1{
  position:relative;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 1.4rem;
}

.panel-hero p{
  position:relative;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.9rem;
}

.hero-actions{
  position:relative;
  display:flex;
  gap: 0.9rem;
  flex-wrap:wrap;
  margin-bottom: 2.4rem;
}

.source-row{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.6rem;
  border-top: 2px dotted rgba(34,17,43,0.3);
}
.source-row span{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:700;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── FEATURE PANELS ───────────────────────────── */
.panel h3{ font-size: 1.5rem; margin-bottom: 0.6rem; }
.panel p.feature-copy{
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 40ch;
}
.panel-wide{ grid-column: span 3; }
.panel-narrow{ grid-column: span 2; }

.cmd-chip{
  display:inline-block;
  font-family:'Shippori Mincho', serif;
  font-style: italic;
  font-size: 0.85rem;
  background: var(--paper-2);
  border: 1px solid rgba(34,17,43,0.25);
  border-radius: 5px;
  padding: 0.15rem 0.55rem;
  margin-top: 0.9rem;
  color: var(--purple-deep);
}

.panel-cta{
  grid-column: span 6;
  background: var(--purple-deep);
  color: var(--white);
  padding: 3.5rem 2.25rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 1.5rem;
  position:relative;
}
.halftone{
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.4px, transparent 1.6px);
  background-size: 11px 11px;
  pointer-events:none;
}
.panel-cta h2{
  position:relative;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 14ch;
}
.panel-cta p{ position:relative; color: rgba(253,251,255,0.78); margin-top:0.4rem; }
.panel-cta-actions{
  position: relative;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.panel-cta .bubble-btn{
  background: var(--white);
  color: var(--purple-deep);
  border-color: var(--white);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.panel-cta .bubble-btn:hover{ box-shadow: 6px 6px 0 rgba(0,0,0,0.35); }
.panel-cta .bubble-btn:active{ box-shadow: 1px 1px 0 rgba(0,0,0,0.35); }
.panel-cta .bubble-btn.ghost{
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

/* ── NOTICE STRIP ─────────────────────────────── */
.notice-strip{
  grid-column: span 6;
  background: var(--paper-2);
  border-top: 2px dashed rgba(34,17,43,0.3);
  border-bottom: 2px dashed rgba(34,17,43,0.3);
  padding: 1.1rem 2.25rem;
  display:flex;
  align-items:center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.notice-strip .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--purple);
  flex-shrink:0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.75; }
}
.notice-strip p{
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}
.notice-strip a.notice-link{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--purple);
  color: var(--purple-deep);
  padding: 0.2rem 0;
  transition: color 200ms ease;
  white-space: nowrap;
}
.notice-strip a.notice-link:hover{ color: var(--purple); }

/* ══════════════════════════════════════════════════
   INFO FAB
══════════════════════════════════════════════════ */
.info-fab-slot{
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
}
.info-fab-drag{ will-change: transform; }
.info-fab{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overflow: hidden;
  padding: 0;
  font: inherit;
  transform-origin: 100% 100%;
  transition:
    width         var(--island-dur) var(--ease-island),
    height        var(--island-dur) var(--ease-island),
    border-radius var(--island-dur) var(--ease-island),
    background    220ms ease,
    color         220ms ease,
    box-shadow    260ms ease;
}
.info-fab:hover{
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.info-fab.dragging{ cursor: grabbing; }
.info-fab.expanded{
  width: 340px;
  height: 236px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: default;
}
.info-fab.expanded:hover{
  background: var(--paper);
  border-color: var(--ink);
}
.fab-face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 160ms ease;
}
.info-fab.expanded .fab-face{ opacity: 0; pointer-events: none; }
.fab-mark{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
}
.fab-card{
  position: absolute;
  inset: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.info-fab.expanded .fab-card{
  opacity: 1;
  pointer-events: auto;
  transition-delay: 200ms;
}
.fab-card > *{
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms ease 220ms,
    transform var(--island-dur) var(--ease-island) 220ms;
}
.info-fab.expanded .fab-card > *{ opacity: 1; transform: translateY(0); }
.fab-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.fab-card-title{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.fab-close{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fab-close:hover{ background: var(--purple); color: var(--white); border-color: var(--purple); }
.fab-card p{
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.fab-card .bubble-btn{
  align-self: flex-start;
  min-height: 36px;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer{
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap: 2rem 3rem;
}

.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 280px;
}
.footer-brand .display{
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
footer .colophon{
  font-family:'Shippori Mincho', serif;
  font-style:italic;
  font-size: 0.85rem;
  color: rgba(241,235,246,0.6);
  line-height: 1.5;
}

.footer-cols{
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.footer-col{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 120px;
}
.footer-col-title{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241,235,246,0.45);
  margin-bottom: 0.2rem;
}
.footer-col a{
  font-family:'Big Shoulders Display', sans-serif;
  font-size: 0.92rem;
  text-decoration:none;
  color: rgba(241,235,246,0.85);
  display: inline-block;
  transition: color 180ms ease, transform 320ms var(--ease-island);
  transform-origin: left center;
  width: fit-content;
}
.footer-col a:hover{
  color: var(--white);
  transform: translateX(3px);
}
.footer-col a:active{ transform: translateX(3px) scale(0.97); }

.footer-bottom{
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241,235,246,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.footer-bottom p{
  font-family: 'Shippori Mincho', serif;
  font-size: 0.78rem;
  color: rgba(241,235,246,0.5);
}
.footer-bottom .footer-badge{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(241,235,246,0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom .footer-badge::before{
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7CF29A;
  box-shadow: 0 0 6px rgba(124,242,154,0.7);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 860px){
  .m-links{ display:none; }
  .m-burger{ display:flex; }

  .panels{ grid-template-columns: repeat(2, 1fr); }
  .panel-hero, .panel-wide, .panel-narrow, .panel-cta, .notice-strip{ grid-column: span 2; }
  .panel-hero{ min-height: auto; padding-bottom: 2rem; }

  .footer-inner{ gap: 2rem; }
  .footer-cols{ gap: 2.5rem; }
}

@media (max-width: 480px){
  .wordmark small{ display:none; }
  .masthead-inner{ padding: 0.85rem 0; }
  .bubble-btn{ font-size: 0.92rem; padding: 0.5rem 1rem; }
  .panel{ padding: 2.25rem 1.35rem; }
  .panel-cta{ padding: 2.5rem 1.35rem; flex-direction:column; align-items:flex-start; }
  .panel-cta-actions{ width: 100%; }

  .menu-island-slot{ right: 1rem; }
  .menu-island.open{ width: 200px; height: 300px; }

  .info-fab-slot{ right: 1rem; bottom: 1rem; }
  .info-fab{ width: 50px; height: 50px; }
  .info-fab.expanded{ width: min(84vw, 320px); height: 240px; }
  .fab-mark{ font-size: 1.5rem; }

  footer{ padding: 2.5rem 0 1.25rem; }
  .footer-cols{ gap: 2rem; width: 100%; }
  .footer-col{ flex: 1 1 40%; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  .reveal, .bubble-btn, .panel-narrow, .panel-wide, .notice-strip .dot,
  .menu-island, .menu-island-head, .menu-island-nav a,
  .info-fab, .fab-face, .fab-card, .fab-card > *, .fab-close, .m-burger span,
  .footer-col a, .footer-bottom .footer-badge::before{
    transition:none !important;
    animation:none !important;
  }
  .bubble-btn:hover, .bubble-btn:active,
  .footer-col a:hover, .footer-col a:active{
    transform: none !important;
  }
}