/* StatimFP&A flagship site. Direction A, "Proof": paper, ink, one emerald.
   Shared across the marketing pages; the legal pages keep their own shared bar. */
:root {
  --paper: #FAF9F6;
  --ink: #101418;
  --graphite: #5A6168;
  --emerald: #0E6B4F;
  --emerald-bright: #0D7F5C;
  --hairline: #E4E2DC;
  --paper-dim: #C9C7C1;
  --card: #FFFFFF;
  --display: "Schibsted Grotesk", -apple-system, "Segoe UI", Helvetica, sans-serif;
  --body: "Hanken Grotesk", -apple-system, "Segoe UI", Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.nav-inner { height: 52px; display: flex; align-items: center; gap: 28px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark b { color: var(--emerald); font-weight: 700; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--graphite); text-decoration: none; font-size: .82rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { border-bottom: 2px solid var(--emerald); padding-bottom: 2px; }
.nav-cta {
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  background: var(--emerald); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 8px 15px; white-space: nowrap;
}
.nav-cta:hover { background: var(--emerald-bright); }
@media (max-width: 820px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
.spacer-nav { height: 52px; }

/* Type */
h1, h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.028em; line-height: 1.06;
  margin: 0 0 16px; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--graphite); max-width: 36em; margin: 0 0 26px; text-wrap: pretty; }
.kicker { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--emerald); margin: 0 0 14px; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: .98rem;
  background: var(--emerald); color: #fff; text-decoration: none;
  border-radius: 10px; padding: 13px 26px; border: none; cursor: pointer;
}
.btn:hover { background: var(--emerald-bright); }
.textlink { color: var(--emerald); font-family: var(--display); font-weight: 700; font-size: .98rem; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.textlink::after { content: " \203A"; }
.cta-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Page hero (subpages) */
.page-hero { padding: 72px 0 52px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.page-hero .lede { margin-bottom: 0; }

/* Home hero: split, left-aligned */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--hairline); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }

/* Tie-out card: the practice's own grammar as the hero visual */
.proof-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 26px 26px 20px; max-width: 460px; justify-self: end; width: 100%;
  box-shadow: 0 30px 80px -40px rgba(16, 20, 24, .35);
}
@media (max-width: 920px) { .proof-card { justify-self: start; } }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin-bottom: 4px; }
.proof-head b { font-family: var(--display); font-size: .95rem; letter-spacing: -0.01em; }
.proof-head span { font-size: .75rem; color: var(--graphite); }
.proof-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--hairline) 55%, transparent); font-size: .92rem; }
.proof-row:last-of-type { border-bottom: none; }
.proof-row .l { color: var(--ink); font-weight: 600; }
.proof-row .v { margin-left: auto; color: var(--graphite); font-variant-numeric: tabular-nums; }
.tie { color: var(--emerald); font-family: var(--display); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.tie::before { content: "\2713 "; }
.proof-foot { font-size: .72rem; color: var(--paper-dim); margin: 10px 0 0; }

/* Credential strip */
.creds { border-bottom: 1px solid var(--hairline); background: var(--card); }
.creds .wrap { display: flex; gap: 10px 36px; justify-content: space-between; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.creds span { font-family: var(--display); font-weight: 600; font-size: .84rem; color: var(--graphite); }

/* Ink band: the line */
.band-ink { background: var(--ink); color: var(--paper); padding: 72px 0; }
.band-ink h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 12px; }
.band-ink p { color: var(--paper-dim); max-width: 34em; margin: 0 0 22px; }
.nevers { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.nevers span { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--paper-dim); }
.nevers span::before { content: "\00B7  "; color: #4FAE8D; font-weight: 700; }

/* Sections */
.sec { padding: 72px 0; border-bottom: 1px solid var(--hairline); }
.sec:last-of-type { border-bottom: none; }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec-head p { color: var(--graphite); margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 30px 28px 26px; display: flex; flex-direction: column; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.card p { margin: 0 0 18px; color: var(--graphite); font-size: .95rem; flex: 1; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Splits */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.portrait { width: 100%; max-width: 420px; border-radius: 18px; display: block; box-shadow: 0 30px 80px -40px rgba(16, 20, 24, .4); }
.story-copy p { color: var(--graphite); font-size: 1.05rem; margin: 0 0 22px; max-width: 36em; }
.story-copy strong { color: var(--ink); }
.culture { border-top: 1px solid var(--hairline); margin: 0; padding: 0; list-style: none; }
.culture li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: .95rem; color: var(--graphite); }
.culture b { font-family: var(--display); color: var(--ink); font-weight: 700; flex: 0 0 11.5em; font-size: .92rem; }
@media (max-width: 560px) { .culture li { flex-direction: column; gap: 2px; } .culture b { flex: none; } }

/* Mentoring grid */
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mrow > div { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 30px 28px 26px; }
.mrow h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.mrow p { margin: 0; color: var(--graphite); font-size: .94rem; }
.mrow .who { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); margin: 0 0 12px; }
@media (max-width: 700px) { .mrow { grid-template-columns: 1fr; } }

/* Feature card (software) */
.feat-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 10px 26px; max-width: 440px; width: 100%; justify-self: end; }
@media (max-width: 920px) { .feat-card { justify-self: start; } }
.feat-card div { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--hairline) 55%, transparent); font-size: .94rem; }
.feat-card div:last-child { border-bottom: none; }
.feat-card b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.feat-card span { color: var(--graphite); }
.connectors { margin: 20px 0 26px; font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--graphite); }
.connectors b { color: var(--ink); font-weight: 700; }

/* Detail rows (practice page) */
.way { display: grid; grid-template-columns: .38fr .62fr; gap: 44px; padding: 52px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.way:last-of-type { border-bottom: none; }
.way h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.way .who { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); margin: 0 0 10px; }
.way p { color: var(--graphite); margin: 0 0 16px; max-width: 38em; }
.way ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--graphite); font-size: .95rem; }
.way li { margin: 5px 0; }
@media (max-width: 820px) { .way { grid-template-columns: 1fr; gap: 10px; } }

/* Contact */
.contact { padding: 72px 0 80px; }
.contact .split { align-items: start; }
form { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 28px; }
label { font-family: var(--display); font-weight: 700; font-size: .76rem; letter-spacing: .05em; color: var(--graphite); display: block; margin-bottom: 5px; text-transform: uppercase; }
input, textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); }
textarea { min-height: 110px; resize: vertical; }

/* Closing CTA */
.close-cta { padding: 76px 0; text-align: left; }
.close-cta .lede { margin-bottom: 26px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { color: var(--graphite); text-decoration: none; font-size: .78rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
footer p { margin: 4px 0; font-size: .78rem; color: var(--graphite); }

/* Scroll reveal: content visible by default; JS opts in */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
