/* =========================================================
   KEMHOW — Kemcolians' House of Wisdom
   Design tokens: navy #28388D, maroon #B21F24, bright red #DF1F26
   pulled directly from the society crest.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #28388D;
  --navy-deep: #17205A;
  --navy-ink: #131A44;
  --maroon: #B21F24;
  --red: #DF1F26;
  --paper: #F6F1E6;
  --paper-dim: #EEE6D3;
  --ink: #1C1B18;
  --muted: #5B5747;
  --muted-on-navy: #B9C0E8;
  --white: #FFFFFF;
  --gold-line: #C79A3C;
  --navy-mid: #33449E;
  --shadow-navy: rgba(19,26,68,0.28);

  --serif: 'Spectral', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 62ch;
  --edge: clamp(1.5rem, 4vw, 4rem);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

/* -------------------- scroll progress bar -------------------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--maroon), var(--red));
  z-index: 300;
  transition: width 0.12s ease-out;
}

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-ink);
}

p{ margin: 0 0 1em; max-width: var(--measure); color: var(--muted); }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* -------------------- geometric motif -------------------- */
/* An eight-point rosette derived from classical Islamic
   geometric construction (two overlapping squares), used
   sparingly as a signature mark rather than decoration. */
.motif{
  position: absolute;
  opacity: 0.09;
  pointer-events: none;
  animation: spin-slow 90s linear infinite;
  transform-origin: 50% 50%;
}
.motif--navy path,
.motif--navy line{ stroke: var(--white); }
.motif--paper path,
.motif--paper line{ stroke: var(--navy); }

@keyframes spin-slow{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* -------------------- header / nav -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(28,27,24,0.1);
}

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--edge);
  max-width: 1180px;
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-ink);
  letter-spacing: 0.01em;
}
.brand img{
  height: 40px; width: 40px; object-fit: contain;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover img{ transform: rotate(-8deg) scale(1.08); }
.brand small{
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.nav-links{
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}
.nav-links a:hover{ color: var(--navy-ink); }
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.nav-links a:hover::after{ right: 0; }
.nav-links a[aria-current="page"]{ color: var(--navy-ink); }
.nav-links a[aria-current="page"]::after{ right: 0; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid rgba(28,27,24,0.25);
  border-radius: 4px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span{
  display: block;
  position: absolute;
  top: 18px; left: 10px; right: 10px;
  height: 2px;
  background: var(--navy-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--navy-ink);
  transition: transform 0.2s ease;
}
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    inset: 65px 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1rem var(--edge) 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(28,27,24,0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav-links.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a{ padding: 0.7rem 0; border-bottom: 1px solid rgba(28,27,24,0.07); }
}

/* -------------------- hero -------------------- */
.hero{
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(223,31,38,0.22), transparent 62%),
    radial-gradient(680px 420px at 6% 112%, rgba(199,154,60,0.16), transparent 60%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--edge) clamp(4rem, 8vw, 6.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.hero.hero--slim{
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200.35%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%2523n%29%22/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
  pointer-events: none;
}
.hero-inner{
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, 360px);
  gap: 3rem;
  align-items: center;
}
.hero.hero--slim .hero-inner{ grid-template-columns: 1fr; }

@media (max-width: 820px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-figure{ margin-top: 2.5rem; }
  .hero-figure svg{ max-width: 220px; }
}

.eyebrow-mark{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted-on-navy);
  margin-bottom: 1.1rem;
}
.eyebrow-mark .rule{
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold-line));
  transform-origin: left center;
  animation: rule-grow 1s cubic-bezier(.16,.8,.3,1) both;
}
@keyframes rule-grow{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}

.hero h1{
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  max-width: 14ch;
}
.lede{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
}
.hero .lede{
  color: var(--muted-on-navy);
  font-size: 1.2rem;
  max-width: 46ch;
}
.hero-cta{
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-figure{
  position: relative;
  display: flex;
  justify-content: center;
  will-change: transform;
}
.hero-figure svg{
  width: 100%;
  max-width: 320px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-figure svg{ animation: none; }
  .eyebrow-mark .rule{ animation: none; }
  .motif{ animation: none; }
}

/* -------------------- scroll cue -------------------- */
.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue::before{
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue-scroll 1.8s ease-in-out infinite;
}
@keyframes cue-scroll{
  0%{ opacity: 1; top: 6px; }
  70%{ opacity: 0; top: 18px; }
  100%{ opacity: 0; top: 6px; }
}
@media (max-width: 820px), (prefers-reduced-motion: reduce){
  .scroll-cue{ display: none; }
}

/* -------------------- buttons -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.16,.8,.3,1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.16);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.16,.8,.3,1);
}
.btn:hover::after{ transform: translateX(0); }
.btn:hover{ transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(19,26,68,0.5); }
.btn:active{ transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(19,26,68,0.4); }
.btn-primary{ background: linear-gradient(135deg, #E7343B, var(--maroon)); color: var(--white); box-shadow: 0 10px 22px -12px rgba(223,31,38,0.6); }
.btn-primary:hover{ background: linear-gradient(135deg, #ef3d40, var(--red)); box-shadow: 0 16px 32px -14px rgba(223,31,38,0.6); }
.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover{ border-color: var(--white); box-shadow: 0 12px 26px -16px rgba(255,255,255,0.3); }
.btn-dark{ background: var(--navy-ink); color: var(--white); }
.btn-dark:hover{ background: var(--navy-deep); box-shadow: 0 14px 28px -14px rgba(15,22,56,0.6); }
.btn-outline{ background: transparent; color: var(--navy-ink); border-color: rgba(19,26,68,0.35); }
.btn-outline:hover{ border-color: var(--navy-ink); box-shadow: 0 10px 22px -16px rgba(19,26,68,0.28); }

/* -------------------- sections -------------------- */
section{ padding: clamp(3rem, 7vw, 5rem) var(--edge); }
.section-inner{ max-width: 1180px; margin: 0 auto; }

.section-head{
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.75rem;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head .lede{ padding-top: 0.4rem; }
@media (max-width: 760px){
  .section-head{ grid-template-columns: 1fr; gap: 1rem; }
}

.kicker{
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.6rem;
  display: block;
}

hr.rule{
  border: none;
  border-top: 1px solid rgba(28,27,24,0.14);
  margin: 0;
}

/* -------------------- pillars / why list -------------------- */
.pillars{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(28,27,24,0.14);
}
.pillar{
  padding: 1.9rem 1.6rem 1.9rem 0;
  border-bottom: 1px solid rgba(28,27,24,0.14);
  display: flex;
  gap: 1.1rem;
  transition: transform 0.3s cubic-bezier(.16,.8,.3,1);
}
.pillar:hover{ transform: translateX(6px); }
.pillar:nth-child(odd){ border-right: 1px solid rgba(28,27,24,0.14); padding-right: 2.2rem; }
.pillar:nth-child(even){ padding-left: 2.2rem; }
.pillar .num{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--maroon);
  min-width: 2.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.pillar:hover .num{ color: var(--red); transform: scale(1.15); }
.pillar h3{ font-size: 1.08rem; margin-bottom: 0.35rem; }
.pillar p{ margin: 0; font-size: 0.95rem; }

@media (max-width: 720px){
  .pillars{ grid-template-columns: 1fr; }
  .pillar:nth-child(odd){ border-right: none; padding-right: 0; }
  .pillar:nth-child(even){ padding-left: 0; }
}

/* -------------------- objectives list -------------------- */
.objectives-list{
  border-top: 1px solid rgba(28,27,24,0.14);
}
.objective-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.75rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid rgba(28,27,24,0.14);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.objective-row:hover{ background: rgba(178,31,36,0.04); padding-left: 0.7rem; }
.objective-row .num{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--maroon);
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.objective-row:hover .num{ transform: translateY(-3px) rotate(-4deg); }
.objective-row h3{ font-size: 1.18rem; margin-bottom: 0.4rem; }
.objective-row p{ margin: 0; }
@media (max-width: 620px){
  .objective-row{ grid-template-columns: 1fr; gap: 0.4rem; }
  .objective-row .num{ font-size: 1.7rem; }
}

/* -------------------- teaser strip (home) -------------------- */
.teaser-strip{
  background: var(--white);
  border: 1px solid rgba(28,27,24,0.12);
}
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.teaser-cell{
  padding: 2.1rem 1.8rem;
  border-right: 1px solid rgba(28,27,24,0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}
.teaser-cell:hover{ background: var(--paper-dim); transform: translateY(-4px); }
.teaser-cell:last-child{ border-right: none; }
.teaser-cell .mark{
  color: var(--maroon);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.teaser-cell:hover .mark{ transform: scale(1.2) rotate(-6deg); }
.teaser-cell h3{ font-size: 1.05rem; margin-bottom: 0.4rem; }
.teaser-cell p{ font-size: 0.92rem; margin: 0; }
@media (max-width: 760px){
  .teaser-grid{ grid-template-columns: 1fr; }
  .teaser-cell{ border-right: none; border-bottom: 1px solid rgba(28,27,24,0.12); }
  .teaser-cell:last-child{ border-bottom: none; }
}

/* -------------------- programs -------------------- */
.program{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(28,27,24,0.14);
  align-items: center;
}
.program:first-of-type{ border-top: 1px solid rgba(28,27,24,0.14); }
.program:nth-child(even) .program-figure{ order: 2; }
.program-figure{ display: flex; justify-content: center; }
.program-figure svg{ width: 100%; max-width: 220px; transition: transform 0.45s cubic-bezier(.16,.8,.3,1); }
.program:hover .program-figure svg{ transform: scale(1.08) rotate(-3deg); }
.program h3{ font-size: 1.4rem; }
.program .tag{
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid rgba(40,56,141,0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.program:hover .tag{ background: var(--navy); color: var(--white); }
@media (max-width: 760px){
  .program{ grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
  .program:nth-child(even) .program-figure{ order: 0; }
  .program-figure svg{ max-width: 160px; }
}

/* -------------------- pull quote -------------------- */
.pull-quote{
  border-left: 3px solid var(--maroon);
  padding: 0.2rem 0 0.2rem 1.8rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.pull-quote::before{
  content: "";
  position: absolute;
  left: -3px; top: 0;
  width: 3px; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(.16,.8,.3,1);
}
.pull-quote.is-visible::before{ transform: scaleY(1); }
.pull-quote p{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy-ink);
  max-width: 42ch;
  margin-bottom: 0.6rem;
}
.pull-quote cite{
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------------------- closing band -------------------- */
.band{
  background: linear-gradient(135deg, var(--maroon) 0%, #7E1418 100%);
  color: var(--white);
  text-align: left;
}
.band-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.band h2{ color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; max-width: 20ch; }
.band .lede{ color: rgba(255,255,255,0.82); margin: 0; }

/* -------------------- contact -------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-info dl{ margin: 1.5rem 0 0; }
.contact-info dt{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maroon);
  margin-top: 1.3rem;
}
.contact-info dd{ margin: 0.25rem 0 0; color: var(--ink); }

.field{ margin-bottom: 1.3rem; }
.field label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy-ink);
}
.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1px solid rgba(28,27,24,0.28);
  background: var(--white);
  padding: 0.7rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:hover,
.field select:hover,
.field textarea:hover{ border-color: rgba(28,27,24,0.5); }
.field textarea{ resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus{ outline: 2px solid var(--navy); outline-offset: 1px; }

.form-note{
  font-size: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(178,31,36,0.35);
  background: rgba(178,31,36,0.06);
  color: var(--maroon);
  border-radius: 2px;
  display: none;
}
.form-note.is-visible{ display: block; }
.form-note.is-success{
  border-color: rgba(40,56,141,0.35);
  background: rgba(40,56,141,0.06);
  color: var(--navy);
}

@media (max-width: 760px){
  .contact-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
}

/* -------------------- footer -------------------- */
.site-footer{
  background: linear-gradient(180deg, var(--navy-ink) 0%, #0F1638 100%);
  color: var(--muted-on-navy);
  padding: 3rem var(--edge) 2rem;
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.footer-brand img{ height: 34px; width: 34px; }
.footer-tagline{ font-style: italic; font-family: var(--serif); color: var(--muted-on-navy); }
.footer-mark{ margin-top: 1rem; opacity: 0.55; display: block; }
.footer-col h4{
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 0.55rem; }
.footer-col a{
  font-size: 0.92rem;
  color: var(--muted-on-navy);
  transition: color 0.15s, padding-left 0.25s ease;
  display: inline-block;
}
.footer-col a:hover{ color: var(--white); padding-left: 4px; }
.footer-bottom{
  max-width: 1180px;
  margin: 1.4rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(185,192,232,0.7);
}
@media (max-width: 760px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* -------------------- utility -------------------- */
.stack-lg > * + *{ margin-top: 1.25rem; }
.text-center{ text-align: center; }

/* Bidirectional scroll reveal: animates in on entry, resets on exit,
   so scrolling back up genuinely reverses the motion rather than
   leaving a one-shot fade behind. */
.reveal{
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0) scale(1); }

/* Staggered children: give the wrapper class="stagger" and each
   direct child class="reveal" — they animate in sequence and
   reverse in sequence too. */
.stagger > *:nth-child(1).reveal{ transition-delay: 0ms; }
.stagger > *:nth-child(2).reveal{ transition-delay: 90ms; }
.stagger > *:nth-child(3).reveal{ transition-delay: 180ms; }
.stagger > *:nth-child(4).reveal{ transition-delay: 270ms; }
.stagger > *:nth-child(5).reveal{ transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; opacity: 1; transform: none; }
}

