:root {
  --navy: #0B1F3A;
  --blue: #63B0FE;
  --white: #FFFFFF;
  --grey-50: #F4F6F9;
  --grey-200: #DDE3EA;
  --text: #1A2433;
  --text-muted: #5B6778;
  --radius: 12px;
  --ease: 220ms cubic-bezier(.2, .6, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: #123a6b; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 6px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--ease), box-shadow var(--ease); }
.site-header.scrolled { border-bottom-color: var(--grey-200); box-shadow: 0 1px 12px rgba(11,31,58,.06); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 84px; transition: min-height var(--ease); }
.site-header.scrolled .bar { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.wordmark { font-weight: 600; letter-spacing: .14em; font-size: 1.05rem; }
.brand-dark, .brand-dark:hover { color: #fff; }
.nav-desktop ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: 8px; color: var(--navy); }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { background: var(--grey-50); }
.has-sub { position: relative; }
.sub { position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--grey-200); border-radius: 10px; box-shadow: 0 12px 32px rgba(11,31,58,.12); padding: 8px; display: none !important; flex-direction: column; gap: 2px !important; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: flex !important; }
.sub a { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--grey-200); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform var(--ease), opacity var(--ease); }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--grey-200); background: #fff; padding: 16px 24px 28px; max-height: calc(100vh - 72px); overflow: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-nav > nav > ul > li > a { display: block; padding: 14px 0; font-weight: 600; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--grey-200); }
.mobile-nav ul ul { margin: 0; padding-left: 16px; }
.mobile-nav ul ul a { display: block; padding: 10px 0; text-decoration: none; color: var(--text-muted); }
.mobile-nav .btn { width: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #12325e; color: #fff; box-shadow: 0 0 0 3px var(--blue); }
.btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--grey-50); color: var(--navy); border-color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { border-color: var(--blue); color: #fff; background: rgba(99,176,254,.15); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 1px; }
.more:hover { border-bottom-color: var(--navy); }

/* Type helpers */
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 18px; }
.eyebrow .num { color: var(--navy); border-bottom: 2px solid var(--blue); margin-right: 8px; padding-bottom: 2px; }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--text-muted); max-width: 640px; }
.mono-tag { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 8px; }
.inline-tag { display: inline-block; border: 1px solid var(--grey-200); padding: 4px 10px; border-radius: 6px; background: var(--grey-50); }
.num-big { font-size: 2.6rem; font-weight: 600; color: var(--blue); line-height: 1; margin: 0 0 16px; letter-spacing: -.03em; }
.num-big.small { font-size: 1.4rem; margin: 0; }
.small-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; }
.note { border-left: 3px solid var(--blue); padding: 10px 16px; background: var(--grey-50); border-radius: 0 8px 8px 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--grey-50); }
.page-hero { padding: 40px 0 clamp(48px, 7vw, 88px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.more-h { margin-top: 56px; }
.grid-4 .card-body { padding: 24px; }
.grid-4 .num-big { font-size: 2rem; }
.grid-4 h3 { font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; font-size: .9rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--grey-200); }
.breadcrumb a { color: var(--text-muted); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-visual { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--grey-200); box-shadow: 0 24px 60px rgba(11,31,58,.14); position: relative; aspect-ratio: 4 / 3; background: var(--navy); }
.hero-visual > svg, .hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fact-row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); }
.fact-row li { padding: 22px 16px; font-weight: 600; color: var(--navy); border-left: 1px solid var(--grey-200); }
.fact-row li:first-child { border-left: 0; padding-left: 0; }
.fact-row li::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; margin-right: 12px; }

/* Cards */
.card { border: 1px solid var(--grey-200); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,31,58,.1); border-color: var(--blue); }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.service-card .more { display: inline-block; margin-top: 8px; }
.tile { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; }
.alt .tile { background: #fff; }
.tile h3 { margin-bottom: 8px; }
.tile p:last-child, .card-body p:last-child { margin-bottom: 0; }
.sample-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy); }
.sample-media svg { width: 100%; height: 100%; }
.tag-corner { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; letter-spacing: .02em; }
.meta-line { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--text-muted); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--grey-200); }
.blueprint { width: 100%; height: 100%; }

/* Lists */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.points li { padding: 22px 0; border-top: 1px solid var(--grey-200); }
.points li:last-child { border-bottom: 1px solid var(--grey-200); }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 40px 0 28px; counter-reset: s; }
.steps li { border-top: 2px solid var(--navy); padding-top: 20px; }
.step-n { display: block; font-size: 2.4rem; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.steps-detail { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--grey-200); }
.checks li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.deliv-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deliv-grid li { display: flex; gap: 16px; align-items: baseline; padding: 20px; border: 1px solid var(--grey-200); border-radius: var(--radius); font-weight: 600; color: var(--navy); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.tag-list li { border: 1px solid var(--grey-200); background: #fff; padding: 8px 14px; border-radius: 8px; margin: 0; color: var(--navy); font-size: .85rem; }
.pull { margin: 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--blue); }
.pull p { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; color: var(--navy); font-weight: 600; letter-spacing: -.015em; margin: 0; }
.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--grey-200); }
.spec > div:last-child { border-bottom: 1px solid var(--grey-200); }
.spec dt { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding-top: 4px; }
.spec dd { margin: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--grey-200); }
.faq details:last-child { border-bottom: 1px solid var(--grey-200); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; color: var(--blue); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; margin: 0; color: var(--text-muted); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner { max-width: 760px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6E8; font-size: 1.15rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; max-width: 760px; }
.founder-photo img, .founder-photo svg { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; }

/* Gallery / lightbox */
.gallery { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thumb { all: unset; display: block; cursor: zoom-in; width: 100%; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow var(--ease), border-color var(--ease); }
.thumb:hover, .thumb:focus-visible { border-color: var(--blue); box-shadow: 0 12px 28px rgba(11,31,58,.12); }
.thumb svg { aspect-ratio: 4 / 3; }
.thumb-cap { display: block; padding: 10px 14px; font-size: .85rem; color: var(--text-muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(960px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(11,31,58,.82); }
.lb-body { background: var(--navy); border-radius: 12px; overflow: hidden; }
.lb-body svg { width: 100%; height: auto; max-height: 82vh; }
.lb-close { position: absolute; right: 10px; top: 10px; z-index: 2; background: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--navy); }

/* Form */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form .field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.form label, .form legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.req, .opt { font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; color: var(--text); padding: 13px 14px; border: 1px solid #9AA6B6; border-radius: 10px; background: #fff; transition: border-color var(--ease), box-shadow var(--ease); }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--blue); }
.form [aria-invalid="true"] { border-color: #B42318; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.radio { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; margin-bottom: 8px !important; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--navy); }
.err { color: #B42318; font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop { border: 2px dashed #9AA6B6; border-radius: 12px; padding: 28px; text-align: center; background: var(--grey-50); transition: border-color var(--ease), background var(--ease); }
.drop.over { border-color: var(--blue); background: #EAF4FF; }
.drop p { margin: 0 0 6px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; }
.filelist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--grey-200); border-radius: 8px; margin-bottom: 8px; font-size: .92rem; }
.filelist button { background: none; border: 0; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.alert { border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; }
.alert-error { background: #FEF3F2; border: 1px solid #F4B4AE; color: #7A271A; }
.alert-ok { background: #EAF4FF; border: 1px solid var(--blue); }
.alert[hidden], .err[hidden] { display: none; }
.alert-ok h2 { font-size: 1.6rem; }
.contact-side { display: grid; gap: 20px; }
.contact-side address { font-style: normal; }
.next { margin: 0; padding-left: 20px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D6E8; padding: 72px 0 32px; }
.site-footer a { color: #fff; text-decoration-color: rgba(99,176,254,.6); }
.site-footer a:hover { color: var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer address { font-style: normal; }
.footer-brand p { margin-top: 18px; }
.footer-note { font-size: .92rem; }
.social { display: inline-flex; margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a + a { margin-left: 18px; }

/* Motion */
.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 250ms ease, transform 250ms ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-init { opacity: 1; transform: none; }
  .hero-video { display: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .nav-desktop, .bar-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .deliv-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid-3, .grid-4, .deliv-grid, .gallery, .steps, .steps-detail, .row2, .footer-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .fact-row li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact-row li:nth-child(n+3) { border-top: 1px solid var(--grey-200); }
  .founder { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .btn-row .btn { width: 100%; }
  .bar { min-height: 68px; }
}
.service-card .card-body { display: flex; flex-direction: column; height: 100%; }
.service-card .more { margin-top: auto; align-self: flex-start; }
.service-card .card-body p.muted { margin-bottom: 20px; }
