/* ═══════════════════════════════════════════════════════════════
   HROC — "DMT / Field Signal" redesign prototype
   Direction: high-tech, vivid neon on deep indigo-void.
   Palette: void indigo + electric magenta/cyan/violet + gold spark.
   Type: Bricolage Grotesque (display) / Inter (body) / IBM Plex Mono (data).
   Signature: routes→roots neon thread + generated neon art.
   Body kept high-contrast + readable so funders can still parse it.
   NON-DESTRUCTIVE PROTOTYPE — separate from live styles.css.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --void:      #070311;
  --void-2:    #0C0620;
  --panel:     #120A28;
  --panel-2:   #180E33;
  --card:      rgba(255,255,255,0.035);
  --card-line: rgba(157,120,255,0.16);
  --magenta:   #FF3DCB;
  --magenta-d: #E81CFF;
  --cyan:      #3DE7FF;
  --cyan-d:    #40C9FF;
  --violet:    #9D5CFF;
  --gold:      #FFC65C;
  --crisis:    #FF4D4D;
  --grad:      linear-gradient(100deg, #40C9FF 0%, #9D5CFF 45%, #E81CFF 100%);
  --grad-2:    linear-gradient(100deg, #FF1B8D 0%, #9D5CFF 55%, #40C9FF 100%);
  --text:      #ECE8FF;
  --text-2:    #B4ACDD;
  --text-3:    #7E76A8;
  --line:      rgba(157,120,255,0.14);
  --line-2:    rgba(157,120,255,0.28);
  --glow-c:    0 0 34px rgba(61,231,255,0.28);
  --glow-m:    0 0 34px rgba(232,28,255,0.26);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --f-body:    "Inter", "Helvetica Neue", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap:   1200px;
  --gutter: clamp(1.15rem, 3.5vw, 2.25rem);
  --space:  clamp(4.5rem, 9vw, 8rem);
  --r-sm: 8px; --r-md: 16px; --r-lg: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* ambient neon field */
  background-image:
    radial-gradient(60vw 40vw at 82% -8%, rgba(232,28,255,0.16), transparent 60%),
    radial-gradient(52vw 42vw at 6% 4%, rgba(64,201,255,0.14), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(232,28,255,0.35); }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }

.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6ch;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.eyebrow::before { content: "◇"; -webkit-text-fill-color: var(--cyan); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 620; line-height: 1.03; letter-spacing: -0.022em; color: #fff; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.3vw, 3.3rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
.grad-text { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
p { color: var(--text-2); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: var(--text-2); max-width: 58ch; }

/* crisis strip */
.crisis { background: var(--crisis); color: #1a0505; font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.05em; text-align: center; padding: 0.5rem 1rem; }
.crisis a { text-decoration: underline; font-weight: 600; }

/* header */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(7,3,17,0.72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.seal { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; box-shadow: var(--glow-m); }
.brand-name { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); line-height: 1.3; }
.brand-name b { display: block; font-family: var(--f-display); font-size: 0.98rem; letter-spacing: -0.01em; text-transform: none; font-weight: 640; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.9rem; color: var(--text-2); }
.nav-links a:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.55ch; font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.04em; padding: 0.82rem 1.4rem; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow-m); }
.btn-ghost { background: rgba(255,255,255,0.02); color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.btn-lg { padding: 1rem 1.75rem; font-size: 0.9rem; }

/* hero */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-status { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; align-items: center; padding-bottom: 1.6rem; margin-bottom: 2rem; border-bottom: 1px dashed var(--line-2); }
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(61,231,255,0.18), var(--glow-c); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-art { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--glow-m); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hero-meta > div { background: var(--void-2); padding: 1.05rem 1.2rem; }
.hero-meta .k { font-family: var(--f-display); font-size: 1.4rem; color: #fff; font-weight: 640; }
.hero-meta .v { margin-top: 0.15rem; }

/* sections */
.section { position: relative; padding-block: var(--space); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 3rem; }
.sec-head h2 { margin-top: 0.9rem; }
.sec-head p { margin-top: 1rem; }

/* grids + cards */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-md); padding: 1.6rem 1.5rem; position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--glow-c); }
.card .idx { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.card h3 { margin: 0.7rem 0 0.5rem; }
.card p { font-size: 0.96rem; }

/* roadmap / housing */
.roadmap { position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.roadmap-art { position: absolute; right: -6%; top: -12%; width: 46%; opacity: 0.5; pointer-events: none; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 40%, transparent 72%); mask-image: radial-gradient(circle at 70% 30%, #000 40%, transparent 72%); }
.roadmap > * { position: relative; }
.roadmap h2 { color: #fff; }
.roots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 2.2rem; }
.root-card { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 1.5rem; }
.root-card h3 { color: #fff; }
.root-card p { color: var(--text-2); font-size: 0.96rem; margin-top: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5ch; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.28rem 0.66rem; border-radius: 100px; background: rgba(255,198,92,0.1); color: var(--gold); border: 1px solid rgba(255,198,92,0.34); }
.chip::before { content: "●"; font-size: 0.7em; }

/* leadership */
.people { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1.1rem; }
.person { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-md); overflow: hidden; }
.person img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.person .p-body { padding: 1.05rem 1.15rem; }
.person h3 { font-size: 1.06rem; }
.person .role { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }

/* donate */
.donate { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a0b33, #0b0620); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(2.4rem, 5vw, 4rem); text-align: center; box-shadow: var(--glow-m); }
.donate h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.donate p { color: var(--text-2); max-width: 52ch; margin: 1.1rem auto 0; }
.donate .btn-primary { margin-top: 1.7rem; }
.donate-note { font-family: var(--f-mono); font-size: 0.66rem; color: var(--text-3); letter-spacing: 0.03em; margin-top: 1.6rem; line-height: 1.75; }

/* footer */
.foot { background: #05020D; color: var(--text-3); padding: 3.5rem 0 2.5rem; border-top: 2px solid transparent; border-image: var(--grad) 1; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.foot .brand-name b { color: #fff; }
.foot-disc { font-family: var(--f-mono); font-size: 0.66rem; line-height: 1.8; color: var(--text-3); margin-top: 1.7rem; letter-spacing: 0.03em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .people, .roots { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .people, .roots, .grid-2, .hero-meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ── section art (added 2026-07-05: DMT abstract art placement) ── */
/* mission: text + supporting neon art */
.mission-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.mission-art { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--glow-c); aspect-ratio: 4/3; }
.mission-art img { width: 100%; height: 100%; object-fit: cover; }

/* services flagship banner (naloxone) */
.svc-flagship { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--glow-m); margin-bottom: 1.7rem; aspect-ratio: 16/5; }
.svc-flagship img { width: 100%; height: 100%; object-fit: cover; }

/* small per-card icons (cards 02–04) */
.card-icon { width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--card-line); margin-bottom: 0.9rem; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; }
  .svc-flagship { aspect-ratio: 16/7; }
}
