/* =========================================================
   Tradent AI — replica
   Colors: bg #101011 · text #FBFBFB · accent (coral) #ED5145
   Fonts:  Satoshi (body/headings) · Caveat (script) · Orbitron (logo)
   ========================================================= */

:root {
  --bg:        #101011;
  --bg-2:      #171718;
  --bg-3:      #1e1e20;
  --text:      #fbfbfb;
  --muted:     #a5a5a8;
  --accent:    #ed5145;
  --accent-2:  #ff6a5a;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;   /* stop iOS inflating text on rotate */
  text-size-adjust: 100%;
  overflow-x: hidden;
}

/* subtle animated grain / vignette on the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(237, 81, 69, 0.10), transparent 70%),
    radial-gradient(40% 40% at 90% 20%, rgba(237, 81, 69, 0.06), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--accent); }

section { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn--pill {
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 800px;
  box-shadow: 0 8px 30px rgba(237, 81, 69, 0.28);
}
.btn--pill:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(237, 81, 69, 0.42);
}
.btn--lg { padding: 17px 40px; font-size: 18px; }
.btn--outline {
  background: transparent;
  color: var(--text);
  padding: 13px 26px;
  border-radius: 800px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 26px;
  width: auto;
  display: block;
}
.logo--sm img { height: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(16, 16, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }
/* ---------- Mobile menu ---------- */
.nav__burger {
  display: none;                 /* shown under 860px */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav.is-menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-menu-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;                 /* enabled under 860px */
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 26px;
  background: rgba(16, 16, 17, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__mobile-link {
  padding: 15px 4px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile-link:active { color: var(--accent); }

.nav__mobile-group { padding: 16px 4px 12px; border-bottom: 1px solid var(--line-soft); }
.nav__mobile-label {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.nav__mobile-product {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}
.nav__mobile .btn--pill { margin-top: 20px; }

/* ---------- Nav dropdown (Products) ---------- */
.nav__dd { position: relative; }
.nav__dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav__dd-btn:hover,
.nav__dd.is-open .nav__dd-btn { color: var(--accent); }

.nav__caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.nav__dd.is-open .nav__caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

/* Frosted glass panel — translucent, blurs whatever is behind it. */
.nav__dd-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(.98);
  min-width: 256px;
  padding: 7px;
  border-radius: 17px;
  background: rgba(32, 32, 36, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),    /* crisp top edge */
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 22px 50px rgba(0, 0, 0, 0.48),
    0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__dd.is-open .nav__dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
/* soft sheen across the top of the glass */
.nav__dd-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 34%,
    transparent 60%);
}

.nav__dd-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-radius: 11px;
  transition: background .18s var(--ease);
}
.nav__dd-item:hover { background: rgba(255, 255, 255, 0.09); }

.nav__dd-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav__dd-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__dd-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.nav__dd-arrow {
  flex: none;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--muted);
  border-top: 1.5px solid var(--muted);
  transform: rotate(45deg) translateX(-3px);
  opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav__dd-item:hover .nav__dd-arrow {
  opacity: .85;
  transform: rotate(45deg) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .nav__dd-menu, .nav__dd-arrow, .nav__dd-icon { transition: none; }
}

.nav__nonprofit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.nav__nonprofit-top { font-family: "Caveat", cursive; font-size: 17px; color: var(--muted); }
.nav__nonprofit-bottom { font-family: "Caveat", cursive; font-size: 17px; font-weight: 700; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;      /* excludes mobile browser chrome, so nothing hides behind it */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 80px;
}
.hero__inner { max-width: 900px; }
.hero__title {
  font-weight: 900;
  color: var(--accent);
  font-size: clamp(44px, 8.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__subtitle {
  font-family: "Caveat", cursive;
  font-weight: 500;
  color: var(--text);
  font-size: clamp(28px, 5vw, 52px);
  margin: 26px 0 0;
}
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollpulse 2s var(--ease) infinite;
}
@keyframes scrollpulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Build LAMs ---------- */
.build { padding: 60px 28px 40px; }
.build__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.build__title {
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- What are LAMs ---------- */
.what { padding: 80px 28px; }
.what__inner {
  max-width: 900px;
  margin: 0 auto;
}
.what__heading {
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
/* Sized to sit on a single line at desktop widths; wraps below ~650px. */
.what__heading--oneline {
  font-size: clamp(26px, 3.4vw, 37px);
  text-wrap: balance;
}
/* Section holding only a heading (no body copy): drop the heading's trailing
   margin, rebalance padding so it sits evenly between the headings around it,
   and centre it to match the centred headings above and below. */
.what--lone { padding-bottom: 40px; }
.what--lone .what__inner { text-align: center; }
.what--lone .what__heading { margin-bottom: 0; }
.what__body p {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #d8d8da;
  margin: 0 0 26px;
}
.what__punch {
  color: var(--text) !important;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px) !important;
}

/* ---------- Examples ---------- */
.examples { padding: 80px 28px 100px; }
.examples__inner { max-width: var(--maxw); margin: 0 auto; }
.examples__head { text-align: center; margin-bottom: 56px; }
.examples__title {
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 66px);
  letter-spacing: -0.02em;
  margin: 0;
}
.examples__sub {
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--accent);
  margin: 12px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 34px 40px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(237, 81, 69, 0.5); }
.card__glow {
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(237, 81, 69, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }
.card__index {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 2px;
}
.card__title {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  margin: 14px 0 14px;
  letter-spacing: -0.01em;
}
.card__text {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.examples__note {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 40px auto 0;
  max-width: 620px;
}
.examples__cta { text-align: center; margin-top: 34px; }

/* ---------- Three-phase (sticky stack) ---------- */
.phases { padding: 60px 28px 120px; }
.phases__inner { max-width: var(--maxw); margin: 0 auto; }
.phases__head { text-align: center; margin-bottom: 60px; }
.phases__title {
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto;
  max-width: 900px;
}
.phases__sub {
  color: var(--muted);
  font-size: 19px;
  max-width: 620px;
  margin: 18px auto 0;
}
.stack { position: relative; }
.phase {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 380px;
  margin-bottom: 40px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(calc(var(--i) * 6px));
}
.phase__content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.phase__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.phase__label span:first-child {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--muted);
}
.phase__num {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
}
.phase__title {
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.phase__text {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 30px;
  max-width: 440px;
}
.phase__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 340px;
}
.phase__media--1 { background: linear-gradient(135deg, #2a1512, #3a1b16); }
.phase__media--2 { background: linear-gradient(135deg, #12212a, #16303a); }
.phase__media--3 { background: linear-gradient(135deg, #221228, #2f1638); }

/* photo fills the panel */
.phase__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(1.06) contrast(1.03);
  transition: transform .7s var(--ease);
}
.phase:hover .phase__media img { transform: scale(1.07); }

/* light film grain to tie the photos into the dark UI */
.phase__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.42'/></svg>");
  background-size: 140px 140px;
}

/* scrim: fades the photo into the card on the left, deepens the bottom */
.phase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg-2) 0%, rgba(23, 23, 24, 0.55) 18%, transparent 55%),
    linear-gradient(0deg, rgba(16, 16, 17, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(237, 81, 69, 0.18), transparent 65%);
}
.phase__ghost {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(120px, 18vw, 220px);
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
  position: relative;
  z-index: 2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq { padding: 60px 28px 120px; }
.faq__inner { max-width: 900px; margin: 0 auto; }
.faq__title {
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 50px;
}
.accordion { display: flex; flex-direction: column; gap: 16px; }
.acc {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.acc.is-open { border-color: rgba(237, 81, 69, 0.5); background: var(--bg-3); }
.acc__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(18px, 2.3vw, 22px);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.acc__icon {
  flex: none;
  position: relative;
  width: 22px; height: 22px;
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.acc__icon::before { width: 18px; height: 2.5px; }
.acc__icon::after  { width: 2.5px; height: 18px; }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.acc__a-inner { padding: 0 28px 28px; }
.acc__a-inner p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 14px;
}
.acc__a-inner p:last-child { margin-bottom: 0; }
.acc__a-inner strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 40px 28px 40px; border-top: 1px solid var(--line-soft); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__cta {
  text-align: center;
  padding: 80px 20px 90px;
}
.footer__title {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.footer__sub {
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--muted);
  margin: 0 0 34px;
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.footer__nav { display: flex; gap: 26px; }
.footer__nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { color: #6c6c70; font-size: 14px; margin: 0; }
.footer__flags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.footer__flags li { flex: 0 0 auto; display: flex; }
.footer__flags img {
  display: block;
  height: 28px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__flags img:hover { opacity: 1; }

/* ---------- Subpage hero ---------- */
.page-hero {
  padding: 190px 28px 60px;
  text-align: center;
}
.page-hero__inner { max-width: 900px; margin: 0 auto; }
.page-hero__title {
  font-weight: 900;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-hero__sub {
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--muted);
  margin: 18px 0 0;
}

/* ---------- Form ---------- */
.formsec { padding: 20px 28px 110px; }
.formsec__inner { max-width: 720px; margin: 0 auto; }
.formcard {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px;
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #5d5d61; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(237, 81, 69, 0.16);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--accent); }
.field__err {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-top: 8px;
}
.btn--block { width: 100%; }

.form-success,
.form-error {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  font-weight: 500;
  text-align: center;
}
.form-success {
  background: rgba(56, 176, 108, 0.12);
  border: 1px solid rgba(56, 176, 108, 0.4);
  color: #7ee2ad;
}
.form-error {
  background: rgba(237, 81, 69, 0.12);
  border: 1px solid rgba(237, 81, 69, 0.4);
  color: #ff9c92;
}
.formsec__note {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin: 28px 0 0;
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Empty state (no job listings) ---------- */
.empty {
  text-align: center;
  padding: 64px 32px 72px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.empty__title {
  font-weight: 800;
  font-size: clamp(21px, 2.8vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.empty__text { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Nonprofit hero (full-bleed image) ---------- */
.np-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: 190px 28px 64px;
  overflow: hidden;
}
.np-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}
.np-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* solid black band behind the fixed nav, fading into the photo */
    linear-gradient(180deg, var(--bg) 0, var(--bg) 104px, rgba(16,16,17,.72) 170px, transparent 300px),
    /* bottom fade into the page — kept shallow so the lower photo stays visible */
    linear-gradient(0deg, var(--bg) 0, rgba(16,16,17,.82) 12%, rgba(16,16,17,.35) 30%, transparent 52%),
    radial-gradient(70% 60% at 30% 80%, rgba(237,81,69,.20), transparent 70%);
}
.np-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.np-hero__title {
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.np-hero__sub {
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 3.4vw, 38px);
  color: #e6e6e8;
  margin: 16px 0 0;
}

/* ---------- Alternating feature rows ---------- */
.feature-rows { display: flex; flex-direction: column; gap: 90px; }
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.frow--flip .frow__text { order: 2; }
.frow--flip .frow__media { order: 1; }

.frow__title {
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.frow__desc {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 26px;
  max-width: 460px;
}
.frow__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.frow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .7s var(--ease);
}
.frow:hover .frow__media img { transform: scale(1.06); }
.frow__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 70% 30%, rgba(237,81,69,.14), transparent 65%);
}

/* ---------- Feature bullet list (nonprofit rows) ---------- */
.service__list { list-style: none; padding: 0; margin: 0; }
.service__list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(237, 81, 69, 0.16);
}
.footer__bar--solo { border-top: none; padding-top: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll-line { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__inner { padding: 14px 20px; }
  /* swap the desktop links for the burger + slide-down panel */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.is-menu-open { background: rgba(16, 16, 17, 0.97); backdrop-filter: blur(18px); }
  .nav.is-menu-open .nav__mobile { display: flex; }
  /* comfortable touch targets (~44px) for finger navigation */
  .logo { min-height: 44px; }
  .footer__nav { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
  }
  .page-hero { padding-top: 150px; }
  .formcard { padding: 32px 24px; }
  /* stack rows; image always above its text */
  .feature-rows { gap: 56px; }
  .frow { grid-template-columns: 1fr; gap: 26px; }
  .frow__text { order: 2 !important; }
  .frow__media { order: 1 !important; }
  .np-hero { min-height: 62vh; padding: 150px 24px 50px; }
  .phase { grid-template-columns: 1fr; top: 90px; min-height: 0; }
  .phase__media { min-height: 210px; order: -1; }
  /* photo sits above the text on mobile — fade the bottom edge instead of the left */
  .phase__media::after {
    background:
      linear-gradient(0deg, var(--bg-2) 0%, rgba(23, 23, 24, 0.5) 22%, transparent 60%),
      radial-gradient(circle at 70% 35%, rgba(237, 81, 69, 0.18), transparent 65%);
  }
  .phase__ghost { font-size: 120px; }
  .phase__content { padding: 38px 30px; }
}

/* keep two card columns on tablets — one column wastes the width */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

/* Landscape phones / short windows: a full-height hero doesn't fit,
   and the fixed-position scroll cue collides with the subtitle. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 104px 28px 52px;
  }
  .hero__scroll { display: none; }
  .np-hero { min-height: auto; padding: 104px 24px 40px; }
  .page-hero { padding: 104px 24px 40px; }
  .nav__mobile { max-height: calc(100vh - 60px); }
}

@media (max-width: 520px) {
  .logo img { height: 22px; }
  .hero { padding-top: 120px; }
  .phase__content { padding: 30px 24px; }
  .acc__q { padding: 20px; }
  .footer__bar { justify-content: center; text-align: center; }
}
