/* ============================================================
   Certis Analytical — brand identity (distinct)
   Warm ivory · deep pine · teal accent · editorial serif.
   Self-contained. No external JS deps.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --teal-bright: #15a08c;
  --teal-soft: rgba(15,118,110,0.08);
  --ink: #17211c;          /* deep pine text */
  --ink-900: #0f1712;      /* near-black pine (dark bands) */
  --slate: #5c665f;        /* warm muted text */
  --slate-light: #8b948c;
  --line: #e2ddd1;         /* warm hairline */
  --line-soft: #ece8dd;
  --ivory: #f5f2ea;        /* page background */
  --sand: #efeadd;         /* alternating band */
  --card: #fffdf8;         /* card surface */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --maxw: 1180px;
  --pad: 40px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

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

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,234,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(15,23,18,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--slate); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; margin-top: 3px; }
.brand .brand-name { font-size: 21px; line-height: 1; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { position: relative; color: var(--slate); font-size: 15px; font-weight: 500; transition: color .18s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.nav-cta { color: var(--teal); font-weight: 600; margin-left: 10px; }
.nav a.nav-cta:hover { color: var(--teal-dark); }

/* Understated text link — used instead of buttons in editorial sections */
.text-link { display: inline-block; font-weight: 600; font-size: 16px; color: var(--teal); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .18s var(--ease); }
.text-link:hover { color: var(--teal-dark); }

/* Spec line — quiet facts in a technical strip */
.fact-line { display: flex; flex-wrap: wrap; gap: 12px 44px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--slate); }
.fact-line b { color: var(--ink); font-weight: 500; }

/* Editorial index — catalogue rows instead of card grid */
.index-list { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 64px 1fr 1.6fr 190px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .18s var(--ease); }
.index-row:hover { background: rgba(15,118,110,0.035); }
.index-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--teal); }
.index-row h3 { font-family: var(--font-head); font-weight: 500; font-size: 23px; letter-spacing: -0.01em; margin: 0; }
.index-row p { margin: 0; color: var(--slate); font-size: 16px; }
.index-row .tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-light); letter-spacing: 0.04em; text-align: right; }

/* Photography */
.img-band { margin: 0; padding: 0; }
.img-band img { width: 100%; height: clamp(280px, 44vh, 520px); object-fit: cover; display: block; }
.img-cap { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--slate-light); padding: 12px 0 0; margin: 0; }
.fig { margin: 0; }
.fig img { width: 100%; height: clamp(260px, 38vh, 420px); object-fit: cover; display: block; border-radius: 6px; }
.fig figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--slate-light); margin-top: 10px; }

/* Large serif statement */
.pull { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.22; letter-spacing: -0.015em; max-width: 26ch; margin: 0 0 26px; }
.pull em { font-style: italic; color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(15,118,110,0.24); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
/* legacy alias so any old markup still styles correctly */
.btn-red { background: var(--teal); color: #fff; }
.btn-red:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(15,118,110,0.24); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 108px 0 76px; overflow: hidden; }
.hero-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; width: 100%; pointer-events: none; opacity: .55; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg rect { fill: var(--teal); opacity: .16; }
.hero-bg rect.hot { opacity: .38; }
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--teal); }

h1 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(44px, 6.6vw, 88px); line-height: 1.0; letter-spacing: -0.02em;
  margin: 0 0 30px; max-width: 15ch;
}
.hero p.lead { font-size: 21px; color: var(--slate); max-width: 60ch; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--slate-light); }

.method-strip {
  margin-top: 68px; padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 26px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--slate-light);
}
.method-strip span { transition: color .18s var(--ease); }
.method-strip span:hover { color: var(--teal); }

/* ---------- Section shells ---------- */
section { padding: 94px 0; }
.section-tag {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
h2 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.018em;
  margin: 0 0 20px; max-width: 20ch;
}
.section-intro { font-size: 19px; color: var(--slate); max-width: 64ch; margin: 0 0 46px; }
.divider { border-top: 1px solid var(--line); }
.bg-soft { background: var(--sand); border-top: 1px solid var(--line); }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stat { background: var(--card); padding: 32px 26px; }
.stat .n { font-family: var(--font-head); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.stat .n span { color: var(--teal); }
.stat .l { font-size: 14.5px; color: var(--slate); line-height: 1.45; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 32px 28px 26px; background: var(--card);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.card:hover { border-color: #d3cdbe; box-shadow: 0 16px 40px rgba(15,23,18,0.08); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card .icon { width: 34px; height: 34px; color: var(--teal); margin-bottom: 20px; }
.card .icon svg { width: 100%; height: 100%; }
.card .num { font-family: var(--font-mono); color: var(--teal); font-size: 13px; margin-bottom: 20px; }
.card h3 { font-family: var(--font-head); font-weight: 500; font-size: 23px; letter-spacing: -0.01em; margin: 0 0 12px; }
.card p { color: var(--slate); font-size: 16px; margin: 0 0 22px; }
.card .tag { margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-light); letter-spacing: 0.04em; }

/* ---------- Method pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.pill { border: 1px solid var(--line); border-radius: 4px; padding: 9px 16px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--slate); background: var(--card); transition: border-color .18s var(--ease), color .18s var(--ease); }
.pill:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Two column feature ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; }
.check-list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; color: var(--ink); font-weight: 500; }
.check-list li:first-child { padding-top: 0; }
.check-list li::before { content: ""; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--teal-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { position: relative; padding: 30px 24px 0 0; border-top: 2px solid var(--ink); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.step .num { font-family: var(--font-mono); color: var(--teal); font-size: 13px; margin-bottom: 16px; }
.step h4 { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin: 0 0 10px; }
.step p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-900); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .section-intro { color: #b4bbb4; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.cta-band .btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px; display: flex; flex-direction: column; background: var(--card); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.price-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,23,18,0.08); }
.price-card.featured { border-color: var(--teal); box-shadow: 0 12px 34px rgba(15,118,110,0.12); }
.price-card .plan { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.price-card .price { font-family: var(--font-head); font-weight: 400; font-size: 44px; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-card .price small { font-size: 16px; color: var(--slate); font-family: var(--font-body); font-weight: 400; }
.price-card .desc { color: var(--slate); margin: 0 0 24px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; }
.price-card ul li { padding: 11px 0 11px 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); position: relative; }
.price-card ul li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.price-card .btn { margin-top: auto; }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); }
table.data thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); font-weight: 500; }
table.data tbody tr { transition: background .15s var(--ease); }
table.data tbody tr:hover { background: var(--sand); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.method, table.data td.turn { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
table.data td.price { font-family: var(--font-head); font-weight: 500; color: var(--ink); white-space: nowrap; }
table.data .comp { font-weight: 600; color: var(--ink); }

/* ---------- Category group ---------- */
.group { margin-bottom: 54px; }
.group:last-child { margin-bottom: 0; }
.group h3.group-title { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Email contact block ---------- */
.contact-card { border: 1px solid var(--line); border-radius: 10px; padding: 46px 42px; background: var(--card); box-shadow: 0 16px 40px rgba(15,23,18,0.05); max-width: 720px; }
.contact-card .to { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 12px; }
.email-lg { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; color: var(--ink); border-bottom: 2px solid var(--teal); padding-bottom: 4px; transition: color .18s var(--ease); }
.email-lg:hover { color: var(--teal); }
.contact-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 16px 18px; background: var(--teal-soft); border-radius: 8px; color: var(--ink); font-size: 15px; }
.contact-note svg { flex: none; margin-top: 2px; color: var(--teal); }
.include-list { list-style: none; margin: 20px 0 0; padding: 0; }
.include-list li { padding: 10px 0 10px 26px; position: relative; color: var(--slate); border-top: 1px solid var(--line); }
.include-list li:first-child { border-top: 0; }
.include-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 66px); margin-bottom: 20px; }
.page-hero p { font-size: 20px; color: var(--slate); max-width: 62ch; margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h3 { font-family: var(--font-head); font-weight: 500; font-size: 25px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.prose p { color: var(--slate); margin: 0 0 18px; }
.prose ul { color: var(--slate); padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--sand); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-top .about { color: var(--slate); max-width: 34ch; font-size: 15px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-light); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--slate); font-size: 15px; padding: 5px 0; transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--slate-light); font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  :root { --pad: 22px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; border: 1px solid var(--line); border-radius: 4px; padding: 10px 16px; background: var(--card); }
  .cards, .price-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 44px; }
  section { padding: 70px 0; }
  .contact-card { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .steps, .stat-row, .footer-top { grid-template-columns: 1fr; }
}
