/* ==========================================================================
   Kedion — practice site shared styles
   Design system carried over from the Kedion decks & rate cards:
   same palette, type, and component language so a prospect who receives a
   PDF and then visits the site sees one practice.

   Restraint over decoration. No custom cursor, no atmosphere effects.
   The one signature element is structural: the causal-chain / bottleneck
   motif (see .chain), drawn from the actual method.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --accent: #d4f57a;   /* lime — primary action / bottleneck */
  --accent-press: #b4d85f;
  --accent2: #7af5c8;  /* teal — the "lifted" general class */
  --text: #f0ede8;
  --muted: #9a9a9a;
  --muted-strong: #b6b6b6;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --pad-x: 48px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

/* Accessibility — visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Don't show the ring for mouse users on already-obvious targets. */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--accent);
  color: #0c0c0c;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---------- Nav ---------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.site-nav.scrolled {
  border-color: var(--border);
  background: rgba(12,12,12,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--mono);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #0c0c0c !important;
  border: none;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212,245,122,0.18);
  background: var(--accent-press);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: rgba(20,20,20,0.92);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  padding: 88px var(--pad-x) 40px;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer .nav-cta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 15px;
  padding: 16px 24px;
  justify-content: center;
}
.nav-drawer-close {
  position: absolute;
  top: 18px; right: var(--pad-x);
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: #0c0c0c;
  border: none;
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,245,122,0.25); background: var(--accent-press); }

.btn-secondary {
  background: transparent;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover { color: var(--text); border-color: var(--muted); }

.link-arrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow:hover { gap: 12px; color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 96px var(--pad-x); }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 22px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.75;
}

/* ---------- Hero (practice) ---------- */
.p-hero {
  padding: 168px var(--pad-x) 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.p-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, black, transparent 75%);
  pointer-events: none;
}
.p-hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.p-hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.p-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.04;
  font-weight: 400;
  max-width: 20ch;
  margin-bottom: 28px;
}
.p-hero h1 em { font-style: italic; color: var(--accent); }
.p-hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted-strong);
  max-width: 62ch;
  line-height: 1.7;
  margin-bottom: 40px;
}
.p-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- The gap (three depths) ---------- */
.gap-section { background: var(--surface); border-bottom: 1px solid var(--border); }
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 48px;
}
.gap-card {
  padding: 40px 34px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: relative;
}
.gap-card:last-child { border-right: none; }
.gap-card .depth {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
}
.gap-card h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 14px;
}
.gap-card h3 em { font-style: italic; color: var(--accent); }
.gap-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Method (four steps + chain motif) ---------- */
.method-section { background: var(--bg); border-bottom: 1px solid var(--border); }
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
}
.method-step {
  padding: 34px 28px 40px;
  border-right: 1px solid var(--border);
  position: relative;
}
.method-step:last-child { border-right: none; }
.method-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.method-step h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.18;
}

/* Signature structural element — causal chain into a general class. */
.chain-figure {
  margin: 56px auto 0;
  max-width: 1000px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.028));
  padding: 32px 28px 24px;
}
.chain-figure figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 18px;
  text-align: center;
}
.chain svg { width: 100%; height: auto; display: block; }
.chain .node-box { fill: var(--surface2); stroke: var(--border-strong); }
.chain .node-label { fill: var(--muted-strong); font-family: 'DM Mono', monospace; font-size: 13px; }
.chain .link-line { stroke: var(--border-strong); stroke-width: 1.5; }
.chain .bottleneck { fill: rgba(212,245,122,0.09); stroke: var(--accent); }
.chain .bottleneck-label { fill: var(--accent); font-family: 'DM Mono', monospace; font-size: 13px; }
.chain .class-box { fill: rgba(122,245,200,0.08); stroke: var(--accent2); }
.chain .class-label { fill: var(--accent2); font-family: 'DM Mono', monospace; font-size: 13px; }
.chain .lift-line { stroke: var(--accent2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chain .cap { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Teaser / featured band ---------- */
.teaser-section { background: var(--surface); border-bottom: 1px solid var(--border); }
.teaser-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}
.teaser-findings { display: grid; gap: 14px; }
.teaser-finding {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: rgba(12,12,12,0.5);
  padding: 18px 20px;
}
.teaser-finding .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.teaser-finding p { color: var(--muted-strong); font-size: 14.5px; line-height: 1.6; }

/* ---------- Depths / services trio ---------- */
.depths-section { background: var(--bg); border-bottom: 1px solid var(--border); }
.depths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.depth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.depth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.depth-card:hover { border-color: var(--border-strong); background: var(--surface2); }
.depth-card:hover::before { transform: scaleX(1); }
.depth-card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.depth-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 14px;
}
.depth-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 18px; flex: 1; }
.depth-card .objects {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.depth-card .objects li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  padding: 4px 9px;
}
.depth-card .go { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); margin-top: auto; }

/* ---------- Bio ---------- */
.bio-section { background: var(--surface); border-bottom: 1px solid var(--border); }
.bio-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--border-strong);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 20px;
}
.bio-body { display: grid; gap: 20px; }
.bio-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  font-weight: 400;
  color: var(--text);
  max-width: 34ch;
}
.bio-lead em { font-style: italic; color: var(--accent); }
.bio-body p { color: var(--muted-strong); font-size: 16px; line-height: 1.75; max-width: 62ch; }
.bio-body p strong { color: var(--text); font-weight: 500; }
.bio-cred {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  border-left: 2px solid var(--accent2);
  padding-left: 16px;
}
.bio-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.bio-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(212,245,122,0.2);
  padding: 10px 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bio-link:hover { border-color: rgba(212,245,122,0.45); background: rgba(212,245,122,0.06); color: var(--text); }

/* ---------- Products (low-key) ---------- */
.products-section { background: var(--bg); border-bottom: 1px solid var(--border); }
.products-lead { color: var(--muted-strong); font-size: 16px; line-height: 1.75; max-width: 68ch; margin-top: 8px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 44px;
}
.product-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px 30px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-tile:hover { border-color: var(--border-strong); background: var(--surface2); }
.product-tile .p-name { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.product-tile .p-desc { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.product-tile .p-go { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; margin-top: 4px; }

/* ---------- CTA close ---------- */
.cta-strip {
  padding: 110px var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212,245,122,0.06), transparent 70%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 66px);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.08;
}
.cta-strip h2 em { font-style: italic; color: var(--accent); }
.cta-strip p { color: var(--muted); font-size: 16px; margin: 0 auto 36px; max-width: 56ch; line-height: 1.7; }
.cta-strip .p-hero-actions { justify-content: center; }
.cta-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 26px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--pad-x);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-img { height: 24px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Standing NDA note ---------- */
.nda-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent2);
  background: rgba(122,245,200,0.03);
  padding: 16px 20px;
  max-width: 68ch;
}
.nda-note strong { color: var(--accent2); font-weight: 400; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 156px var(--pad-x) 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: 22px;
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted-strong);
  max-width: 64ch;
  line-height: 1.7;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --pad-x: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  .gap-grid, .method-steps { grid-template-columns: 1fr; }
  .gap-card { border-right: none; border-bottom: 1px solid var(--border); }
  .gap-card:last-child { border-bottom: none; }
  .method-step { border-right: none; border-bottom: 1px solid var(--border); }
  .method-step:last-child { border-bottom: none; }

  .teaser-inner { grid-template-columns: 1fr; gap: 36px; }
  .depths-grid { grid-template-columns: 1fr; }
  .bio-inner { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo, .bio-photo-placeholder { max-width: 320px; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  section { padding: 72px var(--pad-x); }
  .p-hero { padding: 132px var(--pad-x) 72px; }
  .page-head { padding: 128px var(--pad-x) 56px; }
  .p-hero-actions .btn-primary,
  .p-hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
