/* ============================================
   ARCHITECT MINISTRY SOLUTIONS
   Liquid Obsidian — Design System
   ============================================ */

:root {
  /* Obsidian scale */
  --void: #030305;
  --obsidian: #07070b;
  --obsidian-2: #0b0b11;
  --graphite: #131319;
  --graphite-2: #1a1a22;
  --slate: #24242e;
  --fog: #3a3a47;

  /* Foreground */
  --bone: #f4f3ee;
  --silver: #d6d4cc;
  --silver-dim: #9a9892;
  --silver-mute: #6a6862;

  /* Accents — brand gold (set by tweak) */
  --accent-h: 78;
  --accent-1: oklch(78% 0.14 var(--accent-h));
  --accent-1-soft: oklch(78% 0.14 var(--accent-h) / 0.18);
  --accent-1-glow: oklch(78% 0.16 var(--accent-h) / 0.45);
  --accent-2: #d4b685; /* platinum-gold */
  --accent-2-soft: rgba(212, 182, 133, 0.2);
  --brand-gold: #d4b685;

  /* Surfaces */
  --glass: rgba(20, 20, 28, 0.55);
  --glass-2: rgba(28, 28, 38, 0.45);
  --glass-line: rgba(255, 255, 255, 0.06);
  --glass-line-bright: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.18);

  /* Type — Tesla-inspired: clean geometric sans across the board */
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --display-italic: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1320px;
  --section-pad: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, oklch(35% 0.03 var(--accent-h) / 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(20, 20, 30, 0.7), transparent 60%),
    linear-gradient(180deg, #04040a 0%, var(--void) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Blueprint grid overlay (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
  z-index: 0;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  z-index: 1;
}

#app { position: relative; z-index: 2; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--accent-1-glow);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver) 50%, var(--silver-mute) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.italic-accent {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-2) 0%, #f0d9a8 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  position: relative;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.section-head h2 {
  margin: 16px 0 0 0;
  font-size: clamp(38px, 5.4vw, 78px);
}

.section-head .lede {
  color: var(--silver-dim);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 480px;
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   GLASS CARDS
   ============================================ */
.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.2) 100%),
    var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--glass-edge) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass:hover {
  transform: translateY(-2px);
  border-color: var(--glass-line-bright);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--glass-line-bright) inset;
}

/* Premium spotlight follow */
.glass--spot {
  position: relative;
}
.glass--spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%),
              oklch(70% 0.15 var(--accent-h) / 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass--spot:hover::after { opacity: 1; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid var(--glass-line);
  color: var(--bone);
  text-decoration: none;
}
.nav-brand .ams-wordmark { filter: brightness(1.05); }

.nav-brand-mark {
  width: 22px;
  height: 22px;
  position: relative;
}

.nav-brand-name {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: var(--silver-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  margin-left: 8px;
}

@media (max-width: 760px) {
  .nav { padding: 6px 6px 6px 16px; gap: 4px; }
  .nav-links { display: none; }
  .nav-brand { padding-right: 12px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bone);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(180deg, #f6f4ee 0%, #d8d4ca 100%);
  color: #0a0a10;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 12px 32px -10px rgba(255, 255, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 16px 40px -10px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}

.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
  border-color: var(--glass-line-bright);
  background: rgba(255, 255, 255, 0.02);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(180deg, oklch(60% 0.16 var(--accent-h)) 0%, oklch(48% 0.18 var(--accent-h)) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 36px -8px var(--accent-1-glow);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 16px 50px -8px var(--accent-1-glow);
}

.btn--small { padding: 9px 16px; font-size: 12.5px; }

.btn .arrow {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 24s ease-in-out infinite alternate;
}

.hero-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, oklch(50% 0.2 var(--accent-h)) 0%, transparent 60%);
  top: -200px;
  right: -100px;
  animation-delay: -4s;
}

.hero-orb--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, oklch(35% 0.08 var(--accent-h)) 0%, transparent 60%);
  bottom: -200px;
  left: -100px;
  animation-delay: -10s;
}

.hero-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 182, 133, 0.25) 0%, transparent 60%);
  top: 40%;
  left: 30%;
  opacity: 0.4;
  animation-delay: -2s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.08); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 49%, oklch(70% 0.15 var(--accent-h) / 0.3) 50%, transparent 51%, transparent 100%);
  background-size: 100% 8px;
  mix-blend-mode: overlay;
  opacity: 0.15;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
}

.hero h1 {
  margin: 24px 0 28px 0;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.94;
}

.hero h1 .line { display: block; }

.hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--silver-dim);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-credibility {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--silver-mute);
  line-height: 1.7;
  border-top: 1px solid var(--glass-line);
  padding-top: 22px;
  max-width: 540px;
}

.hero-credibility strong { color: var(--silver); font-weight: 500; }

/* Hero showcase: floating glass tile */
.hero-showcase {
  position: relative;
  aspect-ratio: 4/5;
  perspective: 1200px;
}

.hero-tile {
  position: absolute;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(0, 0, 0, 0.3) 100%),
    rgba(15, 15, 22, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-line-bright);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.hero-tile--main {
  inset: 6% 8% 10% 4%;
  transform: rotate(-2deg);
  animation: float-1 8s ease-in-out infinite alternate;
}

.hero-tile--sub {
  width: 60%;
  aspect-ratio: 4/3;
  bottom: 6%;
  right: -4%;
  transform: rotate(4deg);
  animation: float-2 9s ease-in-out infinite alternate;
}

.hero-tile--micro {
  width: 38%;
  aspect-ratio: 1.4;
  top: 4%;
  right: -2%;
  transform: rotate(-3deg);
  animation: float-3 7s ease-in-out infinite alternate;
}

@keyframes float-1 {
  0% { transform: rotate(-2deg) translateY(0); }
  100% { transform: rotate(-2.5deg) translateY(-12px); }
}
@keyframes float-2 {
  0% { transform: rotate(4deg) translateY(0); }
  100% { transform: rotate(3.5deg) translateY(8px); }
}
@keyframes float-3 {
  0% { transform: rotate(-3deg) translateY(0); }
  100% { transform: rotate(-2deg) translateY(-6px); }
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-mute);
}

.tile-dots { display: flex; gap: 5px; }
.tile-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.tile-dots span:first-child { background: var(--accent-1); box-shadow: 0 0 8px var(--accent-1-glow); }

.tile-body { padding: 18px; }

.tile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.tile-row:last-child { border-bottom: none; }

.tile-row .pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-1-soft);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
}

.tile-row .pill--ok { background: rgba(120, 200, 130, 0.15); color: #a8d9b1; }
.tile-row .pill--gold { background: var(--accent-2-soft); color: var(--accent-2); }

.tile-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 14px 0;
}

.tile-bar-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, oklch(65% 0.16 var(--accent-h)), oklch(80% 0.14 var(--accent-h)));
  border-radius: 999px;
  box-shadow: 0 0 20px var(--accent-1-glow);
}

.tile-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tile-stat-value {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}
.tile-stat-delta {
  font-family: var(--mono);
  font-size: 10px;
  color: #a8d9b1;
}

/* Spark line */
.spark {
  height: 60px;
  width: 100%;
  margin-top: 12px;
}

/* ============================================
   PURPOSE
   ============================================ */
.purpose-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 920px) {
  .purpose-cards { grid-template-columns: 1fr; }
}

.purpose-card {
  padding: 36px 32px 36px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.purpose-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silver-mute);
  letter-spacing: 0.2em;
}

.purpose-card h3 {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
  margin: 80px 0 12px 0;
  letter-spacing: -0.01em;
}

.purpose-card p {
  color: var(--silver-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.purpose-card .glyph {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
}

/* ============================================
   PLATFORMS (FEATURED)
   ============================================ */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1020px) {
  .platforms { grid-template-columns: 1fr; }
}

.platform {
  position: relative;
  padding: 36px 36px 32px 36px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
  align-self: flex-start;
  margin-bottom: 24px;
}

.platform h3 {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.platform h3 .domain { color: var(--silver-dim); font-size: 0.6em; vertical-align: 0.18em; }

.platform > p {
  color: var(--silver-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 480px;
}

.platform-mock {
  position: relative;
  border-radius: 14px;
  margin: 8px 0 28px 0;
  background: linear-gradient(180deg, var(--obsidian-2), var(--void));
  border: 1px solid var(--glass-line);
  overflow: hidden;
  flex: 1;
  min-height: 220px;
}

.platform-mock--shot {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0d0d14, #050507);
}

.platform-mock--shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}

.platform:hover .platform-mock--shot img {
  transform: scale(1.02);
  opacity: 1;
}

.platform-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  margin-bottom: 24px;
}

.platform-features span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
  color: var(--silver-dim);
}

.platform-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--glass-line);
}

.platform-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silver-mute);
  letter-spacing: 0.2em;
}

/* MinistryCredentials mockup */
.mock-cred {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.mock-cred-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-line);
  font-size: 12px;
}

.mock-cred-step .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-cred-step--done .check {
  background: linear-gradient(180deg, oklch(70% 0.15 var(--accent-h)), oklch(50% 0.18 var(--accent-h)));
  color: white;
}
.mock-cred-step--done { border-color: var(--accent-1-soft); }

.mock-cred-step--active {
  background: linear-gradient(90deg, var(--accent-1-soft) 0%, transparent 80%);
  border-color: var(--accent-1-soft);
}
.mock-cred-step--active .check {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--accent-1);
  color: var(--accent-1);
}

.mock-cred-step--pending .check {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
  color: var(--silver-mute);
}
.mock-cred-step--pending { color: var(--silver-mute); }

.mock-cred-step-title { font-weight: 500; color: var(--bone); }
.mock-cred-step-meta { font-family: var(--mono); font-size: 10px; color: var(--silver-mute); margin-left: auto; }

/* MinistryVote mockup */
.mock-vote {
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-vote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-mute);
  margin-bottom: 14px;
}

.mock-vote-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff7a7a;
}
.mock-vote-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #ff5d5d; box-shadow: 0 0 8px rgba(255, 90, 90, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mock-vote-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin-bottom: 14px;
  align-items: center;
}

.mock-vote-row-name { font-size: 13px; }
.mock-vote-row-pct { font-family: var(--mono); font-size: 12px; color: var(--silver); }

.mock-vote-row-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mock-vote-row-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, oklch(65% 0.16 var(--accent-h)), oklch(80% 0.12 var(--accent-h)));
  box-shadow: 0 0 12px var(--accent-1-glow);
  transform-origin: left center;
  animation: grow-bar 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mock-vote-row-fill--gold {
  background: linear-gradient(90deg, var(--accent-2), #f0d9a8);
  box-shadow: 0 0 12px rgba(212, 182, 133, 0.5);
}

@keyframes grow-bar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.mock-vote-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--glass-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--silver-mute);
  letter-spacing: 0.04em;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.services-bg .blueprint {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 80%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-line);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  overflow: hidden;
}

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

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service {
  position: relative;
  padding: 36px 32px 36px 32px;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(8px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background 0.4s;
  cursor: default;
  overflow: hidden;
}

.service:hover { background: rgba(15, 15, 22, 0.85); }

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
              oklch(70% 0.15 var(--accent-h) / 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover::after { opacity: 1; }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--silver-mute);
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-top: 22px;
  margin-bottom: 24px;
  color: var(--silver);
}

.service h3 {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.service p {
  color: var(--silver-dim);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   RESOURCES (compact)
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1080px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .resources-grid { grid-template-columns: 1fr; } }

.resource {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resource-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  margin-bottom: 16px;
}

.resource-mark svg { width: 24px; height: 24px; }

.resource h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.resource p {
  color: var(--silver-mute);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

.resource-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s, gap 0.3s;
  margin-top: auto;
}

.resource-link:hover {
  color: var(--accent-1);
  gap: 10px;
}

/* ============================================
   WHY DIFFERENT
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 110px;
}

.why-card .icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--accent-1);
}

.why-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ============================================
   FOUNDER
   ============================================ */
.founder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .founder { grid-template-columns: 1fr; }
}

.founder-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--glass-line);
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, oklch(60% 0.14 var(--accent-h) / 0.3), transparent 60%),
    linear-gradient(180deg, var(--graphite-2), var(--obsidian));
}
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(5, 5, 7, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.12), transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.founder-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.05) saturate(0.95);
}

.founder-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px 26px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.founder-photo-caption-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--bone);
  line-height: 1.1;
}
.founder-photo-caption-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.founder-photo-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--silver-mute);
  text-transform: uppercase;
}

.founder-photo-frame .ph {
  width: 60%;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 6px,
      transparent 6px,
      transparent 12px
    );
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-mute);
}

.founder-card {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
}

.founder-card .eyebrow { margin-bottom: 14px; }

.founder-card h3 {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.founder-card .role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
}

.founder-card p {
  color: var(--silver-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px 0;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--glass-line);
}

.founder-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-card {
  position: relative;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(800px 400px at 50% 0%, oklch(45% 0.18 var(--accent-h) / 0.25), transparent 60%),
    linear-gradient(180deg, rgba(20, 20, 30, 0.7), rgba(8, 8, 14, 0.85));
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-line-bright);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, transparent 30%, transparent 70%, var(--accent-1-glow) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-grid h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 16px 0 20px 0;
  letter-spacing: -0.02em;
}

.contact-grid > div p {
  color: var(--silver-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silver-mute);
  letter-spacing: 0.06em;
}

.contact-meta span strong {
  display: block;
  color: var(--silver);
  font-weight: 400;
  font-size: 13px;
  margin-top: 2px;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.field { position: relative; }

.field label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-mute);
  pointer-events: none;
  transition: all 0.25s ease;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 36px 16px 14px 16px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--sans);
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1L5 5L9 1' stroke='%239a9892' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-1);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px var(--accent-1-soft);
}

.form-error {
  margin: -4px 0 0;
  color: #ffb4a8;
  font-size: 13px;
  line-height: 1.5;
}

.form .btn--primary { align-self: flex-start; margin-top: 6px; padding: 14px 24px; font-size: 14.5px; }

.form .btn--primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-success {
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-1-soft), transparent);
  border: 1px solid var(--accent-1-soft);
  text-align: center;
}

.form-success h4 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 8px 0;
}

.form-success p { margin: 0; color: var(--silver-dim); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 48px 0 60px 0;
  border-top: 1px solid var(--glass-line);
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--silver-mute);
  line-height: 1.7;
  text-transform: uppercase;
}

.footer-meta span { color: var(--silver); }

/* ============================================
   FLOATING CTA
   ============================================ */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6f4ee 0%, #d8d4ca 100%);
  color: #0a0a10;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.float-cta.visible { opacity: 1; pointer-events: auto; }
.float-cta:hover { transform: translateY(-2px); }

.float-cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(60% 0.18 var(--accent-h));
  box-shadow: 0 0 0 0 oklch(60% 0.18 var(--accent-h) / 0.5);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 oklch(60% 0.18 var(--accent-h) / 0.5); }
  70% { box-shadow: 0 0 0 12px oklch(60% 0.18 var(--accent-h) / 0); }
  100% { box-shadow: 0 0 0 0 oklch(60% 0.18 var(--accent-h) / 0); }
}

/* ============================================
   REVEAL — keyframe-driven so it always completes
   ============================================ */
@keyframes reveal-in {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: none; }
}
.reveal {
  /* Default state is VISIBLE — animation only adds an entry flourish */
  opacity: 1;
  transform: none;
  animation: reveal-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* AMS logo mark */
.ams-mark {
  width: 100%;
  height: 100%;
  display: block;
}

/* Selection */
::selection { background: var(--accent-1-soft); color: white; }
