/* Continuum Digital — plain CSS, no build step */

:root {
  --midnight: #101820;
  --midnight-2: #16212b;
  --lime: #B6F35B;
  --lime-dark: #5E8F1F;   /* lime tone that passes contrast on light backgrounds */
  --white: #F5F7F3;
  --sage: #77857A;
  --sage-light: #DCE2DA;
  --line-dark: rgba(182, 243, 91, 0.18);
  --text: #101820;
  --text-muted: #4E5A51;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.accent { color: var(--lime); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--midnight); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 10px; border: 2px solid transparent;
  font: 800 .9rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--midnight); }
.btn-primary:hover { background: #c7f77f; }
.btn-ghost { border-color: rgba(245, 247, 243, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(16, 24, 32, 0); transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(16, 24, 32, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo-mark { width: 34px; height: 34px; color: var(--lime); flex: none; }
.logo-text { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; white-space: nowrap; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: rgba(245, 247, 243, .82); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .15s; }
.site-nav a:not(.btn):hover { color: var(--lime); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--midnight); border-top: 1px solid var(--line-dark);
    padding: 12px 24px 28px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .site-nav li .btn { margin-top: 18px; width: 100%; }
  .site-header.menu-open { background: var(--midnight); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--midnight); color: var(--white);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .4em; }
.hero .lead { max-width: 640px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(245, 247, 243, .78); margin-bottom: 2.2em; }
.eyebrow { color: var(--lime); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1.4em; }

.hero-tags { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 247, 243, .6); }
.hero-tags li + li::before { content: "/"; margin: 0 14px; color: var(--sage); }

.hero-rings {
  position: absolute; z-index: 1; pointer-events: none;
  width: min(1100px, 120vw); height: auto;
  right: -22%; top: 50%; transform: translateY(-50%);
}
.ring { stroke: #3B5A35; stroke-width: 3; stroke-dasharray: 84 16; transform-origin: 500px 500px; animation: spin 60s linear infinite; }
.ring.r1 { stroke: var(--lime); stroke-width: 4; opacity: .9; animation-duration: 28s; }
.ring.r2 { animation-duration: 40s; animation-direction: reverse; }
.ring.r3 { animation-duration: 52s; }
.ring.r4 { animation-duration: 64s; animation-direction: reverse; }
.ring.r5 { animation-duration: 76s; }
.ring.r6 { animation-duration: 88s; animation-direction: reverse; opacity: .8; }
.ring.r7 { animation-duration: 100s; opacity: .7; }
.ring.r8 { animation-duration: 112s; animation-direction: reverse; opacity: .55; }
.ring.r9 { animation-duration: 124s; opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(119, 133, 122, .35) 1.6px, transparent 2px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
.hero::after { /* soften rings behind the copy */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--midnight) 25%, rgba(16, 24, 32, .55) 55%, rgba(16, 24, 32, 0) 80%);
}
@media (max-width: 760px) {
  .hero-rings { right: -70%; top: 22%; opacity: .55; }
  .hero::after { background: linear-gradient(180deg, rgba(16, 24, 32, .2), var(--midnight) 60%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-dark); margin-bottom: 1.2em; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--lime); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head p:last-child { color: var(--text-muted); font-size: 1.1rem; }
.section-head.left { text-align: left; margin: 0 0 40px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { max-width: 14ch; }
.tagline { font-weight: 700; color: var(--sage); margin-top: 1.4em; padding-left: 16px; border-left: 3px solid var(--lime); }
.prose p { color: var(--text-muted); }
.prose p:first-child { font-size: 1.25rem; color: var(--text); font-weight: 600; line-height: 1.5; }

/* Services */
.services { background: #EBEFE9; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(16, 24, 32, .06), 0 10px 30px -18px rgba(16, 24, 32, .35);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(16, 24, 32, .06), 0 24px 40px -20px rgba(16, 24, 32, .45); }
.service-card img { aspect-ratio: 10 / 7; width: 100%; object-fit: cover; background: var(--midnight); }
.service-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { display: flex; gap: 10px; align-items: baseline; }
.num { color: var(--lime-dark); font-weight: 800; font-size: .9rem; flex: none; }
.service-body p { color: var(--text-muted); font-size: .97rem; }
.chips { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--sage-light); color: #3A453D; }

@media (max-width: 1020px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-grid { grid-template-columns: 1fr; } }

/* Why */
.why { background: var(--midnight); color: var(--white); position: relative; overflow: hidden; }
.why .kicker { color: var(--lime); }
.why .section-head p:last-child { color: rgba(245, 247, 243, .7); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 30px 26px; border-radius: var(--radius); background: var(--midnight-2); border: 1px solid rgba(119, 133, 122, .25); transition: border-color .2s ease; }
.why-item:hover { border-color: var(--lime); }
.why-item p { color: rgba(245, 247, 243, .7); margin: 0; font-size: .97rem; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(182, 243, 91, .12); margin-bottom: 20px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1020px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .why-grid { grid-template-columns: 1fr; } }

/* Process */
.process-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--sage-light); }
.steps li:last-child { border-bottom: 1px solid var(--sage-light); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--text-muted); }
.step-num { font-weight: 800; font-size: 1.6rem; color: var(--lime-dark); line-height: 1.1; }
.cycle { margin: 0; }
.cycle svg { width: 100%; max-width: 480px; margin: 0 auto; display: block; overflow: visible; }
.cycle-spin { transform-origin: 200px 200px; animation: spin 14s linear infinite; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } .cycle { order: -1; } .cycle svg { max-width: 360px; } }

/* Contact */
.contact { background: var(--midnight); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy p { color: rgba(245, 247, 243, .75); }
.contact-card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 48px); border-radius: 18px;
  background: var(--midnight-2); border: 1px solid rgba(119, 133, 122, .25);
}
.contact-card-mark { position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; color: var(--lime); opacity: .07; pointer-events: none; }
.contact-card-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: .6em; }
.contact-email {
  display: inline-block; margin-bottom: .7em;
  font-weight: 800; font-size: clamp(1.25rem, 3.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.2;
  color: var(--lime); text-decoration: none; overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-card-hint { color: rgba(245, 247, 243, .7); max-width: 46ch; margin-bottom: 1.8em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-card .btn { width: 100%; } }

/* Footer */
.site-footer { background: #0B1117; color: rgba(245, 247, 243, .7); padding: 64px 0 28px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-blurb { max-width: 440px; margin-top: 18px; font-size: .95rem; }
.footer-tag { color: var(--lime); font-weight: 700; font-size: .9rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--lime); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(119, 133, 122, .2); font-size: .85rem; }
.footer-legal p { margin: 0; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
