/* ==========================================================================
   Cameron Moquin for RI Senate District 5
   https://cameronmoquin.com
   ========================================================================== */

/* --- Tokens --- */
:root {
  --blue: #2878b4;
  --blue-dark: #1a5a96;
  --blue-deep: #0e3d6e;
  --blue-navy: #081f3a;
  --blue-mid: #0d2d56;
  --amber: #f0a014;
  --amber-mid: #f0b464;
  --amber-lt: #f0dca0;
  --amber-dark: #d4880c;
  --cream: #f5f0e8;
  --ash: #a8a8b8;
  --white: #ffffff;
  --gap: 2px;
  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --fm: 'Space Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--blue-navy);
  color: var(--cream);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* --- Nav --- */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(8, 31, 58, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240, 160, 20, 0.2);
}
.nav-logo img {
  height: 34px;
  width: auto;
}
.nav-desktop {
  display: none;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-desktop a {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--amber);
}
.nav-desktop .nav-cta {
  background: var(--amber);
  color: var(--blue-navy);
  padding: 0.4rem 1.1rem;
  border-radius: 2px;
  font-weight: 700;
  transition: background 0.2s;
}
.nav-desktop .nav-cta:hover {
  background: var(--amber-dark);
  color: var(--blue-navy);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-donate-pill {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--blue-navy);
  padding: 0.44rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* --- Hamburger --- */
.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Drawer --- */
.nav-drawer {
  position: fixed;
  inset: 62px 0 0 0;
  background: var(--blue-navy);
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 24px 3rem;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
  overflow-y: auto;
  border-top: 1px solid rgba(240, 160, 20, 0.12);
}
.nav-drawer.open {
  transform: translateX(0);
}
.nav-drawer a {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(240, 160, 20, 0.1);
  display: block;
  transition: color 0.2s;
}
.nav-drawer a:last-child {
  border-bottom: none;
}
.nav-drawer a:active {
  color: var(--amber);
}
.nav-drawer .drawer-donate {
  margin-top: 1.5rem;
  background: var(--amber);
  color: var(--blue-navy);
  text-align: center;
  padding: 1.1rem;
  border-bottom: none;
  font-size: 1.4rem;
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 31, 58, 0.5) 0%,
    rgba(8, 31, 58, 0.25) 35%,
    rgba(8, 31, 58, 0.6) 68%,
    rgba(8, 31, 58, 0.94) 100%
  );
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 160, 20, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 160, 20, 0.038) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 24px 56px;
}
.hero-eyebrow {
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.2s;
}
.hero-logo-wrap {
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards 0.35s;
}
.hero-logo-wrap img {
  width: min(420px, 88vw);
  height: auto;
  filter: drop-shadow(0 2px 28px rgba(0, 0, 0, 0.55));
}
.hero-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-mid), transparent);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 0.5s;
}
.hero-tagline {
  font-family: var(--fd);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.5;
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards 0.6s;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.75s;
}
.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 0.9s;
}
.hero-date-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  animation: pulse 2.2s ease infinite 1.2s;
}
.hero-date-text {
  font-family: var(--fm);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 160, 20, 0.65);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.85rem 1.7rem;
  min-height: 50px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.97);
}
.btn-amber {
  background: var(--amber);
  color: var(--blue-navy);
}
.btn-amber:hover {
  background: var(--amber-dark);
}
.btn-ghost {
  border: 2px solid rgba(240, 160, 20, 0.4);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-navy-solid {
  background: var(--blue-navy);
  color: var(--amber);
}
.btn-navy-solid:hover {
  background: var(--blue-mid);
}
.btn-navy-outline {
  border: 2px solid var(--blue-navy);
  color: var(--blue-navy);
  background: transparent;
}
.btn-navy-outline:hover {
  background: var(--blue-navy);
  color: var(--amber);
}
.btn-full {
  width: 100%;
}

/* --- Ticker --- */
.ticker {
  background: var(--amber);
  padding: 0.58rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-navy);
  padding: 0 2rem;
}
.ticker-sep {
  color: rgba(8, 31, 58, 0.3);
  font-size: 0.55rem;
  align-self: center;
}

/* --- Section helpers --- */
.s-label {
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.s-label-blue {
  color: var(--blue-dark);
}
.s-title {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
}
.s-title-navy {
  color: var(--blue-navy);
}

/* --- Stats --- */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(240, 160, 20, 0.12);
}
.stats-rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 2px;
}
.stats-rail::-webkit-scrollbar {
  display: none;
}
.stat-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: var(--blue-mid);
  padding: 1.6rem 1.3rem;
  border-top: 3px solid transparent;
  transition: border-top-color 0.3s;
}
.stat-card:hover {
  border-top-color: var(--amber);
}
.stat-value {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  font-family: var(--fm);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* --- Pillars / Issues --- */
.pillars {
  padding: 5rem 24px;
}
.pillars .s-title {
  margin-bottom: 2.5rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 2.5rem;
}
.pillar {
  background: var(--blue-mid);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber-mid), var(--amber), var(--amber-lt));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.pillar:hover {
  background: rgba(13, 45, 86, 0.95);
}
.pillar:hover::before {
  transform: scaleY(1);
}
.pillar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.pillar-title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}
.pillar-num {
  font-family: var(--fm);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: rgba(240, 160, 20, 0.35);
  margin-top: 3px;
  flex-shrink: 0;
}
.pillar-body {
  font-size: 0.86rem;
  color: var(--ash);
  line-height: 1.72;
}

/* --- Bio --- */
.bio {
  padding: 5rem 24px;
  border-top: 1px solid rgba(240, 160, 20, 0.12);
}
.bio-heading {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 3.8rem);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.bio-heading em {
  color: var(--amber);
  font-style: normal;
  display: block;
}
.bio-body p {
  color: var(--ash);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.bio-body p:last-of-type {
  margin-bottom: 1.8rem;
}
.bio-body strong {
  color: var(--cream);
  font-weight: 600;
}
.bio-photo-mobile {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}
.bio-photo-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}
.bio-photo-mobile::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--blue-navy));
}

/* --- Contrast --- */
.contrast {
  background: var(--cream);
  color: var(--blue-navy);
  padding: 5rem 24px;
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 2.5rem;
}
.c-col {
  padding: 2rem 1.8rem;
}
.c-col-them {
  background: #dde4e8;
}
.c-col-us {
  background: var(--blue-navy);
  color: var(--cream);
}
.c-col-label {
  font-family: var(--fm);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.c-col-them .c-col-label {
  color: var(--blue-dark);
}
.c-col-us .c-col-label {
  color: var(--amber);
}
.c-list {
  list-style: none;
}
.c-list li {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  line-height: 1.35;
}
.c-col-us .c-list li {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.c-list li::before {
  content: '\25AA';
  flex-shrink: 0;
  color: var(--blue-dark);
  font-weight: 300;
  margin-top: 2px;
  font-size: 0.6rem;
}
.c-col-us .c-list li::before {
  content: '\2713';
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- Quote --- */
.quote-section {
  padding: 6rem 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '\201C';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fd);
  font-size: min(26rem, 80vw);
  font-weight: 900;
  color: rgba(240, 160, 20, 0.032);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.quote-text {
  font-family: var(--fd);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 5.5vw, 2.5rem);
  line-height: 1.35;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.quote-attr {
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}

/* --- CTA / Volunteer --- */
.cta {
  background: var(--amber);
  padding: 5rem 24px;
}
.volunteer-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--blue-navy);
}
.cta-sub {
  font-size: 0.92rem;
  color: rgba(8, 31, 58, 0.58);
  margin-top: 0.75rem;
  font-weight: 500;
}
.vol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 2.5rem;
}
.vol-card {
  background: var(--white);
  padding: 2rem 1.8rem;
  border-radius: 2px;
}
.vol-card-dark {
  background: var(--blue-navy);
  color: var(--cream);
}
.vol-card-title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--blue-navy);
  margin-bottom: 0.4rem;
}
.vol-card-dark .vol-card-title {
  color: var(--amber);
}
.vol-card-desc {
  font-size: 0.85rem;
  color: rgba(8, 31, 58, 0.55);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.vol-card-dark .vol-card-desc {
  color: var(--ash);
}

/* Form */
.vol-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vol-input {
  font-family: var(--fb);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(8, 31, 58, 0.12);
  border-radius: 2px;
  background: var(--cream);
  color: var(--blue-navy);
  outline: none;
  transition: border-color 0.2s;
}
.vol-input:focus {
  border-color: var(--blue);
}
.vol-input::placeholder {
  color: rgba(8, 31, 58, 0.35);
}
.vol-msg {
  font-family: var(--fm);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  color: var(--blue-deep);
}
.vol-msg.error {
  color: #c0392b;
}

/* CSV Upload */
.vol-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 2px dashed rgba(240, 160, 20, 0.3);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.vol-upload-label:hover {
  border-color: var(--amber);
  background: rgba(240, 160, 20, 0.06);
}
.vol-upload-icon {
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
}
.vol-upload-hint {
  font-family: var(--fb);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ash);
}

/* Results */
.vol-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.vol-match-count {
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.vol-send-all {
  padding: 0.5rem 1.2rem;
  min-height: 38px;
  font-size: 0.76rem;
}
.vol-match-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) transparent;
}
.vol-match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(240, 160, 20, 0.1);
}
.vol-match-name {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
}
.vol-match-zip {
  font-family: var(--fm);
  font-size: 0.55rem;
  color: var(--ash);
  margin-left: 0.6rem;
}
.vol-match-text-btn {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--blue-navy);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
.vol-match-text-btn:hover {
  background: var(--amber-dark);
}
.vol-privacy {
  font-family: var(--fm);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: rgba(168, 168, 184, 0.5);
  margin-top: 1rem;
  line-height: 1.6;
}
.vol-no-match {
  font-size: 0.85rem;
  color: var(--ash);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Donate row */
.vol-donate-row {
  margin-top: 2rem;
  text-align: center;
}

/* --- Footer --- */
footer {
  background: var(--blue-navy);
  padding: 3rem 24px 2.5rem;
  border-top: 1px solid rgba(240, 160, 20, 0.12);
}
.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 0.8rem;
}
.footer-sub {
  font-family: var(--fm);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: rgba(200, 192, 176, 0.3);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
  margin-bottom: 1.8rem;
}
.footer-links-row a {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.2s;
}
.footer-links-row a:hover {
  color: var(--amber);
}
.footer-legal {
  font-size: 0.7rem;
  color: rgba(200, 192, 176, 0.25);
  line-height: 1.75;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

/* --- Reveal / Stagger --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.22s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.34s; }
.stagger.in > * {
  opacity: 1;
  transform: none;
}

/* --- Desktop (768px+) --- */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
  nav {
    height: 66px;
    padding: 0 40px;
  }
  .nav-right {
    display: none;
  }
  .hamburger {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }
  .nav-logo img {
    height: 38px;
  }
  .hero {
    flex-direction: row;
    min-height: 100svh;
    padding: 0;
  }
  .hero-bg {
    position: relative;
    flex: 0 0 46%;
    height: auto;
    min-height: 100svh;
  }
  .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
  }
  .hero-bg::after {
    background:
      linear-gradient(90deg, var(--blue-navy) 0%, rgba(8, 31, 58, 0.05) 40%, transparent 100%),
      linear-gradient(180deg, rgba(8, 31, 58, 0.35) 0%, transparent 40%, rgba(8, 31, 58, 0.5) 85%, var(--blue-navy) 100%);
  }
  .hero-bg::before {
    background-image: none !important;
    background: none;
    inset: 15% 0 15% 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--amber) 50%, transparent) !important;
  }
  .hero-content {
    flex: 0 0 54%;
    position: relative;
    z-index: 2;
    padding: 100px 5vw 60px 5vw;
    justify-content: flex-end;
  }
  .hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(240, 160, 20, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(240, 160, 20, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    z-index: 0;
  }
  .hero-content > * {
    position: relative;
    z-index: 1;
  }
  .hero-logo-wrap img {
    width: min(480px, 44vw);
  }
  .stats-section {
    padding: 4rem 5vw;
  }
  .stats-rail {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
  }
  .stat-card {
    flex: unset;
  }
  .pillars,
  .bio,
  .contrast,
  .quote-section,
  .cta {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .pillars,
  .bio,
  .contrast,
  .quote-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .cta {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  footer {
    padding: 3.5rem 5vw;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bio-photo-mobile {
    display: none;
  }
  .bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
  }
  .bio-photo-desktop {
    display: block !important;
    border-radius: 2px;
    overflow: hidden;
    position: sticky;
    top: 82px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  .bio-photo-desktop img {
    width: 100%;
    height: auto;
    display: block;
  }
  .contrast-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vol-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  nav {
    padding: 0 5vw;
  }
}

@media (hover: none) {
  .btn:hover {
    transform: none;
  }
  .pillar:hover::before {
    transform: scaleY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .reveal,
  .stagger > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
