:root {

  --bg: #ffffff;
  --bg-subtle: #f5f7f9;
  --bg-alt: #f2f4f7;
  --ink: #0f151c;
  --ink-strong: #232e3b;
  --body: #495260;
  --muted: #7c848f;
  --line: #e2e6eb;
  --line-soft: #eceff3;

  --accent: #3a4d63;
  --accent-strong: #2a3a4d;
  --accent-tint: #eef1f4;

  --footer-bg: #0d1219;
  --footer-ink: #9aa3ae;
  --footer-head: #e7ebf0;
  --footer-line: rgba(255, 255, 255, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono",
    Menlo, Consolas, monospace;

  --container: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05);
  --shadow-md: 0 12px 32px rgba(20, 24, 31, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.021em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { color: var(--body); }
strong { color: var(--ink-strong); font-weight: 600; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 640; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand-accent { color: var(--muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  color: var(--ink-strong); font-size: 0.94rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover { background: var(--bg-alt); }
.site-nav a.active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 550; font-size: 0.96rem; padding: 0.72rem 1.35rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.center { justify-content: center; }

.hero {
  background:
    radial-gradient(900px 420px at 70% -20%, var(--accent-tint), transparent 65%),
    var(--bg);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { max-width: 720px; }
.hero h1 { margin-top: 1.2rem; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--ink-strong); margin-top: 1.35rem; max-width: 58ch; font-weight: 400; }
.hero-lede { color: #47515f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }

.standards {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
}
.standards .label { font-size: 0.8rem; color: var(--muted); }
.standards ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0; }
.standards li { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-strong); }

.page-header {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-subtle);
}
.page-header h1 { margin-top: 1rem; max-width: 20ch; }
.page-header .lede { margin-top: 1.1rem; font-size: 1.15rem; color: #47515f; max-width: 60ch; }

.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-subtle); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 620px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 0.9rem; font-size: 1.08rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .grid-2x2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: #d4dae4; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; color: var(--body); }

.checklist { list-style: none; padding: 0; margin-top: 1.15rem; display: grid; gap: 0.65rem; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--body); font-size: 0.97rem; }
.checklist li::before {
  content: ""; flex: none; margin-top: 0.42rem; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/11px no-repeat;
}

.service-rows { display: grid; }
.service-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row-head .card-icon { margin-bottom: 1.1rem; }
.service-row-head h3 { margin-bottom: 0.6rem; }
.service-row-head p { font-size: 1rem; max-width: 54ch; }
.service-row .checklist { margin-top: 0.4rem; }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 1.1rem; }
}

.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.approach-list { display: grid; gap: 1.5rem; }
.approach-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.approach-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); padding-top: 0.15rem; }
.approach-item h3 { margin-bottom: 0.3rem; }
.approach-item p { font-size: 0.97rem; }

.sector { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline; }
.sector:first-child { border-top: 0; }
.sector .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.sector h3 { margin-bottom: 0.3rem; }
.sector p { font-size: 0.96rem; }

.prose { max-width: 66ch; }
.prose .lead { font-size: 1.2rem; color: var(--ink-strong); font-weight: 400; }
.prose p + p { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; }
.prose ul { margin: 1rem 0 1rem 1.15rem; color: var(--body); }
.prose li { margin-bottom: 0.5rem; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.25rem); max-width: 600px; }
.contact-card dl { display: grid; }
.contact-row { display: flex; gap: 1rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); width: 116px; flex: none; }
.contact-row dd { color: var(--ink); }
.contact-row a { color: var(--accent); font-weight: 550; }
.contact-row a:hover { text-decoration: underline; }
.note { margin-top: 1.35rem; color: var(--muted); font-size: 0.92rem; max-width: 600px; }

.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: clamp(2.75rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.75rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.08rem; font-weight: 640; }
.footer-brand .brand-accent { color: var(--footer-ink); }
.footer-tagline { margin-top: 0.7rem; font-size: 0.9rem; color: var(--footer-ink); max-width: 34ch; }
.footer-col h3 { color: var(--footer-head); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--footer-ink); padding: 0.28rem 0; font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-frameworks { font-family: var(--font-mono); font-size: 0.82rem; color: var(--footer-ink); line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 1.35rem 0 2rem; }
.footer-bottom p { color: var(--muted); font-size: 0.84rem; }

.error-page { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page .code { font-family: var(--font-mono); font-size: 4.5rem; color: var(--accent); letter-spacing: -0.03em; }
.error-page h1 { margin-top: 0.75rem; }
.error-page p { margin: 0.9rem auto 1.75rem; max-width: 42ch; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: 0.45rem 0.55rem; font-size: 0.9rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-accent { display: none; }
  .contact-row { flex-direction: column; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
