/* TC Data Consultants
   Brand: blue #0959a9, ink #231f20 (from the logo) */

:root {
  --blue: #0959a9;
  --blue-600: #0b4f94;
  --blue-400: #3b8cf0;
  --blue-50: #eef5fd;
  --ink: #16181d;
  --ink-2: #231f20;
  --text: #3b4150;
  --muted: #6b7280;
  --line: #e5e8ef;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --dark: #0b1220;
  --dark-2: #111a2e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06);
  --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 8px 24px -8px rgb(16 24 40 / .12);
  --shadow-lg: 0 24px 60px -20px rgb(9 89 169 / .35);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.35em; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px -6px rgb(9 89 169 / .6); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-sm { padding: .6em 1.1em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row-center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.eyebrow {
  font: 600 .8125rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9em;
}
.lead { font-size: clamp(1.075rem, 1.6vw, 1.225rem); color: var(--text); max-width: 62ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); }
.brand:hover { color: var(--ink-2); }
.logo-mark { width: 46px; height: 36px; color: var(--ink-2); }
.logo-mark text { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.logo-mark .logo-tc { fill: var(--blue); }
.logo-mark .logo-dc { fill: currentColor; font-weight: 500; }
.brand-text { font: 500 1.05rem/1 var(--font-display); letter-spacing: .01em; color: var(--blue); white-space: nowrap; }
.brand-text strong { color: var(--ink-2); font-weight: 700; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .logo-mark { color: #fff; }
.brand-light .logo-mark .logo-tc { fill: var(--blue-400); }
.brand-light .brand-text { color: #9cc4f5; }
.brand-light .brand-text strong { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav ul a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, background-color .2s ease; content: "";
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .btn { justify-content: center; }
  .brand-text { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
  background: var(--dark); color: #c9d3e5;
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(56px, 9vw, 104px));
}
.page-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled) .brand,
.page-home .site-header:not(.is-scrolled) .site-nav ul a { color: #fff; }
.page-home .site-header:not(.is-scrolled) .logo-mark { color: #fff; }
.page-home .site-header:not(.is-scrolled) .logo-mark .logo-tc { fill: var(--blue-400); }
.page-home .site-header:not(.is-scrolled) .brand-text { color: #9cc4f5; }
.page-home .site-header:not(.is-scrolled) .brand-text strong { color: #fff; }
.page-home .site-header:not(.is-scrolled) .site-nav ul a:hover { background: rgb(255 255 255 / .1); }
.page-home .site-header:not(.is-scrolled) .nav-toggle { background: transparent; border-color: rgb(255 255 255 / .25); }
.page-home .site-header:not(.is-scrolled) .nav-toggle-bar,
.page-home .site-header:not(.is-scrolled) .nav-toggle-bar::before,
.page-home .site-header:not(.is-scrolled) .nav-toggle-bar::after { background: #fff; }
.page-home .site-header:not(.is-scrolled) .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
@media (max-width: 860px) {
  .page-home .site-header:not(.is-scrolled) .site-nav ul a { color: var(--ink); }
  .page-home .site-header:not(.is-scrolled) .site-nav ul a:hover { background: var(--bg-alt); }
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 20%, rgb(59 140 240 / .35), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgb(9 89 169 / .45), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .lead { color: #c9d3e5; }
.grad { background: linear-gradient(90deg, #6fb0ff, #3b8cf0 60%, #9cc4f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  font-size: .875rem; font-weight: 500; color: #dbe6f7;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgb(52 211 153 / .2); }
.hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .25); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }

.dash-card {
  position: relative;
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .04));
  border: 1px solid rgb(255 255 255 / .12); border-radius: 20px;
  padding: 20px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6);
  backdrop-filter: blur(6px);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.dash-title { margin-left: 10px; font-size: .85rem; color: #9fb0cc; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-kpis > div { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi-label { font-size: .75rem; color: #9fb0cc; }
.kpi-value { font: 600 1.35rem/1.2 var(--font-display); color: #fff; }
.kpi-delta { font-size: .75rem; font-weight: 600; }
.kpi-delta.up { color: #34d399; }
.dash-chart { width: 100%; height: 120px; display: block; }
.dash-line { stroke: #6fb0ff; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2s .3s ease forwards; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 14px; }
.dash-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3b8cf0, rgb(9 89 169 / .5)); transform-origin: bottom; animation: grow .9s ease both; }
.dash-bars span:nth-child(2) { animation-delay: .08s; } .dash-bars span:nth-child(3) { animation-delay: .16s; }
.dash-bars span:nth-child(4) { animation-delay: .24s; } .dash-bars span:nth-child(5) { animation-delay: .32s; }
.dash-bars span:nth-child(6) { animation-delay: .4s; }  .dash-bars span:nth-child(7) { animation-delay: .48s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dash-card { transform: none; max-width: 520px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card, .service, .post-card, .work-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card p:last-child, .service p:last-child { margin-bottom: 0; }
.card:hover, .service:hover, .post-card:hover, .work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dce8; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 12px; background: var(--blue-50); color: var(--blue);
}
.card-icon .icon { width: 24px; height: 24px; }

/* Quote band */
.quote-band { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote-band p { font: 500 clamp(1.3rem, 2.6vw, 1.75rem)/1.35 var(--font-display); color: var(--ink); letter-spacing: -.015em; margin-bottom: .5em; }
.quote-band cite { font-style: normal; color: var(--muted); font-size: .95rem; }
.quote-band cite::before { content: "— "; }

/* Split / service list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .lead { margin-bottom: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-list a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.3;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-list a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.service-list .icon { color: var(--blue); width: 22px; height: 22px; }
@media (max-width: 480px) { .service-list { grid-template-columns: 1fr; } }

/* Services page */
.services-grid .service h2 { font-size: 1.4rem; }
.service-wide { grid-column: 1 / -1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; }
.steps h3 { margin-top: 16px; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 1rem/1 var(--font-display); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Work */
.work-card { display: flex; flex-direction: column; overflow: hidden; }
.work-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.work-card h3 { font-size: 1.6rem; }
.work-card .link-arrow { margin-top: auto; padding-top: 8px; }
.work-badge {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 14px; background: var(--accent); color: #fff;
  font: 700 1.25rem/1 var(--font-display); letter-spacing: -.02em;
}
.chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; color: var(--text); }
.chips:empty { display: none; }

.cases { display: grid; gap: 24px; }
.case {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.case h3 { font-size: 1.5rem; }
.case-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--blue); color: #fff; }
.case-icon .icon { width: 30px; height: 30px; }
.case-result { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--blue-50); color: var(--ink); }
@media (max-width: 640px) { .case { grid-template-columns: 1fr; gap: 16px; } .case-icon { width: 52px; height: 52px; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ticks .icon { color: var(--blue); margin-top: .15em; width: 1.1em; height: 1.1em; }
.ticks strong { color: var(--ink); font-weight: 600; }
@media (max-width: 780px) { .ticks { grid-template-columns: 1fr; } }

/* Team */
.team-mini { gap: 20px; }
.person-mini {
  display: flex; align-items: center; gap: 20px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--muted); font-size: .95rem; line-height: 1.4;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--muted); }
.person-mini img { width: 88px; height: 88px; object-fit: cover; object-position: top; border-radius: 12px; }
.person-mini strong { display: block; color: var(--ink); font: 600 1.15rem/1.3 var(--font-display); margin-bottom: 2px; }

.team { display: grid; gap: 40px; }
.person { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 20px; box-shadow: var(--shadow); }
.person h2 { margin-bottom: 16px; }
.person .eyebrow { margin-bottom: .5em; }
.person .chips { margin-top: 20px; }
.person:nth-child(even) { grid-template-columns: 1fr 320px; }
.person:nth-child(even) picture { order: 2; }
@media (max-width: 760px) {
  .person, .person:nth-child(even) { grid-template-columns: 1fr; }
  .person:nth-child(even) picture { order: 0; }
  .person picture { max-width: 320px; }
}

/* Social */
.social { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgb(255 255 255 / .08); color: #fff; transition: background-color .2s ease, transform .2s ease;
}
.social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }
.social-dark a { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--muted); font-size: .975rem; }
.post-card .link-arrow { margin-top: auto; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 600; font-size: .78rem; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
  background:
    radial-gradient(50% 80% at 90% 0%, rgb(59 140 240 / .12), transparent 70%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero h1 { max-width: 20ch; }
.page-hero-center { text-align: center; padding-bottom: clamp(64px, 10vw, 120px); }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }

/* Post */
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: none; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 500; text-decoration: none; }
.byline { color: var(--muted); margin: 0; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-cta { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--dark); color: #c9d3e5; }
.post-cta h2 { color: #fff; font-size: 1.5rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35;
}
.post-nav a:hover { border-color: var(--blue); }
.post-nav span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.post-nav-next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: 1; text-align: left; } }

/* CTA band */
.cta { padding: 0 0 clamp(64px, 9vw, 112px); }
.section-alt + .cta { padding-top: clamp(64px, 9vw, 112px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 24px;
  background: radial-gradient(80% 140% at 100% 0%, #3b8cf0, transparent 60%), var(--blue);
  color: #dbe8fb; box-shadow: var(--shadow-lg);
}
.cta-inner > div { max-width: 600px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.1rem; }
.container.cta-inner { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside h2 { font-size: 1.2rem; }
.contact-aside .social { margin-top: 0; }
.contact-aside a[href^="mailto"] { word-break: break-all; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(9 89 169 / .12); }
.field [aria-invalid="true"] { border-color: #dc2626; }
.form-status { margin: 16px 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.is-success { color: #047857; }
.form-status.is-error { color: #b91c1c; }
.form-note { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.site-footer { background: var(--dark); color: #9fb0cc; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { margin-top: 20px; max-width: 42ch; }
.footer-heading { font: 600 .8125rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #c9d3e5; text-decoration: none; word-break: break-word; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #9fb0cc; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dash-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
