:root {
  --navy: #0b2a3c;
  --navy-2: #12384f;
  --navy-3: #081f2d;
  --teal: #0e8f8a;
  --teal-dark: #0a6f6b;
  --teal-soft: #e3f4f2;
  --mint: #5fe0d3;
  --ink: #142430;
  --muted: #566774;
  --line: #dde6ea;
  --bg: #ffffff;
  --bg-alt: #f4f8f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 60, .08);
  --c1: #0e8f8a; --c2: #2bb3a8; --c3: #4f8fd6; --c4: #7b6fd9; --c5: #e0a03a; --c6: #8aa1ad;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42em; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 44em; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; background: var(--teal); color: #fff; text-decoration: none; border: 2px solid var(--teal); cursor: pointer; font: inherit; font-weight: 600; transition: background .2s, border-color .2s, transform .2s, color .2s; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: .55em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }
.center .actions { justify-content: center; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }

/* Header + nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(11,42,60,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; color: var(--teal); }
.brand-mark { width: 36px; height: 36px; }
.brand-text { font-family: var(--display); font-size: 1.2rem; color: var(--navy); font-weight: 600; white-space: nowrap; }
.brand-text strong { font-weight: 800; }
.brand-light { color: var(--c2); }
.brand-light .brand-text { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.nav li { position: relative; }
.nav ul a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5em .75em; border-radius: 8px; }
.nav ul a:hover, .nav ul a.active { color: var(--teal-dark); }
.nav ul a.active { background: var(--teal-soft); }
.nav ul a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav .sub a { display: block; padding: .6em .8em; }
.nav .sub a:hover { background: var(--bg-alt); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav ul a { display: flex; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a.active { background: none; }
  .nav ul a svg { display: none; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav .sub li:first-child { display: none; }
  .nav > .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); }

/* Page hero (inner pages) */
.page-hero { background: radial-gradient(900px 400px at 90% -20%, var(--teal-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg-alt)); padding: 48px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20em; }
@media (max-width: 600px) { .page-hero { padding: 28px 0 44px; } }

/* Home hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--teal-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg-alt)); padding: 80px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(11,42,60,.25); }
.hero-card-head { font-size: .85rem; color: #a9c3cf; display: flex; align-items: center; gap: .6em; margin-bottom: 18px; letter-spacing: .04em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee0b4; }
.dot-live { box-shadow: 0 0 0 0 rgba(62,224,180,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62,224,180,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,180,0); } }
.hero-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-metrics li { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.m-val { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--mint); flex: 0 0 4.6ch; }
.m-lbl { color: #d4e3ea; font-size: .95rem; }
.pulse { color: var(--mint); width: 100%; height: 50px; margin-top: 10px; }
.pulse path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease-in-out infinite; }
@keyframes draw { 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }
@media (max-width: 900px) { .hero { padding: 48px 0 60px; } .hero-inner { grid-template-columns: 1fr; gap: 36px; } }

/* Stats band */
.stats { background: var(--navy); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--mint); }
.stat-lbl { color: #b8ced8; font-size: .92rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0 88px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg, .more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .section { padding: 60px 0; } .section-tight { padding: 40px 0 60px; } .split { grid-template-columns: 1fr; gap: 28px; } }

/* Prose */
.prose { font-size: 1.05rem; }
.prose > p, .prose li { color: #33434f; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--teal); background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--navy); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--navy); font-weight: 600; }
.prose .lede { font-size: 1.2rem; color: var(--navy); line-height: 1.6; }

.callout { margin: 1.8em 0; padding: 1.3em 1.5em; background: var(--teal-soft); border-radius: 14px; border: 1px solid #c4e8e3; }
.callout strong:first-child { display: block; font-family: var(--display); color: var(--teal-dark); margin-bottom: .3em; }
.callout p { margin: 0; color: var(--navy) !important; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.8em 0; }
.key-facts > div { background: var(--navy); color: #d4e3ea; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.key-facts strong { font-family: var(--display); font-size: 1.7rem; color: var(--mint); line-height: 1.1; }
.key-facts span { font-size: .88rem; }

.checklist { list-style: none; padding: 0 !important; margin: 1.2em 0 0; display: grid; gap: .6em; }
.checklist li { position: relative; padding-left: 1.9em; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-dark); font-size: .95rem; }
a:hover .more svg { transform: translateX(3px); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon svg, .contact-list svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-num { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: .9rem; letter-spacing: .08em; margin-bottom: 10px; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; } }

/* Feature rows (solution pages) */
.feature-list { display: grid; gap: 20px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature .icon { margin: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

/* Spec panel */
.spec { background: var(--navy); color: #d4e3ea; border-radius: 20px; padding: 28px; position: sticky; top: 96px; }
.spec h3 { color: #fff; }
.spec-big { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.05rem; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec-big span { font-size: 2.6rem; font-weight: 800; color: var(--mint); margin-right: .1em; }
.spec dl { margin: 0; }
.spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .95rem; }
.spec dl div:last-child { border-bottom: 0; }
.spec dd { margin: 0; font-weight: 700; color: #fff; }
.spec .btn { margin-top: 18px; }
.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; gap: 32px; } .spec { position: static; } }

/* Tabs (home) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 600; font-size: .95rem; padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: all .2s; }
.tabs button:hover { border-color: var(--teal); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; background: var(--bg-alt); border-radius: 20px; padding: 40px; animation: fade .35s ease; }
.panel[hidden] { display: none; }
.panel-copy p { color: var(--muted); font-size: 1.05rem; }
.panel-spec { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); align-self: start; }
.panel-spec .spec-big { color: var(--navy); border-color: var(--line); }
.panel-spec .spec-big span { color: var(--teal); }
.panel-spec dl { margin: 0 0 16px; }
.panel-spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.panel-spec dt { color: var(--muted); }
.panel-spec dd { margin: 0; font-weight: 700; color: var(--navy); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* Dark section + allocation */
.section-dark { background: linear-gradient(180deg, var(--navy), var(--navy-3)); color: #d4e3ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--mint); }
.section-dark .section-sub, .section-dark p { color: #a9c3cf; }
.alloc { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 32px; margin-bottom: 32px; }
.alloc-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 28px; }
.alloc-bar span { width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.alloc.in-view .alloc-bar span, .no-js .alloc-bar span { width: var(--w); }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }
.c4 { background: var(--c4); } .c5 { background: var(--c5); } .c6 { background: var(--c6); }
.alloc-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.alloc-table th, .alloc-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.alloc-table th { color: #8fb0bf; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.alloc-table th:not(:first-child), .alloc-table td:not(:first-child) { text-align: right; width: 90px; font-variant-numeric: tabular-nums; }
.alloc-table tfoot td { color: #fff; font-weight: 700; border-bottom: 0; padding-top: 16px; }
.alloc-table a { color: #d4e3ea; text-decoration: none; }
.alloc-table a:hover { color: var(--mint); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: middle; }
.card-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.card-dark p { color: #a9c3cf; }
.card-dark:hover { box-shadow: none; border-color: rgba(95,224,211,.4); }
@media (max-width: 600px) { .alloc { padding: 20px 16px; } .alloc-table th:not(:first-child), .alloc-table td:not(:first-child) { width: 56px; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--c3)); opacity: .35; }
.timeline li { position: relative; }
.t-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--mint); font-family: var(--display); font-weight: 800; margin-bottom: 18px; position: relative; box-shadow: 0 0 0 6px var(--bg); }
.section-alt .t-step { box-shadow: 0 0 0 6px var(--bg-alt); }
.timeline p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) {
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .timeline::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--c3)); }
  .timeline li { padding-left: 68px; min-height: 60px; }
  .t-step { position: absolute; left: 0; top: 0; margin: 0; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-family: var(--display); font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Tags & chips */
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-soft); padding: .3em .75em; border-radius: 999px; }
.tag-muted { background: var(--bg-alt); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 24px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-link { display: flex; flex-direction: column; gap: 12px; padding: 26px; height: 100%; text-decoration: none; color: inherit; }
.post-card-link .tag { align-self: flex-start; }
.post-card h3 { margin: 0; font-size: 1.12rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.post-meta { font-size: .85rem; color: var(--muted); }
.featured-post { display: grid; gap: 14px; padding: 40px; border-radius: 20px; text-decoration: none; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #d4e3ea; }
.featured-post .tag { justify-self: start; background: rgba(95,224,211,.15); color: var(--mint); }
.featured-post h2 { color: #fff; margin: 0; max-width: 24em; }
.featured-post p { margin: 0; max-width: 44em; color: #b8ced8; }
.featured-post .post-meta { color: #8fb0bf; }
.featured-post:hover h2 { text-decoration: underline; text-decoration-color: var(--mint); text-underline-offset: 6px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } .featured-post { padding: 26px; } }

.post-hero { background: linear-gradient(180deg, #fff, var(--bg-alt)); padding: 40px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 16px; }
.post-body { padding-bottom: 72px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4em; }
.sources { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.2rem; margin-top: 0; }
.sources ol { font-size: .92rem; }
.sources li { color: var(--muted); overflow-wrap: anywhere; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card.is-draft { border-style: dashed; border-color: var(--c5); }
.project-card-link { display: flex; flex-direction: column; gap: 14px; padding: 30px; height: 100%; text-decoration: none; color: inherit; }
.project-card h3 { margin: 0; font-size: 1.3rem; }
.project-card p { margin: 0; color: var(--muted); }
.project-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status { font-size: .8rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c6); }
.status-in-progress::before { background: var(--c5); }
.status-completed::before { background: var(--teal); }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 0; font-size: .9rem; }
.project-facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.project-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.project-card .more { margin-top: auto; }
.project-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.project-aside { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--bg-alt); }
.fact-list { margin: 0 0 20px; }
.fact-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact-list dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.draft-banner { background: #fff4df; color: #7a4c00; border-bottom: 1px solid #f0d49a; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr; } .project-layout { grid-template-columns: 1fr; gap: 32px; } .project-aside { position: static; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--navy)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { color: #cfe7ea; margin: 0; max-width: 40em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { flex: none; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field.invalid input, .field.invalid textarea { border-color: #c94a4a; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 600px) { .contact-form { padding: 20px; } .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-3); color: #a9c3cf; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.footer-grid a { color: #c4d6de; text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-tag { margin: 16px 0 12px; max-width: 26em; font-size: .95rem; }
.footer-legal { font-size: .85rem; color: #7f9aa7; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .85rem; }
.footer-bottom a { color: #c4d6de; text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .alloc-bar span { width: var(--w); }
}

/* Language switch */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang svg { width: 16px; height: 16px; margin: 0 4px 0 6px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.lang a { font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .3em .65em; border-radius: 999px; }
.lang a:hover { color: var(--teal-dark); }
.lang a.active { background: var(--navy); color: #fff; }
@media (max-width: 1020px) { .nav > .lang { align-self: flex-start; margin-top: 16px; } }
