:root {
  --navy: #0b1c31;
  --ink: #15273b;
  --muted: #5a6979;
  --line: #dce2e7;
  --paper: #f5f7f8;
  --accent: #e96537;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid #31445a; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.06em; }
.brand-name em { color: #ff906a; font-style: normal; }
.brand-subtitle { color: #c9d7e3; font-size: 14px; font-weight: 650; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav nav a { color: #d0d9e2; font-size: 14px; font-weight: 650; text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: #fff; }
.nav nav a:last-child { padding: 9px 15px; border: 1px solid #627184; border-radius: 5px; color: #fff; }

.hero { position: relative; overflow: hidden; padding: 68px 0 72px; background: var(--navy); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none; background: radial-gradient(circle at 85% 12%, #244864 0, transparent 38%), linear-gradient(110deg, transparent 42%, #102a42 100%); opacity: .55; }
.hero > .wrap { position: relative; }
.hero-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 3.5vw, 54px); }
.eyebrow, .section-label, .scene-heading, .tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin: 0 0 23px; color: #9fbbd1; }
.eyebrow::before { content: ""; display: inline-block; width: 29px; height: 2px; margin: 0 12px 4px 0; background: var(--accent); }
.eyebrow span { color: var(--accent); margin-inline: 3px; }
h1 { margin: 0; line-height: 1; letter-spacing: -.065em; }
.hero-art { margin: 0 0 18px; color: #ff906a; font: 700 clamp(13.8px, 1.725vw, 20.7px)/1.05 var(--mono); letter-spacing: -.02em; }
.hero-service { display: block; max-width: none; color: #fff; font: 750 clamp(38px, 4vw, 56px)/1.05 var(--sans); letter-spacing: -.06em; }
h1 em { color: #ff906a; font-style: normal; }
.lead { max-width: 500px; margin: 25px 0 31px; color: #c9d7e3; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 47px; padding: 11px 18px; border-radius: 5px; font-size: 14px; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.btn.primary:hover { background: #fa784b; }
.btn.secondary { gap: 11px; color: #fff; background: transparent; border: 1px solid #8195a8; }
.btn.secondary:hover { background: #18334d; border-color: #c9d7e3; }
.scene-panel { position: relative; left: 20px; }
.scene-heading { margin: 0 0 15px; color: #fff; font-size: 14px; }
.scene-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.scene { min-width: 0; margin: 0; background: #0e243a; }
.scene-photo { aspect-ratio: 334 / 1317; background-image: url("assets/operations-montage.jpg"); background-size: 700% auto; background-repeat: no-repeat; }
.scene-dispatch { background-position: 0% 50%; }
.scene-defence { background-position: 25% 50%; }
.scene-rail { background-position: 50% 50%; }
.scene-maritime { background-position: 75% 50%; }
.scene-airport { background-position: 100% 50%; }
.scene-defence, .scene-maritime { transform: scaleX(-1); }

.section { padding: 100px 0 108px; }
.section-label { margin: 0 0 18px; color: var(--accent); }
h2 { margin: 0 0 36px; font-size: clamp(33px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.055em; }
h2 span { color: #6a7c8d; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.services-section .wrap { width: min(100% - 48px, 1400px); }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; padding: 27px 30px 31px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(17, 40, 61, .035); }
.card h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; font-size: 26px; line-height: 1.2; letter-spacing: -.04em; }
.services-grid .card { padding-inline: 16px; }
.services-grid .card h3 { min-height: 66px; align-content: start; gap: 7px; font-size: clamp(18px, 1.5vw, 21px); white-space: nowrap; }
.services-grid .tag { white-space: nowrap; }
.tag { order: 2; padding: 3px 7px; color: var(--accent); background: #fff1ec; border-radius: 3px; font-size: 10px; letter-spacing: .03em; }
.card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card li { position: relative; padding-left: 17px; }
.card li::before { content: ""; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.interfaces-section { background: #fff; }
.interfaces-section .wrap { width: min(100% - 48px, 1600px); }
.interfaces-intro { max-width: 640px; margin: -17px 0 32px; color: var(--muted); font-size: 17px; }
.interface-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 16px; }
.interface-card { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; background: #f6f9fb; border: 1px solid #d7e1e8; }
.android-card { grid-row: span 2; }
.interface-image { display: flex; justify-content: center; align-items: center; height: 265px; overflow: hidden; background: #dce8ed; }
.interface-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .25s; }
.interface-image:hover img { transform: scale(1.025); }
.android-image { height: 740px; background: linear-gradient(135deg, #dae7ed, #f3f1ea); }
.android-image img { width: auto; max-width: 100%; object-fit: contain; }
.dispatcher-image { height: 400px; }
.interface-card figcaption, .linux-heading { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 17px; }
.interface-card figcaption span, .linux-heading span { color: var(--accent); font: 700 11px var(--mono); letter-spacing: .09em; }
.interface-card figcaption strong, .linux-heading h3 { margin: 0; color: var(--ink); font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.interfaces-section .section-label { font-size: clamp(20px, 2.4vw, 30px); margin-bottom: 28px; }
.interface-link { display: block; padding: 15px 22px 21px; color: var(--accent); font-size: 13px; font-weight: 750; text-decoration: none; }
.interface-link:hover { text-decoration: underline; }
.interface-description { margin: 0; padding: 15px 22px 21px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.linux-card { color: var(--ink); background: #f6f9fb; border-color: #d7e1e8; }
.linux-visual { display: flex; justify-content: center; align-items: center; height: 200px; background: linear-gradient(135deg, #edf4f7, #dce9f0); }
.linux-visual svg { display: block; width: 100%; max-height: 100%; }
.linux-content { display: flex; flex-direction: column; flex: 1; gap: 5px; padding: 15px 22px 21px; }
.linux-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.linux-card a { margin-top: auto; padding-top: 7px; color: var(--accent); font-size: 13px; font-weight: 750; text-decoration: none; }
.linux-card a:hover { text-decoration: underline; }
.admin-card { grid-column: 1 / -1; }
.admin-image { height: clamp(180px, 37vw, 460px); background: #eaf0f3; }
.admin-image img { object-fit: contain; }
.section.alt { background: #eaf0f3; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card.link { display: flex; flex-direction: column; min-height: 244px; border-top: 3px solid #41657e; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card.link:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 13px 28px rgba(17, 40, 61, .09); }
.card.link h3 { margin: 20px 0 12px; font-family: var(--mono); font-size: 22px; }
.card.link::before { content: "OPEN SOURCE / REPOSITORY"; color: var(--accent); font: 700 10px var(--mono); letter-spacing: .1em; }
.card.link p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.more { margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 800; }

.overview-section { background: #fff; }
.overview-wrap { width: min(100% - 48px, 1600px); }
.overview-image { display: block; overflow: hidden; background: #fff; border: 1px solid #cad6e0; box-shadow: 0 14px 35px rgba(17, 40, 61, .08); }
.overview-image img { display: block; width: 100%; height: auto; }
.overview-caption { margin: 13px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 30px 0; color: #a9bacb; background: var(--navy); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .wrap > span { color: #fff; font-size: 13px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.about-hero { position: relative; overflow: hidden; padding: 60px 0 64px; color: #fff; background: var(--navy); }
.about-hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -170px; top: -260px; border: 1px solid rgba(159, 187, 209, .25); border-radius: 50%; box-shadow: 0 0 0 85px rgba(159, 187, 209, .055), 0 0 0 170px rgba(159, 187, 209, .035); }
.about-hero .wrap { position: relative; }
.about-hero h1 { max-width: 900px; font-size: clamp(52px, 7vw, 92px); line-height: 1.03; }
.about-hero h1 em { display: block; }
.about-lead { margin: 28px 0 0; color: #c9d7e3; font-size: clamp(18px, 2vw, 22px); }
.about-credit { margin: 10px 0 0; color: #ff906a; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; line-height: 1.4; }
.about-summary { background: #fff; }
.about-summary, .founders-section { padding: 56px 0 60px; }
.about-summary:has(+ .about-summary) { padding-bottom: 36px; }
.about-summary + .about-summary { padding-top: 0; }
.about-summary h2, .founders-section h2 { margin-bottom: 24px; }
.about-summary-copy { display: grid; gap: 20px; max-width: 940px; margin: -12px 0 0; }
.about-summary-copy p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.about-summary-copy a { color: var(--accent); font-weight: 750; text-decoration: none; }
.about-summary-copy a:hover { text-decoration: underline; }
.founders-section { background: #f6f9fb; }
.trusted-section { padding: 56px 0 60px; background: #fff; text-align: center; }
.trusted-section h2 { margin-bottom: 28px; }
.trusted-logo { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.trusted-logo img { display: block; width: 320px; max-width: 100%; height: auto; }
.trusted-section p { margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.founders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.founder-card { display: grid; grid-template-columns: 128px 1fr; align-items: center; min-height: 190px; gap: 30px; padding: 28px 34px; border: 1px solid #d7e1e8; background: #f6f9fb; }
.founder-mark { display: grid; place-items: center; width: 128px; aspect-ratio: 1; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #315f7c, #0b1c31); font: 800 42px var(--sans); letter-spacing: -.06em; }
.founder-card:nth-child(2) .founder-mark { background: linear-gradient(145deg, #ef8159, #c84519); }
.founder-card p { margin: 0 0 10px; color: var(--accent); font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.founder-card h3 { margin: 0 0 18px; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; letter-spacing: -.045em; }
.founder-card a { color: var(--accent); font-size: 14px; font-weight: 750; text-decoration: none; }
.founder-card a:hover { text-decoration: underline; }

@media (min-width: 851px) {
  .hero-copy { position: relative; left: -16px; }
  .scene-panel { left: 60px; }
  .about-lead { white-space: nowrap; }
}
@media (min-width: 851px) and (max-width: 1199px) {
  .scene-panel { width: calc(100% - 40px); }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  .scene-panel { left: 0; width: 110%; margin-left: 4px; }
}
@media (min-width: 1400px) {
  .hero-copy { left: -48px; }
  .scene-panel { left: 0; width: 125%; margin-left: 1px; }
}

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .interfaces-section .wrap { width: min(100% - 48px, 1240px); }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; }
  .brand-name { font-size: 21px; }
  .brand-subtitle { font-size: 11px; }
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .scene-panel { left: 0; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-photo { height: 300px; aspect-ratio: auto; }
  .interface-grid { grid-template-columns: 1fr; }
  .android-card { grid-row: auto; }
  .android-image { height: 510px; }
  .dispatcher-image { height: 265px; }
  .linux-visual { height: 265px; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-card { grid-template-columns: 92px 1fr; gap: 20px; padding: 25px; }
  .founder-mark { width: 92px; font-size: 32px; }
}
@media (max-width: 760px) {
  .nav nav a:not(.nav-about):not(:last-child) { display: none; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { min-height: 190px; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1240px); }
  .interfaces-section .wrap { width: min(100% - 32px, 1240px); }
  .nav { min-height: 68px; }
  .nav nav { gap: 14px; }
  .nav nav a:last-child { padding: 7px 10px; }
  .hero { padding: 55px 0 60px; }
  .hero-art { font-size: 13.8px; letter-spacing: -.06em; }
  .hero-service { font-size: clamp(35px, 9vw, 46px); }
  .scene-heading { margin-top: 0; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene:last-child { grid-column: 1 / -1; }
  .scene-photo { height: 235px; }
  .scene:last-child .scene-photo { background-size: 500% auto; }
  .section { padding: 72px 0 78px; }
  .grid, .grid.three, .services-grid { grid-template-columns: 1fr; }
  .services-grid .card:last-child { grid-column: auto; }
  .services-grid .card h3 { min-height: 0; white-space: normal; }
  .interface-image { height: 210px; }
  .android-image { height: 480px; }
  .linux-visual { height: 210px; }
  .admin-image { height: 180px; }
  .overview-wrap { width: min(100% - 24px, 1600px); }
  .card { padding: 24px; }
  .about-hero { padding: 48px 0 52px; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.link, .nav nav a, .interface-image img { transition: none; }
}
