/* OrbytPay.org — Clearing House
   Architectural limestone · monumental Fraunces · mono specs · copper rule.
   Not a lime orbit clone. Not seal/slate. No purple. No cream-terracotta. */

:root {
  --ink: #0f1419;
  --ink-deep: #080c10;
  --stone: #5f6963;
  --mute: #73807a;
  --line: #cfd4ce;
  --line-soft: rgba(15, 20, 25, 0.08);
  /* Cool concrete limestone — green-gray stone, not warm cream */
  --bone: #e7ebe7;
  --limestone: #d4dbd5;
  --chalk: #f2f4f1;
  --copper: #9a5a1f;
  --copper-deep: #6f3f14;
  --spec: #1a2420;
  --max: 1440px;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-deep); }
button { font: inherit; }

/* Fine stone grain — atmosphere, not flat gutters */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

header.wrap,
.hero.wrap {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.cta-band .wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
}

/* ——— Nav ——— */
.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}

.site-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .brand .seal {
  width: 1.05rem;
  height: 0.18rem;
  border-radius: 0;
  background: var(--copper);
  box-shadow: none;
  animation: rule-pulse 3.6s var(--ease) infinite;
}

@keyframes rule-pulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.72); opacity: 0.75; }
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.875rem;
}

.site-nav nav a { text-decoration: none; color: var(--stone); }
.site-nav nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  background: var(--ink);
  color: var(--chalk) !important;
  text-decoration: none;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav .nav-cta:hover { background: var(--ink-deep); }

@media (max-width: 720px) {
  .hide-sm { display: none !important; }
}

/* ——— Hero: clearing-house elevation ——— */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 3.75rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, transparent 58%, rgba(166, 95, 34, 0.05) 58%, rgba(166, 95, 34, 0.05) 58.12%, transparent 58.12%),
    radial-gradient(ellipse 65% 50% at 90% 12%, rgba(30, 41, 36, 0.08), transparent 58%),
    linear-gradient(185deg, var(--chalk) 0%, var(--bone) 46%, #d5dbd4 100%);
}

/* Architectural elevation hatch — full-bleed structural plane */
.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 21, 28, 0.045) 1px, transparent 1px);
  background-size: 100% 56px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), var(--line-soft) calc(100% - 1px)),
    linear-gradient(90deg, var(--line-soft), transparent 28%);
  opacity: 0.9;
}

/* Tall copper rule — clearing-house datum */
.hero-datum {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--max)) / 2));
  top: 18%;
  bottom: 22%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--copper) 12%, var(--copper) 88%, transparent);
  transform-origin: top center;
  transform: scaleY(0);
  animation: datum-draw 1.4s var(--ease) 0.15s forwards;
  z-index: 1;
  pointer-events: none;
}

@keyframes datum-draw {
  to { transform: scaleY(1); }
}

.hero-elevation {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--max)) / 2 - 0.5rem));
  top: 28%;
  width: min(36vw, 400px);
  z-index: 0;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  animation: elev-fade 1.1s var(--ease) 0.55s forwards;
}

@keyframes elev-fade {
  to { opacity: 0.85; }
}

.hero-elevation .elev-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.hero-elevation .elev-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(16, 21, 28, 0.06);
}

.hero-elevation .elev-row span:last-child {
  text-align: right;
  color: var(--copper-deep);
  font-weight: 500;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  padding-top: 1rem;
  padding-left: 1.35rem;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 1s var(--ease) 0.2s forwards;
}

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
}

.hero-brand span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--spec);
  max-width: 28ch;
}

.lede {
  margin: 0;
  font-size: 1.06rem;
  color: var(--stone);
  max-width: 36rem;
}

.lede a { color: var(--copper-deep); }
.lede strong { color: var(--ink); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--chalk);
}

.btn-primary:hover { background: var(--ink-deep); color: var(--chalk); }

.btn-seal {
  background: var(--ink);
  color: var(--chalk);
  box-shadow: inset 0 -2px 0 var(--copper);
}

.btn-seal:hover { background: var(--ink-deep); color: var(--chalk); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 1.25rem 0 3.25rem;
    align-items: start;
    display: flex;
    flex-direction: column;
  }
  .hero-datum { top: 8%; bottom: 36%; }
  .hero-copy {
    padding-top: 0.75rem;
    max-width: none;
    width: 100%;
  }
  .hero-brand {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }
  /* Brand first on mobile — schedule follows CTAs */
  .hero-elevation {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 1.35rem);
    max-width: 28rem;
    margin: 2rem 0 0 1.35rem;
    animation-delay: 0.45s;
    order: 2;
  }
  .hero-elevation .elev-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  .hero-elevation .elev-row span:last-child {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav .brand .seal,
  .hero-datum,
  .hero-elevation,
  .hero-copy {
    animation: none;
  }
  .hero-datum { transform: none; }
  .hero-elevation,
  .hero-copy {
    opacity: 1;
    transform: none;
  }
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line-soft);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sub {
  margin: 0;
  color: var(--stone);
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

.pillars {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

@media (min-width: 780px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillars article {
  padding: 1.6rem 1.35rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 780px) {
  .pillars article {
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .pillars article:last-child { border-right: none; padding-right: 0; }
  .pillars article:not(:first-child) { padding-left: 1.5rem; }
}

.pillars .num {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--copper);
}

.pillars h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.pillars p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--stone);
}

.fee-callout {
  margin-top: 1.6rem;
  padding: 1.25rem 1.35rem;
  border-left: 2px solid var(--copper);
  background: rgba(184, 107, 42, 0.07);
}

.fee-callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.fee-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--spec);
}

/* Spec board — clearing-house schedule */
.visual-ledger {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, var(--chalk) 0%, var(--limestone) 100%);
  overflow: hidden;
  padding: 1.35rem 1.4rem;
}

.visual-ledger::before {
  content: "SCHEDULE · CLEARING";
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.visual-ledger .rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.visual-ledger .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(16, 21, 28, 0.1);
  color: var(--spec);
  animation: row-in 0.75s var(--ease) both;
}

.visual-ledger .row:nth-child(2) { animation-delay: 0.12s; }
.visual-ledger .row:nth-child(3) { animation-delay: 0.24s; }
.visual-ledger .row:nth-child(4) { animation-delay: 0.36s; }

.visual-ledger .row .ok {
  color: var(--copper-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-ledger .row { animation: none; }
}

.page-hero {
  padding: 3.25rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(105deg, transparent 72%, rgba(184, 107, 42, 0.05) 72%, rgba(184, 107, 42, 0.05) 72.12%, transparent 72.12%),
    linear-gradient(180deg, var(--chalk), var(--bone));
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.page-hero .lede {
  font-size: 1.05rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2.1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.prose p, .prose li {
  color: var(--stone);
}

.prose ul {
  padding-left: 1.15rem;
}

.prose a { color: var(--copper-deep); }

.legal-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--spec);
  background: rgba(16, 21, 28, 0.04);
  border: 1px solid var(--line);
}

.domain-map {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--ink);
}

.domain-map a {
  display: block;
  padding: 1.15rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: padding-left 0.25s var(--ease), color 0.2s var(--ease);
}

.domain-map a:hover {
  border-color: var(--ink);
  padding-left: 0.65rem;
  color: var(--ink);
}

.domain-map strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.domain-map span {
  font-size: 0.92rem;
  color: var(--stone);
}

.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(135deg, var(--ink-deep) 0%, #1a2420 55%, #152018 100%);
  color: var(--chalk);
}

.cta-band h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 0 1.6rem;
  color: rgba(250, 249, 246, 0.7);
  max-width: 36rem;
}

.cta-band .btn-primary {
  background: var(--chalk);
  color: var(--ink);
}

.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

.cta-band .btn-ghost {
  border-color: rgba(250, 249, 246, 0.32);
  color: var(--chalk);
}

.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* ——— Footer ——— */
.site-footer {
  padding: 3.25rem 0 1.5rem;
  background: var(--limestone);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; }
}

.site-footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-footer p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
  max-width: 24rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spec);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.site-footer a { text-decoration: none; color: var(--stone); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
