:root {
  --radius: 0.5rem;
  --ink: #1c1e21;
  --paper: #f0f2f5;
  --surface: #ffffff;
  --line: #ced0d4;
  --muted: #65676b;
  --accent: #1877f2;
  --accent-hover: #166fe5;
  --accent-soft: #e7f3ff;
  --on-ink: #ffffff;
  --on-ink-muted: #b0b3b8;
  --ink-line: rgba(255, 255, 255, 0.14);
  --destructive: #e41e3f;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shell: min(72rem, calc(100% - 2.5rem));
  --shadow-mock: 0 12px 28px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mark {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav.desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav.desktop > a:not(.btn) {
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav.desktop > a:not(.btn):hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--paper);
  border-radius: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav.mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.nav.mobile:not([hidden]) { display: flex; }
.nav.mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 500;
}
.nav.mobile a:hover { background: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-header,
.btn-dark {
  background: var(--accent);
  color: #fff;
}
.btn-header:hover,
.btn-dark:hover { background: var(--accent-hover); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover { background: #e4e6eb; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: wait; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.text-link:hover { text-decoration: underline; }
.text-link.light { color: #8ab4f8; }

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.on-dark,
.eyebrow.gov { color: #8ab4f8; }

/* Hero */
.hero {
  padding: 5.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 55% 50% at 90% 10%, rgba(24, 119, 242, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem;
}

.hero-inner { max-width: 34rem; }

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #050505;
}

.hero-lede {
  margin: 1rem 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
}

.hero-window {
  position: absolute;
  inset: 0 12% 10% 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-mock);
  animation: stage-in 0.8s ease both;
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}
.hero-window-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ccd0d5;
}
.hero-window-bar i:nth-child(1) { background: #f02849; }
.hero-window-bar i:nth-child(2) { background: #f7b928; }
.hero-window-bar i:nth-child(3) { background: #45bd62; }
.hero-window-bar span {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.hero-window img {
  display: block;
  width: 100%;
  height: calc(100% - 2.3rem);
  object-fit: cover;
  object-position: top center;
}

.hero-float {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  animation: float-soft 7s ease-in-out infinite;
}
.hero-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-float-a {
  top: 6%;
  right: 0;
  width: 42%;
  height: 34%;
  animation-delay: 0.4s;
}
.hero-float-b {
  right: 2%;
  bottom: 0;
  width: 48%;
  height: 36%;
  animation-delay: 1s;
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections shared */
.section-intro { max-width: 36rem; margin-bottom: 2rem; }
.section-intro h2,
.craft h2,
.contact h2,
.index-head h2,
.regions-panel h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-intro > p:last-child,
.craft-sticky > p:not(.eyebrow) {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

/* Services */
.services {
  padding: 4rem 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.services-grid article {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
}
.service-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.services-grid h3 {
  margin: 0.45rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.services-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Products */
.products { padding: 4.5rem 0; }
.feature {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.feature:last-child { margin-bottom: 0; }
.feature-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.feature h3 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-region {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.feature-copy > p:not(.feature-kicker):not(.feature-region) {
  margin: 0.85rem 0 0;
  color: var(--muted);
}
.feature-points {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
}
.feature-points li {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  background: var(--surface);
}
.feature-points li:last-child { border-bottom: 0; }

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-mock);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}
.shot-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ccd0d5;
}
.shot-bar i:nth-child(1) { background: #f02849; }
.shot-bar i:nth-child(2) { background: #f7b928; }
.shot-bar i:nth-child(3) { background: #45bd62; }
.shot-bar span {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.shot a { display: block; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  object-position: top center;
}
.shot figcaption {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  background: #f7f8fa;
}
.shot.tight { margin-top: 1rem; box-shadow: none; }
.shot.tight img { max-height: 12rem; }

.psquare-panel {
  min-height: 18rem;
  padding: 1.35rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0866ff 0%, #1877f2 45%, #0a4d9c 100%);
  color: #fff;
}
.psquare-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.psquare-mark img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem;
}
.psquare-mark strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}
.psquare-mark span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.psquare-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.psquare-panel li {
  padding: 0.7rem 0.8rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

/* Government */
.government {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #0866ff 0%, #0a2540 100%);
  color: #fff;
}
.section-intro.on-dark h2 { color: #fff; }
.section-intro.on-dark > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--on-ink-muted);
  max-width: 40rem;
}
.gov-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ink-line);
}
.gov-banner-icon { width: 3rem; height: 3rem; flex-shrink: 0; }
.gov-banner-icon svg { width: 100%; height: 100%; display: block; }
.gov-banner strong { display: block; }
.gov-banner p {
  margin: 0.3rem 0 0;
  color: var(--on-ink-muted);
  font-size: 0.92rem;
}
.gov-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1.35fr 1fr 1fr;
}
.gov-card {
  padding: 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.06);
}
.gov-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.gov-card-top img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.15rem;
}
.gov-tag {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.gov-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}
.gov-meta {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #8ab4f8;
  font-weight: 600;
}
.gov-card > p:not(.gov-meta) {
  margin: 0.7rem 0 0;
  color: var(--on-ink-muted);
  font-size: 0.92rem;
}

/* Portfolio */
.index-section {
  padding: 4rem 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.index-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.index-head > p {
  margin: 0;
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.index-grid li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
}
.index-grid li:hover { background: #fff; }
.index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.index-grid span { font-size: 0.75rem; color: var(--muted); }
.index-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.15rem;
}
.index-grid strong { display: block; font-size: 0.98rem; }
.index-grid p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.index-grid li.is-gov { background: var(--accent-soft); }
.index-grid li.is-gov::after {
  content: "Government";
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.12);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Craft */
.craft { padding: 4.5rem 0; }
.craft-grid { display: grid; gap: 1.5rem; }
.principles { display: grid; gap: 0.75rem; }
.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
}
.principles span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.principles h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.principles p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Regions */
.regions { padding: 0 0 2rem; }
.regions-panel {
  padding: 2.5rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #0866ff, #0a2540);
  color: #fff;
}
.regions-panel h2 { color: #fff; }
.region-split {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.region-split > div {
  padding: 1.15rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ink-line);
}
.region-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.region-title h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}
.region-title span,
.region-split .country,
.region-split > div > p:last-child {
  color: var(--on-ink-muted);
}
.region-title span { font-size: 0.8rem; }
.region-split .country {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8ab4f8;
}
.region-split > div > p:last-child {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

/* Contact */
.contact { padding: 4rem 0 5rem; }
.contact-grid { display: grid; gap: 1.5rem; }
.contact p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
}
.contact-form label { display: grid; gap: 0.35rem; }
.contact-form span { font-size: 0.9rem; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
}
.contact-form small {
  min-height: 1rem;
  font-size: 0.8rem;
  color: var(--destructive);
}
.form-status {
  margin: 0 !important;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0;
}
.footer-grid .brand { margin-bottom: 0.55rem; }
.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid h4 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-grid a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-copy { border-top: 1px solid var(--line); }
.footer-copy p {
  margin: 0;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Motion */
.enter {
  opacity: 0;
  animation: fade-up 0.55s ease forwards;
  animation-delay: calc(80ms + var(--d, 0) * 55ms);
}
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.15fr; }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse .shot,
  .feature.reverse .psquare-panel { order: 1; }
  .craft-grid { grid-template-columns: 0.9fr 1.1fr; }
  .region-split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gov-grid { grid-template-columns: 1fr 1fr; }
  .gov-card:first-child { grid-column: 1 / -1; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --shell: min(80rem, calc(100% - 1.25rem)); }
  .nav.desktop { display: none; }
  .menu-btn { display: inline-block; }
  .hero { padding: 4.5rem 0 2.5rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stage {
    order: -1;
    max-width: none;
    aspect-ratio: 16 / 11;
  }
  .services-grid,
  .gov-grid,
  .index-grid { grid-template-columns: 1fr; }
  .gov-card:first-child { grid-column: auto; }
  .products, .services, .craft, .contact, .index-section, .government { padding-block: 3rem; }
  .shot img { max-height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
