/* garden.css -- TMG redesign token sheet + base. Hand-authored. 2026-06. */
:root {
  /* Spine (shared with the card) */
  --midnight-980: #06050a;
  --midnight-900: #0d0a1c;     /* page background */
  --panel:        #18142c;     /* elevated surfaces */
  --purple-deep:  #2b2050;
  --purple-mid:   #4a3a8c;
  --purple:       #6b5bd0;     /* primary action */
  --purple-light: #9f8fff;     /* hover, focus, borders at .45-.55 alpha */
  --purple-pale:  #bfb3ff;     /* eyebrows, micro-labels */

  /* TMG accents -- small scale only */
  --evidence:        #00B4D8;
  --evidence-bright: #00d4ff;
  --bloom:           #E91E8C;
  --bloom-bright:    #ff2da5;

  /* Ink */
  --ink:     #f7f3ff;
  --muted:   #a9a1bd;
  --muted-2: #776f8f;

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing (8px grid) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s6: 24px;
  --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;   /* controls */
  --t-med:  420ms;   /* drawers, locks */
  --t-entry: 700ms;  /* page entry max */

  /* Effects */
  --glow-purple: 0 0 30px rgba(107, 91, 208, 0.35), 0 0 60px rgba(43, 32, 80, 0.3);
  --glow-evidence: 0 0 18px rgba(0, 180, 216, 0.35);
  --radius: 8px;     /* repeated cards never exceed this */
  --radius-troy: 14px; /* reserved for t.ROY surfaces only */
}

body.garden {
  background: var(--midnight-900);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.garden h1, .garden h2, .garden h3 { font-family: var(--font-display); }
.garden h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.0; }
.garden h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.05; }
.garden h3 { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--purple-pale);
}

/* ---------- Asset slot placeholder ---------- */
.asset-slot {
  display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(43,32,80,.5), rgba(13,10,28,.9));
  border: 1px dashed rgba(159, 143, 255, .45);
  border-radius: var(--radius);
  min-height: 180px; padding: var(--s8);
}
.asset-slot .slot-id {
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; color: var(--purple-pale); text-transform: uppercase;
}
.asset-slot .slot-desc { color: var(--muted); font-size: .9rem; max-width: 40ch; }
.asset-slot .slot-spec { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: 1rem 1.7rem;
  border-radius: var(--radius); font-family: var(--font-body); font-weight: 600;
  font-size: 1.05rem; cursor: pointer; text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.btn--primary { background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  border: 1px solid rgba(159,143,255,.55); color: #fff;
  box-shadow: 0 10px 32px rgba(43,32,80,.7); }
.btn--primary:hover { transform: translateY(-2px); border-color: var(--purple-pale); }
.btn--ghost { background: transparent; border: 1px solid rgba(159,143,255,.35); color: var(--ink); }
.btn--ghost:hover { border-color: var(--purple-light); }

/* ---------- Receipt chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; padding: .25rem .55rem; border-radius: 6px;
  border: 1px solid; background: rgba(13,10,28,.6); }
.chip--verified { color: var(--evidence); border-color: rgba(0,180,216,.4); }
.chip--onfile  { color: var(--purple-pale); border-color: rgba(159,143,255,.4); }
.chip--private { color: var(--muted); border-color: rgba(169,161,189,.3); }

/* ---------- State trail ---------- */
.trail { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s6);
  flex-wrap: wrap; }
.trail__step {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  position: relative; padding-right: var(--s8);
}
.trail__step:not(:last-child)::after {
  content: '--'; position: absolute; right: 0; color: var(--muted-2);
}
.trail__step.is-done  { color: var(--purple-pale); }
.trail__step.is-now   { color: var(--evidence); }

/* ---------- Testimonial block ---------- */
.testimonial {
  border-left: 2px solid rgba(233, 30, 140, 0.6);
  padding-left: var(--s6);
  margin: var(--s8) 0;
}
.testimonial__quote { font-size: 1.125rem; font-style: italic; color: var(--ink); }
.testimonial__attr  { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: var(--s3); }

/* ---------- Section divider (fallback until DIV-0x assets land) ---------- */
.divider {
  max-width: 1200px; margin: 0 auto; height: 1px;
  background: rgba(159,143,255,.25);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.divider::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  box-shadow: var(--glow-purple);
}
.divider img { max-width: 1200px; width: 100%; opacity: .85; }

/* ---------- Artifact frame ---------- */
.artifact {
  border: 1px solid rgba(159,143,255,.25);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--s8) 0;
}
.artifact img { display: block; width: 100%; height: auto; }
.artifact__cap {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2);
  padding: var(--s3) var(--s4);
  background: rgba(13,10,28,.6);
}

/* ---------- Proof drawer ---------- */
.drawer { overflow: hidden; max-height: 0; transition: max-height var(--t-med) var(--ease-out); }
.drawer.is-open { max-height: 900px; }
.drawer__trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: var(--s4) 0; color: var(--ink); font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(159,143,255,.18);
}
.drawer__trigger::after {
  content: '+'; font-family: var(--font-mono); color: var(--purple-pale);
  transition: transform var(--t-fast) var(--ease-out);
}
.drawer__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s8);
  transition: background var(--t-fast) var(--ease-out),
              border-bottom-color var(--t-fast) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--panel);
  border-bottom-color: rgba(159,143,255,.18);
}
.nav__home {
  display: flex; align-items: center; gap: var(--s3);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.nav nav { display: flex; align-items: center; gap: var(--s6); }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color var(--t-fast); }
.nav nav a:hover, .nav nav a.is-active { color: var(--purple-pale); }
.nav nav a.is-active {
  text-decoration: underline; text-decoration-color: var(--purple);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}

/* ---------- Footer route map ---------- */
.footer-map {
  background: var(--panel);
  border-top: 1px solid rgba(159,143,255,.18);
  padding: var(--s16) var(--s8);
}
.footer-map__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s8);
}
.footer-map__col h4 {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--purple-pale);
  margin: 0 0 var(--s4);
}
.footer-map__col a {
  display: block; color: var(--muted); text-decoration: none; font-size: .9rem;
  padding: var(--s1) 0; transition: color var(--t-fast);
}
.footer-map__col a:hover { color: var(--ink); }

/* ---------- Metal footer video ---------- */
footer.metal {
  background: #000;
  border-top: 1px solid rgba(159,143,255,.3);
  overflow: hidden;
  line-height: 0;
}
footer.metal video, footer.metal img {
  width: 100%; display: block; max-height: 160px; object-fit: cover;
}

/* ---------- Band layout ---------- */
.band {
  padding: var(--s24) var(--s8);
}
@media (max-width: 768px) {
  .band { padding: var(--s16) var(--s6); }
  .footer-map__grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav .btn { display: none; }
}
.band__inner {
  max-width: 1100px; margin: 0 auto;
}

/* ---------- Band reveal animation ---------- */
.band[data-reveal] { opacity: 0; transform: translateY(8px); }
.band[data-reveal].is-visible {
  animation: band-rise var(--t-entry) var(--ease-out) forwards;
}
@keyframes band-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
