:root {
  --default-mode: light;

  --color-primary: oklch(0.24 0.014 225);      /* ink: buttons, links, focus */
  --color-background: oklch(0.974 0.004 215);  /* cool stone near-white */
  --color-foreground: oklch(0.22 0.012 225);   /* ink text */

  --color-paper: oklch(0.992 0.002 215);       /* raised content on stone */
  --color-stone: oklch(0.935 0.007 210);       /* the map surface */
  --color-rule: oklch(0.86 0.008 215);         /* thin lines */
  --color-muted-ink: oklch(0.45 0.012 225);    /* secondary text */
  --color-slate: oklch(0.255 0.014 225);       /* contact surface */
  --color-slate-line: oklch(0.36 0.014 225);
  --color-slate-copy: oklch(0.96 0.004 215);
  --color-slate-muted: oklch(0.78 0.01 215);
  --color-jl-green: oklch(0.739 0.152 167);    /* brand green #00c896, logo dot + running */
  --color-green-ink: oklch(0.5 0.11 167);      /* green as readable text on light */
  --color-stopped: oklch(0.55 0.16 30);        /* a stopped function */

  --font-sans: "Inter", sans-serif;
  --font-display: "Newsreader", serif;
  --text-base: 17px;
  --text-ratio: 1.5;

  --spacing: 4px;
  --radius: 2px;
  --default-border-width: 1px;

  --default-transition-duration: 220ms;
  --default-transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes breathe { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
/* ---------- Site ---------- */
html { scroll-behavior: smooth; }
.site { container-type: inline-size; background: var(--color-background); color: var(--color-foreground); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.site :is(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.site ul, .site ol { padding: 0; list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5cqw, 64px); }
.muted { color: var(--color-muted-ink); }

.h-xxl, .h-xl, .h-lg, .site h3 { font-family: var(--font-display); font-weight: 400; color: inherit; }
.h-xxl { font-size: clamp(44px, 6.4cqw, 84px); line-height: 1.04; letter-spacing: -0.025em; }
.h-xl { font-size: clamp(32px, 4.2cqw, 54px); line-height: 1.1; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(30px, 3.4cqw, 44px); line-height: 1.12; letter-spacing: -0.018em; }
.site h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.lede { margin-top: 20px !important; font-size: 18px; line-height: 1.6; color: var(--color-muted-ink); max-width: 480px; }
.prose p { font-size: 18px; line-height: 1.7; max-width: 620px; }
.prose p + p { margin-top: 20px; }
.sig { font-family: var(--font-display); font-style: italic; font-size: 22px !important; margin-top: 28px !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--radius); background: var(--color-primary); color: var(--color-paper); font: 500 15px/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--default-transition-duration), color var(--default-transition-duration), border-color var(--default-transition-duration), transform 120ms; }
.btn:hover { background: oklch(0.32 0.016 225); }
.btn:active { transform: scale(0.98); }
.btn svg { transition: transform var(--default-transition-duration) var(--default-transition-timing-function); }
.btn:hover svg { transform: translateX(3px); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--color-paper); color: var(--color-foreground); }
.btn-light:hover { background: oklch(1 0 0); }
.btn-ghost-light { background: transparent; color: var(--color-slate-copy); border-color: oklch(1 0 0 / 0.42); }
.btn-ghost-light:hover { background: oklch(1 0 0 / 0.08); border-color: oklch(1 0 0 / 0.8); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-foreground); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--color-rule); padding-bottom: 2px; transition: border-color var(--default-transition-duration); }
.link:hover { border-color: var(--color-foreground); }

/* Header */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 76px; display: flex; align-items: center; gap: 36px; padding: 0 max(clamp(20px, 5cqw, 64px), calc((100cqw - 1200px) / 2 + clamp(20px, 5cqw, 64px))); transition: background 260ms, border-color 260ms; border-bottom: 1px solid transparent; }
.hdr-solid { background: oklch(0.974 0.004 215 / 0.94); backdrop-filter: blur(10px); border-bottom-color: var(--color-rule); }
.hdr-logo img { display: block; width: 148px; height: auto; }
.hdr-nav { display: flex; gap: 30px; margin-left: auto; }
.hdr-nav a { font-size: 14px; letter-spacing: 0.02em; text-decoration: none; color: var(--color-muted-ink); transition: color var(--default-transition-duration); }
.hdr-nav a:hover, .hdr-nav a.is-current { color: var(--color-foreground); }
.hdr-photo .hdr-nav a { color: oklch(1 0 0 / 0.78); }
.hdr-photo .hdr-nav a:hover { color: oklch(1 0 0); }
.hdr-cta-mobile { display: none !important; }
.hdr-menu { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--color-rule); border-radius: var(--radius); color: inherit; cursor: pointer; }
.hdr-photo .hdr-menu { color: oklch(1 0 0); border-color: oklch(1 0 0 / 0.4); }

/* Hero */
.hero { position: relative; height: clamp(640px, 52cqw, 900px); overflow: hidden; background: oklch(0.3 0.01 200); color: var(--color-slate-copy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.2 0.012 220 / 0.82) 0%, oklch(0.2 0.012 220 / 0.55) 34%, oklch(0.2 0.012 220 / 0) 60%), linear-gradient(0deg, oklch(0.2 0.012 220 / 0.35), transparent 30%); }
.hero-copy { position: relative; height: 100%; max-width: 1200px; margin: 0 auto; padding: 120px clamp(20px, 5cqw, 64px) clamp(56px, 6cqw, 96px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-quote { max-width: 620px; }
.hero-quote h1 { font-family: var(--font-display); font-size: clamp(34px, 3.9cqw, 56px); line-height: 1.1; letter-spacing: -0.022em; font-weight: 400; text-wrap: balance; }
.hang { margin-left: -0.42em; }
.hero-by { margin-top: 24px !important; font-size: 15px; letter-spacing: 0.02em; color: oklch(1 0 0 / 0.72); display: flex; align-items: center; gap: 12px; }
.hero-by::before { content: ""; width: 28px; height: 1px; background: oklch(1 0 0 / 0.5); }
.hero-lead { margin-top: 28px !important; max-width: 500px; font-size: 18px; line-height: 1.6; color: oklch(1 0 0 / 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.sec { padding: clamp(80px, 10cqw, 144px) 0; scroll-margin-top: 76px; }
.sec-rule { border-top: 1px solid var(--color-rule); }
.sec-stone { background: var(--color-stone); }
.sec-paper { background: var(--color-paper); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.why { display: grid; grid-template-columns: 1fr; gap: 48px; }
.two { display: grid; grid-template-columns: 1fr; gap: 40px; }
.map-head { display: grid; gap: 0; max-width: 760px; }

/* Dependency map */
.map { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(20px, 3cqw, 40px); background: var(--color-paper); border-radius: 4px; box-shadow: 0 0 0 1px oklch(0.22 0.012 225 / 0.06), 0 1px 2px oklch(0.22 0.012 225 / 0.06), 0 24px 48px -24px oklch(0.22 0.012 225 / 0.18); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 4px; background: oklch(0.91 0.008 215); width: 100%; max-width: 360px; }
.seg-btn { position: relative; height: 40px; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--font-sans); color: var(--color-muted-ink); border-radius: 2px; transition: color var(--default-transition-duration); }
.seg-btn > span:not(.seg-pill) { position: relative; z-index: 1; }
.seg-btn.is-on { color: var(--color-foreground); }
.seg-pill { position: absolute; inset: 0; background: var(--color-paper); border-radius: 2px; box-shadow: 0 1px 2px oklch(0.22 0.012 225 / 0.12), 0 0 0 1px oklch(0.22 0.012 225 / 0.05); }
.sup-list { margin-top: 24px !important; display: grid; }
.sup { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 4px; text-align: left; background: none; border: 0; border-top: 1px solid var(--color-rule); cursor: pointer; color: var(--color-foreground); transition: background var(--default-transition-duration); }
.sup-list li:last-child .sup { border-bottom: 1px solid var(--color-rule); }
.sup:hover { background: oklch(0.22 0.012 225 / 0.025); }
.sup:active { transform: scale(0.995); }
.sup-switch { flex: none; position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--color-jl-green); transition: background 260ms; }
.sup.is-on .sup-switch { background: var(--color-rule); }
.sup-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-paper); box-shadow: 0 1px 2px oklch(0 0 0 / 0.25); }
.sup-text { display: grid; }
.sup-name { font-size: 16px; font-weight: 500; }
.sup-event { font-size: 14px; color: var(--color-muted-ink); }
.sup.is-on .sup-event { color: var(--color-stopped); }
.map-sum { font-family: var(--font-display); font-size: clamp(24px, 2.6cqw, 32px); line-height: 1.2; letter-spacing: -0.012em; min-height: 2.4em; }
.roll { display: inline-flex; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; min-width: 0.6em; justify-content: center; }
.roll > span { display: inline-block; }
.fn-list { margin-top: 20px !important; display: grid; }
.fn { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--color-rule); transition: color 300ms; }
.fn:last-child { border-bottom: 1px solid var(--color-rule); }
.fn-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--color-jl-green); transition: background 300ms; }
.fn-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-jl-green); opacity: 0; }
.fn-run .fn-dot::after, .fn-restored .fn-dot::after { animation: breathe 3.2s ease-in-out infinite; }
.fn-list .fn:nth-child(2n) .fn-dot::after { animation-delay: -1.1s; }
.fn-list .fn:nth-child(3n) .fn-dot::after { animation-delay: -2.2s; }
.fn-stopped { color: var(--color-muted-ink); }
.fn-stopped .fn-dot { background: var(--color-stopped); }
.fn-stopped .fn-name { text-decoration: line-through; text-decoration-color: oklch(0.55 0.16 30 / 0.45); }
.fn-name { font-size: 16px; }
.fn-state { font-size: 14px; color: var(--color-muted-ink); font-variant-numeric: tabular-nums; }
.fn-stopped .fn-state { color: var(--color-stopped); }
.fn-restored .fn-state { color: var(--color-green-ink); }
.map-note { margin-top: 20px !important; font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 560px; min-height: 3.2em; }

/* Principles */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--color-rule); }
.row:last-child { border-bottom: 1px solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.row dd { font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 520px; }

/* Services */
.svc { margin-top: 56px !important; border-top: 1px solid var(--color-foreground); }
.svc-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--color-rule); }
.svc-row p { grid-column: 2; font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 540px; }
.svc-end { grid-column: 2; margin-top: 8px; font-size: 15px; }
.svc-n { font-size: 14px; color: var(--color-muted-ink); font-variant-numeric: tabular-nums; padding-top: 6px; }

/* Promise */
.checks { display: grid; }
.checks li { position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--color-rule); font-size: 17px; }
.checks li:last-child { border-bottom: 1px solid var(--color-rule); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 12px; height: 7px; border-left: 1.5px solid var(--color-foreground); border-bottom: 1.5px solid var(--color-foreground); transform: rotate(-45deg); }

/* Work */
.cases { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 48px; }
.case-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--color-stone); box-shadow: 0 0 0 1px oklch(0.22 0.012 225 / 0.06); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--default-transition-timing-function); }
.case:hover .case-img img { transform: scale(1.02); }
.case-kind { margin-top: 20px !important; font-size: 14px; color: var(--color-muted-ink); }
.case h3 { margin-top: 4px; }
.case p:last-child { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 480px; }

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.about-img img, .a-portrait img { display: block; width: 100%; height: auto; border-radius: 2px; }
.about .prose { margin-top: 28px; }
.team { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-rule); }
.team div { padding: 18px 0; }
.team dt { font-family: var(--font-display); font-size: 21px; }
.team dd { font-size: 14px; color: var(--color-muted-ink); }

/* Contact */
.contact { background: var(--color-slate); color: var(--color-slate-copy); padding: clamp(80px, 10cqw, 136px) 0; scroll-margin-top: 76px; }
.contact .lede { color: var(--color-slate-muted); margin-bottom: 32px !important; }
.contact-in { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.contact-addr { font-style: normal; display: grid; gap: 4px; font-size: 16px; color: var(--color-slate-muted); }
.contact-addr a { color: var(--color-slate-copy); margin-top: 12px; text-decoration: none; border-bottom: 1px solid var(--color-slate-line); justify-self: start; }

/* Footer */
.ftr { padding: 40px 0 48px; }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.ftr img { display: block; width: 120px; height: auto; }
.ftr-tag { margin-top: 18px !important; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.ftr-words { margin-top: 4px !important; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--color-muted-ink); }
.ftr-legal { font-size: 14px; color: var(--color-muted-ink); }

/* Audit */
.a-hero { padding: 152px 0 clamp(72px, 8cqw, 112px); }
.a-hero-in { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.crumb { font-size: 14px; color: var(--color-muted-ink); margin-bottom: 28px !important; }
.crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--color-rule); }
.crumb span { margin: 0 6px; }
.a-lead { margin-top: 28px !important; font-size: 20px; line-height: 1.55; max-width: 600px; }
.a-price { margin: 36px 0 32px; padding: 20px 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; max-width: 600px; }
.a-price-n { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.a-price .muted { font-size: 15px; }
.a-portrait { max-width: 420px; }
.qs { display: grid; counter-reset: q; }
.qs li { padding: 20px 0; border-top: 1px solid var(--color-rule); font-family: var(--font-display); font-size: 22px; line-height: 1.35; letter-spacing: -0.008em; }
.qs li:last-child { border-bottom: 1px solid var(--color-rule); }
.areas { margin-top: 48px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-foreground); }
.areas div { padding: 24px 0; border-bottom: 1px solid var(--color-rule); }
.areas dt { font-family: var(--font-display); font-size: 22px; }
.areas dd { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 460px; }
.steps { margin-top: 48px !important; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-foreground); }
.steps li { padding: 24px 0; border-bottom: 1px solid var(--color-rule); }
.steps h3 { margin-top: 10px; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--color-muted-ink); max-width: 340px; }

/* Responsive (container) */
@container (max-width: 879px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-menu { display: inline-flex; }
  .hdr-nav.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0; background: var(--color-background); border-bottom: 1px solid var(--color-rule); padding: 8px clamp(20px, 5cqw, 64px) 24px; }
  .hdr-nav.is-open a { padding: 14px 0; font-size: 17px; color: var(--color-foreground); border-bottom: 1px solid var(--color-rule); }
  .hdr-nav.is-open .hdr-cta-mobile { display: inline-flex !important; margin-top: 20px; color: var(--color-paper); border: 0; justify-content: center; }
  .hero { height: auto; min-height: 720px; }
  .hero-img { object-position: 74% 20%; }
  .hero-shade { background: linear-gradient(0deg, oklch(0.2 0.012 220 / 0.92) 0%, oklch(0.2 0.012 220 / 0.7) 48%, oklch(0.2 0.012 220 / 0.05) 78%); }
  .hero-copy { min-height: 720px; padding-top: 320px; }
}
@container (min-width: 880px) {
  .why { grid-template-columns: 5fr 6fr; gap: 80px; }
  .two { grid-template-columns: 5fr 7fr; gap: 80px; }
  .map { grid-template-columns: 5fr 7fr; gap: 56px; }
  .row { grid-template-columns: 200px 1fr; gap: 24px; }
  .svc-row { grid-template-columns: 56px 4fr 6fr 2fr; align-items: baseline; }
  .svc-row p, .svc-end { grid-column: auto; margin-top: 0; }
  .svc-end { justify-self: end; text-align: right; }
  .cases { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about { grid-template-columns: 5fr 7fr; gap: 80px; }
  .contact-in { grid-template-columns: 2fr 1fr; }
  .a-hero-in { grid-template-columns: 7fr 4fr; gap: 80px; }
  .areas { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .fn-dot::after { animation: none !important; } html { scroll-behavior: auto; } }

.map-left, .map-right { min-width: 0; }

.hero-end { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; }

*,*::before,*::after { box-sizing: border-box; } html,body {margin:0;} img,svg {display:block;} button {font:inherit;} .seg-btn.is-on {background:var(--color-paper);box-shadow:0 1px 2px oklch(0.22 0.012 225 / 0.12);}

.sup-knob {transform:translateX(14px);transition:transform 220ms ease;} .sup.is-on .sup-knob {transform:translateX(0);}
