/* ============================================================================
   Catawba News — Citizen Accountability portal
   Dignified, sober, institutional. Deep ink + teal, with a single signal red.
   ========================================================================== */

:root {
  --ink: #0c1218;
  --ink-soft: #131c24;
  --teal: #0a2329;
  --paper: #eef2f3;
  --light: #f4f6f6;

  --accent: #d6453a;
  --accent-hover: #e25347;
  --green: #3fae6f;

  --muted: #aebcc1;
  --muted-2: #7f9298;
  --on-light: #445057;
  --on-light-2: #5a666d;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 36px; }

/* Shared kicker */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.kicker__line { width: 28px; height: 1.5px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 16px 28px;
  border-radius: 10px; transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -10px rgba(214, 69, 58, 0.6); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 18px 38px -12px rgba(214, 69, 58, 0.7); }
.btn--ghost { background: rgba(255,255,255,0.05); color: var(--paper); border: 1px solid rgba(255,255,255,0.16); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.13s; }
.reveal[data-d="3"] { transition-delay: 0.2s; }
.reveal[data-d="4"] { transition-delay: 0.27s; }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero load reveal */
.rise { animation: heroUp 0.9s var(--ease) both; }
.rise[data-d="1"] { animation-delay: 0.05s; }
.rise[data-d="2"] { animation-delay: 0.12s; }
.rise[data-d="3"] { animation-delay: 0.22s; }
.rise[data-d="4"] { animation-delay: 0.32s; }
.rise[data-d="5"] { animation-delay: 0.42s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(12, 18, 24, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 13px 36px; display: flex; align-items: center; gap: 18px; }
.nav__seal { flex: none; }
.nav__brand { flex: none; line-height: 1.05; }
.nav__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.nav__kicker { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav__links a { color: #c4d0d4; text-decoration: none; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__cta { background: var(--accent); color: #fff !important; font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.nav__cta:hover { background: var(--accent-hover); }

/* ============================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 172px 36px 120px; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 80%);
}
.hero__glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(20px); }
.hero__glow--a { top: -160px; left: 8%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(214,69,58,0.20), transparent 62%); animation: glowA 16s ease-in-out infinite alternate; }
.hero__glow--b { top: 40px; right: 2%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(33,120,134,0.22), transparent 62%); animation: glowB 19s ease-in-out infinite alternate; }
@keyframes glowA { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6%,4%) scale(1.18); } }
@keyframes glowB { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-7%,-5%) scale(0.92); } }

.hero__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.018em;
  margin: 22px 0 0; max-width: 16ch; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: #fff; }
.hero__lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 30px 0 0; }
.hero__lede strong { color: #e6edef; font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero__assure { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 13.5px; color: var(--muted-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63,174,111,0.18); flex: none; }

/* ============================================================================
   Confidentiality band
   ========================================================================== */
.confband { background: var(--teal); border-top: 1px solid rgba(255,255,255,0.06); }
.confband .wrap { padding-top: 64px; padding-bottom: 64px; }
.confband__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.confband__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 38px); margin: 0; color: #fff; letter-spacing: -0.01em; }
.confband__sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: #84b3bb; }
.confband__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.ccard { padding: 26px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; }
.ccard__icon { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.ico--dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); }
.ico--shield { width: 13px; height: 10px; border: 2px solid var(--accent); border-radius: 3px 3px 0 0; border-bottom: none; }
.ico--ring { width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; }
.ccard__t { font-size: 15px; font-weight: 700; color: #fff; margin-top: 16px; }
.ccard p { font-size: 14.5px; line-height: 1.55; color: #9fb6bb; margin: 9px 0 0; }

/* ============================================================================
   Why it matters (light)
   ========================================================================== */
.why { background: var(--light); color: var(--ink); }
.why .wrap { padding-top: 96px; padding-bottom: 96px; }
.why__intro { max-width: 64ch; }
.why__intro h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; margin: 22px 0 0; }
.why__intro h2 em { font-style: italic; }
.why__intro p { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--on-light); margin: 22px 0 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 54px; background: #dfe5e6; border: 1px solid #dfe5e6; border-radius: 16px; overflow: hidden; }
.why__cell { background: #fff; padding: 30px 26px; }
.why__no { font-family: var(--serif); font-weight: 300; font-size: 42px; color: var(--accent); line-height: 1; }
.why__h { font-size: 18px; font-weight: 700; margin-top: 14px; }
.why__cell p { font-size: 14.5px; line-height: 1.55; color: var(--on-light-2); margin: 8px 0 0; }

/* ============================================================================
   Process
   ========================================================================== */
.process { background: var(--ink); color: var(--paper); }
.process .wrap { padding-top: 96px; padding-bottom: 96px; }
.process__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.015em; margin: 20px 0 0; max-width: 22ch; }
.process__rail { position: relative; margin-top: 56px; }
.process__line { position: absolute; top: 23px; left: 6%; right: 6%; height: 1.5px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), rgba(214,69,58,0.15)); transition: transform 1.1s cubic-bezier(.4,.1,.2,1); }
.process__line.is-in { transform: scaleX(1); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.step__n--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.step__t { font-size: 17px; font-weight: 700; margin-top: 18px; }
.step p { font-size: 14.5px; line-height: 1.55; color: #9fb0b6; margin: 8px 0 0; }

/* ============================================================================
   Report form (light)
   ========================================================================== */
.report { background: var(--light); color: var(--ink); }
.report .wrap { padding-top: 96px; padding-bottom: 96px; }
.report__layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: start; }
.report__aside { position: sticky; top: 96px; }
.report__aside h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.015em; margin: 20px 0 0; }
.report__aside > p { font-size: 17px; line-height: 1.6; color: var(--on-light); margin: 18px 0 0; }
.report__note { margin-top: 24px; padding: 18px 20px; background: #fff; border: 1px solid #e1e6e7; border-radius: 12px; }
.report__note-k { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a969c; }
.report__note p { font-size: 13.5px; line-height: 1.55; color: var(--on-light-2); margin: 8px 0 0; }

.report__card { background: #fff; border: 1px solid #e6eaeb; border-radius: 18px; padding: 36px; box-shadow: 0 30px 60px -28px rgba(12, 18, 24, 0.28); }

.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.field__label + .input, .toggle + .field__label { margin-top: 0; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: #97a2a8; }

.input {
  width: 100%; font-family: var(--sans); font-size: 15px; line-height: 1.5;
  padding: 13px 14px; border: 1px solid #d7dde0; border-radius: 10px;
  background: #fff; color: var(--ink); margin-bottom: 22px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
textarea.input { resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,18,24,0.08); outline: none; }

.toggle { display: flex; gap: 4px; background: #eef1f2; padding: 4px; border-radius: 11px; margin-bottom: 26px; }
.toggle__btn { flex: 1; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 11px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; background: transparent; color: #65727a; transition: all 0.15s ease; }
.toggle__btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(12,18,24,0.14); }

.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field__row .input { margin-bottom: 0; }

.filebtn { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; padding: 13px 14px; border: 1px dashed #c2cbcf; border-radius: 10px; background: #f7f9f9; color: var(--on-light-2); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.filebtn:hover { border-color: var(--ink); color: var(--ink); }

.named { border-top: 1px solid #eaeeef; padding-top: 22px; margin-bottom: 6px; }
.named__note { font-size: 12px; line-height: 1.5; color: #97a2a8; margin: 10px 0 0; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 0; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.consent span { font-size: 13px; line-height: 1.5; color: var(--on-light-2); }

.formerror { margin-top: 16px; padding: 12px 15px; background: #fcebe9; border: 1px solid #f0b3ad; border-radius: 10px; font-size: 13px; color: #b5392c; }

.submit { width: 100%; margin-top: 22px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.01em; padding: 16px; border: none; border-radius: 11px; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(214,69,58,0.6); transition: background 0.2s var(--ease); }
.submit:hover { background: var(--accent-hover); }
.submit__note { font-size: 11.5px; line-height: 1.5; color: #97a2a8; text-align: center; margin: 13px 0 0; }

.success { text-align: center; padding: 34px 8px; }
.success__check { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto; }
.success h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 22px 0 0; color: var(--ink); }
.success p { font-size: 16.5px; line-height: 1.6; color: var(--on-light); max-width: 46ch; margin: 14px auto 0; }
.success__again { margin-top: 26px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 10px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.success__again:hover { background: var(--ink); color: #fff; }

/* ============================================================================
   Your rights
   ========================================================================== */
.rights { background: var(--teal); color: var(--paper); }
.rights .wrap { padding-top: 96px; padding-bottom: 96px; }
.rights__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.015em; margin: 20px 0 0; }
.rights__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 46px; }
.rights__list { list-style: none; padding: 0; margin: 0; }
.rights__list li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 16px; line-height: 1.55; color: #cdd9dc; }
.rights__list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.rights__dash { color: var(--accent); font-family: var(--serif); font-size: 18px; flex: none; }
.rights__panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 32px; }
.rights__panel h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; color: #fff; }
.rights__panel p { font-size: 15.5px; line-height: 1.6; color: #9fb6bb; margin: 14px 0 0; }
.rights__panel .btn { margin-top: 22px; font-size: 15px; padding: 13px 22px; }

/* ============================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #9fb0b6; border-top: 1px solid rgba(255,255,255,0.07); }
.footer .wrap { padding-top: 48px; padding-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.footer__kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.footer__legal { font-size: 12.5px; line-height: 1.65; max-width: 96ch; margin: 20px 0 0; color: #869399; }
.footer__copy { font-size: 12px; color: #5f6e74; margin-top: 20px; }

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .report__layout { grid-template-columns: 1fr; gap: 36px; }
  .report__aside { position: static; }
  .rights__grid { grid-template-columns: 1fr; gap: 28px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .process__line { display: none; }
  .confband__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding: 132px 20px 90px; }
  .why__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .field__row { grid-template-columns: 1fr; }
  .report__card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .process__line { transform: scaleX(1); }
}
