/* ===================== Home-only header treatment ===================== */
/* On the home page the header starts transparent over the dark hero video,
   then swaps to the shared "scrolled" white style once you scroll past the
   hero (toggled by home.js adding/removing .hdr-scrolled). */
body.is-home #site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.is-home .hdr-logo { filter: brightness(0) invert(1); transition: filter 220ms ease; }
body.is-home .hdr-link { color: rgba(255,255,255,0.75); }
body.is-home .hdr-link:hover { color: var(--neutral-white); }
body.is-home .hdr-cta {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.25), 0 4px 14px rgba(3,23,21,0.2);
  color: var(--neutral-white);
}
body.is-home .hdr-cta:hover { background: rgba(255,255,255,0.28); }
body.is-home .hdr-menu-btn { color: var(--neutral-white); }

body.is-home #site-header.hdr-scrolled { background: rgba(255,255,255,0.96); box-shadow: inset 0 -1px 0 var(--border-primary); backdrop-filter: saturate(1.2); }
body.is-home #site-header.hdr-scrolled .hdr-logo { filter: none; }
body.is-home #site-header.hdr-scrolled .hdr-link { color: var(--text-secondary); }
body.is-home #site-header.hdr-scrolled .hdr-link:hover { color: var(--teal-700); }
body.is-home #site-header.hdr-scrolled .hdr-cta { background: var(--teal-700); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; color: var(--neutral-white); }
body.is-home #site-header.hdr-scrolled .hdr-cta:hover { background: var(--teal-800); }
body.is-home #site-header.hdr-scrolled .hdr-menu-btn { color: var(--text-primary); }
main { padding-top: 0; } /* home's hero fills the viewport behind the fixed header itself */

/* ===================== Shared micro-interactions ===================== */
a[data-arrow]::after { content: " \2192"; display: inline-block; transition: transform 140ms ease; }
a[data-arrow]:hover::after { transform: translateX(3px); }

@keyframes arb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arb-wipe { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22,0.61,0.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 760ms ease, transform 760ms cubic-bezier(0.22,0.61,0.36,1); }
[data-stagger].is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ===================== Hero ===================== */
#hero {
  position: relative;
  min-height: min(92vh,860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--teal-800);
  overflow: hidden;
  padding: clamp(64px,10vw,140px) 24px;
}
@media (max-width: 640px) { #hero { min-height: min(56vh, 460px) !important; } }
@media (max-width: 480px) { #hero { padding-top: 88px !important; } }
#hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,23,21,0.32) 0%, rgba(3,23,21,0.1) 34%, rgba(3,23,21,0.3) 100%); pointer-events: none; }
.hero-content { position: relative; max-width: 820px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-headline { margin: 0 0 28px; font-size: clamp(28px,5.2vw,64px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; color: var(--neutral-white); max-width: 14ch; text-wrap: balance; }
@media (max-width: 699px) { .hero-headline { font-size: 38px !important; } }
.hero-headline span { display: block; }
.hero-sub { margin: 0 0 40px; font-size: clamp(15px,1.35vw,18px); line-height: 1.6; color: var(--neutral-white); max-width: 640px; text-wrap: pretty; animation: arb-rise 700ms 640ms ease-out both; }
@media (max-width: 699px) { .hero-sub { font-size: 13px !important; } }
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: arb-rise 700ms 760ms ease-out both; }
.pill-cta {
  display: inline-flex; align-items: center; height: 56px; padding: 0 34px; border-radius: 999px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.25), 0 8px 24px rgba(3,23,21,0.25);
  color: var(--neutral-white); font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
}
.pill-cta:hover { background: rgba(255,255,255,0.28); color: var(--neutral-white); }

/* ===================== Launch campaign ===================== */
.arb-campaign-copy { max-width: 640px; margin: 0 auto; }
@media (min-width: 760px) { .arb-campaign-copy { max-width: 820px; } }

/* ===================== About photos ===================== */
.arb-about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 480px) { .arb-about-photos { grid-template-columns: 1fr; } }
@media (max-width: 859px) { .arb-about-photos > div { min-height: 0 !important; } }
@media (max-width: 480px) { .arb-about-photos > div { aspect-ratio: 4/3 !important; } }

/* ===================== Process / 3 steps (with scroll-fill rail) ===================== */
.arb-process-flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arb-process-edge { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; width: 140px; }
.arb-process-ring { width: 16px; height: 16px; border-radius: 999px; background: var(--neutral-white); border: 4px solid var(--teal-700); box-sizing: border-box; flex: none; }
.arb-process-connector { width: 3px; height: 28px; background: var(--teal-700); flex: none; }
.arb-process-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 260px; max-width: 100%; }
.arb-process-steplabel { margin: 0; font-size: clamp(18px,2vw,22px); font-weight: 700; letter-spacing: 0.02em; color: var(--teal-700); text-align: center; }
.arb-process-card { width: 100%; box-sizing: border-box; border: 2px solid var(--teal-700); border-radius: 12px; overflow: hidden; background: var(--teal-700); }
.arb-process-card-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; background: var(--neutral-white); }
.arb-process-card-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--teal-700); }
.arb-process-card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 15px 12px 16px; }
.arb-process-card-body p { margin: 0; font-size: clamp(14px,1.6vw,16px); font-weight: 500; color: var(--neutral-white); line-height: 1.7; text-align: center; }
@media (max-width: 859px) { .arb-process-edge--start { flex-direction: column-reverse; } }
@media (max-width: 859px) { .arb-process-edge--start .arb-process-break { display: none; } }
@media (min-width: 860px) {
  .arb-process-flow { flex-direction: row; align-items: stretch; justify-content: center; }
  .arb-process-edge { padding-top: 46px; width: 132px; }
  .arb-process-ring { width: 18px; height: 18px; }
  .arb-process-step { width: 220px; }
  .arb-process-card { flex: 1; display: flex; flex-direction: column; }
  .arb-process-card-body { flex: 1; }
  .arb-process-connector { width: auto; flex: 1 1 24px; height: 3px; margin-top: 59px; background: transparent; }
  [data-rail-track] { display: block !important; }
  .arb-process-flow > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===================== Why Arbitra stats ===================== */
.arb-why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: clamp(32px,4vw,56px); align-items: start; }

/* ===================== The problem ===================== */
.arb-problem-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .arb-problem-split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.arb-problem-stats { display: grid; grid-template-columns: 1fr; }
.arb-problem-stats > * { text-align: center; padding: clamp(14px,1.8vw,22px) clamp(12px,1.6vw,20px); }
.arb-problem-stats > * + * { box-shadow: inset 0 1px 0 var(--border-primary); }
@media (min-width: 560px) {
  .arb-problem-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .arb-problem-stats > * { box-shadow: none; }
  .arb-problem-stats > :nth-child(even) { box-shadow: inset 1px 0 0 var(--border-primary); }
  .arb-problem-stats > :nth-child(n+3) { box-shadow: inset 0 1px 0 var(--border-primary); }
  .arb-problem-stats > :nth-child(even):nth-child(n+3) { box-shadow: inset 1px 0 0 var(--border-primary), inset 0 1px 0 var(--border-primary); }
}

/* ===================== Trust teaser ===================== */
.arb-trust-grid { display: grid; grid-template-columns: minmax(min(100%,260px),340px) 1fr; gap: clamp(40px,6vw,72px); align-items: start; }
@media (max-width: 640px) { .arb-trust-grid { grid-template-columns: 1fr; } }

/* ===================== Membership card ===================== */
.arb-membership-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 0; }
.arb-membership-col2 { box-shadow: inset 1px 0 0 var(--border-primary); }
@media (max-width: 699px) { .arb-membership-col2 { box-shadow: inset 0 1px 0 var(--border-primary) !important; } }
