:root {
  --accent: #304692;
  --accent-light: color-mix(in srgb, var(--accent) 50%, #fff);
  --ink: #0d0f14;
  --ink-2: #161a22;
  --text: #1c2029;
  --muted: #5d6573;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(13, 15, 20, .04), 0 8px 24px rgba(13, 15, 20, .06);
  --shadow-lg: 0 24px 60px rgba(13, 15, 20, .14);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 48px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px var(--accent); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(13, 15, 20, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo img { height: 38px; width: auto; }
.logo-img + .logo-text { padding-left: 2px; }
.footer-logo img { height: auto; width: 230px; max-width: 100%; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-text { font: 700 1.12rem/1.1 var(--font-head); letter-spacing: -.01em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: rgba(255, 255, 255, .75); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(1000px 520px at 85% 10%, color-mix(in srgb, var(--accent-light) 55%, transparent), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%);
}
.hero.has-img::before {
  background: linear-gradient(100deg, rgba(13, 15, 20, .94) 15%, rgba(13, 15, 20, .55) 60%, rgba(13, 15, 20, .35)), var(--hero-img) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero.has-img::after { display: none; }
.hero-inner { padding: 120px 0 130px; max-width: 820px; margin-left: max(24px, calc((100% - 1200px) / 2)); }
.hero-inner.narrow, .container.narrow.hero-inner { margin-inline: auto; }
.hero-compact .hero-inner { padding: 80px 0 72px; }
.hero h1 { color: #fff; }
.hero .eyebrow, .stats .eyebrow { color: var(--accent-light); }
.hero-text { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .78); max-width: 620px; }
.hero-compact h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section + .section:not(.section-alt) { padding-top: 0; }
.section-alt + .section:not(.section-alt), .stats + .section:not(.section-alt), .hero + .section:not(.section-alt) { padding-top: clamp(72px, 9vw, 120px); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.text-heading { margin-bottom: 24px; }

.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 1.15rem; color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.img-left .split-media { order: -1; }
.split-media img, .media-placeholder { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: var(--accent-light); }
.media-placeholder .icon { width: 96px; height: 96px; opacity: .8; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-img { margin: -30px -30px 24px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .95rem; color: var(--accent); }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.stat strong { display: block; font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); letter-spacing: -.03em; color: #fff; }
.stat span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .62); font-size: .95rem; }
.stat:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 28px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 24px; font-size: 1.06rem; color: var(--ink); position: relative; padding-top: 34px; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -14px; left: -2px; font: 700 4.2rem/1 var(--font-head); color: var(--accent); }
.quote figcaption { margin-top: auto; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); font-size: .92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.lb { position: fixed; inset: 0; background: rgba(8, 9, 12, .92); display: grid; place-items: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lb img { max-height: 84vh; border-radius: 10px; }
.lb p { color: #fff; text-align: center; margin-top: 14px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ink), var(--ink-2)); display: grid; place-items: center; color: var(--accent-light); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img .icon { width: 56px; height: 56px; opacity: .7; }
.post-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.post-body p { color: var(--muted); margin-bottom: 0; }
.back-link { margin-top: 48px; }
.back-link a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* CTA */
.cta { padding: 0 0 clamp(72px, 9vw, 120px); }
.section-alt + .cta, .stats + .cta, .hero + .cta { padding-top: clamp(72px, 9vw, 120px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), var(--accent);
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 560px; font-size: 1.08rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); flex-shrink: 0; }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-weight: 500; font-size: .92rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.contact-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.notice.ok { background: #e7f7ee; color: #146c3c; }
.notice.err { background: #fdecec; color: #a12121; }
.map { margin-top: 56px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 0; }
.site-footer .muted { color: rgba(255, 255, 255, .55); margin-top: 18px; max-width: 360px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-family: var(--font-body); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 16px; margin-top: 20px; }
.social a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 24px 0; font-size: .88rem; color: rgba(255, 255, 255, .45); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .post-card, .gallery img { transition: none; }
}

/* Responsive */
@media (max-width: 1120px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 12px 24px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
}
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.img-left .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .container.narrow { width: calc(100% - 36px); }
  .hero-inner { padding: 84px 0 92px; margin-left: 18px; margin-right: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .stat:not(:first-child) { border-left: 0; padding-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
