:root {
  --canvas: #FAF6EF;
  --canvas-alt: #F1E9D8;
  --surface: #FFFFFF;
  --ink: #1E2233;
  --ink-soft: #565F78;
  --ink-faint: #8891A6;
  --primary: #14304D;
  --primary-dark: #0B1E33;
  --primary-light: #2C577F;
  --accent: #E3A857;
  --accent-dark: #C4862E;
  --accent-soft: #F3D9A4;
  --border: #E2D8C3;
  --border-strong: #C9BC9C;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.06), 0 1px 1px rgba(20,20,30,.04);
  --shadow-md: 0 8px 24px -8px rgba(20,30,50,.18), 0 2px 8px rgba(20,30,50,.08);
  --shadow-lg: 0 24px 48px -12px rgba(15,25,45,.28), 0 8px 20px -6px rgba(15,25,45,.12);
  --shadow-accent: 0 14px 32px -10px rgba(227,168,87,.45);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.canvas {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--primary-dark); margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


.stage-curtain {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  z-index: 9999;
  transition: width .4s ease;
  box-shadow: 0 0 10px rgba(227,168,87,.6);
}
.stage-curtain.active { width: 88%; }


.compass {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250,246,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.compass.is-visible { transform: translateY(0); }
.compass-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.compass-side { display: flex; align-items: center; gap: 1.75rem; flex: 1; }
.compass-left { justify-content: flex-start; }
.compass-right { justify-content: flex-end; }
.compass-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
  white-space: nowrap;
}
.compass-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .35s ease;
}
.compass-link:hover, .compass-link.is-active { color: var(--primary-dark); }
.compass-link:hover::after, .compass-link.is-active::after { width: 100%; }
.compass-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  padding: 0 1.5rem;
}
.compass-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.compass-word { font-weight: 700; font-size: 1.02rem; color: var(--primary-dark); }
.compass-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-dark);
}
.btn-sm { padding: .6rem 1.2rem !important; font-size: .82rem !important; }


.btn-solid, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  min-height: 44px;
}
.btn-solid {
  background: var(--primary);
  color: var(--canvas);
  box-shadow: var(--shadow-md);
}
.btn-solid:hover {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
}
.btn-lg { padding: 1.1rem 2.3rem; font-size: 1rem; }
.btn-ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--primary-dark);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}
.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--ink-soft);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }


.drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-close {
  position: absolute;
  top: 1.8rem; right: 1.8rem;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: var(--canvas);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.drawer-close:hover { background: var(--accent); color: var(--primary-dark); transform: rotate(90deg); }
.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.drawer-link {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  color: var(--canvas);
  opacity: .85;
  transition: all .3s ease;
}
.drawer-link:hover { opacity: 1; color: var(--accent); transform: translateX(6px); }
.drawer-cta { margin-top: 1rem; }


.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  background: radial-gradient(circle at 50% 20%, var(--canvas-alt), var(--canvas) 60%);
}
.stage-inner { max-width: 900px; }
.stage-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.6rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
}
.stage-display {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .95;
  color: var(--primary-dark);
}
.stage-dot { color: var(--accent); }
.stage-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 1.6rem auto 2.4rem;
  line-height: 1.7;
}
.stage-typed { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); }
.stage-actions { display: flex; justify-content: center; }


.plaza { padding: clamp(4rem, 8vw, 7rem) 1.5rem; }
.plaza-inner { max-width: 1200px; margin: 0 auto; }
.plaza-split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.plaza-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}
.plaza-tag-light { color: var(--accent); }
.section-head {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.section-head-light { color: var(--canvas); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; }
.plaza-p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.1rem; }
.plaza-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.plaza-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s ease; }
.plaza-media:hover .plaza-img { transform: scale(1.05); }
.plaza-dark { background: var(--canvas-alt); }
.plaza-ink { background: var(--primary-dark); }
.plaza-ink .plaza-p { color: var(--canvas-alt); }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .85rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); font-size: .98rem; }
.check-list li i { color: var(--accent-dark); margin-top: .2rem; }
.check-list-light li { color: var(--canvas-alt); }
.check-list-light li i { color: var(--accent); }


.gallery { padding: clamp(4rem, 8vw, 7rem) 1.5rem; }
.gallery-tight { padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
.gallery-inner { max-width: 1280px; margin: 0 auto; }
.gallery-head { max-width: 680px; margin-bottom: 3rem; }

.shelf { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }

.shelf-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  position: relative;
}
.shelf-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.shelf-media { aspect-ratio: 16/10; overflow: hidden; }
.shelf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shelf-card:hover .shelf-media img { transform: scale(1.08); }
.shelf-body { padding: 1.8rem; position: relative; }
.shelf-index {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-dark);
}
.shelf-title { font-size: 1.25rem; margin: .6rem 0 .8rem; }
.shelf-text { color: var(--ink-soft); font-size: .95rem; }
.shelf-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .4s ease, margin-top .4s ease;
  border-top: 1px dashed var(--border-strong);
  margin-top: 0;
}
.shelf-card:hover .shelf-reveal { max-height: 120px; opacity: 1; margin-top: 1rem; padding-top: 1rem; }
.shelf-reveal p { font-size: .85rem; color: var(--primary-light); margin-bottom: .4rem; }
.shelf-reveal p i { margin-right: .5rem; color: var(--accent-dark); }


.shelf-values { grid-template-columns: 1fr; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: var(--shadow-sm);
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary);
}
.value-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--canvas-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  transition: all .35s ease;
}
.value-card:hover .value-icon { background: var(--accent); color: var(--primary-dark); transform: rotate(-6deg) scale(1.05); }
.value-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.value-card p { color: var(--ink-soft); font-size: .92rem; }


.pathway { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 1.5rem; }
.pathway-step { display: flex; gap: 1.2rem; align-items: flex-start; }
.pathway-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.pathway-step h3 { color: var(--canvas); font-size: 1.05rem; margin-bottom: .3rem; }
.pathway-step p { color: var(--canvas-alt); font-size: .92rem; }


.frame-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.frame-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.frame-item img { width: 100%; height: 340px; object-fit: cover; transition: transform .6s ease; }
.frame-item:hover img { transform: scale(1.07); }
.frame-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(11,30,51,.9), transparent);
  color: var(--canvas);
  font-size: .88rem;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.frame-item:hover figcaption { transform: translateY(0); }


.split-columns { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.split-col h3 { color: var(--canvas); font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.split-col h3 i { color: var(--accent); }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.plain-list li {
  color: var(--canvas-alt); font-size: .93rem;
  padding-left: 1.2rem; position: relative;
}
.plain-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }


.shelf-contact { grid-template-columns: 1fr; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.contact-icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .6rem;
  transition: background .35s ease, transform .35s ease;
}
.contact-card:hover .contact-icon { background: var(--accent); color: var(--primary-dark); transform: scale(1.1); }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { color: var(--ink); font-weight: 600; }
.contact-hint { font-size: .82rem; color: var(--ink-faint); }


.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  text-align: center;
}
.cta-band-inner { max-width: 700px; margin: 0 auto; }
.cta-band-inner h2 { color: var(--canvas); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .9rem; }
.cta-band-inner p { color: var(--canvas-alt); margin-bottom: 1.8rem; font-size: 1.02rem; }


.anchor { background: var(--primary-dark); padding: 4rem 1.5rem 1.5rem; margin-top: auto; }
.anchor-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.anchor-col h4 { color: var(--canvas); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.anchor-col a, .anchor-col p { display: block; color: var(--canvas-alt); font-size: .92rem; margin-bottom: .7rem; transition: color .3s ease; }
.anchor-col a:hover { color: var(--accent); }
.anchor-brand { display: flex; flex-direction: column; gap: 1rem; }
.anchor-brand p { color: var(--canvas-alt); font-size: .9rem; margin-bottom: 0; }
.anchor-bottom { max-width: 1280px; margin: 1.5rem auto 0; text-align: center; }
.anchor-bottom p { color: var(--ink-faint); font-size: .82rem; }
html, body { height: 100%; }
main { display: block; }
body.canvas { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }


.page-header { padding: 10rem 1.5rem 4rem; text-align: center; background: linear-gradient(180deg, var(--canvas-alt), var(--canvas)); }
.page-header-inner { max-width: 780px; margin: 0 auto; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin: 1rem 0 1.3rem; line-height: 1.15; }
.page-lead { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }


.shelf-personas { grid-template-columns: 1fr; }
.persona-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 2rem; transition: all .35s ease; box-shadow: var(--shadow-sm);
}
.persona-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.persona-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: var(--canvas-alt); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
  transition: all .3s ease;
}
.persona-card:hover .persona-icon { background: var(--primary); color: var(--canvas); }
.persona-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.persona-card p { color: var(--ink-soft); font-size: .92rem; }


.shelf-templates { grid-template-columns: 1fr; }
.template-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 2.2rem; transition: all .35s ease; box-shadow: var(--shadow-sm); position: relative;
}
.template-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.template-icon {
  width: 54px; height: 54px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem;
  transition: all .35s ease;
}
.template-card:hover .template-icon { background: var(--primary); color: var(--canvas); transform: rotate(8deg); }
.template-card h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.template-card p { color: var(--ink-soft); font-size: .92rem; }
.template-reveal {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .4s ease, margin-top .4s ease;
}
.template-card:hover .template-reveal { max-height: 100px; opacity: 1; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); }
.template-reveal p { font-size: .82rem; color: var(--primary-light); margin-bottom: .35rem; }
.template-reveal p i { margin-right: .5rem; color: var(--accent-dark); }


.ledger { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; margin: 0 auto; }
.ledger-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
.ledger-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ledger-trigger {
  width: 100%; padding: 1.3rem 1.6rem; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 1rem; color: var(--primary-dark); text-align: left;
}
.ledger-trigger i { transition: transform .35s ease; color: var(--accent-dark); }
.ledger-item.is-open .ledger-trigger i { transform: rotate(180deg); }
.ledger-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.ledger-item.is-open .ledger-panel { max-height: 300px; }
.ledger-panel p { padding: 0 1.6rem 1.4rem; color: var(--ink-soft); font-size: .94rem; line-height: 1.7; }


.folder { display: flex; flex-direction: column; gap: 1rem; }
.folder-section { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); transition: border-color .3s ease; }
.folder-section.is-open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.folder-trigger {
  width: 100%; padding: 1.1rem 1.4rem; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--primary-dark); background: var(--canvas-alt); font-size: .96rem;
}
.folder-trigger:disabled { opacity: .5; cursor: not-allowed; }
.folder-trigger i { transition: transform .3s ease; }
.folder-section.is-open .folder-trigger i { transform: rotate(180deg); }
.folder-body { max-height: 0; overflow: hidden; padding: 0 1.4rem; transition: max-height .45s ease, padding .45s ease; display: flex; flex-direction: column; gap: .9rem; }
.folder-section.is-open .folder-body { max-height: 600px; padding: 1.4rem; }
.folder-body label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.folder-body input, .folder-body textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--canvas); transition: border-color .3s ease, box-shadow .3s ease;
  min-height: 44px;
}
.folder-body textarea { min-height: 120px; resize: vertical; }
.folder-body input:focus, .folder-body textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,168,87,.2); }
.checkbox-row { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; font-weight: 400; color: var(--ink-soft); }
.checkbox-row input { width: 20px; height: 20px; min-height: unset; flex-shrink: 0; margin-top: .1rem; accent-color: var(--accent-dark); }
.checkbox-row a { color: var(--primary); text-decoration: underline; }

.response-note {
  margin-top: 1.5rem; background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.response-note h3 { font-size: 1rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.response-note h3 i { color: var(--accent-dark); }
.response-note p { font-size: .9rem; color: var(--ink-soft); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }


.thanks-stage { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 10rem 1.5rem 4rem; text-align: center; }
.thanks-inner { max-width: 560px; }
.thanks-icon { font-size: 4rem; color: var(--accent-dark); margin-bottom: 1.5rem; }
.thanks-inner h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.thanks-inner p { color: var(--ink-soft); margin-bottom: 2rem; font-size: 1.02rem; }


.legal-stage { padding: 10rem 1.5rem 5rem; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.6rem; }
.legal-body h2 { font-size: 1.25rem; margin-bottom: -.4rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.legal-body p { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }
.legal-body strong { color: var(--primary-dark); }


.signal { position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 800; }
.signal-btn {
  width: 58px; height: 58px; border-radius: var(--radius-full);
  background: var(--primary); color: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-lg);
  position: relative; transition: all .35s ease;
}
.signal-btn:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-4px) rotate(-6deg); }
.signal-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--canvas);
  display: none;
}
.signal-badge.is-visible { display: block; }

.signal-panel {
  position: fixed; bottom: 0; right: 0; left: 0;
  max-width: 480px; margin-left: auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.8rem;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  z-index: 850;
  max-height: 85vh;
  overflow-y: auto;
}
.signal-panel.is-open { transform: translateY(0); }
.signal-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.signal-panel-head h3 { font-size: 1.15rem; }
.signal-panel-head button { font-size: 1.2rem; color: var(--ink-faint); transition: color .3s ease; }
.signal-panel-head button:hover { color: var(--primary-dark); }
.signal-panel-text { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.3rem; line-height: 1.6; }
.signal-panel-text a { color: var(--primary); text-decoration: underline; }
.signal-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); }
.signal-row strong { font-size: .9rem; color: var(--primary-dark); }
.signal-row p { font-size: .8rem; color: var(--ink-faint); margin-top: .2rem; }
.signal-locked { font-size: .75rem; color: var(--ink-faint); font-weight: 600; white-space: nowrap; margin-top: .2rem; }
.signal-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: .1rem; }
.signal-switch input { opacity: 0; width: 0; height: 0; }
.signal-switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--radius-full); transition: background .3s ease; }
.signal-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--surface); border-radius: 50%; transition: transform .3s ease; }
.signal-switch input:checked + span { background: var(--accent-dark); }
.signal-switch input:checked + span::before { transform: translateX(20px); }
.signal-actions { display: flex; gap: .9rem; margin-top: 1.3rem; }
.signal-actions button { flex: 1; }


@media (max-width: 1023px) {
  .compass-left, .compass-right { display: none; }
  .compass-toggle { display: flex; }
  .compass-bar { justify-content: space-between; }
  .compass-brand { padding: 0; }
}
@media (min-width: 640px) {
  .plaza-split { grid-template-columns: 1fr 1fr; }
  .plaza-split-reverse .plaza-media { order: 2; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .shelf-values { grid-template-columns: repeat(2, 1fr); }
  .shelf-contact { grid-template-columns: repeat(3, 1fr); }
  .shelf-personas { grid-template-columns: repeat(2, 1fr); }
  .shelf-templates { grid-template-columns: repeat(2, 1fr); }
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
  .split-columns { grid-template-columns: repeat(2, 1fr); }
  .pathway { flex-direction: row; }
  .pathway-step { flex-direction: column; align-items: flex-start; flex: 1; }
  .anchor-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .shelf-values { grid-template-columns: repeat(4, 1fr); }
  .shelf-templates { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .signal-panel { max-width: 100%; }
  .stage-display { font-size: clamp(3.2rem, 20vw, 6rem); }
}