:root {
  --bg: #1a0e08;
  --bg-2: #2a1810;
  --bg-3: #3a2418;
  --surface: #2a1810;
  --surface-2: #3a2418;
  --border: rgba(212, 165, 116, 0.18);
  --border-strong: rgba(212, 165, 116, 0.45);
  --text: #f5deb3;
  --text-dim: rgba(245, 222, 179, 0.7);
  --text-faint: rgba(245, 222, 179, 0.45);
  --red: #6b4423;
  --ember: #c8963e;
  --ember-bright: #d4a574;
  --green: #8a9a5b;
  --green-deep: #4a5d23;
  --gold: #d4a574;
  --blue: #8a9a5b;
  --purple: #8b7355;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ====== TOPBAR ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--text);
  padding: 4px;
  filter: drop-shadow(0 4px 12px rgba(243, 144, 33, 0.3));
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; max-width: 260px; }
.brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 880px) { .brand-tagline { display: none; } }
.brand-pre {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  margin-top: 2px;
}
.topbar-meta { display: flex; gap: 24px; }
.meta-item { font-size: 12px; color: var(--text-dim); }
.meta-item strong { color: var(--text); margin-right: 4px; }
@media (max-width: 760px) { .topbar-meta { display: none; } }

/* ====== EYEBROW / TITLES ====== */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow--center { text-align: center; }

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--ember-bright) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 88vh;
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.glow-1 { top: 10%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, var(--red) 0%, transparent 70%); }
.glow-2 { bottom: 5%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, var(--ember) 0%, transparent 70%); animation-delay: 2s; }
.glow-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: radial-gradient(circle, var(--green-deep) 0%, transparent 70%); animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.hero-title .arrow {
  display: inline-block;
  color: var(--ember);
  font-size: 0.7em;
  margin: 0 0.1em;
  transform: translateY(-0.05em);
}
.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--ember-bright) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 24px 0 36px;
}
@media (max-width: 880px) {
  .hero-sub { margin-left: auto; margin-right: auto; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  max-width: 560px;
}
@media (max-width: 880px) { .hero-stats { margin-left: auto; margin-right: auto; } }
@media (max-width: 540px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: rgba(245, 230, 200, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--ember);
  line-height: 1;
}
.stat-num small { font-size: 0.5em; color: var(--text-dim); margin-left: 2px; }
.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 880px) { .hero-actions { justify-content: center; } }

.btn-primary, .btn-secondary, .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(200, 22, 29, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(200, 22, 29, 0.8); }
.btn-secondary {
  background: rgba(245, 230, 200, 0.06);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(245, 230, 200, 0.1); transform: translateY(-2px); }
.btn-link {
  background: none;
  color: var(--ember);
  border: none;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--ember);
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
}
.btn-link:hover { color: var(--ember-bright); border-color: var(--ember-bright); }

/* hero art */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.hero-lottie { display: none; }

.logo-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.logo-glow {
  position: absolute;
  inset: 18%;
  background: radial-gradient(circle, rgba(243, 144, 33, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  animation: logoGlow 4s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.logo-main {
  position: relative;
  z-index: 2;
  width: 64%;
  height: auto;
  background: var(--text);
  border-radius: 50%;
  padding: 6%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(243, 144, 33, 0.3);
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--ember);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  margin-left: -2px;
  width: 4px; height: 6px;
  background: var(--ember-bright);
  border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ====== ROADMAP STRIP ====== */
.roadmap-strip {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  text-align: center;
}
.strip-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 40px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}
.strip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.strip-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.strip-status {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.strip-status.done { background: var(--green); color: #fff; }
.strip-status.doing { background: var(--ember); color: var(--bg); animation: pulse 2s ease-in-out infinite; }
.strip-status.pending { background: rgba(245, 230, 200, 0.1); color: var(--text-faint); border: 1px solid var(--border); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 144, 33, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(243, 144, 33, 0); }
}
.strip-text { display: flex; flex-direction: column; gap: 4px; }
.strip-text-item { font-size: 14px; color: var(--text); font-weight: 500; }
.strip-text-note { font-size: 12px; color: var(--text-dim); }

/* ====== CONTEXTS / TABS ====== */
.contexts {
  padding: 100px 24px;
  background: var(--bg-2);
}
.ctx-title {
  text-align: center;
  margin-bottom: 16px;
}
.ctx-lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 60px;
  font-size: 16px;
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.tab-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tab-color, var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.tab-btn:hover { transform: translateY(-3px); border-color: var(--tab-color, var(--ember)); }
.tab-btn:hover::before, .tab-btn.active::before { transform: scaleX(1); }
.tab-btn.active { background: var(--surface-2); border-color: var(--tab-color, var(--ember)); }
.tab-icon { font-size: 24px; }
.tab-title { font-weight: 600; font-size: 14px; }
.tab-subtitle { font-size: 11px; color: var(--text-dim); letter-spacing: 0.02em; }

.tabs-content { min-height: 400px; position: relative; }
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .panel-card { grid-template-columns: 1fr; padding: 32px; }
}

.panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.panel-icon {
  font-size: 38px;
  width: 64px; height: 64px;
  background: rgba(245, 230, 200, 0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-head-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}
.panel-head-text .panel-sub {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}
.panel-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ember);
  margin: 16px 0 20px;
  line-height: 1.3;
}
.panel-summary {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
}
.panel-quote {
  border-left: 3px solid var(--ember);
  padding: 12px 0 12px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  margin-top: 28px;
  background: rgba(243, 144, 33, 0.04);
}

.panel-aside {
  background: rgba(245, 230, 200, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.panel-aside h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.panel-aside ul, .panel-aside dl { list-style: none; }
.panel-aside li, .panel-aside dt {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.panel-aside li:last-child, .panel-aside dt:last-child { border-bottom: none; }
.panel-aside dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 0 4px;
  border-bottom: none;
}
.panel-aside dd {
  font-size: 15px;
  color: var(--text);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
}

.btn-deep {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(243, 144, 33, 0.1);
  color: var(--ember-bright);
  border: 1px solid var(--ember);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-deep:hover {
  background: var(--ember);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ====== BRAND IDENTITY ====== */
.brand-identity {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-2) 0%, #2a1f15 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.brand-identity::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 600px; height: 600px;
  margin-left: -300px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.brand-identity .wrap { position: relative; z-index: 2; }
.brand-title { text-align: center; margin-bottom: 16px; }
.brand-lead {
  text-align: center;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 60px;
}
.brand-lead strong {
  color: var(--ember-bright);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
}

.brand-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .brand-grid { grid-template-columns: 1fr; } }

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.brand-card-art {
  background: linear-gradient(135deg, #f5e6c8 0%, #e8d4a8 100%);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 165, 116, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(90, 62, 43, 0.3) 0%, transparent 50%);
  pointer-events: none;
}
.brand-card-art--full { padding: 0; }
.brand-card-art--full img { width: 100%; height: auto; display: block; }
.brand-card--logo .brand-card-art img {
  width: 70%;
  max-width: 260px;
  height: auto;
  position: relative;
  z-index: 2;
  animation: cardLogoSpin 30s linear infinite;
}
@keyframes cardLogoSpin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.brand-card:hover .brand-card-art img { animation-play-state: paused; }

.brand-card-text { padding: 28px 32px; }
.brand-card-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 8px;
}
.brand-card-text p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.brand-tokens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.token-card {
  background: rgba(245, 230, 200, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.token-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  background: rgba(243, 144, 33, 0.06);
}
.token-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 10px;
}
.token-value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.token-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ====== CONVERSATION TIMELINE ====== */
.conversation {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.conv-title { text-align: center; margin-bottom: 60px; }
.conv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .conv-grid { grid-template-columns: 1fr; } }
.conv-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  transition: transform 0.2s ease, border-left-color 0.2s ease;
}
.conv-block:hover {
  transform: translateX(4px);
  border-left-color: var(--ember-bright);
}
.conv-time {
  font-family: 'Inter', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ember);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.conv-block h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.conv-block p { font-size: 14px; color: var(--text-dim); }

/* ====== CTA FINAL ====== */
.cta-final {
  position: relative;
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #2a0c0a 50%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}
.cta-final::before, .cta-final::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.cta-final::before {
  top: 20%; left: 10%;
  width: 300px; height: 300px;
  background: var(--red);
}
.cta-final::after {
  bottom: 20%; right: 10%;
  width: 400px; height: 400px;
  background: var(--ember);
}
.cta-final .wrap { position: relative; z-index: 2; }
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
}
.cta-sub { font-size: 17px; color: var(--text-dim); margin: 24px 0 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====== FOOTER ====== */
.foot {
  background: #050403;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.foot a { color: var(--ember); text-decoration: none; }
.foot a:hover { color: var(--ember-bright); }

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.modal-overlay[aria-hidden="false"] { display: flex; }
.modal {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: sticky;
  top: 16px;
  margin-left: auto;
  margin-right: 16px;
  display: block;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(245, 230, 200, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: rgba(243, 144, 33, 0.3); transform: rotate(90deg); }
.modal-content { padding: 0 48px 48px; margin-top: -40px; }
@media (max-width: 640px) { .modal-content { padding: 0 24px 32px; } }

.modal-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}
.modal-icon {
  font-size: 48px;
  width: 80px; height: 80px;
  background: rgba(245, 230, 200, 0.06);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-head-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.02em;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.modal-head-text h2 em { background: linear-gradient(135deg, var(--ember-bright), var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.modal-head-text .modal-sub {
  font-size: 13px;
  color: var(--ember);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.modal-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--ember);
}
.modal-summary {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.modal-section {
  margin-bottom: 28px;
}
.modal-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ember-bright);
  margin-bottom: 10px;
}
.modal-section p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.modal-item {
  background: rgba(245, 230, 200, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.modal-item:hover { border-color: var(--ember); transform: translateY(-2px); }
.modal-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-item-desc { font-size: 13px; color: var(--text-dim); }

.modal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.modal-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.modal-list li:last-child { border-bottom: none; }
.modal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 2px;
  background: var(--ember);
}

.modal-check {
  list-style: none;
  padding: 0;
}
.modal-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(245, 230, 200, 0.03);
  border: 1px solid var(--border);
}
.modal-check li.done { border-color: rgba(82, 183, 136, 0.3); }
.modal-check li.doing { border-color: rgba(243, 144, 33, 0.4); background: rgba(243, 144, 33, 0.06); }
.check-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.check-mark.done { background: var(--green); color: #fff; }
.check-mark.doing { background: var(--ember); color: var(--bg); }
.check-mark.pending { background: rgba(245, 230, 200, 0.1); color: var(--text-faint); border: 1px solid var(--border); }
.check-text { flex: 1; }
.check-title { font-size: 14px; color: var(--text); font-weight: 500; }
.check-note { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.modal-quote {
  border-left: 4px solid var(--ember);
  padding: 16px 0 16px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 0;
  background: rgba(243, 144, 33, 0.05);
  border-radius: 0 12px 12px 0;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.modal-stat {
  text-align: center;
  padding: 18px 12px;
  background: rgba(245, 230, 200, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.modal-stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  background: linear-gradient(135deg, var(--ember-bright), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.modal-stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.modal-table th, .modal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-table th {
  color: var(--ember);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.modal-table td { color: var(--text-dim); }
.modal-table tr:hover td { background: rgba(245, 230, 200, 0.03); }

.modal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 6px;
}
.modal-badge--done { background: rgba(82, 183, 136, 0.15); color: var(--green); border: 1px solid var(--green); }
.modal-badge--doing { background: rgba(243, 144, 33, 0.15); color: var(--ember-bright); border: 1px solid var(--ember); }
.modal-badge--pending { background: rgba(245, 230, 200, 0.05); color: var(--text-faint); border: 1px solid var(--border); }

.modal-callout {
  background: linear-gradient(135deg, rgba(243, 144, 33, 0.1), rgba(200, 22, 29, 0.1));
  border: 1px solid var(--ember);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}
.modal-callout-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-bright);
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-callout-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
