/* SPFF: navy / red / gold pulled from the logo. Navy ground, gold as the single accent, red reserved for the primary action on light. */
:root {
  --navy: #03193c;
  --navy-2: #0a2a5c;
  --navy-deep: #020f26;
  --red: #a41818;
  --red-hover: #8a1313;
  --gold: #bb9252;
  --gold-ink: #7a5a20;      /* gold as TEXT on light grounds (passes 4.5:1) */
  --paper: #f5f7fb;         /* cool off-white, not cream */
  --white: #ffffff;
  --ink: #0c1a33;
  --ink-soft: #3a4763;
  --line: rgba(3, 25, 60, .14);

  --sh-1: 0 1px 2px rgba(2, 15, 38, .18), 0 2px 6px rgba(2, 15, 38, .10);
  --sh-2: 0 6px 16px rgba(2, 15, 38, .20), 0 2px 4px rgba(2, 15, 38, .12);
  --sh-3: 0 22px 44px rgba(2, 15, 38, .32), 0 8px 14px rgba(2, 15, 38, .16);

  --z-base: 1; --z-cut: 2; --z-sticky: 20;
  --display: "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: inherit; }
.wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* grain: navy-tinted, 5% */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .01  0 0 0 0 .1  0 0 0 0 .24  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 3px; font: 600 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out, border-color .18s ease-out;
  box-shadow: var(--sh-1);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.btn:active { transform: scale(.97); box-shadow: var(--sh-1); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #c9a262; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 18px rgba(2, 15, 38, .06); backdrop-filter: saturate(1.4) blur(8px); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand-name { font: 600 .9rem/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); padding: 12px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--navy); border-color: var(--gold); }
@media (min-width: 860px) { .nav-links { display: flex; } .brand img { width: 62px; } .brand-name { font-size: 1rem; } }

/* hero */
.hero { position: relative; background: var(--navy); color: #fff; padding: 44px 0 110px; overflow: hidden; isolation: isolate; }
.hero::before { /* soft light from the string lights side */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 85% 30%, rgba(10, 42, 92, .9), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(164, 24, 24, .16), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 4.2vw, 3.35rem); letter-spacing: -.015em; font-weight: 600; }
.hero h1 .h1-2 { display: block; color: #fff; margin-top: .12em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #dbe4f5; margin: 26px 0 30px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; }
@media (min-width: 900px) { .hero { padding: 72px 0 150px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* framed photography: offset frame behind + inset hairline + ken-burns */
.frame { position: relative; margin: 0; }
.frame::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border: 2px solid var(--gold); border-radius: 2px; z-index: 0; transition: transform .3s ease-out; }
.frame:hover::before { transform: translate(20px, 20px); }
.frame img { position: relative; z-index: 1; width: 100%; border-radius: 2px; box-shadow: var(--sh-3); object-fit: cover; filter: saturate(.92) contrast(1.04); }
.frame-gold::before { border-color: var(--navy); transform: translate(-14px, 14px); }
.frame-gold:hover::before { transform: translate(-20px, 20px); }
.hero-photo { overflow: visible; }
.hero-photo img { aspect-ratio: 5 / 4; object-position: 42% 50%; animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.035); } }
.hero-photo { --clip: inset(0); }
.hero-photo img { transform-origin: 40% 50%; }

/* angled section cuts */
.cut { position: absolute; left: 0; right: 0; height: 70px; z-index: var(--z-cut); pointer-events: none; }
.cut-hero { bottom: -1px; background: var(--white); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.cut-nno { top: -1px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%); }
@media (min-width: 900px) { .cut { height: 110px; } }

/* about */
.about { padding: 40px 0 90px; }
.about-grid { display: grid; gap: 56px; align-items: center; }
.about h2, .ways h2, .nno h2, .give h2, .board h2, .foot h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
.about-copy h2 { margin-bottom: 22px; color: var(--navy); }
.about-copy p { color: var(--ink-soft); }
.quiet { font-size: .95rem; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--ink-soft); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.05fr; gap: 88px; } }

/* ways */
.ways { background: var(--paper); padding: 96px 0; border-block: 1px solid var(--line); }
.ways-grid { display: grid; gap: 56px; align-items: center; }
.ways h2 { color: var(--navy); margin-bottom: 34px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.ledger li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ledger .num { font: 500 2.2rem/1 var(--display); color: var(--gold-ink); }
.ledger h3 { font-size: 1.55rem; color: var(--navy); margin-bottom: 6px; }
.ledger p { margin: 0; color: var(--ink-soft); }
.ways-photo img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .ways-grid { grid-template-columns: 1.15fr .85fr; gap: 96px; } .ways-photo { max-width: 400px; justify-self: center; } }

/* national night out */
.nno { position: relative; background: var(--navy-deep); color: #fff; padding: 150px 0 110px; overflow: hidden; isolation: isolate; }
.nno::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 15% 30%, rgba(10, 42, 92, .75), transparent 70%); }
.nno-grid { display: grid; gap: 64px; align-items: center; }
.nno-photo img { aspect-ratio: 16 / 10; }
.stamp {
  position: absolute; z-index: 3; right: -10px; bottom: -34px; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--red); color: #fff;
  border: 2px solid var(--gold); box-shadow: var(--sh-3), inset 0 0 0 5px var(--red), inset 0 0 0 6px rgba(255, 255, 255, .5);
  transform: rotate(-9deg); font: 600 .74rem/1.1 var(--body); letter-spacing: .16em; text-transform: uppercase;
}
.stamp strong { font: 500 2.6rem/.95 var(--display); letter-spacing: 0; }
.nno h2 { margin-bottom: 14px; }
.nno .date { font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--display); color: #fff; margin-bottom: 20px; }
.nno-copy p { color: #dbe4f5; }
.nno .tbd { font-size: .95rem; padding-left: 16px; border-left: 3px solid var(--gold); margin-bottom: 28px; }
@media (min-width: 900px) { .nno-grid { grid-template-columns: 1.1fr .9fr; gap: 96px; } .stamp { right: -26px; } }

/* give */
.give { background: var(--white); padding: 96px 0; }
.give-grid { display: grid; gap: 40px; align-items: center; }
.give h2 { color: var(--navy); margin-bottom: 18px; }
.give-copy p { color: var(--ink-soft); }
.give-panel { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 3px; padding: 40px 28px; box-shadow: var(--sh-2); min-height: 280px; display: grid; place-items: center; text-align: center; }
.give-placeholder { display: grid; gap: 14px; justify-items: center; }
.give-placeholder img { width: 92px; }
.give-placeholder p { margin: 0; color: var(--ink-soft); font-weight: 500; }
@media (min-width: 900px) { .give-grid { grid-template-columns: .9fr 1.1fr; gap: 88px; } }

/* board */
.board { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--line); }
.board-grid { display: grid; gap: 36px; }
.board h2 { color: var(--navy); margin-bottom: 10px; }
.board-head p { color: var(--ink-soft); margin: 0; }
.roll { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.roll li { font: 500 clamp(1.5rem, 3.2vw, 2.1rem)/1.2 var(--display); color: var(--navy); padding: 18px 0 18px 4px; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .2s ease-out, color .2s; }
.roll li::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--gold); transition: width .2s ease-out; }
.roll li:hover { padding-left: 28px; }
.roll li:hover::before { width: 18px; }
@media (min-width: 900px) { .board-grid { grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: start; } }

/* footer */
.foot { background: var(--navy); color: #fff; padding: 84px 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.foot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 0%, rgba(10, 42, 92, .9), transparent 70%); }
.foot-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.foot-logo { background: #fff; border-radius: 4px; padding: 28px; box-shadow: var(--sh-3); max-width: 340px; border-top: 4px solid var(--gold); }
.foot h2 { margin-bottom: 14px; }
.foot p { color: #dbe4f5; }
.mail { font: 500 1.4rem/1.3 var(--display); color: #fff; }
.fine { font-size: .85rem; color: #9fb0cf; margin-top: 44px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: auto 1fr; gap: 96px; } }

/* reveal (JS adds .js and force-reveals after 2.5s so nothing stays hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; }
  .btn, .frame::before, .roll li { transition: none; }
}
@media print { .nav, body::after { display: none; } .js .reveal { opacity: 1; transform: none; } }

/* NNO facts */
.facts { margin: 0 0 28px; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.facts dt { font: 600 .78rem/1.6 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }
.facts dd { margin: 0; color: #fff; font-size: 1.05rem; }

/* Zeffy embed */
.give-panel.has-form { display: block; padding: 0; overflow: hidden; }
.give-panel iframe { display: block; width: 100%; height: 680px; border: 0; }

/* sponsor */
.sponsor { background: var(--paper); padding: 96px 0; border-bottom: 1px solid var(--line); }
.sponsor-grid { display: grid; gap: 48px; align-items: start; }
.sponsor h2 { color: var(--navy); margin-bottom: 20px; font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
.sponsor-copy p { color: var(--ink-soft); }
.sponsor .quiet strong { color: var(--navy); }
.fineprint { font-size: .92rem; }
.inline { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.inline:hover { text-decoration-color: var(--navy); }
.tiers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.tiers li { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .2s ease-out; }
.tier-val { font: 500 2.1rem/1 var(--display); color: var(--gold-ink); letter-spacing: -.01em; }
.tier-val-sm { font-size: 1.6rem; padding-top: 6px; }
.tiers h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 6px; }
.tiers p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 900px) { .sponsor-grid { grid-template-columns: .85fr 1.15fr; gap: 88px; } .tiers li { grid-template-columns: 128px 1fr; } .tier-val { font-size: 2.5rem; } .tier-val-sm { font-size: 1.8rem; } }

/* footer credit */
.inline-foot { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(187, 146, 82, .5); text-underline-offset: 2px; transition: text-decoration-color .15s ease-out; }
.inline-foot:hover { text-decoration-color: var(--gold); }

/* depth: faded geometric motifs (badge/compass-star and target-ring shapes, echo the shield star) */
.motif { position: absolute; z-index: -1; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.motif-compass {
  top: -14%; right: -10%; width: 620px; height: 620px; max-width: 60vw; max-height: 60vw;
  background: var(--gold); opacity: .07;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M50%206%20L56%2044%20L94%2050%20L56%2056%20L50%2094%20L44%2056%20L6%2050%20L44%2044%20Z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M50%206%20L56%2044%20L94%2050%20L56%2056%20L50%2094%20L44%2056%20L6%2050%20L44%2044%20Z%22/%3E%3C/svg%3E");
}
.motif-rings {
  bottom: -18%; left: -12%; width: 560px; height: 560px; max-width: 65vw; max-height: 65vw;
  background: #ffffff; opacity: .05;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2214%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2230%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2247%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2214%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2230%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2247%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22/%3E%3C/svg%3E");
}
.motif-star {
  top: -20%; left: 58%; width: 340px; height: 340px; max-width: 50vw; max-height: 50vw;
  background: var(--gold); opacity: .06;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M50%202%20L61%2035%20L98%2035%20L68%2057%20L79%2091%20L50%2070%20L21%2091%20L32%2057%20L2%2035%20L39%2035%20Z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M50%202%20L61%2035%20L98%2035%20L68%2057%20L79%2091%20L50%2070%20L21%2091%20L32%2057%20L2%2035%20L39%2035%20Z%22/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) { .motif-compass { animation: motif-drift 34s ease-in-out infinite alternate; } }
@keyframes motif-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-14px, 10px) rotate(4deg); } }

/* depth: warm glow, dark-section photo frames and accents */
.hero .frame img, .nno .frame img { box-shadow: var(--sh-3), 0 0 90px -16px rgba(187, 146, 82, .45); }
.stamp { box-shadow: var(--sh-3), inset 0 0 0 5px var(--red), inset 0 0 0 6px rgba(255, 255, 255, .5), 0 0 50px -10px rgba(164, 24, 24, .65); }
.btn-gold:hover { box-shadow: var(--sh-2), 0 0 28px -6px rgba(187, 146, 82, .7); }
.give-panel { box-shadow: var(--sh-2), 0 0 44px -18px rgba(3, 25, 60, .35); }
