/* ==========================================================================
   Deliverance Temple RVA (dtrva.com)
   "The Glory Cloud is moving. Move with the cloud.", Exodus 13:21
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Night the pillar moves through, blue-black, never neutral gray */
  --night:        #0B1020;
  --night-deep:   #070A15;
  --storm:        #161E33;
  --storm-soft:   #1E2740;

  /* Cloud light */
  --cloud:        #E8EDF5;
  --vapor:        #94A0BA;
  --vapor-dim:    #5E6A85;

  /* Fire, from the church seal */
  --fire:         #C9962C;
  --ember:        #E8B54A;
  --fire-deep:    #8A6516;

  /* Used sparingly: the cross, the sanctuary paraments */
  --crimson:      #B4202A;

  --rule:         rgba(232, 237, 245, 0.12);
  --rule-strong:  rgba(232, 237, 245, 0.24);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Measure */
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --rail:      clamp(0px, 4vw, 76px);   /* space the pillar occupies */
  --measure:   72rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cloud);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 100;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--fire); color: var(--night-deep);
  padding: 0.75rem 1.25rem; z-index: 200; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Shared atoms -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fire);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--fire);
  flex: none;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--vapor);
  max-width: 58ch;
}

.btn {
  --btn-bg: var(--fire);
  --btn-fg: var(--night-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  padding: 0.9rem 1.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { --btn-bg: var(--ember); transform: translateY(-2px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cloud);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--night-deep);
  background: var(--cloud);
  border-color: var(--cloud);
}
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- The Pillar ---------------------------------------------------------
   Exodus 13:21, a pillar of cloud by day, of fire by night. It runs the
   height of the page and the ember tracks reading progress.
   ------------------------------------------------------------------------ */
.pillar {
  position: fixed;
  left: clamp(14px, 2.4vw, 38px);
  top: 0; bottom: 0;
  width: 1px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--rule) 12vh,
    var(--rule) 88vh,
    transparent 100%
  );
}
.pillar__ember {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px; height: 3px;
  margin-left: -1px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow:
    0 0 6px 1px rgba(232, 181, 74, 0.9),
    0 0 22px 5px rgba(201, 150, 44, 0.45),
    0 0 60px 18px rgba(201, 150, 44, 0.12);
  transition: top 0.12s linear;
}
/* the trail the ember has already traveled */
.pillar__trail {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--fire));
  opacity: 0.55;
}
@media (max-width: 900px) {
  .pillar { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; background: var(--rule); }
  .pillar__trail { width: auto; height: 2px; background: var(--fire); }
  .pillar__ember { display: none; }
}

/* --- Masthead ------------------------------------------------------------ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 1.35rem;
  padding-left: var(--rail);
  transition: padding-block 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  padding-block: 0.7rem;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand img { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 60;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.brand__sub {
  display: block;
  font-family: var(--body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fire);
  margin-top: 0.18rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vapor);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cloud); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The Give button is an <a> inside .nav, so it needs to out-specify `.nav a`
   for color and must not inherit the underline treatment. */
.nav a.btn {
  color: var(--btn-fg);
  padding: 0.75rem 1.4rem;
  text-transform: uppercase;
}
.nav a.btn::after { content: none; }
.nav a.btn:hover { color: var(--btn-fg); }
.nav__give { margin-left: 0.25rem; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--cloud);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(20rem, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.35rem;
    padding: 2rem var(--gutter);
    background: var(--night-deep);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform 0.42s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94vh, 60rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-left: var(--rail);
  overflow: hidden;
  isolation: isolate;
}

/* The moving cloud, three drifting masses, no image weight, never stock */
.cloudbed { position: absolute; inset: -25% -15%; z-index: -2; }
.cloudbed span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.cloudbed span:nth-child(1) {
  width: 62vw; height: 62vw; left: -8%; top: 2%;
  background: radial-gradient(circle at 40% 40%, rgba(60, 84, 140, 0.55), transparent 68%);
  animation: drift-a 46s ease-in-out infinite alternate;
}
.cloudbed span:nth-child(2) {
  width: 54vw; height: 54vw; right: -6%; top: 18%;
  background: radial-gradient(circle at 55% 45%, rgba(201, 150, 44, 0.30), transparent 66%);
  animation: drift-b 62s ease-in-out infinite alternate;
}
.cloudbed span:nth-child(3) {
  width: 46vw; height: 46vw; left: 34%; bottom: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(120, 88, 180, 0.26), transparent 70%);
  animation: drift-c 54s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9%, -5%, 0) scale(1.16); } }
@keyframes drift-b { to { transform: translate3d(-11%, 7%, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(6%, -9%, 0) scale(1.2); } }

.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.8) contrast(1.05);
}
.hero::after { /* grounding scrim so type always clears AA */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(11,16,32,0.62) 42%, rgba(11,16,32,0.30) 100%);
}

.hero__inner { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.hero__place {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--vapor);
  margin: 0 0 1.75rem;
}
.hero__place b { color: var(--fire); font-weight: 600; }

.hero h1 {
  font-size: clamp(3rem, 11.5vw, 9.5rem);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 144;
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--fire);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.55vw, 1.375rem);
  color: var(--vapor);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}

/* Service strip, a church's most-wanted fact, at the fold */
.strip {
  border-top: 1px solid var(--rule);
  padding-left: var(--rail);
  background: rgba(7, 10, 21, 0.5);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border-inline: 1px solid var(--rule);
}
.strip__cell { background: var(--night); padding: 1.5rem 1.35rem; }
.strip__cell dt {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 0.5rem;
}
.strip__cell dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
}
.strip__cell small { display: block; font-family: var(--body); font-size: 0.8125rem; color: var(--vapor); margin-top: 0.2rem; }

/* --- Section shell ------------------------------------------------------- */
.section {
  padding-block: clamp(4.5rem, 11vw, 9rem);
  padding-left: var(--rail);
  position: relative;
}
.section--edge { border-top: 1px solid var(--rule); }
.section--deep { background: var(--night-deep); }

.section h2 {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 96;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.section h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }

.frame {
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--storm);
}
.frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: brightness(1.06) contrast(1.03);
}
.frame--tall img { aspect-ratio: 4 / 5; }
.frame--wide img { aspect-ratio: 16 / 9; }
.frame figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--vapor-dim);
  border-top: 1px solid var(--rule);
}

/* Pull quote, their own words, set large */
.pullquote {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 96;
  font-size: clamp(1.6rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0;
}
.pullquote em { font-style: italic; color: var(--fire); }
.pullquote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vapor-dim);
  margin-top: 1.75rem;
}

/* --- Three doors: the only three things a visitor needs ------------------ */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.door {
  background: var(--night);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 15rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.door::before { /* fire wash rises on hover */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 100%;
  background: linear-gradient(to top, rgba(201, 150, 44, 0.14), transparent 60%);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.door:hover { background: var(--storm); }
.door:hover::before { transform: translateY(0); }
.door > * { position: relative; }
.door__n {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fire);
}
.door h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.door p { color: var(--vapor); font-size: 0.9375rem; margin: 0; }
.door span:last-child {
  margin-top: auto;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.door:hover span:last-child .arw { transform: translateX(5px); }
.arw { transition: transform 0.3s var(--ease); }

/* --- Next event ---------------------------------------------------------- */
.event {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--rule);
  background: var(--storm);
  overflow: hidden;
}
.event img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
.event__body { padding: clamp(1.75rem, 4vw, 3rem); align-self: center; }
.event__date {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  font-size: 0.9375rem;
  color: var(--fire);
  margin-bottom: 0.75rem;
}
@media (max-width: 760px) { .event { grid-template-columns: 1fr; } }

/* --- Gallery ------------------------------------------------------------- */
.gallery {
  display: grid;
  /* 18rem keeps a tidy 3-up on desktop rather than a ragged 4 + 2 */
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.gallery figure { margin: 0; overflow: hidden; background: var(--night); }
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  /* Source photos are dim, warm-lit sanctuary frames, lift them so they read
     as intentional rather than underexposed. */
  filter: saturate(0.92) brightness(1.1) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(1.16) contrast(1.05);
}

/* --- Cards --------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--rule);
  background: var(--storm);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover { border-color: var(--fire); transform: translateY(-3px); }
.card p { color: var(--vapor); font-size: 0.9375rem; margin: 0; }
.card__img { margin: -1.75rem -1.75rem 0.5rem; border-bottom: 1px solid var(--rule); }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Placeholder tiles for assets not yet supplied */
.ph {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, rgba(232,237,245,0.03) 0 12px, transparent 12px 24px),
    var(--storm);
  border: 1px dashed var(--rule-strong);
  color: var(--vapor-dim);
  padding: 1.5rem;
}
.ph b {
  font-family: var(--body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fire);
}
.ph code {
  font-size: 0.75rem;
  color: var(--vapor);
  background: rgba(0,0,0,0.35);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  word-break: break-all;
}
.ph small { font-size: 0.6875rem; }

/* --- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; max-width: 34rem; }
/* Grid stretches children by default; keep the submit button its own width. */
.form .btn { justify-self: start; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--vapor);
}
.field input, .field textarea, .field select {
  background: var(--night-deep);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--cloud);
  font: inherit;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--fire);
  background: var(--night);
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form__note { font-size: 0.8125rem; color: var(--vapor-dim); }
.form__status { font-size: 0.875rem; min-height: 1.4em; }
.form__status[data-state="ok"]  { color: var(--ember); }
.form__status[data-state="err"] { color: #FF8A8A; }

/* --- Verse rule ---------------------------------------------------------- */
.verse {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-left: var(--rail);
  text-align: center;
  background: var(--night-deep);
}
.verse p {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 96;
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 30ch;
  margin: 0 auto 1.25rem;
}
.verse cite {
  font-style: normal;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fire);
}

/* --- Page header (inner pages) ------------------------------------------- */
.pagehead {
  position: relative;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  padding-left: var(--rail);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.pagehead h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 144;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.pagehead .cloudbed span { filter: blur(90px); opacity: 0.7; }

/* --- Footer -------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  padding-left: var(--rail);
  background: var(--night-deep);
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.foot__seal { display: flex; flex-direction: column; gap: 1.1rem; }
.foot__seal img { width: 104px; }
.foot h4 {
  font-family: var(--body);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fire);
  margin: 0 0 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot a { color: var(--vapor); text-decoration: none; font-size: 0.9375rem; transition: color 0.25s var(--ease); }
.foot a:hover { color: var(--cloud); }
.foot address { font-style: normal; color: var(--vapor); font-size: 0.9375rem; line-height: 1.8; }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-size: 0.8125rem; color: var(--vapor-dim);
}
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social a:hover { background: var(--fire); border-color: var(--fire); color: var(--night-deep); }

/* --- Scroll reveal ------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(22px); }
.rise.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rise:nth-child(2) { transition-delay: 0.07s; }
.rise:nth-child(3) { transition-delay: 0.14s; }
.rise:nth-child(4) { transition-delay: 0.21s; }

/* --- Utilities ----------------------------------------------------------- */
.stack > * + * { margin-top: 1.25rem; }
.mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; margin-inline: auto; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
