/* ================================
   TRUST.XYZ — v2.0
   Burnt amber · Charcoal · Serif
   ================================ */

:root {
  --bg:           #0d0d0e;
  --bg-surface:   #131315;
  --bg-card:      #1b1b1e;
  --border:       #252528;
  --border-soft:  #1e1e21;

  --accent:       #c87c2c;
  --accent-light: #e8974a;
  --accent-dim:   rgba(200, 124, 44, 0.12);
  --accent-glow:  rgba(200, 124, 44, 0.06);

  --text:         #e8e4dd;
  --text-dim:     #7a7772;
  --text-faint:   #45433f;
  --text-mono:    #9e9a93;

  --serif:        Georgia, 'Times New Roman', Times, serif;
  --mono:         'Courier New', Courier, monospace;
  --sans:         -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:       6px;
  --radius-lg:    12px;
  --nav-height:   56px;
}

/* ================================
   RESET & BASE
   ================================ */

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-light);
}

/* ================================
   NAVIGATION
   ================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 13, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.dropdown { position: relative; }

.dropdown > .nav-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  padding: 0;
  appearance: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 101;
}

/* Invisible bridge to maintain hover across gap */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* Show on hover (desktop) and focus-within (click/touch) */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.active .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  color: var(--text);
  background: var(--bg-surface);
  outline: none;
}

/* ================================
   HERO — NETWORK
   ================================ */

.hero-network {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3rem;
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.hero-label {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.hero-label h1 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: normal;
}

.hero-label p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.network-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  max-width: 220px;
}

.network-tooltip.visible { opacity: 1; }

.network-tooltip .tt-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.network-tooltip .tt-desc {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ================================
   CONTAINER
   ================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   INTRO
   ================================ */

.intro-section {
  padding: 5rem 0 4rem;
  max-width: 640px;
}

.intro-section p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.intro-section p:first-child {
  color: var(--text);
  font-size: 1.2rem;
}

/* ================================
   SECTION HEADERS
   ================================ */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ================================
   CARDS
   ================================ */

.experiments-section { padding: 0 0 5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: rgba(200, 124, 44, 0.3);
  background: #1e1e22;
}

.card:hover::before { opacity: 1; }

.card-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.card p {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.card-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
}

.card:hover .card-link { color: var(--accent-light); }

/* ================================
   DISPATCHES
   ================================ */

.dispatches-section { padding: 0 0 5rem; }

.dispatch-placeholder {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.dispatch-placeholder p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-faint);
  font-style: italic;
}

.dispatch-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  display: block;
}

/* ================================
   LOCI
   ================================ */

.loci-section { padding: 0 0 5rem; }

.loci-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.loci-icon {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--text-faint);
  flex-shrink: 0;
  padding-top: 3px;
}

.loci-card-text h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.loci-card-text p {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.loci-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.loci-link:hover { color: var(--accent-light); }

/* ================================
   FOOTER
   ================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-right {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ================================
   CONTENT PAGES
   ================================ */

.page-content {
  padding-top: 120px; /* fallback for older browsers */
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.page-header .page-subtitle {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}

.prose p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.78;
  margin-bottom: 1.1rem;
  max-width: 660px;
}

.prose strong {
  color: var(--text);
  font-weight: normal;
}

.prose ul {
  list-style: none;
  margin-bottom: 1.1rem;
}

.prose ul li {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  max-width: 560px;
}

.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.info-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 660px;
}

.info-block h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.info-block p,
.info-block li {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.closing-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
  max-width: 560px;
}

/* ================================
   EXPERIMENT PAGES
   ================================ */

.experiment-page {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.experiment-header { margin-bottom: 2rem; }

.exp-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.experiment-header h1 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.experiment-header p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.6;
}

/* ================================
   RESPONSIVE
   ================================ */

/* Tablet */
@media (max-width: 900px) {
  .nav-links { gap: 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .nav-container, .container, .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .page-content {
    padding-top: 100px;
    padding-top: calc(var(--nav-height) + 2.5rem);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .loci-card { flex-direction: column; gap: 1rem; }
  .hero-label p { font-size: 0.9rem; }

  .dropdown-content {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    border-radius: 0;
    min-width: 100%;
  }

  .dropdown-content::before {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .nav-links { gap: 0.5rem; }
  .nav-link { font-size: 0.68rem; }
  .logo { font-size: 0.85rem; }
}

/* ──────────────────────────────────────────────────────────────
   Utility: inline accent emphasis
   Used sparingly — e.g. the first "trust" on the landing page.
   A touch of burnt amber at normal weight. Not a heading. A candle.
   ────────────────────────────────────────────────────────────── */
.accent-word {
  color: var(--accent);
}
/* ─── LOCI.GARDEN — style delta ───────────────────────────────────────────
   Append to trust.xyz style.css. All vars inherited from :root.
   ──────────────────────────────────────────────────────────────────────── */

/* ── Palace map ──────────────────────────────────────────────────────────── */

.palace-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.palace-map {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--accent);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  display: inline-block;
  text-align: left;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.01em;
  overflow-x: auto;
  max-width: 100%;
}

.palace-map .dim { color: var(--text-faint); }

.palace-hero h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: normal;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.palace-hero .tagline {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Three doors ─────────────────────────────────────────────────────────── */

.three-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  max-width: 860px;
  margin: 3.5rem auto;
}

.door {
  background: var(--bg-surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.door-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.door p {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.door-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  margin-top: auto;
}

.door-link:hover { color: var(--text); }

@media (max-width: 640px) {
  .three-doors { grid-template-columns: 1fr; }
}

/* ── Four concepts ───────────────────────────────────────────────────────── */

.concepts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.concept {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.concept h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: normal;
}

.concept p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 600px) {
  .concepts { grid-template-columns: 1fr; }
}

/* ── Key distinction ─────────────────────────────────────────────────────── */

.distinction {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.key-line {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent-light);
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  line-height: 1.4;
  font-style: italic;
}

.distinction p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

/* ── Early adopters ──────────────────────────────────────────────────────── */

.adopters {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.adopter-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.adopter {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.adopter:last-child { margin-bottom: 0; }

.adopter-name {
  color: var(--text);
}

/* ── CTA section ─────────────────────────────────────────────────────────── */

.cta-section {
  max-width: 860px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s;
}

.cta-primary:hover { background: var(--accent-light); }

.cta-secondary {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: border-color 0.15s, color 0.15s;
}

.cta-secondary:hover { border-color: var(--accent); color: var(--accent-light); }

/* ── Section divider ─────────────────────────────────────────────────────── */

.section-rule {
  max-width: 860px;
  margin: 0 auto 3rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Start page ──────────────────────────────────────────────────────────── */

.start-wrap {
  max-width: 640px;
  /* Pull up 300px into the banner so GARDEN is visible at step-01 level */
  margin: -300px auto 0;
  padding: 0 1.5rem 5rem;
  position: relative;
  z-index: 3;
}

.start-wrap h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px #0d0d0e, 0 0 80px #0d0d0e, 0 2px 6px rgba(0,0,0,0.95);
}

.start-wrap .lead {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0 0 2.5rem;
  line-height: 1.65;
  text-shadow: 0 0 30px #0d0d0e, 0 2px 4px rgba(0,0,0,0.9);
}

.soul-note {
  border-left: 2px solid var(--accent);
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.soul-note h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.soul-note p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.soul-note p:last-child { margin: 0; }

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-body {
  min-width: 0; /* prevent flex child from overflowing its container */
}

.step-body h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: normal;
}

.step-body p {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.step-body code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  color: var(--accent-light);
}

.step-body pre {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: var(--text-mono);
  overflow-x: auto;
  margin: 0.75rem 0 0;
}

.step-body pre .accent { color: var(--accent); }

/* ── About page ──────────────────────────────────────────────────────────── */

/* Tea session illustration — same base as palace-map but mask centered lower
   (wizard + fire sit at ~55% height vs. palace lantern at 32%) */
.about-banner-img {
  width: 580px;
  -webkit-mask-image: radial-gradient(
    ellipse 74% 82% at 50% 52%,
    black 20%,
    rgba(0,0,0,0.88) 44%,
    rgba(0,0,0,0.42) 66%,
    transparent 83%
  );
  mask-image: radial-gradient(
    ellipse 74% 82% at 50% 52%,
    black 20%,
    rgba(0,0,0,0.88) 44%,
    rgba(0,0,0,0.42) 66%,
    transparent 83%
  );
}

.about-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* When about-wrap follows the tea session banner */
.about-with-banner {
  margin-top: -160px;
  position: relative;
  z-index: 3;
  padding-top: 2rem;
}

.about-with-banner h1 {
  text-shadow: 0 0 40px #0d0d0e, 0 0 80px #0d0d0e, 0 2px 6px rgba(0,0,0,0.95);
}

.about-wrap h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--text);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.about-wrap h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
  font-weight: normal;
}

.about-wrap p {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.about-wrap a {
  color: var(--accent-light);
  text-decoration: none;
}

.about-wrap a:hover { text-decoration: underline; }

.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.org-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.org-desc {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Seed / dispatch index ───────────────────────────────────────────────── */

.seed-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.seed-wrap h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.seed-wrap .lead {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

.dispatch-entry {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: border-color 0.15s;
}

.dispatch-entry:hover { border-color: var(--accent); }

.dispatch-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.dispatch-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.dispatch-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.dispatch-desc {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ── Wizard hero (image mode) ────────────────────────────────────────────── */

.wizard-hero-section {
  position: relative;
  width: 100%;
}

.wizard-hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bg-surface);
}

/* Hide image wrap when image fails to load; show ASCII fallback */
.wizard-hero-image-wrap.no-image { display: none; }
.wizard-hero-image-wrap.no-image ~ .palace-fallback { display: block; }
.palace-fallback { display: none; }

/* When no image exists at all (src 404 before onerror fires),
   the fallback is also shown via CSS :has() if supported */
@supports not selector(:has(*)) {
  /* Fallback for browsers without :has — show both, wizard-img hidden if 404 */
}

.wizard-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  /* Dithering / pixelated feel */
  image-rendering: auto;
  filter: contrast(1.05) saturate(0.92);
}

/* CRT scanline overlay */
.wizard-hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Text overlay — right third */
.wizard-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
  padding-right: 5%;
}

.wizard-hero-text {
  max-width: 320px;
  text-align: right;
  background: linear-gradient(to left, rgba(13,13,14,0.88) 60%, transparent);
  padding: 2rem 2rem 2rem 4rem;
  border-radius: 4px;
}

.wizard-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.wizard-h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.wizard-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
}

.wizard-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s;
}

.wizard-cta:hover { background: var(--accent-light); }

/* Mobile: stack, text below image */
@media (max-width: 600px) {
  .wizard-hero-image-wrap { aspect-ratio: 4/3; }
  .wizard-hero-overlay { 
    position: relative; 
    background: var(--bg-surface);
    padding: 1.5rem;
    justify-content: flex-start;
  }
  .wizard-hero-text { 
    max-width: 100%; 
    text-align: left;
    background: none;
    padding: 0;
  }
  .wizard-hero-image-wrap::after { display: none; }
}


/* ── Comparison table ────────────────────────────────────────────────────── */

.compare-wrap {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.compare-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

.compare-intro {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 560px;
}

.compare-table thead {
  background: var(--bg-surface);
}

.compare-table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: normal;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th.col-loci {
  color: var(--accent);
}

.compare-table td {
  font-family: var(--serif);
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft, var(--border));
  vertical-align: top;
  line-height: 1.5;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .row-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg-surface);
  white-space: nowrap;
}

.compare-table .col-loci {
  background: var(--accent-glow, rgba(200,124,44,0.05));
}

.compare-table .dim-cell {
  color: var(--text-faint);
}

.compare-table .accent-cell {
  color: var(--accent-light);
  font-style: italic;
}

.compare-footnote {
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.65;
  margin: 1rem 0 0;
  font-style: italic;
}


/* ── Palace eyebrow (ASCII fallback hero) ────────────────────────────────── */

.palace-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}



/* ── Page banner (start.html room illustration) ─────────────────────────── */

.page-banner-section {
  width: 100%;
  padding: 2.5rem 0.75rem 0;
}

.page-banner-wrap {
  /* Matches nav-container max-width (1100px + 15px side padding) */
  width: min(1100px, 100%);
  margin: 0 auto;
  height: 1000px;
  overflow: hidden;
  position: relative;
}

/* Bottom fade to bg — gentle so GARDEN stays visible */
.page-banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 73%,
    rgba(13,13,14,0.5) 84%,
    #0d0d0e 96%
  );
  pointer-events: none;
  z-index: 2;
}

.page-banner-img {
  /* 720px wide → natural height 960px.
     RESEARCH ~576px (60%), GARDEN ~816px (85%) — both in the 1000px frame.
     Radial mask: focuses on lit palace rooms, dims stone exterior/negative space,
     and fades left+right edges smoothly — no hard cuts. */
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 720px;
  height: auto;
  display: block;
  filter: contrast(1.0) saturate(0.82) brightness(0.88);
  -webkit-mask-image: radial-gradient(
    ellipse 78% 80% at 50% 32%,
    black 18%,
    rgba(0,0,0,0.9) 40%,
    rgba(0,0,0,0.45) 62%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 78% 80% at 50% 32%,
    black 18%,
    rgba(0,0,0,0.9) 40%,
    rgba(0,0,0,0.45) 62%,
    transparent 80%
  );
}

@media (max-width: 700px) {
  .page-banner-wrap { height: 640px; }
  .page-banner-img  { width: 92%; position: static; transform: none; margin: 0 auto; display: block; }
  .about-banner-img { width: 88%; }
}

/* ── Mobile optimisation ─────────────────────────────────────────────────── */

/* Reduce start-wrap negative pull-up on mobile so GARDEN still shows
   but content doesn't overlap too aggressively with image */
@media (max-width: 640px) {
  .start-wrap { margin-top: -160px; }
  .about-with-banner { margin-top: -100px; }
  .step { gap: 1rem; }
  .about-wrap, .seed-wrap { padding: 3rem 1rem 4rem; }
  .about-wrap h1, .seed-wrap h1 { font-size: 1.35rem; }
}

/* Small mobile — 480px and below */
@media (max-width: 480px) {
  /* Nav: hide least-critical link to prevent overflow; it's in the footer */
  nav a[href="llms.txt"] { display: none; }
  .nav-container { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Banner pull-up: gentler at small sizes */
  .start-wrap { margin-top: -100px; }
  .about-with-banner { margin-top: -60px; }
  .start-wrap h1 { font-size: 1.3rem; }
  .page-banner-section { padding-top: calc(var(--nav-height) + 0.5rem); }

  /* Spacing */
  .concepts { padding: 0 1rem; gap: 1rem; }
  .compare-wrap, .distinction, .section-rule { padding-left: 1rem; padding-right: 1rem; }
  .adopters { padding: 1.5rem 1.25rem; }
  .cta-section { padding: 0 1rem; flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { text-align: center; }

  /* Homepage hero */
  .wizard-h1 { font-size: 1.5rem; }
  .wizard-hero-text { padding: 0; }

  /* Footer */
  footer { padding: 1.5rem 1rem; }
}
