@import url("fonts.css");

/* ============================================================
   Rexo Systems — "The good accountant next door"
   Warm, human, approachable. Warm-white letterhead, gentle
   rounding, plainspoken. Fraunces for warmth, Inter for calm.
   ============================================================ */

:root {
  /* warm paper family */
  --paper:      #F5F1E8;   /* dominant warm-white */
  --paper-2:    #FBF8F1;   /* lifted card / panel */
  --paper-3:    #EFE9DB;   /* recessed / hairline fills */
  --paper-edge: #E4DCC9;   /* warm hairline */

  /* ink */
  --ink:   #14212F;
  --ink-2: #3A4759;
  --ink-3: #62707F;

  /* warmth — a friendly clay/amber that reads "human", plus the safe blue */
  --clay:      #C4693D;   /* warm accent — the handshake */
  --clay-soft: #E9C9AE;   /* clay tint for chips / underlines */
  --clay-wash: #F6E9DC;   /* faint clay panel */
  --blue:      #1F5FD6;   /* credible link/accent from tokens */
  --blue-ink:  #17418F;

  /* dark surface for the founder letter */
  --navy:   #0E1B2C;
  --navy-2: #0B1420;
  --navy-line: rgba(233, 201, 174, 0.20);

  --shadow-sm: 0 1px 2px rgba(20, 33, 47, 0.05);
  --shadow-card: 0 2px 4px rgba(20, 33, 47, 0.04), 0 10px 30px -18px rgba(20, 33, 47, 0.20);
  --shadow-lift: 0 4px 10px rgba(20, 33, 47, 0.06), 0 24px 48px -24px rgba(20, 33, 47, 0.28);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* barely-there warm paper grain: two soft radial washes, no blobs */
  background-image:
    radial-gradient(120% 90% at 88% -8%, rgba(233, 201, 174, 0.28), transparent 60%),
    radial-gradient(90% 70% at -6% 4%, rgba(31, 95, 214, 0.05), transparent 55%);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; display: block; }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--clay-soft); color: var(--ink); }

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

/* ---------- shared type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 380;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--paper-edge);
  background: rgba(245, 241, 232, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2) !important;
  font-weight: 500;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.nav-links .nav-hide { display: inline; }
@media (max-width: 720px) {
  .nav-links .nav-hide { display: none; }
  .nav-links { gap: 16px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-hello {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-hello .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px var(--clay-wash);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 360;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.hero h1 .warm {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-2);
  font-weight: 380;
  margin: 14px 0 22px;
}
.hero-sub {
  font-size: 1.075rem;
  color: var(--ink-2);
  max-width: 40ch;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--clay);
  color: #FFF7EF;
  box-shadow: 0 2px 4px rgba(196, 105, 61, 0.20), 0 12px 26px -14px rgba(196, 105, 61, 0.55);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #B75E34;
  box-shadow: 0 4px 8px rgba(196, 105, 61, 0.24), 0 18px 34px -16px rgba(196, 105, 61, 0.6);
}
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translate(2px, -2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-edge);
}
.btn-ghost:hover {
  text-decoration: none;
  background: var(--paper-2);
  border-color: var(--ink-3);
  transform: translateY(-2px);
}

/* the "we answer the phone" reassurance line */
.hero-reassure {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-reassure svg { flex: none; color: var(--clay); }

/* ---- hero card: the letterhead / signed note ---- */
.hero-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-card);
}
.hero-card::before {
  /* a little dog-ear tab, like a real filed note */
  content: "";
  position: absolute;
  top: -1px; right: 28px;
  width: 46px; height: 12px;
  background: var(--clay-soft);
  border-radius: 0 0 8px 8px;
}
.card-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.card-kicker .stamp {
  color: var(--clay);
  border: 1px solid var(--clay-soft);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--clay-wash);
}
.ledger-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--paper-edge);
}
.ledger-line:last-of-type { border-bottom: 0; }
.ledger-line .ll-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 400;
}
.ledger-line .ll-lead {
  flex: 1;
  border-bottom: 1px dotted var(--paper-edge);
  transform: translateY(-3px);
}
.ledger-line .ll-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.ledger-line .ll-val.ok { color: #2C6E49; }
.card-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-edge);
  font-size: 13.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-foot .tick {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: #E4F0E9;
  color: #2C6E49;
  display: grid; place-items: center;
}

/* ============================================================
   Trust strip
   ============================================================ */
.creds {
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-2);
}
.creds-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding: 22px 0;
  text-align: center;
}
.creds-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-2);
}
.creds-item {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.creds-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay-soft);
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 112px) 0; }

.sec-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 370;
}
.sec-head p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* ============================================================
   Beliefs — plainspoken cards, not an icon grid
   ============================================================ */
.beliefs { display: grid; gap: 20px; }
.belief-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 30px clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.belief-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--clay-soft);
}
.belief-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--clay);
  font-feature-settings: "ss01";
  min-width: 1.6ch;
}
.belief-body h3 {
  font-size: 1.4rem;
  font-weight: 420;
  margin-bottom: 8px;
}
.belief-body p { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .belief-row { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
}

/* ============================================================
   Founder letter — warm navy surface (earns the dark section)
   ============================================================ */
.letter {
  background:
    radial-gradient(120% 120% at 82% -20%, rgba(196, 105, 61, 0.22), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #E8ECF2;
  border-radius: clamp(24px, 4vw, 40px);
  margin: 0 var(--pad);
  overflow: hidden;
}
.letter-wrap {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(52px, 8vw, 96px) clamp(24px, 6vw, 80px);
}
.letter .eyebrow { color: var(--clay-soft); }
.letter .eyebrow::before { background: var(--clay-soft); }
.letter blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #F3F0E8;
}
.letter blockquote .lead-cap {
  color: var(--clay-soft);
}
.letter-sign {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--navy-line);
}
.sign-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: #F3F0E8;
  transform: rotate(-4deg);
  padding: 4px 4px 0;
  border-bottom: 2px solid var(--clay);
}
.letter-sign .who {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A9B4C2;
}

/* ============================================================
   What we build — roster (letterhead line-items)
   ============================================================ */
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .roster { grid-template-columns: 1fr; } }

.rcard {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 32px clamp(26px, 3.5vw, 38px) 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.rcard-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
}
.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.pill.live {
  color: #2C6E49;
  background: #E4F0E9;
  border: 1px solid #C3DECD;
}
.pill.live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2C6E49;
  margin-right: 7px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(44, 110, 73, 0.4); }
  50% { opacity: .75; box-shadow: 0 0 0 5px rgba(44, 110, 73, 0); }
}
.pill.soon {
  color: var(--clay);
  background: var(--clay-wash);
  border: 1px solid var(--clay-soft);
}
.rcard p { color: var(--ink-2); margin: 0 0 22px; flex: 1; }
.rcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--paper-edge);
}
.rcard-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rcard-link .arrow { transition: transform .2s ease; }
.rcard-link:hover { text-decoration: none; }
.rcard-link:hover .arrow { transform: translateX(3px); }
.rcard-url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.rcard-url.muted { pointer-events: none; }

/* ============================================================
   Closing / contact — the "call us" band
   ============================================================ */
.closer {
  background: var(--paper-2);
  border-top: 1px solid var(--paper-edge);
}
.closer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
@media (max-width: 820px) { .closer-inner { grid-template-columns: 1fr; gap: 36px; } }
.closer h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 370;
}
.closer p { color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; max-width: 44ch; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-card);
}
.contact-card .clabel {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact-card .cmail {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--ink);
  display: inline-block;
  border-bottom: 2px solid var(--clay-soft);
  transition: border-color .2s ease;
}
.contact-card .cmail:hover { text-decoration: none; border-color: var(--clay); }
.contact-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact-note svg { color: var(--clay); flex: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--paper-edge);
  padding: 46px 0 54px;
}
.foot-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand img { height: 26px; opacity: .92; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-fine {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot-fine .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; }

/* ---------- reveal-on-scroll (progressive, CSS-only fallback) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
