/* ═══════════════════════════════════════════════════════════
   PUBLIC GRANTS · MrChief "Daylight" design system
   Shared stylesheet for all pages.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --paper: #ffffff;
  --light: #fafdf9;
  --mint: #eaf6ee;
  --butter: #fefce8;
  --peach: #fda4af;
  --peach-2: #fecdd3;
  --ink: #1a1c1f;
  --ink-2: #3a3e44;
  --ink-3: #5d6168;
  --ink-4: #8a8f97;
  --lime: #c4f263;
  --lime-3: #9fd92f;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  /* Rules / strokes */
  --rule: rgba(26, 28, 31, 0.12);
  --rule-soft: rgba(26, 28, 31, 0.07);

  /* Type */
  --disp: "Inter Tight", system-ui, sans-serif;
  --sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* Geometry */
  --gut-page: clamp(20px, 5vw, 56px);
  --gut-sec: clamp(56px, 8vw, 104px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(26, 28, 31, 0.04), 0 8px 24px -16px rgba(26, 28, 31, 0.24);
  --shadow-card-hover: 0 18px 40px -22px rgba(26, 28, 31, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gut-page);
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gut-page);
}

/* ── Typography primitives ─────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow b { color: var(--ink); font-weight: 600; }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime-3); flex-shrink: 0;
}
.h-section {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.stamp {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  padding: 0.04em 0.24em 0.1em;
  border-radius: 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transform: rotate(-2.2deg);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.stamp:hover { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .stamp { transform: none; } }

/* ── Buttons ───────────────────────────────── */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn .arrow { font-weight: 700; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

.btn-primary { background: var(--ink); color: var(--light); box-shadow: 0 10px 24px -14px rgba(26, 28, 31, 0.7); }
.btn-primary .arrow { color: var(--lime); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(26, 28, 31, 0.7); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(159, 217, 47, 0.8); }

.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { background: var(--mint); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(26, 28, 31, 0.05); }

/* ── Nav ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--gut-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand .glyph {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  display: grid; place-items: center;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  position: relative;
}
.brand .glyph::after {
  content: "";
  position: absolute;
  right: 5px; bottom: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lime);
}
.brand .b-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.brand .b-sub {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s;
  white-space: nowrap;
}
.nav-links { flex-wrap: nowrap; }
@media (max-width: 1080px) { .nav-links { gap: 18px; } }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-links .has-dropdown { position: relative; padding-bottom: 8px; margin-bottom: -8px; }
.nav-links .has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.nav-links .has-dropdown > a::after { content: "\25BE"; font-size: 11px; color: var(--ink-2); transition: transform .18s ease, color .18s; }
.nav-links .has-dropdown:hover > a::after, .nav-links .has-dropdown:focus-within > a::after { transform: rotate(180deg); color: var(--ink); }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px); min-width: 220px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; box-shadow: 0 22px 46px -20px rgba(26,28,31,.35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s; z-index: 50; }
.nav-links .has-dropdown:hover .nav-dropdown, .nav-links .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.nav-dropdown a:hover { background: var(--mint); color: var(--ink); }
@media (max-width: 1024px) {
  .nav-links { display: none; }
}

/* ── Footer ────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: rgba(250, 253, 249, 0.7);
  padding: clamp(44px, 6vw, 72px) 0 40px;
}
footer.site .foot-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { footer.site .foot-inner { grid-template-columns: 1fr; gap: 28px; } }
footer.site .brand { color: var(--paper); }
footer.site .brand .b-sub { color: rgba(250, 253, 249, 0.55); }
footer.site .tagline {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  color: rgba(250, 253, 249, 0.6);
}
footer.site h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 253, 249, 0.45);
  margin: 0 0 14px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.site ul a {
  font-size: 14px;
  color: rgba(250, 253, 249, 0.72);
  text-decoration: none;
  transition: color 0.16s;
}
footer.site ul a:hover { color: var(--lime); }
footer.site .foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 253, 249, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(250, 253, 249, 0.5);
}
footer.site .foot-bottom b { color: rgba(250, 253, 249, 0.8); font-weight: 600; }

/* ── Reveal-on-scroll ──────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
[data-reveal].vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
