:root {
  --navy: #12304A;
  --navy-deep: #0C2234;
  --teal: #1A9BB0;
  --teal-dark: #137A8B;
  --green: #76B82A;
  --ink: #13242F;
  --muted: #566874;
  --line: #DCE4E8;
  --mist: #F2F6F8;
  --white: #FFFFFF;
  --display: 'Sora', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --body: 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --radius: 14px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); }
.lead { font-size: 20px; color: var(--muted); max-width: 54ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 24px; border-radius: 10px; border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); color: var(--navy); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--green); border-color: var(--green); color: var(--navy-deep); }
.btn-small { padding: 9px 16px; font-size: 15px; font-variant-numeric: tabular-nums; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--teal); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--teal); }

/* hero */
.hero { background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); padding-block: 72px 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.flow { margin: 0; }
.flow svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-line { fill: none; stroke: var(--navy); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 0; animation: draw 1.6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1000; } }
.node circle { stroke: var(--white); stroke-width: 5; }
.n1 circle { fill: var(--navy); }
.n2 circle, .n3 circle { fill: var(--teal); }
.n4 path { fill: var(--green); stroke: var(--green); stroke-width: 4; stroke-linejoin: round; }
.node text { font-family: var(--display); font-size: 17px; font-weight: 600; fill: var(--navy); text-anchor: middle; }
.n2 text { text-anchor: start; } .n3 text { text-anchor: end; }

/* sections */
.section { padding-block: 96px; }
.section-alt { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 16px; }
.ico { width: 40px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.card-cta { background: var(--navy); border-color: var(--navy); }
.card-cta h3 { color: var(--white); }
.card-cta p { color: #B9CAD5; flex: 1; }
.card-cta .btn { align-self: flex-start; margin-top: 6px; }
.card-cta:hover { border-color: var(--navy); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.steps li { display: flex; flex-direction: column; gap: 10px; position: relative; }
.steps p { color: var(--muted); font-size: 16px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--white); background: var(--teal); margin-bottom: 6px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--mist); }
.steps li:first-child .step-n { background: var(--navy); }
.steps li:last-child .step-n { background: var(--green); color: var(--navy-deep); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 44px; right: -20px; height: 3px; background: var(--line); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about-who { border-left: 3px solid var(--teal); padding-left: 32px; }
.about-who p { color: var(--muted); }

/* contact */
.contact { background: var(--navy); color: #C9D7E0; }
.contact h2 { color: var(--white); }
.contact .kicker { color: #6FD0DF; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA6B5; }
.contact-list a { color: var(--white); font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--green); }
.form { background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--navy); }
.field label span { color: var(--teal-dark); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,155,176,.2); }
.form .btn { align-self: flex-start; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.err { color: #B3261E; font-weight: 600; }

.site-footer { background: var(--navy-deep); color: #8FA6B5; padding-block: 32px; font-size: 14px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-foot .brand-mark { width: 32px; height: 32px; }
.brand-foot .brand-name { color: var(--white); font-size: 17px; }
.brand-foot .brand-name span { color: #6FD0DF; }

@media (max-width: 960px) {
  .hero-grid, .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps li::after { display: none; }
  .bar { flex-wrap: wrap; row-gap: 0; }
  .btn-small { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 22px; overflow-x: auto; padding-block: 2px 12px; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .hero { padding-block: 48px 56px; }
  .section { padding-block: 64px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .bar { gap: 12px; }
  .btn-small { padding: 8px 12px; font-size: 14px; }
  .about-who { padding-left: 20px; }
  .form { padding: 22px; }
  .lead { font-size: 18px; }
}
@media (max-width: 400px) { .site-header .btn-small { display: none; } }

/* our work */
.hero-work { padding-block: 64px 56px; }
.hero-work .container { display: flex; flex-direction: column; gap: 20px; }
.hero-work h1 { font-size: clamp(34px, 5vw, 54px); max-width: 18ch; }
.work-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 12px 0 0; }
.work-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.work-stats dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.work-stats dd { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.work-section { padding-top: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filter span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--teal); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter.is-active span { color: #9FC7D3; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.proj { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); min-width: 0; }
.proj-featured { border-top: 4px solid var(--teal); }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.proj-cat svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-production { background: #E6F3D6; color: #3B6B0C; }
.status-pilot { background: #DDF1F4; color: #0F6675; }
.status-prototype { background: #ECEFF2; color: #4A5A66; }
.proj h3 { font-size: 21px; }
.proj-sector { font-size: 15px; font-weight: 600; color: var(--navy); }
.proj-problem { color: var(--muted); font-size: 16px; }
.proj-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.proj-features li { padding-left: 22px; position: relative; }
.proj-features li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.chips { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--mist); color: var(--navy); }
.work-note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.work-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.work-cta > div:first-child { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .proj { padding: 22px; } .work-stats dd { font-size: 32px; } .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; } .filter { white-space: nowrap; flex: none; } }
