:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #1b1b1b;
  --muted: #6f6f6f;
  --kicker: #979797;
  --line: rgba(0, 0, 0, 0.08);
  --footer: #111111;
  --grad: linear-gradient(45deg, #5cc3ee 0%, #5d91ef 29%, #5e5ef0 50%, #947be1 73%, #ca97d2 100%);
  --grad-text: linear-gradient(90deg, #5cc3ee 0%, #5e5ef0 48%, #ca97d2 100%);
  --shell: min(1140px, calc(100% - 4.5rem));
  --header-h: 96px;
  --font-display: "Syne", sans-serif;
  --font-body: "Heebo", sans-serif;
  --font-ui: "Archivo", sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* Header — Deon: transparent, tall, text logo left, uppercase nav + 2-line burger */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
}

.brand-logo.on-dark {
  filter: invert(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav.desktop a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav.desktop a:hover,
.nav.desktop a.is-active {
  opacity: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: width 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn span:first-child { width: 22px; }
.menu-btn span:last-child { width: 14px; }

.menu-btn[aria-expanded="true"] span:first-child {
  width: 22px;
  transform: translateY(4.5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  width: 22px;
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav.mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav.mobile:not([hidden]) { display: flex; }
.nav.mobile a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0;
}

/* Back to top — corner control, never overlays hero sides */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: #111;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-top[hidden] {
  display: none !important;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-top.is-on-dark {
  background: #fff;
  color: #111;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 2.7rem 0.85rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-gradient {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(94, 94, 240, 0.55);
}
.btn-gradient:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.16);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-outline.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.text-link {
  display: inline-flex;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kicker);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #000;
}

h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  max-width: 18ch;
  line-height: 1.18;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 14ch;
  line-height: 1.12;
}

h3 { font-size: 1.35rem; }

p {
  margin: 0;
  color: var(--muted);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 3.75rem;
}
.section-intro h2 { margin-bottom: 1.1rem; }
.section-intro p { max-width: 34rem; }

/* Hero — soft pastel glow, huge title, product box */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 0 3.5rem;
  overflow: visible;
  background:
    radial-gradient(ellipse 55% 60% at 88% 35%, rgba(202, 151, 210, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 50% at 8% 80%, rgba(92, 195, 238, 0.18), transparent 65%),
    radial-gradient(ellipse 40% 45% at 70% 90%, rgba(94, 94, 240, 0.08), transparent 60%),
    #fbfbfd;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--kicker);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: min(480px, 62vh);
}

.hero-visual img {
  width: min(100%, 400px);
  max-height: min(480px, 62vh);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(90, 90, 160, 0.28));
}

/* Sections */
.about,
.works,
.services,
.products,
.government,
.portfolio,
.partners,
.contact {
  padding: 8rem 0;
  position: relative;
}

.about { background: #fff; }

.about-grid,
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.about-copy h2,
.works-copy h2 { margin-bottom: 1.5rem; }

.about-copy p + p { margin-top: 1.1rem; }

.about-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deco {
  position: absolute;
  border-radius: 18px;
  background: rgba(180, 180, 190, 0.14);
  pointer-events: none;
}
.deco-a { width: 78%; height: 42%; top: 8%; left: 4%; }
.deco-b { width: 70%; height: 28%; top: 38%; right: 0; }
.deco-c { width: 62%; height: 24%; bottom: 8%; left: 12%; }

.phone-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(280px, 70%);
  filter: drop-shadow(0 35px 60px rgba(40, 40, 80, 0.25));
}

.phone-frame img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 28px;
}

.side-label {
  position: absolute;
  left: -3rem;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
}

.works { background: #fafafa; }

.works-media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

.works-media img {
  width: 100%;
  height: min(520px, 62vh);
  object-fit: cover;
}

.works-list {
  list-style: none;
  margin: 2.2rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.works-list button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0 0.2rem 1.05rem;
  border-left: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease;
}

.works-list li.is-active button {
  border-left-color: #5e5ef0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.works-panels p {
  display: none;
  max-width: 32rem;
}
.works-panels p.is-active { display: block; }

.services { background: #fff; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-cards article {
  padding: 2.4rem 1.9rem 2.1rem;
  background: #fafafa;
  border: 1px solid var(--line);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.service-cards .num {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

.service-cards h3 {
  margin-bottom: 1rem;
  max-width: 12ch;
}

.service-cards p { flex: 1; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.75rem;
}

.service-tags span {
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.products { background: #fafafa; }

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-item {
  display: block;
  color: inherit;
}

.portfolio-item figure {
  margin: 0 0 1.1rem;
  overflow: hidden;
  background: #f3f3f5;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.portfolio-item figure img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover figure img { transform: scale(1.02); }

.portfolio-item figure.is-dark {
  padding: 0;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psquare-panel {
  text-align: center;
  color: #fff;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 2rem;
}

.psquare-panel span { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

.portfolio-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.portfolio-item p {
  font-size: 0.95rem;
}

.government {
  background: #0f0f12;
  color: #fff;
}

.government .eyebrow { color: rgba(255,255,255,0.45); }
.government h2 { color: #fff; }
.government .section-intro p { color: rgba(255,255,255,0.58); }

.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gov-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.9rem 1.7rem;
}

.gov-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: 10px;
}

.gov-card h3 { color: #fff; margin-bottom: 0.35rem; }
.gov-meta {
  margin-bottom: 0.9rem !important;
  color: rgba(255,255,255,0.42) !important;
  font-size: 0.92rem;
}
.gov-card p { color: rgba(255,255,255,0.68); }

.portfolio { background: #fff; }

.index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.index-grid li {
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
  background: #fafafa;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.index-grid li:hover {
  border-color: rgba(94, 94, 240, 0.35);
  transform: translateY(-2px);
}

.index-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.index-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.partners { background: #fafafa; }

.partners-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.partner-logos span {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
}

.contact { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label { display: grid; gap: 0.45rem; }

.contact-form span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.16);
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 0;
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: #5e5ef0; }

.contact-form small {
  min-height: 1.1rem;
  color: #c0392b;
  font-size: 0.85rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-status {
  min-height: 1.4rem;
  color: var(--ink);
}

.site-footer {
  background: var(--footer);
  color: rgba(255,255,255,0.68);
  padding-top: 4.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-top h3 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-top p {
  color: rgba(255,255,255,0.55);
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-grid a,
.footer-lines {
  display: block;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.55rem;
}

.footer-grid a:hover { color: #fff; }

.footer-grid .brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0 1.6rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.38);
}

.enter {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  :root { --shell: min(100% - 2.5rem, 1140px); }
  .hero-layout,
  .about-grid,
  .works-grid,
  .partners-grid,
  .contact-grid,
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-cards,
  .gov-grid,
  .portfolio-row,
  .index-grid {
    grid-template-columns: 1fr 1fr;
  }
  .side-label { display: none; }
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.5rem) 0 3rem;
  }
  .hero-visual,
  .hero-visual img {
    max-height: 360px;
    width: min(100%, 340px);
    margin-inline: auto;
  }
  h1 {
    max-width: none;
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 1.5rem, 1140px);
    --header-h: 68px;
  }

  .brand-logo {
    height: 34px;
  }

  .nav.desktop { display: none; }
  .menu-btn { display: inline-flex; }

  .nav.mobile:not([hidden]) {
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .portfolio-row,
  .index-grid,
  .service-cards,
  .gov-grid,
  .partner-logos,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-kicker {
    margin-bottom: 0.85rem;
    font-size: 11px;
  }

  h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    max-width: none;
  }

  .hero-actions {
    margin-top: 1.4rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    max-height: none;
    margin-top: 0.5rem;
  }

  .hero-visual img {
    width: min(100%, 260px);
    max-height: 260px;
  }

  .about, .works, .services, .products, .government, .portfolio, .partners, .contact {
    padding: 3.5rem 0;
  }

  .section-intro {
    margin-bottom: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
    max-width: none;
  }

  .about-visual {
    min-height: 0;
  }

  .phone-frame {
    width: min(220px, 68%);
  }

  .phone-frame img {
    max-height: 420px;
  }

  .works-media img {
    height: 280px;
  }

  .works-list button {
    font-size: 1.15rem;
  }

  .service-cards article {
    min-height: 0;
  }

  .portfolio-item figure {
    aspect-ratio: 16 / 10;
  }

  .back-top {
    right: 0.85rem;
    bottom: 0.85rem;
    min-width: 44px;
    min-height: 44px;
  }

  .btn {
    min-height: 48px;
    padding-inline: 1.5rem;
  }
}
