/* ==========================================================================
   Ammerly Consulting v2: process maps as the visual language.
   Shape grammar: pill = start / end, diamond = decision, box = process step.
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License; see assets/fonts) ----------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url(../fonts/bricolage-grotesque-latin.woff2) format("woff2-variations");
	font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage Grotesque";
	src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format("woff2-variations");
	font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	src: url(../fonts/newsreader-latin-normal.woff2) format("woff2-variations");
	font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url(../fonts/newsreader-latin-italic.woff2) format("woff2-variations");
	font-weight: 200 800; font-style: italic; font-display: swap;
}

/* Schemes ---------------------------------------------------------------- */
:root,
.scheme-flowchart {
	--paper: #f5f3fc;
	--paper-2: #ebe7f8;
	--surface: #ffffff;
	--ink: #22164a;
	--ink-2: #4a4170;
	--ink-3: #6f6792;
	--line: #dcd6ef;
	--line-strong: #b4abd6;
	--dot: rgba(79, 107, 255, 0.14);

	--start: #1fb58a;
	--decision: #ffb51f;
	--end: #ff4d7a;
	--connector: #4f6bff;
	--on-node: #22164a;

	--dark: #22164a;
	--dark-2: #2f2163;
	--dark-3: #3b2c78;
	--on-dark: #f5f3fc;
	--on-dark-2: #c3bbe3;
	--dark-line: rgba(195, 187, 227, 0.22);
	--dark-connector: #8da0ff;

	--chart-bg: #ffffff;
	--chart-ink: #22164a;
	--chart-ink-2: #5a5180;
	--chart-grid: #e6e1f5;
	--chart-1: #4f6bff;
	--chart-2: #ff4d7a;
	--chart-muted: #b4abd6;
	--chart-muted-2: #e3def5;
}

.scheme-blueprint {
	--paper: #13285e;
	--paper-2: #0f2152;
	--surface: #1a3272;
	--ink: #edf2ff;
	--ink-2: #c3d0f5;
	--ink-3: #93a5dd;
	--line: rgba(237, 242, 255, 0.16);
	--line-strong: rgba(237, 242, 255, 0.34);
	--dot: rgba(237, 242, 255, 0.07);

	--start: #3ddc97;
	--decision: #ffd23f;
	--end: #ff7d9d;
	--connector: #8fb0ff;
	--on-node: #0b1840;

	--dark: #0b1840;
	--dark-2: #12245a;
	--dark-3: #1a3272;
	--on-dark: #edf2ff;
	--on-dark-2: #a9b8e6;
	--dark-line: rgba(237, 242, 255, 0.16);
	--dark-connector: #8fb0ff;

	--chart-bg: #f3f6ff;
	--chart-ink: #0b1840;
	--chart-ink-2: #3d4c7a;
	--chart-grid: #d9e1f5;
	--chart-1: #4f6bff;
	--chart-2: #ff4d7a;
	--chart-muted: #9ba9d3;
	--chart-muted-2: #dbe2f5;
}

.scheme-studio {
	--paper: #f8eff4;
	--paper-2: #f0e1ea;
	--surface: #ffffff;
	--ink: #3a1033;
	--ink-2: #66385e;
	--ink-3: #8a6383;
	--line: #e8d5e1;
	--line-strong: #cfb0c4;
	--dot: rgba(123, 45, 110, 0.12);

	--start: #2a9d8f;
	--decision: #f2a541;
	--end: #e0457b;
	--connector: #7b2d6e;
	--on-node: #3a1033;

	--dark: #3a1033;
	--dark-2: #4b1843;
	--dark-3: #5e2254;
	--on-dark: #f8eff4;
	--on-dark-2: #dcbfd2;
	--dark-line: rgba(220, 191, 210, 0.2);
	--dark-connector: #f2a541;

	--chart-bg: #ffffff;
	--chart-ink: #3a1033;
	--chart-ink-2: #66385e;
	--chart-grid: #efe0ea;
	--chart-1: #7b2d6e;
	--chart-2: #2a9d8f;
	--chart-muted: #cfb0c4;
	--chart-muted-2: #f0e1ea;
}

:root {
	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 44px);
	--r-box: 10px;
	--stroke: 3px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--paper);
	background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
	background-size: 24px 24px;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.scheme-blueprint body,
body.scheme-blueprint {
	background-image:
		linear-gradient(var(--dot) 1px, transparent 1px),
		linear-gradient(90deg, var(--dot) 1px, transparent 1px);
	background-size: 32px 32px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 0.45em;
	font-variation-settings: "wdth" 90;
}
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--connector); outline-offset: 3px; border-radius: 4px; }

/* Pills (buttons are start/end terminators) ------------------------------ */
.pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px;
	border: var(--stroke) solid var(--ink); border-radius: 999px;
	font-family: var(--display); font-weight: 650; font-size: 1.02rem; letter-spacing: -0.005em;
	text-decoration: none; color: var(--ink); background: transparent;
	transition: transform .15s ease, box-shadow .15s ease;
	overflow-wrap: anywhere; text-align: center;
}
.pill:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.pill-end { background: var(--end); color: var(--on-node); border-color: var(--on-node); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-ink:hover { box-shadow: 4px 4px 0 var(--connector); }
.pill-ghost { background: var(--surface); }
.pill-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.text-link {
	font-family: var(--display); font-weight: 600; color: var(--ink);
	text-decoration: underline; text-decoration-color: var(--connector);
	text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--end); }

/* Flowchart nodes (shared) ----------------------------------------------- */
.node-pill {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 8px 26px; border-radius: 999px;
	border: var(--stroke) solid var(--on-node); color: var(--on-node);
	font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; text-align: center;
	text-decoration: none;
}
.node-start { background: var(--start); }
.node-end { background: var(--end); }
a.node-pill:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }

/* Arrows: a connector line plus a head, drawn in CSS */
.arrow { position: relative; list-style: none; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow-right::before, .arrow-left::before { left: 6px; right: 6px; top: 50%; height: var(--stroke); margin-top: -1.5px; background: var(--connector); }
.arrow-right::after { right: 4px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 10px solid var(--connector); border-right: 0; }
.arrow-left::after { left: 4px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right: 10px solid var(--connector); border-left: 0; }
.arrow-down::before { top: 4px; bottom: 6px; left: 50%; width: var(--stroke); margin-left: -1.5px; background: var(--connector); }
.arrow-down::after { bottom: 2px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 10px solid var(--connector); border-bottom: 0; }
.arrow-label { position: absolute; left: calc(50% + 12px); top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink-3); }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.custom-logo { max-height: 44px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mark { flex: none; color: var(--ink); }
.wordmark-text { font-family: var(--display); font-weight: 750; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 0.9; display: flex; flex-direction: column; font-variation-settings: "wdth" 85; }
.wordmark-sub { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.01em; color: var(--ink-3); margin-top: 4px; font-variation-settings: "wdth" 100; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav-list a { font-family: var(--display); font-weight: 550; font-size: 1rem; color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: var(--stroke) solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--decision); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px 8px; cursor: pointer; flex-direction: column; gap: 6px; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.nav-open .nav-toggle-bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title {
	font-size: clamp(2.9rem, 6.6vw, 5.6rem);
	font-weight: 800; line-height: 0.93; letter-spacing: -0.035em;
	font-variation-settings: "wdth" 78;
	margin-bottom: 0.32em; max-width: 12.5ch;
	text-wrap: balance; hyphens: manual;
}
.hero-kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--display); font-weight: 650; font-size: 1.08rem; color: var(--ink);
	margin-bottom: 1.1rem;
}
.hero-kicker::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--start); border: 2px solid var(--on-node); flex: none; }
.hero-text { font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }

/* The hero flowchart: start → decision ↓ process ← end */
.hero-flow {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1.1fr);
	grid-template-rows: auto 70px auto;
	align-items: center; justify-items: center;
}
.hf-start { grid-area: 1 / 1; }
.hf-a1 { grid-area: 1 / 2; width: 100%; height: 30px; }
.hf-decision { grid-area: 1 / 3; }
.hf-a2 { grid-area: 2 / 3; width: 30px; height: 100%; }
.hf-process { grid-area: 3 / 3; width: 100%; }
.hf-a3 { grid-area: 3 / 2; width: 100%; height: 30px; }
.hf-end { grid-area: 3 / 1; }

.node-diamond {
	position: relative; display: grid; place-items: center;
	width: 168px; height: 168px;
}
.node-diamond::before {
	content: ""; position: absolute; inset: 24px;
	background: var(--decision); border: var(--stroke) solid var(--on-node); border-radius: 12px;
	transform: rotate(45deg);
}
.node-diamond span { position: relative; max-width: 90px; text-align: center; font-family: var(--display); font-weight: 750; font-size: 1.05rem; line-height: 1.05; color: var(--on-node); }

.node-box { margin: 0; background: var(--surface); border: var(--stroke) solid var(--ink); border-radius: var(--r-box); padding: 8px; }
.node-photo { width: 100%; max-width: 290px; box-shadow: 10px 10px 0 var(--connector); }
.node-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.node-photo figcaption { display: flex; flex-direction: column; padding: 10px 6px 4px; font-family: var(--display); line-height: 1.2; }
.node-photo figcaption strong { font-weight: 700; font-size: 1.1rem; }
.node-photo figcaption span { font-size: 0.92rem; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
	.hero-flow > li { animation: node-in .5s cubic-bezier(.2, .7, .2, 1) both; }
	.hero-flow > .hf-start { animation-delay: .1s; }
	.hero-flow > .hf-a1 { animation-name: draw-x; animation-delay: .35s; }
	.hero-flow > .hf-decision { animation-delay: .55s; }
	.hero-flow > .hf-a2 { animation-name: draw-y; animation-delay: .8s; }
	.hero-flow > .hf-process { animation-delay: 1s; }
	.hero-flow > .hf-a3 { animation-name: draw-x-rev; animation-delay: 1.3s; }
	.hero-flow > .hf-end { animation-delay: 1.5s; }
}
@keyframes node-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes draw-x { from { clip-path: inset(-40px 100% -40px -40px); } to { clip-path: inset(-40px -80px -40px -40px); } }
@keyframes draw-x-rev { from { clip-path: inset(-40px -40px -40px 100%); } to { clip-path: inset(-40px -40px -40px -80px); } }
@keyframes draw-y { from { clip-path: inset(-40px -80px 100% -80px); } to { clip-path: inset(-40px -80px -40px -80px); } }

/* Signals: yes-branches merging into one end node ------------------------ */
.signals { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; }
.signals-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.signals-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; max-width: 14ch; }
.signals-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px auto; align-items: center; }
.signal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.signal-list li { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.mini-diamond { flex: none; width: 18px; height: 18px; background: var(--decision); border: 2px solid var(--on-node); border-radius: 3px; transform: rotate(45deg); margin: 0 4px; }
.sig-q { flex: 0 1 auto; font-size: 1.08rem; line-height: 1.3; }
.sig-line { flex: 1 1 40px; min-width: 40px; position: relative; height: var(--stroke); background: var(--connector); }
.sig-line em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-family: var(--display); font-style: normal; font-weight: 600; font-size: 0.8rem; color: var(--ink-3); }
.signals-bus { align-self: stretch; margin: 21px 0; border-right: var(--stroke) solid var(--connector); position: relative; }
.signals-bus::after { content: ""; position: absolute; top: 50%; left: 100%; width: 24px; height: var(--stroke); margin-top: -1.5px; background: var(--connector); }
.signals-end { margin-left: 24px; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; margin-bottom: 0; }
.section-intro { color: var(--ink-2); font-size: 1.12rem; max-width: 48ch; margin: 0; }

/* Services: process boxes */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.service { background: var(--surface); border: var(--stroke) solid var(--ink); border-radius: var(--r-box); padding: clamp(24px, 3vw, 36px); }
.service h3 { font-size: 1.6rem; }
.service p { color: var(--ink-2); }
.service-feature { background: var(--decision); border-color: var(--on-node); color: var(--on-node); }
.service-feature p { color: var(--on-node); }
.tick-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tick-list li { position: relative; padding-left: 26px; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%; background: var(--start); border: 2px solid var(--on-node); }

/* Steps: a real sequence, start pill → boxes → end pill */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: calc(25% - 48px); top: 26px; height: var(--stroke); background: var(--connector); }
.step { position: relative; }
.step-shape { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 54px; padding: 0 16px; margin-bottom: 18px; font-family: var(--display); font-weight: 750; font-size: 1.3rem; }
.node-box-mini { background: var(--surface); border: var(--stroke) solid var(--ink); border-radius: var(--r-box); color: var(--ink); }
.step p { color: var(--ink-2); font-size: 1.02rem; }

/* Platforms */
.platforms-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.platforms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.platforms > div { padding: 16px 0; border-top: 2px solid var(--line); }
.platforms dt { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.platforms dd { margin: 0; color: var(--ink-2); }

/* About */
.about { background: var(--paper-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-photo { margin: 0; position: relative; max-width: 440px; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--stroke) solid var(--ink); border-radius: 999px 999px var(--r-box) var(--r-box); background: var(--surface); }
.about-badge {
	position: absolute; right: -18px; bottom: 36px;
	width: 128px; height: 128px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: var(--decision); color: var(--on-node); border: var(--stroke) solid var(--on-node);
	font-family: var(--display); font-weight: 600; font-size: 0.92rem; line-height: 1.05;
	transform: rotate(-10deg);
}
.about-badge strong { font-size: 2.6rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.about-copy { font-size: 1.12rem; }
.about-copy .section-title { margin-bottom: 0.6em; }
.about-copy p { max-width: 58ch; }
.about-note { margin-top: 1.6rem; padding: 14px 20px; border: 2px dashed var(--connector); border-radius: var(--r-box); color: var(--ink-2); font-size: 1rem; }

/* Contact: the end node */
.contact-card {
	background: var(--end); color: var(--on-node);
	border: var(--stroke) solid var(--on-node);
	border-radius: clamp(28px, 6vw, 80px);
	padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 80px);
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
	box-shadow: 12px 12px 0 var(--ink);
}
.contact-card:has(.contact-form) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.contact-card .section-title { color: var(--on-node); max-width: 16ch; margin-bottom: 0.5em; }
.contact-card .section-intro { color: var(--on-node); max-width: 52ch; }
.contact-person { display: flex; align-items: center; gap: 16px; margin: 28px 0 24px; }
.contact-person p { margin: 0; font-size: 1.02rem; max-width: 40ch; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: var(--stroke) solid var(--on-node); background: var(--surface); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card .pill-ink { background: var(--on-node); color: var(--end); border-color: var(--on-node); }
.contact-card .pill-ghost { background: transparent; color: var(--on-node); border-color: var(--on-node); }
.contact-card .pill:hover { box-shadow: 4px 4px 0 var(--on-node); }
.contact-meta { margin: 20px 0 0; font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.contact-form { background: var(--surface); color: var(--ink); border: var(--stroke) solid var(--on-node); border-radius: 24px; padding: 28px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); }

/* Case study ------------------------------------------------------------- */
.case {
	background-color: var(--dark);
	background-image:
		linear-gradient(var(--dark-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: -1px -1px;
	color: var(--on-dark);
	padding: clamp(72px, 10vw, 128px) 0;
}
.cases-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.case-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; font-variation-settings: "wdth" 80; margin: 0; max-width: 14ch; text-wrap: balance; }

/* Tabs: two terminator pills you pick between */
.case-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.case-tab {
	display: inline-flex; align-items: center; gap: 12px; text-align: left;
	padding: 10px 22px 10px 14px; border-radius: 999px; cursor: pointer;
	background: transparent; color: var(--on-dark); border: var(--stroke) solid var(--dark-line);
	font: inherit; transition: background .15s, border-color .15s, transform .15s;
}
.case-tab strong { display: block; font-family: var(--display); font-weight: 750; font-size: 1.1rem; line-height: 1.1; }
.case-tab small { display: block; font-size: 0.86rem; color: var(--on-dark-2); }
.case-tab:hover { border-color: var(--on-dark-2); }
.case-tab[aria-selected="true"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.case-tab[aria-selected="true"] small { color: var(--ink-3); }
.tab-shape { flex: none; width: 34px; height: 20px; border-radius: 999px; border: 2px solid var(--on-node); }
.tab-shape-start { background: var(--start); }
.tab-shape-end { background: var(--end); }
.case-panel { outline-offset: 8px; }
.case-panel + .case-panel { margin-top: clamp(72px, 10vw, 120px); }
.js-tabs .case-panel + .case-panel { margin-top: 0; }
.case-panel[hidden] { display: none; }

.cs { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); }
.cs-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(8px, 2vw, 20px); }
.cs-hero-wide { grid-template-columns: minmax(0, 1fr); }
.cs-platform { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--display); font-weight: 650; color: var(--decision); }
.cs-platform::before { content: ""; width: 12px; height: 12px; background: var(--decision); border: 2px solid var(--on-node); border-radius: 2px; transform: rotate(45deg); }
.cs-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "wdth" 82; margin: 0 0 0.35em; color: var(--on-dark); text-wrap: balance; }
.cs-lede { margin: 0; color: var(--on-dark-2); font-size: 1.1rem; max-width: 52ch; }
.cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 28px); align-items: stretch; }

/* Chart cards: always a light surface so the validated chart colours hold */
.chart-card { margin: 0; background: var(--chart-bg); color: var(--chart-ink); border-radius: 18px; padding: clamp(20px, 3vw, 32px); border: var(--stroke) solid var(--on-node); }
.chart-card figcaption { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.chart-title { font-family: var(--display); font-weight: 750; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; }
.chart-sub { color: var(--chart-ink-2); font-size: 0.98rem; line-height: 1.4; }
.hero-figure { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 7vw, 4.8rem); line-height: 0.9; letter-spacing: -0.04em; margin-top: 10px; font-variation-settings: "wdth" 85; }

/* Horizontal bars */
.hbar-chart { position: relative; padding-top: 4px; padding-bottom: 26px; }
.hbar-grid { position: absolute; top: 0; bottom: 0; left: var(--hbar-label, 110px); right: var(--hbar-value, 86px); pointer-events: none; }
.hbar-grid span { position: absolute; top: 0; bottom: 22px; width: 1px; background: var(--chart-grid); }
.hbar-grid span::after { content: attr(data-t); position: absolute; top: 100%; left: 0; margin-top: 4px; transform: translateX(-50%); font-family: var(--display); font-size: 0.78rem; color: var(--chart-ink-2); font-variant-numeric: tabular-nums; }
.hbar-row { position: relative; display: grid; grid-template-columns: var(--hbar-label, 110px) minmax(0, 1fr) var(--hbar-value, 86px); align-items: center; min-height: 34px; }
.hbar-label { font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding-right: 12px; line-height: 1.15; }
.hbar-track { display: flex; gap: 2px; align-items: center; height: 22px; }
.hbar { display: block; height: 22px; border-radius: 0 4px 4px 0; cursor: default; transition: filter .15s; }
.hbar:focus-visible, .hbar:hover { filter: brightness(1.12); outline-offset: 2px; }
.hbar-accent { background: var(--chart-1); }
.hbar-muted { background: var(--chart-muted); border-radius: 0; }
.hbar-muted-2 { background: var(--chart-muted-2); }
.hbar-value { padding-left: 10px; font-family: var(--display); font-size: 0.95rem; color: var(--chart-ink); font-variant-numeric: tabular-nums; }
.hbar-value strong { font-weight: 800; }
.hbar-list { --hbar-label: 150px; --hbar-value: 40px; }
.hbar-list .hbar-row { min-height: 30px; }
.hbar-list .hbar, .hbar-list .hbar-track { height: 18px; }
.close-chart .hbar-chart { --hbar-label: 64px; --hbar-value: 96px; }
.close-chart .hbar-row { min-height: 46px; }

/* Table twin for every chart */
.chart-table { margin-top: 14px; font-size: 0.92rem; }
.chart-table summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--chart-ink-2); width: fit-content; }
.chart-table table { margin-top: 10px; border-collapse: collapse; width: 100%; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--chart-grid); font-variant-numeric: tabular-nums; }
.chart-table thead th { font-family: var(--display); font-weight: 650; color: var(--chart-ink-2); }

/* Phase staircase */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.stair { display: flex; flex-direction: column-reverse; gap: 14px; }
.stair-step {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	background: var(--chart-1); color: #fff; border-radius: 12px 12px 4px 4px; padding: 16px 18px;
	font-family: var(--display); cursor: default;
}
.stair-1 .stair-step { min-height: 92px; }
.stair-2 .stair-step { min-height: 148px; }
.stair-3 .stair-step { min-height: 204px; }
.stair-no { font-weight: 600; font-size: 0.9rem; opacity: 0.9; }
.stair-name { font-weight: 800; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.01em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--display); font-weight: 550; font-size: 0.84rem; line-height: 1.2; padding: 5px 10px; border-radius: 999px; background: var(--chart-muted-2); color: var(--chart-ink); }

.loop { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--chart-grid); }
.loop-label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 12px; }
.loop-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.loop-steps li { position: relative; font-family: var(--display); font-weight: 600; font-size: 0.9rem; padding: 6px 12px; border-radius: 8px; border: 2px solid var(--chart-ink); background: var(--chart-bg); }
.loop-steps li:not(:last-child)::after { content: ""; position: absolute; right: -18px; top: 50%; width: 14px; height: 2px; background: var(--chart-1); }
.loop-steps .ls-start { background: var(--start); border-color: var(--on-node); color: var(--on-node); border-radius: 999px; }
.loop-steps .ls-end { background: var(--end); border-color: var(--on-node); color: var(--on-node); border-radius: 999px; }

/* Integration hub */
.hub { display: block; width: 100%; height: auto; }
.hub-line { fill: none; stroke-width: 3; stroke-linecap: round; }
.hub-1 { stroke: var(--chart-1); }
.hub-2 { stroke: var(--chart-2); }
.hub-head-1 { fill: var(--chart-1); }
.hub-head-2 { fill: var(--chart-2); }
.hub-core rect { fill: var(--chart-ink); }
.hub-core-t { fill: var(--chart-bg); font-family: var(--display); font-weight: 800; font-size: 24px; }
.hub-core-s { fill: var(--chart-bg); opacity: 0.75; font-family: var(--display); font-weight: 500; font-size: 13px; }
.hub-node rect { fill: var(--chart-bg); stroke: var(--chart-ink); stroke-width: 2.5; }
.hub-node.hub-critical rect { stroke-width: 5; }
.hub-t { fill: var(--chart-ink); font-family: var(--display); font-weight: 750; font-size: 15px; }
.hub-s { fill: var(--chart-ink-2); font-family: var(--display); font-weight: 500; font-size: 12px; }
.hub-node, .hub-core { cursor: default; outline: none; }
.hub-node:hover rect, .hub-node:focus rect { fill: var(--chart-muted-2); }
.hub-node:focus-visible rect, .hub-core:focus-visible rect { stroke: var(--connector); stroke-width: 4; }

.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--display); font-size: 0.88rem; color: var(--chart-ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { flex: none; display: inline-block; }
.key-line { width: 22px; height: 3px; border-radius: 2px; }
.key-sq { width: 12px; height: 12px; border-radius: 3px; }
.key-1 { background: var(--chart-1); }
.key-2 { background: var(--chart-2); }
.key-ring { width: 22px; height: 14px; border-radius: 999px; border: 4px solid var(--chart-ink); }

/* People unit chart */
.people { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.people-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 70px; align-items: center; gap: 12px; }
.people-label { font-family: var(--display); font-weight: 600; font-size: 0.9rem; }
.people-n { font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-align: right; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px var(--chart-bg); }
.dot-exec { background: var(--chart-ink); }
.dot-me { background: var(--chart-2); width: 20px; height: 20px; }
.dot-team { background: var(--chart-1); }
.dot-stake { background: var(--chart-muted); }
.chips-quiet li { background: transparent; border: 1.5px solid var(--chart-grid); }

.meter-block { margin: 20px 0 18px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.meter-head strong { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.meter { height: 14px; border-radius: 4px; background: var(--chart-muted-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--chart-1); border-radius: 0 4px 4px 0; }

.gov { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--chart-grid); display: flex; flex-direction: column; gap: 10px; font-size: 0.98rem; line-height: 1.35; }
.gov li { display: flex; align-items: flex-start; gap: 12px; }
.gov b { font-family: var(--display); font-weight: 700; }
.gov-shape { flex: none; margin-top: 3px; border: 2px solid var(--chart-ink); }
.gov-box { width: 20px; height: 14px; border-radius: 3px; background: var(--chart-bg); }
.gov-diamond { width: 13px; height: 13px; margin: 4px 3px 0; background: var(--decision); transform: rotate(45deg); border-radius: 2px; border-color: var(--on-node); }
.gov-pill { width: 22px; height: 14px; border-radius: 999px; background: var(--end); border-color: var(--on-node); }

/* Results strip */
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.results li { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 14px; background: var(--dark-2); border: 2px solid var(--dark-line); color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.35; }
.res-big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--on-dark); }
.results li:first-child { background: var(--start); border-color: var(--on-node); color: var(--on-node); }
.results li:first-child .res-big { color: var(--on-node); }

/* NetSuite stat tiles */
.tiles { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--dark-2); border: 2px solid var(--dark-line); }
.tiles dt { color: var(--on-dark-2); font-size: 0.92rem; line-height: 1.25; }
.tiles dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; color: var(--on-dark); }

/* Waffle of data objects */
.waffle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px; }
.waffle li { display: flex; align-items: flex-end; min-height: 64px; padding: 8px 10px; font-family: var(--display); font-weight: 600; font-size: 0.82rem; line-height: 1.15; color: #fff; border-radius: 4px; cursor: default; }
.waffle .w-list { background: var(--chart-1); }
.waffle .w-txn { background: var(--chart-2); color: var(--on-node); }
.waffle li:hover, .waffle li:focus-visible { filter: brightness(1.1); }

/* Risk bar */
.risk-bar { display: flex; gap: 2px; height: 12px; margin: -4px 0 16px; }
.risk-bar span { border-radius: 3px; }
.rb-high { background: var(--end); }
.rb-med { background: var(--decision); }

/* Tooltip */
.tip { position: fixed; z-index: 100; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: var(--chart-ink); color: var(--chart-bg); font-family: var(--display); font-weight: 600; font-size: 0.88rem; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.on { opacity: 1; transform: none; }

/* Swimlane (desktop: two lanes, six milestones on one connector) */
.swim {
	display: grid;
	grid-template-columns: 112px repeat(6, minmax(0, 1fr));
	grid-template-rows: auto auto auto;
	border: 2px solid var(--dark-line);
	border-radius: 18px;
	background: color-mix(in srgb, var(--dark) 70%, transparent);
	overflow: hidden;
}
.swim-lanes, .ms { display: contents; }
.swim-lanes::before { content: ""; grid-column: 1; grid-row: 1; }
.swim-lane-name {
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 16px 10px; font-family: var(--display); font-weight: 700; font-size: 0.9rem; line-height: 1.1;
	writing-mode: vertical-rl; transform: rotate(180deg);
}
.swim-lane-vendor { grid-column: 1; grid-row: 2; color: var(--on-dark-2); border-top: 2px dashed var(--dark-line); }
.swim-lane-client { grid-column: 1; grid-row: 3; background: var(--start); color: var(--on-node); }

.ms-node { grid-row: 1; position: relative; padding: 26px 14px 20px; }
.ms-vendor { grid-row: 2; margin: 0; padding: 16px 14px; border-top: 2px dashed var(--dark-line); border-left: 1px solid var(--dark-line); color: var(--on-dark-2); font-size: 0.94rem; line-height: 1.35; }
.ms-client { grid-row: 3; list-style: none; margin: 0; padding: 14px 10px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); color: var(--ink); border-left: 1px solid var(--line); }
.ms-client li { background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 0.92rem; line-height: 1.3; }
.clause { display: inline-block; font-family: var(--display); font-weight: 650; font-size: 0.74rem; color: var(--on-node); background: var(--decision); border-radius: 999px; padding: 1px 7px; margin-left: 2px; white-space: nowrap; }
.lane-tag { display: none; }

/* The connector through the milestone shapes */
.ms-node::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: var(--stroke); background: var(--dark-connector); }
.ms-start .ms-node::before { left: 50%; }
.ms-end .ms-node::before { right: 50%; }
.ms-pill, .ms-diamond, .ms-box { position: relative; z-index: 1; display: block; margin: 0 auto 14px; border: var(--stroke) solid var(--on-node); }
.ms-pill { width: 66px; height: 30px; border-radius: 999px; }
.ms-start .ms-pill { background: var(--start); }
.ms-end .ms-pill { background: var(--end); }
.ms-diamond { width: 26px; height: 26px; margin-top: 2px; margin-bottom: 16px; background: var(--decision); border-radius: 4px; transform: rotate(45deg); }
.ms-box { width: 44px; height: 30px; background: var(--on-dark); border-radius: 6px; }
.ms-flag .ms-diamond { box-shadow: 0 0 0 6px color-mix(in srgb, var(--end) 55%, transparent); }
.ms-when { display: block; text-align: center; font-family: var(--display); font-weight: 600; font-size: 0.86rem; color: var(--decision); }
.ms-title { text-align: center; font-size: 1.08rem; line-height: 1.12; margin: 4px 0 0; color: var(--on-dark); }
.ms-flagnote { display: block; width: fit-content; margin: 8px auto 0; padding: 2px 10px; border-radius: 999px; background: var(--end); color: var(--on-node); font-family: var(--display); font-weight: 650; font-size: 0.78rem; }

.case-note { margin: 14px 0 0; color: var(--on-dark-2); font-size: 0.92rem; }

/* January → June */
.turn { margin: clamp(16px, 3vw, 32px) 0; display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 0; }
.turn-col { border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.turn-col h4 { font-size: 1.55rem; margin-bottom: 0.8em; }
.turn-jan { background: var(--dark-2); border: 2px solid var(--dark-line); }
.turn-jun { background: var(--paper); color: var(--ink); border: var(--stroke) solid var(--on-node); box-shadow: 10px 10px 0 var(--start); }
.turn-arrow { color: var(--decision); padding: 0 8px; }
.turn-arrow svg { display: block; width: 100%; height: 40px; }
.risk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.risk-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 1.02rem; line-height: 1.35; color: var(--on-dark); }
.risk-level { justify-self: start; font-family: var(--display); font-weight: 700; font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; color: var(--on-node); }
.risk-high { background: var(--end); }
.risk-med { background: var(--decision); }
.cutover { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.cutover::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: var(--stroke); background: var(--connector); }
.cutover li { position: relative; display: flex; align-items: flex-start; gap: 14px; font-size: 1.02rem; line-height: 1.35; }
.cut-shape { position: relative; z-index: 1; flex: none; width: 20px; height: 16px; margin-top: 3px; background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; }
.cut-decision { width: 16px; height: 16px; margin-left: 2px; margin-right: 2px; background: var(--decision); transform: rotate(45deg); border-radius: 2px; }
.cut-end { width: 26px; height: 16px; margin-left: -3px; background: var(--end); border-radius: 999px; }

/* Two processes, redrawn */
.flowcard { margin: 0; background: var(--dark-2); border: 2px solid var(--dark-line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.flowcard figcaption h4 { font-size: 1.5rem; }
.flowcard figcaption p { color: var(--on-dark-2); font-size: 1.02rem; margin-bottom: 1.4rem; }
.mini-flow { list-style: none; margin: 0; padding: 0 0 0 36px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.mini-flow::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: var(--stroke); background: var(--dark-connector); }
.mini-flow li { position: relative; font-size: 1.02rem; line-height: 1.35; }
.mini-flow li::before { content: ""; position: absolute; left: -36px; top: 2px; width: 26px; height: 18px; border: 2px solid var(--on-node); border-radius: 999px; }
.mini-flow small { display: block; color: var(--on-dark-2); font-size: 0.9rem; }
.mf-start::before { background: var(--start); }
.mf-end::before { background: var(--end); }
.mf-decision { font-family: var(--display); font-weight: 650; }
.mf-decision small { font-family: var(--serif); font-weight: 400; }
.mf-decision::before { width: 18px !important; height: 18px !important; left: -32px !important; border-radius: 3px !important; background: var(--decision); transform: rotate(45deg); }
.status-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 30px; }
.status-chain li:nth-child(3n)::after { display: none; }
.status-chain li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.status-chain li span { display: inline-block; width: fit-content; padding: 6px 14px; border-radius: 8px; background: var(--on-dark); color: var(--dark); border: 2px solid var(--on-node); font-family: var(--display); font-weight: 650; font-size: 0.95rem; }
.status-chain li small { color: var(--on-dark-2); font-size: 0.86rem; padding-left: 4px; }
.status-chain li:not(:last-child)::after { content: ""; position: absolute; right: -24px; top: 17px; width: 18px; height: var(--stroke); background: var(--dark-connector); }
.status-chain .sc-end span { background: var(--end); color: var(--on-node); border-radius: 999px; }

/* Pages / posts ---------------------------------------------------------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { font-family: var(--display); font-weight: 650; color: var(--ink-3); margin-bottom: 0.6em; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 20ch; font-variation-settings: "wdth" 82; }
.entry-content { max-width: 720px; }
.entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { text-decoration-color: var(--connector); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--decision); font-style: italic; font-size: 1.2rem; }
.post-list { max-width: 900px; }
.post-card { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-card:first-child { border-top: var(--stroke) solid var(--ink); }
.post-date { font-family: var(--display); font-weight: 600; color: var(--ink-3); padding-top: 6px; font-size: 0.9rem; }
.post-card-title { font-size: 1.6rem; margin-bottom: 0.3em; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; text-decoration-color: var(--end); text-decoration-thickness: 3px; }
.post-card p { color: var(--ink-2); margin: 0; }
.pagination { margin-top: 32px; font-family: var(--display); }
.pagination .nav-links { display: flex; gap: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); border: var(--stroke) solid var(--ink); font-family: var(--display); font-weight: 650; text-decoration: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 28px; }
.site-footer .wordmark, .site-footer .mark { color: var(--on-dark); }
.site-footer .wordmark-sub { color: var(--on-dark-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--dark-line); }
.footer-tag { color: var(--on-dark-2); font-size: 1rem; margin: 16px 0 0; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; font-family: var(--display); font-weight: 600; }
.footer-links a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--dark-connector); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 0.9rem; color: var(--on-dark-2); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.swim { grid-template-columns: 96px repeat(6, minmax(0, 1fr)); }
	.ms-client li { font-size: 0.86rem; }
}

@media (max-width: 980px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-flow { max-width: 560px; }
	.signals-grid, .section-head, .platforms-grid, .case-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.about-grid { grid-template-columns: minmax(0, 1fr); }
	.about-photo { max-width: 360px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps::before { display: none; }
	.turn { grid-template-columns: minmax(0, 1fr); }
	.turn-arrow { width: 80px; height: 60px; margin: 4px auto; transform: rotate(90deg); }
	.cs-pair, .cs-hero { grid-template-columns: minmax(0, 1fr); }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.results li:first-child { grid-column: 1 / -1; }
	.contact-card:has(.contact-form) { grid-template-columns: minmax(0, 1fr); }

	/* Swimlane becomes a vertical timeline of cards */
	.swim { display: flex; flex-direction: column; gap: 0; border: 0; background: none; border-radius: 0; overflow: visible; position: relative; padding-left: 40px; }
	.swim::before { content: ""; position: absolute; left: 14px; top: 20px; bottom: 20px; width: var(--stroke); background: var(--dark-connector); }
	.swim-lanes { display: none; }
	.ms { display: block; position: relative; margin-bottom: 18px; border: 2px solid var(--dark-line); border-radius: 14px; overflow: visible; background: var(--dark-2); }
	.ms-client { border-radius: 0 0 12px 12px; }
	.ms-node { padding: 16px 16px 10px; }
	.ms-node::before { display: none; }
	.ms-pill, .ms-diamond, .ms-box { position: absolute; left: -40px; top: 18px; margin: 0; }
	.ms-pill { width: 32px; height: 20px; left: -42px; }
	.ms-diamond { width: 18px; height: 18px; left: -36px; top: 20px; }
	.ms-box { width: 28px; height: 20px; left: -40px; }
	.ms-when, .ms-title { text-align: left; }
	.ms-flagnote { margin-left: 0; }
	.ms-vendor { border-left: 0; padding: 10px 16px; }
	.ms-client { border-left: 0; padding: 12px 12px 14px; }
	.lane-tag { display: inline; font-family: var(--display); font-weight: 700; color: var(--on-dark); }
}

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0; background: var(--paper);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 24px; border-bottom: 2px solid var(--ink);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
	.site-nav .pill { margin-top: 18px; }

	/* Signals: drop the merge lines, end node sits below */
	.signals-flow { grid-template-columns: minmax(0, 1fr); }
	.sig-line, .signals-bus { display: none; }
	.signals-end { margin: 24px 0 0; justify-self: start; }
}

@media (max-width: 640px) {
	body { font-size: 17.5px; }
	.hero-flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: start; }
	.hero-flow > li { grid-area: auto !important; }
	.hf-a1, .hf-a2, .hf-a3 { width: 30px !important; height: 40px !important; margin-left: 28px; }
	.hf-a1::before, .hf-a3::before { left: 50%; right: auto; top: 4px; bottom: 6px; width: var(--stroke); height: auto; margin: 0 0 0 -1.5px; }
	.hf-a1::after, .hf-a3::after { top: auto; bottom: 2px; left: 50%; right: auto; margin: 0 0 0 -7px; border: 7px solid transparent; border-top: 10px solid var(--connector); border-bottom: 0; }
	.hf-decision { margin-left: -12px; }
	.node-diamond { width: 150px; height: 150px; }
	.node-diamond::before { inset: 22px; }
	.node-photo { max-width: 260px; }
	.service-grid { grid-template-columns: minmax(0, 1fr); }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.platforms { grid-template-columns: minmax(0, 1fr); }
	.about-badge { right: 8px; width: 108px; height: 108px; }
	.about-badge strong { font-size: 2.2rem; }
	.contact-card { box-shadow: 6px 6px 0 var(--ink); }
	.contact-actions .pill { flex: 1 1 100%; }
	.hero-actions .pill { flex: 1 1 100%; }
	.risk-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.status-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.status-chain li:nth-child(3n)::after { display: block; }
	.status-chain li:nth-child(2n)::after { display: none; }
	.status-chain li span { white-space: normal; }
	.case-tab { flex: 1 1 100%; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.results { grid-template-columns: minmax(0, 1fr); }
	.stairs { grid-template-columns: minmax(0, 1fr); }
	.stair { flex-direction: column; }
	.stair .stair-step { min-height: 0 !important; border-radius: 12px; }
	.stair-1 .stair-step { width: 60%; }
	.stair-2 .stair-step { width: 80%; }
	.stair-3 .stair-step { width: 100%; }
	.hbar-list { --hbar-label: 112px; }
	.close-chart .hbar-chart { --hbar-label: 56px; --hbar-value: 84px; }
	.people-row { grid-template-columns: 88px minmax(0, 1fr) 44px; gap: 8px; }
	.loop-steps { gap: 8px 20px; }
	.post-card { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

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

/* Chart polish */
.hbar-grid span::after { white-space: nowrap; }
.hub-t { font-size: 20px; }
.hub-s { font-size: 15px; }
.hub-core-t { font-size: 26px; }
.dots-note { align-self: center; margin-left: 6px; font-family: var(--display); font-size: 0.85rem; color: var(--chart-ink-2); }
.gov li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.gov-shape { justify-self: center; }
.hub-list { display: none; list-style: none; margin: 0; padding: 0; flex-direction: column; gap: 10px; font-size: 0.98rem; }
.hub-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; border: 2px solid var(--chart-grid); border-radius: 999px; }
.hub-list li.hl-critical { border: 4px solid var(--chart-ink); }
.hub-list b { font-family: var(--display); font-weight: 750; margin-right: 6px; }
@media (max-width: 640px) {
	.hub { display: none; }
	.hub-list { display: flex; }
	.hbar-list { --hbar-label: 118px; }
	.hbar-label { font-size: 0.85rem; }
	.loop-steps li::after { display: none; }
	.loop-steps { gap: 8px; }
}

/* Digital thread */
.thread { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.thread::before { content: ""; position: absolute; left: 7%; right: 7%; top: 15px; height: 4px; border-radius: 2px; background: var(--chart-1); }
.thread li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 44px 6px 0; cursor: default; }
.thread li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 6px; background: var(--chart-bg); border: 3px solid var(--chart-ink); }
.thread li.th-start::before { width: 44px; margin-left: -22px; border-radius: 999px; background: var(--start); border-color: var(--on-node); }
.thread li.th-end::before { width: 44px; margin-left: -22px; border-radius: 999px; background: var(--end); border-color: var(--on-node); }
.thread li:hover::before, .thread li:focus-visible::before { background: var(--chart-muted-2); }
.thread li.th-start:hover::before { background: var(--start); }
.thread li.th-end:hover::before { background: var(--end); }
.thread b { font-family: var(--display); font-weight: 750; font-size: 1rem; line-height: 1.15; }
.thread span { font-size: 0.86rem; line-height: 1.3; color: var(--chart-ink-2); }
.thread-rail { margin-top: 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--chart-muted-2); }
.thread-rail p { margin: 0; font-size: 0.98rem; line-height: 1.4; }
.thread-rail b { font-family: var(--display); font-weight: 750; }
.rail-key { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--chart-2) 0 10px, transparent 10px 14px); }

/* Results: six tiles */
.results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-big { font-size: 1.9rem; }
@media (max-width: 980px) {
	.thread { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.thread::before { left: 21px; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
	.thread li { flex-direction: row; flex-wrap: wrap; align-items: baseline; text-align: left; gap: 2px 10px; padding: 2px 0 0 60px; }
	.thread li::before { top: 0; left: 23px; }
	.thread li.th-start::before, .thread li.th-end::before { left: 23px; }
	.results li:first-child { grid-column: auto; }
}
@media (max-width: 640px) {
	.results { grid-template-columns: minmax(0, 1fr); }
	.thread-rail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
	.thread li { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---- Dynamics 365 case study ---- */
.tab-shape-box { width: 30px; border-radius: 5px; background: var(--on-dark); }
.case-tab[aria-selected="true"] .tab-shape-box { background: var(--chart-1); }

/* Two results as deltas */
.deltas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.delta { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; background: var(--chart-muted-2); cursor: default; }
.delta-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.delta-up .delta-arrow { background: var(--chart-1); }
.delta-down .delta-arrow { background: var(--chart-2); }
.delta-figure { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 0.9; letter-spacing: -0.04em; }
.delta-label { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.delta-why { font-size: 0.92rem; line-height: 1.35; color: var(--chart-ink-2); margin-top: 4px; }

/* BOM flow: start pill → boxes → end pill, D365 highlighted */
.bomflow { list-style: none; margin: 4px 0 0; padding: 0; display: flex; align-items: stretch; }
.bomflow > li:not(.bf-arrow) { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; padding: 14px 10px; border: 2.5px solid var(--chart-ink); border-radius: 10px; background: var(--chart-bg); cursor: default; }
.bomflow b { font-family: var(--display); font-weight: 750; font-size: 1rem; line-height: 1.15; }
.bomflow span { font-size: 0.86rem; color: var(--chart-ink-2); line-height: 1.25; }
.bomflow .bf-start { background: var(--start); border-color: var(--on-node); border-radius: 999px; }
.bomflow .bf-end { background: var(--end); border-color: var(--on-node); border-radius: 999px; }
.bomflow .bf-start span, .bomflow .bf-end span { color: var(--on-node); }
.bomflow .bf-core { background: var(--chart-ink); border-color: var(--chart-ink); color: var(--chart-bg); flex-grow: 1.15; }
.bomflow .bf-core span { color: var(--chart-bg); opacity: 0.8; }
.bf-arrow { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; }
.bf-arrow svg { width: 34px; height: 16px; stroke: var(--chart-1); fill: var(--chart-1); }
.bf-two svg { stroke: var(--chart-2); fill: var(--chart-2); }
.bomflow > li.bf-start { background: var(--start); border-color: var(--on-node); border-radius: 999px; }
.bomflow > li.bf-end { background: var(--end); border-color: var(--on-node); border-radius: 999px; }
.bomflow > li.bf-core { background: var(--chart-ink); border-color: var(--chart-ink); color: var(--chart-bg); flex-grow: 1.15; }
.bomflow > li.bf-core span { color: var(--chart-bg); opacity: 0.8; }
.venn-card { display: flex; flex-direction: column; }
.venn-card .venn { margin: auto; width: 100%; }

/* Venn: two business models, one system */
.venn { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 250px; margin: 6px auto 0; max-width: 460px; }
.venn-c { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 16%; font-size: 0.86rem; line-height: 1.25; cursor: default; }
.venn-c b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.venn-a { background: color-mix(in srgb, var(--chart-1) 18%, var(--chart-bg)); border: 3px solid var(--chart-1); margin-right: -18%; text-align: left; padding-right: 26%; }
.venn-b { background: color-mix(in srgb, var(--chart-2) 18%, var(--chart-bg)); border: 3px solid var(--chart-2); margin-left: -18%; text-align: right; padding-left: 26%; }
.venn-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--chart-ink); color: var(--chart-bg); font-family: var(--display); line-height: 1.1; box-shadow: 0 0 0 3px var(--chart-bg); }
.venn-mid b { font-weight: 800; font-size: 1.1rem; }
.venn-mid span { font-size: 0.78rem; opacity: 0.8; }

/* Spine: the project as backbone */
.spine { position: relative; }
.spine-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--display); font-size: 1.05rem; }
.spine-pill { flex: none; width: 44px; height: 24px; border-radius: 999px; background: var(--start); border: 2.5px solid var(--on-node); }
.spine-list { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.spine-list::before { content: ""; position: absolute; left: 20px; top: -12px; bottom: 22px; width: 3px; background: var(--chart-1); }
.spine-list li { position: relative; margin-left: 26px; padding: 10px 14px; border: 2px solid var(--chart-ink); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.spine-list li::before { content: ""; position: absolute; left: -28px; top: 22px; width: 26px; height: 3px; background: var(--chart-1); }
.spine-list b { font-family: var(--display); font-weight: 750; font-size: 1rem; }
.spine-list span { font-size: 0.9rem; line-height: 1.35; color: var(--chart-ink-2); }

.loop-flat { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 980px) {
	.bomflow { flex-direction: column; }
	.bf-arrow { flex: 0 0 30px; }
	.bf-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 640px) {
	.deltas { grid-template-columns: minmax(0, 1fr); }
	.venn { min-height: 0; }
	.venn-c { font-size: 0.78rem; padding: 0 12%; }
	.venn-a { padding-right: 20%; }
	.venn-b { padding-left: 20%; }
	.venn-c b { font-size: 0.84rem; }
	.venn-mid { position: static; transform: none; grid-column: 1 / -1; justify-self: center; margin-top: -26px; z-index: 1; }
}
