/* ==========================================================================
   Michael Fackerell — sites, ministry & software
   Warm editorial: paper, ink, rust. Hand-written CSS, no build step.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* surfaces */
  --paper: #f7f2e7;
  --paper-2: #f1e9da;
  --night: #12100d;
  --night-2: #1a1713;
  --night-3: #221d18;

  /* ink */
  --ink: #14110e;
  --ink-70: rgba(20, 17, 14, 0.72);
  --ink-55: rgba(20, 17, 14, 0.62);
  --rule: rgba(20, 17, 14, 0.13);
  --rule-strong: rgba(20, 17, 14, 0.26);

  /* reverse ink, for the night band */
  --paper-70: rgba(247, 242, 231, 0.72);
  --paper-55: rgba(247, 242, 231, 0.55);
  --rule-night: rgba(247, 242, 231, 0.13);
  --rule-night-strong: rgba(247, 242, 231, 0.28);

  /* accent */
  --rust: #a8442a;
  --rust-deep: #8a3520;
  --rust-soft: #d18a6a;
  --gold: #b08442;
  --gold-ink: #7d5c26;

  /* structure */
  --max: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --bar-h: 70px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ui: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

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

.section--night :focus-visible,
.footer :focus-visible {
  outline-color: var(--rust-soft);
}

/* Layout shell */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section--night {
  background: var(--night);
  background-image: radial-gradient(70% 45% at 50% 0%, rgba(176, 132, 66, 0.1), transparent 70%);
  color: var(--paper);
}

/* Accessible skip link */

.skip-link {
  position: absolute;
  z-index: 100;
  top: -5rem;
  left: var(--gutter);
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.kicker {
  display: block;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  margin-right: 0.75rem;
  background: var(--gold);
  vertical-align: 0.2em;
}

.kicker span[aria-hidden] {
  color: var(--rust);
}

.display {
  margin-top: clamp(1.1rem, 2.6vw, 1.9rem);
  font-family: var(--display);
  font-size: clamp(2.9rem, 12.4vw, 8rem);
  font-weight: 350;
  font-variation-settings: "SOFT" 35, "WONK" 1;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.display > span {
  display: block;
}

.display__second {
  padding-left: clamp(1rem, 12vw, 13.5rem);
  color: var(--rust);
}

h2 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 25;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section-head {
  display: grid;
  align-items: end;
  gap: 0.85rem clamp(1rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.section-head h2 {
  grid-column: 1;
  grid-row: 2;
}

.section-head .section-lede {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.section--night .section-head .eyebrow {
  color: var(--rust-soft);
}

.section-lede {
  max-width: 42ch;
  font-size: 1rem;
  color: var(--ink-70);
  text-wrap: pretty;
}

.section--night .section-lede {
  color: var(--paper-70);
}

/* Links inside body copy */

.hero__aside a,
.work__copy a {
  color: var(--rust-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(168, 68, 42, 0.38);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.4s var(--ease), color 0.4s var(--ease);
}

.hero__aside a:hover,
.work__copy a:hover {
  color: var(--rust);
  text-decoration-color: currentColor;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
    color 0.45s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.btn--solid {
  background: var(--rust-deep);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn--solid:hover {
  background: var(--rust);
  translate: 0 -2px;
  box-shadow: 0 14px 28px -18px rgba(138, 53, 32, 0.9);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  translate: 0 -2px;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 242, 231, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  min-height: var(--bar-h);
}

.mark {
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.mark span {
  color: var(--rust);
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.nav a {
  position: relative;
  padding-block: 0.35rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-70);
  transition: color 0.4s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.topbar__cta {
  padding: 0.72rem 1.15rem;
  font-size: 0.84rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3.4rem, 7vw, 6rem) clamp(3rem, 5.5vw, 4.8rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25% -10% auto;
  height: 115%;
  background: radial-gradient(58% 48% at 76% 6%, rgba(176, 132, 66, 0.17), transparent 70%),
    radial-gradient(46% 42% at 6% 34%, rgba(168, 68, 42, 0.07), transparent 72%);
  pointer-events: none;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.6rem);
}

.lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.97rem + 0.42vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
}

.hero__aside {
  margin-top: 1.7rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-70);
}

/* Portrait with an offset rust frame */

.portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--rust);
  transform: translate(15px, 15px);
  transition: transform 0.8s var(--ease);
}

.portrait:hover::after {
  transform: translate(22px, 22px);
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.94) contrast(1.03) sepia(0.07);
}

.portrait__chip {
  position: absolute;
  bottom: 1.1rem;
  left: -0.55rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* ── Marquee ────────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  padding-block: 1.05rem;
  border-block: 1px solid var(--rule);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.15rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-55);
}

.marquee span::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 1.15rem;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.6;
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs {
  display: none;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule-night);
}

.js .tabs {
  display: flex;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: clamp(1.4rem, 3.4vw, 2.6rem);
  padding: 0.2rem 0.1rem 1.05rem;
  border: 0;
  background: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-55);
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

.tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--rust-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease);
}

.tab:hover {
  color: var(--paper);
}

.tab[aria-selected="true"] {
  color: var(--paper);
}

.tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tab__count {
  padding: 0.1rem 0.42rem;
  border: 1px solid var(--rule-night-strong);
  border-radius: 999px;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--paper-55);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.tab[aria-selected="true"] .tab__count {
  border-color: transparent;
  background: var(--rust);
  color: var(--paper);
}

/* Stacked panels keep working without JS — the tabs stay hidden there. */

.tabpanel + .tabpanel {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ── Card grid ──────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 231, 0.09);
  border-radius: 3px;
  background: var(--night-2);
  transition: translate 0.6s var(--ease), border-color 0.5s var(--ease),
    background-color 0.5s var(--ease);
}

.site-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rust-soft), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.site-card:hover {
  border-color: rgba(247, 242, 231, 0.22);
  background: var(--night-3);
  translate: 0 -5px;
}

.site-card:hover::before {
  opacity: 0.85;
}

.site-card:focus-within {
  border-color: var(--rust-soft);
}

.site-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0a08;
}

.site-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.6s var(--ease);
}

.site-card:hover .site-card__media img {
  transform: scale(1.045);
}

.site-card__media--contain img {
  object-fit: contain;
  padding: clamp(0.5rem, 1.3vw, 0.85rem);
}

.site-card__media--splash {
  background: radial-gradient(58% 78% at 50% 50%, rgba(176, 132, 66, 0.22), transparent 72%),
    #0b0a08;
}

/*
 * The splash art is square; a blurred copy of it fills the wide media box so
 * the sharp square reads as a deliberate plate rather than a letterboxed gap.
 */
.site-card__media--splash::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: url("assets/versebattles-splash.webp") center / cover no-repeat;
  filter: blur(28px) saturate(1.15) brightness(0.5);
  opacity: 0.6;
}

.site-card__media--splash img {
  position: relative;
  z-index: 1;
}

.site-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.site-card__tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-card h3 {
  font-family: var(--display);
  font-size: clamp(1.22rem, 1.55vw, 1.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.site-card h3 a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.45s var(--ease);
}

.site-card h3 a:hover,
.site-card h3 a:focus-visible {
  text-decoration-color: var(--rust-soft);
}

.site-card__body p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--paper-70);
  text-wrap: pretty;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.chip {
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--rule-night-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--paper-70);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.chip:hover {
  border-color: var(--rust-soft);
  background: rgba(168, 68, 42, 0.14);
  color: var(--paper);
}

.site-card__foot {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule-night);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--paper-55);
}

.site-card__foot::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--rust-soft);
  vertical-align: 0.18em;
}

/* ── Custom software ────────────────────────────────────────────────────── */

.work {
  display: grid;
  row-gap: clamp(1.8rem, 3.4vw, 2.8rem);
}

.work > .section-head {
  margin-bottom: 0;
}

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.work__copy {
  display: grid;
  gap: 1.25rem;
  max-width: 52ch;
  color: var(--ink-70);
  text-wrap: pretty;
}

.work__copy p:first-child {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
  color: var(--ink);
}

.work__list {
  border-top: 1px solid var(--rule);
  counter-reset: work;
}

.work__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0.25rem 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: work;
  transition: padding-left 0.55s var(--ease), color 0.45s var(--ease);
}

.work__list li::before {
  content: "0" counter(work);
  flex: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--rust);
}

.work__list span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.34rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.work__list li:hover {
  padding-left: 0.6rem;
  color: var(--rust-deep);
}

/* ── Donate ─────────────────────────────────────────────────────────────── */

.donate {
  border-block: 1px solid var(--rule);
  background: var(--paper-2);
}

.donate__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.donate__copy {
  display: grid;
  gap: 1rem;
  max-width: 48ch;
}

.donate__copy .eyebrow {
  margin-bottom: 0.15rem;
}

.donate__copy h2 {
  max-width: 16ch;
}

.donate__copy p {
  color: var(--ink-70);
  text-wrap: pretty;
}

.donate__note {
  font-size: 0.8rem;
  color: var(--ink-55) !important;
}

.donate__panel {
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 34px 64px -56px rgba(20, 17, 14, 0.55);
}

/* Frequency toggle: one-time vs monthly giving */

.frequency {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1.15rem;
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
}

.frequency__option {
  padding: 0.42rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-55);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.frequency__option:hover {
  color: var(--ink);
}

.frequency__option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.donate__panel-title {
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.amount {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.45s var(--ease), background-color 0.45s var(--ease),
    translate 0.5s var(--ease);
}

.amount:hover {
  border-color: var(--rust);
  background: rgba(168, 68, 42, 0.05);
  translate: 0 -2px;
}

.amount__value {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.amount__label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-55);
}

.donate__secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-55);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 132, 66, 0.16);
}

/* ── Connect ────────────────────────────────────────────────────────────── */

.connect {
  border-top: 1px solid var(--rule);
}

.connect__row {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color 0.45s var(--ease);
}

.connect__row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--rust);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}

.connect__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.connect__value {
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.connect__arrow {
  font-size: 1rem;
  line-height: 1;
  color: var(--rust);
  transition: transform 0.5s var(--ease);
}

.connect__row:hover {
  background: rgba(168, 68, 42, 0.045);
}

.connect__row:hover::before {
  transform: scaleY(1);
}

.connect__row:hover .connect__arrow {
  transform: translate(4px, -4px);
}

.email {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
}

.email__link {
  display: inline-block;
  margin-top: 0.5rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.2vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.email__link:hover {
  border-color: var(--rust);
  color: var(--rust-deep);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  padding-block: 2.8rem;
  background: var(--night);
  color: var(--paper-55);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  font-size: 0.8rem;
}

.footer__meta {
  font-variant-numeric: tabular-nums;
}

/* ── Reveal ─────────────────────────────────────────────────────────────── */

/*
 * Hidden only when JS is present, so the page is complete without it.
 * The reveal animates opacity + transform; hover lifts use the separate
 * `translate` property so the two never fight.
 */

.js .reveal {
  opacity: 0;
}

.js .reveal.is-in {
  animation: rise 0.95s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid > * {
    grid-column: auto;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .portrait {
    justify-self: start;
    width: min(72%, 300px);
    margin-top: 0.5rem;
  }

  .work__grid,
  .donate__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .work__list {
    margin-top: 0.5rem;
  }
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .section-head .section-lede {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.35rem;
  }

  .nav {
    gap: 1.1rem;
  }
}

@media (max-width: 720px) {
  :root {
    --bar-h: 62px;
  }

  .topbar__cta {
    display: none;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .section {
    padding-block: clamp(3.4rem, 9vw, 5rem);
  }

  .connect__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label arrow"
      "value arrow";
    gap: 0.15rem 1rem;
    padding-block: 1rem;
  }

  .connect__label { grid-area: label; }
  .connect__value { grid-area: value; }
  .connect__arrow { grid-area: arrow; }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid > * {
    grid-column: 1 / -1;
  }

  .display {
    font-size: clamp(2.7rem, 13.2vw, 4.4rem);
  }

  .display__second {
    padding-left: clamp(0.85rem, 9vw, 3rem);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .portrait {
    width: min(100%, 280px);
  }

  .site-card__media--splash {
    aspect-ratio: 1;
  }

  .portrait__chip {
    left: 0.6rem;
    bottom: 0.6rem;
  }

  .amounts {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab {
    margin-right: 1.2rem;
    font-size: 0.72rem;
  }

  /* Hanging indent keeps wrapped kicker lines aligned past the rule. */
  .kicker {
    padding-left: 3.1rem;
    text-indent: -3.1rem;
  }
}

@media (max-width: 380px) {
  .mark {
    font-size: 0.95rem;
  }

  .nav {
    gap: 0.7rem;
  }

  .nav a {
    font-size: 0.74rem;
  }
}

/* ── 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;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .site-card:hover,
  .amount:hover,
  .btn:hover {
    translate: none;
  }

  .portrait:hover::after {
    transform: translate(15px, 15px);
  }
}
