/* ---------- Tokens ---------- */
:root {
  --bg: #f1f0ec;
  --bg-soft: #e7e5df;
  --surface: #ffffff;
  --ink: #16171a;
  --ink-soft: #5b5d63;
  --navy: #16294d;
  --navy-soft: #2c4372;
  --line: rgba(22, 23, 26, 0.12);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* subtle film-grain texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(241, 240, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .3s var(--ease);
}
.header.is-scrolled .header-inner { height: 60px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 64px;
  width: auto;
  transition: height .3s var(--ease);
}
.header.is-scrolled .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--navy);
  transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 8px 18px -10px rgba(22,41,77,.6);
}
.nav-cta:hover { transform: translateY(-2px); background: var(--navy-soft); }

.burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 20vw, 140px) 24px clamp(48px, 8vw, 64px);
  text-align: center;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
  animation: drift 30s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title .line-accent { color: var(--navy); }

.hero-sub {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(22,41,77,.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--navy-soft); box-shadow: 0 14px 28px -10px rgba(22,41,77,.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }

.btn-icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.btn-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 14px;
  animation: marquee 24s linear infinite;
  width: max-content;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .05em;
  font-size: .78rem;
  color: #fff;
  opacity: .92;
  padding: 0 4px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(52px, 7vw, 76px) 24px;
}
.section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.services { background: var(--surface); }
.receive { background: var(--bg-soft); }
.process { background: var(--surface); }
.about { background: var(--bg-soft); }
.contact { background: var(--surface); }

.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); }
.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.3;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.contact-sub {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.3);
  border-color: var(--navy);
}
.service-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  transition: transform .35s var(--ease);
}
.service-card:hover .icon { transform: scale(1.08) rotate(-2deg); }
.service-card .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.service-card h3 {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.service-card p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- What You Receive ---------- */
.receive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.receive-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.5;
}
.check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.3);
  border-color: var(--navy);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
}
.step h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.step p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about-copy {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-copy p {
  font-size: .96rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.about-copy .about-lead {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  max-width: 720px;
}
.business-card {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -24px rgba(0,0,0,.4);
}
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-email-note {
  text-align: center;
  margin-top: 18px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.contact-email-note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer p { font-size: .82rem; }
.footer a {
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fff;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.service-grid .reveal:nth-child(3n+2) { transition-delay: .06s; }
.service-grid .reveal:nth-child(3n+3) { transition-delay: .12s; }
.receive-grid .reveal:nth-child(2n) { transition-delay: .08s; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.about-copy .reveal:nth-child(2) { transition-delay: .06s; }
.about-copy .reveal:nth-child(3) { transition-delay: .12s; }
.about-copy .reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-grid, .ticker-track, .business-card, .service-card, .icon {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { max-height: 320px; opacity: 1; padding: 14px 24px 20px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .burger { display: flex; }
}

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .receive-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions, .contact-actions { flex-direction: column; }
}
