:root {
  --ink: #17243a;
  --ink-soft: #33465d;
  --muted: #63738a;
  --blue: #295ce5;
  --blue-deep: #1c4ac5;
  --blue-soft: #e9efff;
  --line: #dce4ef;
  --surface: #f6f8fb;
  --surface-blue: #eef3fa;
  --white: #fff;
  --header-offset: 106px;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(27, 47, 74, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
p { line-height: 1.75; }
section[id], main[id] { scroll-margin-top: var(--header-offset); }
::selection { background: #ccd9ff; color: var(--ink); }
:focus-visible { outline: 3px solid #82a4fa; outline-offset: 4px; }
.container { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -80px; padding: 12px 18px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* A carefully sized header. The logo SVG is tightly cropped, not an enormous padded PNG. */
.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(210, 220, 233, .85); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #233c62, #6181be); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 17px; flex: 0 0 auto; min-width: 0; }
.brand-logo { display: block; width: 198px; height: auto; flex: none; }
.brand-divider { width: 1px; height: 34px; background: #dbe2eb; flex: none; }
.brand-label { color: var(--ink-soft); font-size: 13px; letter-spacing: .015em; font-weight: 650; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; justify-content: flex-end; }
.nav-links > a:not(.btn) { color: #485871; font-size: 14px; font-weight: 600; transition: color .18s ease; white-space: nowrap; }
.nav-links > a:not(.btn):hover, .nav-links > a:not(.btn)[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; background: #f3f6fa; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 23px; height: 23px; }

/* Buttons and shared section typography */
.btn { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 13px; border: 1px solid transparent; font-weight: 700; font-size: 14px; line-height: 1.3; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn svg, .text-link svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 8px 24px rgba(41,92,229,.17); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 10px 28px rgba(41,92,229,.21); }
.btn-secondary { border-color: var(--line); background: white; color: var(--ink); }
.btn-secondary:hover { background: #f8faff; border-color: #aebeda; }
.btn-small { min-height: 42px; padding: 10px 17px; border-radius: 11px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.5; color: var(--blue); letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--blue); border-radius: 4px; }
.section-heading h2 { max-width: 830px; margin-top: 16px; font-size: clamp(32px,3.6vw,47px); line-height: 1.16; letter-spacing: -.043em; font-weight: 740; }
.section-heading > p { max-width: 670px; color: var(--muted); margin-top: 16px; font-size: 17px; }
.section-pad { padding: 94px 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 750; font-size: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: light, legible and no black box. */
.hero { background: radial-gradient(ellipse 52% 75% at 92% 3%, rgba(225,235,249,.72), rgba(255,255,255,0) 100%), white; padding: 67px 0 79px; }
.hero-grid { display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: clamp(42px, 5vw, 85px); }
.hero h1 { max-width: 660px; margin-top: 23px; font-size: clamp(43px, 4.6vw, 67px); line-height: 1.115; letter-spacing: -.06em; font-weight: 755; }
.hero h1 .accent { color: var(--blue); }
.hero-copy { max-width: 590px; font-size: 17px; color: #5e6e82; margin-top: 25px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e2e9f1; background: #f9fbfd; border-radius: 999px; color: #54657c; font-size: 12px; font-weight: 650; }
.tag .tiny-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b8fe8; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 22px -16px -18px 28px; border: 1px solid #dae4f1; border-radius: 30px; background: #f2f6fb; }
.system-panel { position: relative; overflow: hidden; border: 1px solid #d7e1ed; border-radius: 27px; background: linear-gradient(150deg, #f9fbfe 0%, #e9eff7 100%); padding: 25px 26px; min-height: 428px; box-shadow: var(--shadow); }
.panel-top, .panel-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.panel-top { padding-bottom: 18px; border-bottom: 1px solid #dbe4ee; font-size: 11px; font-weight: 750; letter-spacing: .09em; color: #667893; text-transform: uppercase; }
.panel-dots { display: flex; gap: 5px; }
.panel-dots span { width: 7px; height: 7px; background: #b0bfd2; border-radius: 50%; }
.panel-dots span:first-child { background: #6687c9; }
.panel-mid { display: flex; flex-direction: column; align-items: center; padding: 27px 6px 19px; }
.core-node { display: flex; gap: 13px; align-items: center; background: var(--ink); padding: 14px 22px 14px 16px; border-radius: 16px; color: white; box-shadow: 0 12px 30px rgba(27,46,70,.16); }
.core-node img { width: 38px; height: 38px; filter: brightness(0) invert(1); }
.core-node strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.015em; }
.core-node small { display: block; margin-top: 3px; color: #d0daea; font-size: 10px; }
.panel-stem { height: 26px; width: 2px; background: #b8c9df; }
.node-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; }
.node { display: flex; align-items: center; gap: 11px; min-height: 66px; border: 1px solid #d5e0ed; border-radius: 14px; background: rgba(255,255,255,.91); padding: 12px; box-shadow: 0 3px 12px rgba(38,58,91,.035); }
.node-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #eaf1ff; color: var(--blue); }
.node-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node strong { display: block; font-size: 13px; line-height: 1.2; }
.node span:last-child { display: block; font-size: 10px; line-height: 1.5; margin-top: 3px; color: #728299; }
.panel-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid #dbe4ee; font-size: 11px; color: #657791; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status::before { content: ""; display: block; width: 6px; height: 6px; background: #3da187; border-radius: 50%; }

/* Service overview */
.services { background: var(--surface); }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-top: 39px; }
.service-card { display: flex; flex-direction: column; min-height: 325px; padding: 27px 23px 25px; border: 1px solid #e1e7f0; border-radius: 20px; background: white; box-shadow: 0 10px 24px rgba(28,48,75,.035); transition: transform .23s, box-shadow .23s, border-color .23s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(30,54,91,.08); border-color: #bfd0ed; }
.service-card .service-symbol { display: grid; place-items: center; width: 50px; height: 50px; background: #edf3ff; color: var(--blue); border-radius: 14px; }
.service-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-number { margin-top: 22px; font-size: 11px; letter-spacing: .15em; color: #98a6bb; font-weight: 800; }
.service-card h3 { margin-top: 10px; font-size: 20px; line-height: 1.27; letter-spacing: -.03em; }
.service-card p { margin: 12px 0 22px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.service-card .text-link { margin-top: auto; }

/* Large expertise rows */
.expertise { padding: 85px 0; }
.expertise:nth-of-type(even) { background: #f9fbfd; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 110px); align-items: center; }
.expertise-grid.reverse .expertise-content { order: 2; }
.expertise-grid.reverse .expertise-visual { order: 1; }
.expertise-content h2 { max-width: 650px; margin-top: 17px; font-size: clamp(30px,3.4vw,44px); line-height: 1.18; letter-spacing: -.048em; }
.expertise-content > p { margin-top: 18px; max-width: 580px; font-size: 16px; color: var(--muted); }
.check-list { margin: 27px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: #43536b; font-size: 14px; line-height: 1.55; }
.check-icon { display: grid; place-items: center; flex: none; margin-top: 1px; width: 21px; height: 21px; border-radius: 50%; background: #e7efff; color: var(--blue); }
.check-icon svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 30px; }
.chip { font-size: 12px; font-weight: 650; padding: 8px 12px; border-radius: 999px; color: #51627b; border: 1px solid var(--line); background: #fff; }
.expertise-visual { position: relative; background: linear-gradient(145deg, #f1f5fa, #eaf1f9); border: 1px solid #dce5f0; min-height: 360px; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.visual-label { position: absolute; top: 24px; left: 29px; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: #72839c; }
.visual-card { background: white; border: 1px solid #dce6f2; border-radius: 15px; padding: 16px 19px; box-shadow: 0 5px 18px rgba(36,58,89,.035); }
.visual-card strong { font-size: 15px; }
.visual-card small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: #7a899c; }
.visual-flow { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 12px 0; }
.visual-flow > span { display: inline-flex; align-items: center; gap: 7px; color: #6a819d; font-size: 11px; }
.visual-flow > span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.visual-grid .visual-card { min-width: 0; }
.stacked { display: grid; gap: 12px; }
.stage { display: flex; align-items: center; gap: 16px; }
.stage b { display: grid; place-items: center; background: #eaf0fc; color: var(--blue); width: 44px; height: 44px; flex: none; border-radius: 12px; font-size: 14px; }
.stage strong { display: block; font-size: 14px; }
.stage small { color: #6e8098; display: block; margin-top: 4px; font-size: 12px; }

/* References, about, contact */
.references { padding: 88px 0; background: var(--surface); }
.reference-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 35px; }
.reference { display: grid; place-items: center; padding: 19px; min-height: 100px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; font-size: 15px; font-weight: 720; color: #506077; }
.about { padding: 94px 0; }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 88px; align-items: center; }
.about-grid h2 { font-size: clamp(32px,3.3vw,44px); letter-spacing: -.045em; line-height: 1.2; margin-top: 15px; }
.about-grid p { font-size: 16px; color: var(--muted); }
.about-grid p + p { margin-top: 15px; }
.about-note { display: flex; align-items: center; gap: 18px; border-left: 3px solid var(--blue); background: #f5f8fd; padding: 19px 23px; border-radius: 0 14px 14px 0; margin-top: 23px; }
.about-note strong { display: block; white-space: nowrap; font-size: 24px; letter-spacing: -.03em; }
.about-note span { font-size: 13px; color: #65768c; line-height: 1.5; }
.contact { padding: 95px 0; background: #f3f6fa; }
.contact-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 55px; align-items: start; }
.contact h2 { margin-top: 15px; font-size: clamp(32px,3.5vw,47px); letter-spacing: -.05em; line-height: 1.17; }
.contact-intro { color: var(--muted); margin-top: 17px; font-size: 16px; }
.contact-methods { margin-top: 29px; display: grid; gap: 17px; }
.contact-methods a, .contact-methods > div { display: flex; align-items: flex-start; gap: 13px; }
.contact-methods .method-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: #e5ecfb; color: var(--blue); }
.method-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-methods strong { display: block; font-size: 13px; color: var(--ink); }
.contact-methods small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.contact-form { background: #fff; padding: 30px; border: 1px solid #dce5f1; box-shadow: 0 14px 38px rgba(33,54,82,.045); border-radius: 22px; }
.contact-form h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.03em; }
.contact-form > p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 680; color: #43536a; }
.field input, .field textarea { width: 100%; min-height: 45px; padding: 11px 13px; border-radius: 10px; outline: none; border: 1px solid #d5deea; background: #fbfcfe; color: var(--ink); font-size: 14px; transition: box-shadow .2s, border-color .2s; }
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #7396eb; box-shadow: 0 0 0 3px #dce7ff; }
.form-hint { font-size: 12px; color: #7a899c; margin-top: 11px; line-height: 1.5; }

/* Footer and separate legal documents */
.site-footer { background: #172439; color: #eff3f9; padding: 51px 0 21px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-logo { display: block; width: 155px; filter: brightness(0) invert(1); }
.site-footer p { max-width: 340px; margin-top: 15px; color: #b9c6d8; font-size: 13px; line-height: 1.7; }
.site-footer h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 5px 0 16px; }
.footer-links { display: grid; align-content: start; gap: 11px; }
.footer-links a, .footer-links span { display: block; color: #c5d0df; font-size: 13px; line-height: 1.5; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom { margin-top: 39px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid #3c4960; color: #aebcd0; font-size: 12px; }
.legal-main { background: #f8fafc; min-height: 64vh; padding: 64px 0 100px; }
.legal-content { max-width: 795px; }
.legal-content h1 { margin: 16px 0 18px; font-size: clamp(35px,4vw,49px); letter-spacing: -.045em; }
.legal-content h2 { margin: 34px 0 11px; font-size: 20px; }
.legal-content p, .legal-content li { color: #53637a; font-size: 15px; line-height: 1.8; }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { margin-top: 12px; padding-left: 23px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-content .back-link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 700; }
.legal-highlight { padding: 19px 23px; border-radius: 14px; background: white; border: 1px solid var(--line); }

/* Reveal only when JavaScript is successfully running; accessibility first. */
.js-animations .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .56s cubic-bezier(.22,.61,.36,1), transform .56s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .js-animations .reveal:not(.is-visible) { opacity:1; transform: none; } }

@media (max-width: 1100px) {
  .brand-logo { width: 168px; }
  .header-inner { gap: 16px; }
  .brand { gap: 11px; }
  .brand-label { font-size: 12px; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { font-size: 13px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card { min-height: 260px; }
  .reference-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 870px) {
  .brand-divider, .brand-label { display:none; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 177px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; border-bottom: 1px solid var(--line); padding: 17px 28px 24px; box-shadow: 0 20px 30px rgba(23,36,57,.07); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 12px 4px; }
  .nav-links > .btn { margin-top: 8px; }
  .menu-toggle { display: inline-flex; }
  .site-header[data-open="true"] .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { max-width: 750px; }
  .hero-visual { max-width: 700px; width: 100%; }
  .system-panel { min-height: 390px; }
  .expertise-grid, .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .expertise-grid.reverse .expertise-content, .expertise-grid.reverse .expertise-visual { order: initial; }
  .expertise-visual { min-height: 300px; }
  .section-pad, .expertise, .about, .references, .contact { padding: 72px 0; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 36px, 1180px); }
  .brand-logo { width: 155px; }
  .header-inner { min-height: 68px; }
  .hero { padding: 43px 0 60px; }
  .hero h1 { font-size: clamp(40px,9.3vw,52px); }
  .hero-copy { font-size: 15.5px; margin-top: 21px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { min-height: 46px; }
  .hero-tags { margin-top: 23px; }
  .hero-visual::before { inset: 15px -8px -10px 14px; }
  .system-panel { min-height: 345px; padding: 17px; border-radius: 21px; }
  .panel-mid { padding-top: 19px; }
  .node { min-height: 66px; padding: 9px; gap: 7px; }
  .node-icon { width: 28px; height: 28px; }
  .node-icon svg { width: 16px; height: 16px; }
  .node strong { font-size: 11px; }
  .node span:last-child { font-size: 9px; }
  .panel-bottom { flex-wrap: wrap; }
  .section-pad, .expertise, .about, .references, .contact { padding: 61px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 25px; }
  .service-card { min-height: 240px; padding: 22px; }
  .service-card .service-number { margin-top: 13px; }
  .section-heading h2 { font-size: clamp(30px,7.5vw,39px); }
  .section-heading > p { font-size: 15px; }
  .expertise-content h2 { font-size: 32px; }
  .expertise-visual { min-height: 295px; padding: 20px; }
  .visual-label { left: 20px; top: 15px; }
  .reference-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reference { font-size: 12px; min-height: 80px; }
  .about-note { flex-direction: column; align-items: start; gap: 5px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 21px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: start; }
  .legal-main { padding: 45px 0 80px; }
}

/* Direct PHP contact form: status feedback, spam honeypot and pending button. */
.honeypot-field { position: absolute !important; width: 1px !important; height: 1px !important; left: -9999px !important; overflow: hidden !important; }
.contact-form .form-status { margin: 13px 0 4px; padding: 13px 15px; border-radius: 10px; font-size: 13px; line-height: 1.55; font-weight: 600; }
.contact-form .form-status[hidden] { display: none; }
.contact-form .form-status.is-success { background: #edf8f1; border: 1px solid #b6e5c5; color: #196238; }
.contact-form .form-status.is-error { background: #fff3f0; border: 1px solid #f3c8bd; color: #9a3322; }
.contact-form button[type="submit"]:disabled { cursor: wait; opacity: .68; transform: none; }
.contact-form .form-hint a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
