:root {
  --paper: #e8d7b1;
  --paper-light: #f6ecd7;
  --paper-dark: #dbc39a;
  --ink: #231b14;
  --muted: #6f614b;
  --line: rgba(35, 27, 20, .18);
  --accent: #9c7531;
  --card: rgba(255,255,255,.34);
  --shadow: 0 10px 30px rgba(50, 35, 18, .08);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.35), transparent 38rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(62,42,19,.08) .6px, transparent 1.25px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  z-index: 50;
}

a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.centered { text-align: center; }
.compact h2 { margin-bottom: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 236, 215, .96);
  border-top: 1px solid rgba(35, 27, 20, .20);
  border-bottom: 1px solid rgba(35, 27, 20, .24);
  box-shadow: 0 3px 16px rgba(45, 31, 17, .05);
  backdrop-filter: blur(10px);
}
.nav-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.brand span {
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.brand small {
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.nav-links > a,
.nav-dropbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .67rem;
  letter-spacing: .17em;
  cursor: pointer;
}
.nav-links > a::after,
.nav-dropbtn::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.nav-links > a:hover,
.nav-links > a:focus-visible,
.nav-dropbtn:hover,
.nav-dropdown:focus-within .nav-dropbtn {
  color: var(--ink);
}
.nav-links > a:hover::after,
.nav-links > a:focus-visible::after,
.nav-dropbtn:hover::after,
.nav-dropdown:focus-within .nav-dropbtn::after {
  transform: scaleX(1);
}
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-dropbtn span {
  margin-left: 6px;
  font-size: .82rem;
  transform: translateY(-1px);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  min-width: 220px;
  padding: 9px;
  background: rgba(246, 236, 215, .995);
  border: 1px solid rgba(35, 27, 20, .22);
  box-shadow: 0 14px 35px rgba(45, 31, 17, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 30;
}
.nav-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 28px;
  width: 9px;
  height: 9px;
  background: rgba(246, 236, 215, .995);
  border-left: 1px solid rgba(35, 27, 20, .22);
  border-top: 1px solid rgba(35, 27, 20, .22);
  transform: rotate(45deg);
}
.nav-menu a {
  display: block;
  padding: 11px 13px;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .94rem;
  border-bottom: 1px solid rgba(35, 27, 20, .08);
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(156, 117, 49, .08);
  color: #72521f;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-banner {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #dcc49a;
  border-bottom: 1px solid rgba(52, 37, 22, .22);
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -18px 28px rgba(52, 37, 22, .05);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
  filter: saturate(.96) contrast(1.025);
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.shade { background: rgba(90, 70, 35, .04); }
.label {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #5a6740;
}
h2 {
  margin: 10px 0 24px;
  font-weight: 400;
  line-height: 1.06;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  letter-spacing: -.02em;
}
p { margin: 0 0 18px; font-size: clamp(1.04rem, 2vw, 1.18rem); }

.market-strip {
  padding: 62px 0 72px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.28), transparent 32rem),
    rgba(90, 70, 35, .025);
}
.market-strip .section-heading {
  max-width: 720px;
  margin: 0 auto;
}
.market-strip .label {
  margin-bottom: 8px;
}
.market-strip h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  letter-spacing: -.018em;
}
.market-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.market-card {
  position: relative;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(35,27,20,.16);
  padding: 22px 24px 24px;
  box-shadow: 0 8px 22px rgba(50,35,18,.055);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.market-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 38px;
  height: 1px;
  background: rgba(156,117,49,.72);
}
.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(156,117,49,.36);
  background: rgba(255,255,255,.40);
}
.market-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .66rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.market-card strong {
  display: block;
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  line-height: 1.15;
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.story-copy p { margin-bottom: 10px; }
blockquote {
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.35;
}
blockquote strong { font-weight: 400; color: #556238; }

.facts {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts span {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .7rem;
  color: var(--muted);
}
.facts strong { font-size: 1rem; text-align: right; }

.contract-card {
  margin: 32px auto 18px;
  padding: 24px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(35, 27, 20, .28);
  box-shadow: var(--shadow);
}
.contract-card span {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--muted);
}
.contract-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.copy-button {
  margin-top: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
}
.warning {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted);
  font-size: .93rem;
}

.footer-link-groups {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 30px;
  justify-content: center;
}
.link-group {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.link-group h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.link-group a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  font-size: 1rem;
}
.link-group a[aria-disabled="true"] { opacity: .8; }
.link-group a:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  background: rgba(42, 30, 18, .92);
  color: #efe3cb;
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.footer-name {
  font-weight: 700;
  letter-spacing: .18em;
  color: #f4d08d;
}
.risk {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: .92rem;
  color: rgba(239, 227, 203, .85);
}
.support-copy {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: .95rem;
  color: rgba(239, 227, 203, .9);
}
.support-copy strong {
  color: #f4d08d;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.icon-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 141, .35);
  background: rgba(255,255,255,.05);
  color: #f4d08d;
  text-decoration: none;
}
.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.icon-badge .icon-cutout {
  fill: rgba(42, 30, 18, .92);
}
.icon-badge .stroke-only {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.icon-badge:hover {
  background: rgba(244, 208, 141, .12);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-right {
  text-align: right;
}
.footer-label { color: #cdb58a; }
.footer-quote {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
  color: #f7ecd8;
}
.footer-quote strong {
  font-weight: 400;
  color: #f4d08d;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 227, 203, .14);
}

.footer-final-quote {
  margin: 0 auto 18px;
  max-width: 900px;
  text-align: center;
  font-size: clamp(.98rem, 1.7vw, 1.18rem);
  line-height: 1.7;
  font-style: italic;
  color: rgba(247, 236, 216, .92);
  letter-spacing: .015em;
}

.copyright { margin: 0; font-size: .75rem; color: rgba(239, 227, 203, .72); }

@media (max-width: 900px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
}

@media (max-width: 720px) {
  .nav-row {
    display: block;
    padding: 10px 0 0;
  }
  .brand {
    margin-bottom: 8px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    border-top: 1px solid rgba(35, 27, 20, .12);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links > a,
  .nav-dropbtn {
    min-height: 44px;
    padding: 0 10px;
    font-size: .61rem;
  }
  .nav-links > a::after,
  .nav-dropbtn::after {
    left: 10px;
    right: 10px;
    bottom: 7px;
  }
  .nav-menu {
    position: fixed;
    top: 96px;
    left: 18px;
    right: 18px;
    min-width: 0;
  }
  .nav-menu::before { display: none; }
  .section { padding: 68px 0; }
  .hero-banner { width: 100%; margin: 0; }
  .market-strip { padding: 50px 0 58px; }
  .market-grid { gap: 10px; margin-top: 26px; }
  .market-card { min-height: 112px; padding: 19px 20px 21px; }
  .market-grid,
  .footer-link-groups { grid-template-columns: 1fr; }
  .facts > div {
    flex-direction: column;
    gap: 6px;
  }
  .facts strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Live DEX chart page */
.nav-chart {
  padding: 0;
  border: 0;
  background: transparent;
}
.nav-chart.active,
.nav-chart:hover {
  background: transparent;
  color: var(--ink) !important;
}
.chart-page { min-height: 78vh; padding-top: 58px; }
.chart-heading { margin-bottom: 30px; }
.chart-title {
  margin: 4px 0 8px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.chart-subtitle { color: var(--muted); }
.chart-shell {
  width: min(100%, 1040px);
  min-height: 590px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.43);
  box-shadow: var(--shadow);
}
.chart-shell iframe {
  display: block;
  width: 100%;
  height: 550px;
  border: 0;
}
.chart-placeholder {
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  border: 1px dashed rgba(35,27,20,.25);
}
.chart-placeholder-mark {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.chart-placeholder h2 { margin: 18px 0 8px; font-size: 2rem; font-weight: 400; }
.chart-small { max-width: 620px; color: var(--muted); font-size: .92rem; }
.chart-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.chart-button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  text-decoration: none;
  letter-spacing: .09em;
  font-size: .78rem;
  text-transform: uppercase;
}
.chart-button.secondary { background: transparent; color: var(--ink); }
.disabled-link { opacity: .55; pointer-events: none; }
@media (max-width: 720px) {
  .chart-shell { min-height: 470px; padding: 10px; }
  .chart-shell iframe, .chart-placeholder { min-height: 440px; height: 440px; }
}


/* V14 refinements: story through footer */
.story-section {
  padding-top: 76px;
  padding-bottom: 80px;
}
.story-section h2 {
  max-width: 690px;
  margin-bottom: 30px;
}
.story-lines {
  max-width: 700px;
}
.story-lines p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(35, 27, 20, .10);
  font-size: clamp(1.05rem, 1.9vw, 1.17rem);
}
.story-lines p:first-child {
  border-top: 1px solid rgba(35, 27, 20, .10);
}
.story-mantra {
  display: grid;
  gap: 3px;
  margin-top: 38px;
  padding: 30px 0 0;
  border-top: 1px solid rgba(35,27,20,.22);
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.story-mantra span,
.story-mantra strong {
  display: block;
}
.story-mantra strong {
  color: #556238;
  font-weight: 400;
}

.philosophy-section {
  padding-top: 78px;
  padding-bottom: 78px;
}
.philosophy-copy {
  max-width: 760px;
}
.philosophy-copy h2 {
  max-width: 700px;
  margin-bottom: 28px;
}
.philosophy-copy p {
  max-width: 690px;
}
.philosophy-lead {
  font-size: clamp(1.16rem, 2.15vw, 1.38rem);
  line-height: 1.55;
  color: #3e3426;
}

.facts-section {
  padding-top: 76px;
  padding-bottom: 80px;
}
.facts-title {
  margin-top: 8px;
  margin-bottom: 26px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
}
.facts {
  margin-top: 0;
  border-top: 1px solid rgba(35,27,20,.26);
}
.facts > div {
  min-height: 58px;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(35,27,20,.14);
}
.facts span {
  color: #75664f;
}
.facts strong {
  color: #2e261c;
  font-weight: 600;
  letter-spacing: .01em;
}

.launch-section {
  padding-top: 78px;
  padding-bottom: 82px;
}
.launch-section h2 {
  margin-bottom: 16px;
}
.launch-section > .wrap-narrow > p:not(.label):not(.warning) {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contract-card {
  position: relative;
  max-width: 720px;
  margin: 34px auto 20px;
  padding: 28px 28px 26px;
  background: rgba(35, 27, 20, .92);
  color: #f3e5c8;
  border: 1px solid rgba(156,117,49,.48);
  box-shadow: 0 14px 34px rgba(48, 32, 16, .12);
}
.contract-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 72px;
  height: 2px;
  transform: translateX(-50%);
  background: #b99045;
}
.contract-card span {
  color: #d8c29a;
}
.contract-card code {
  display: block;
  margin-top: 2px;
  color: #f6e7c9;
  font-size: clamp(.92rem, 2vw, 1.04rem);
  letter-spacing: .015em;
}
.copy-button {
  color: #f6e7c9;
  border-color: rgba(246,231,201,.5);
}
.copy-button:hover {
  background: rgba(246,231,201,.08);
}
.warning {
  max-width: 650px;
  line-height: 1.55;
  font-size: .9rem;
}

.links-section {
  padding-top: 74px;
  padding-bottom: 78px;
}
.links-section h2 {
  margin-bottom: 24px;
}
.footer-link-groups {
  gap: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.link-group {
  padding: 22px 24px;
  box-shadow: none;
  background: rgba(255,255,255,.24);
}
.link-group h3 {
  margin-bottom: 14px;
  font-size: .9rem;
}
.link-group a {
  margin: 8px 0;
  font-size: .98rem;
}

footer {
  padding-top: 44px;
  padding-bottom: 26px;
}
.footer-grid {
  gap: 54px;
}
.footer-left,
.footer-right {
  align-self: start;
}
.footer-name {
  margin-bottom: 12px;
}
.risk {
  max-width: 610px;
  font-size: .82rem;
  line-height: 1.55;
}
.support-copy {
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.5;
}
.icon-row {
  margin-top: 24px;
  gap: 11px;
}
.icon-badge {
  width: 44px;
  height: 44px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.icon-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(244,208,141,.58);
}
.footer-right {
  padding-top: 2px;
}
.footer-quote {
  max-width: 390px;
  margin-left: auto;
  font-size: clamp(1.22rem, 2.25vw, 1.68rem);
}
.footer-bottom {
  margin-top: 32px;
}

@media (max-width: 720px) {
  .story-lines p { padding: 10px 0; }
  .story-mantra { margin-top: 30px; padding-top: 24px; }
  .contract-card { padding: 24px 18px; }
  .footer-grid { gap: 30px; }
  .footer-quote { margin-left: 0; }
}


.quote-block {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(239, 227, 203, .14);
  text-align: center;
}
.final-quote {
  margin: 0 auto;
  padding: 0;
  border: 0;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  font-style: italic;
  color: #f7ecd8;
}
.final-quote span {
  display: block;
}
.quote-attribution {
  margin: 12px 0 0;
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(239, 227, 203, .72);
}


.footer-final-quote strong {
  color: #f4d08d;
  font-weight: 400;
}

.risk strong { font-weight: 700; color: #f7ecd8; }
.support-copy strong { font-weight: 700; color: #f7ecd8; }

.support-label {
  color: #f4d08d;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}
