/* Prime One Technologies — site styles. Brand: near-black, cool grey, Signal Cyan (sparingly). */
:root {
  --black: #141414;
  --panel: #1F1F1F;
  --rule-dark: #333333;
  --grey: #939598;
  --grey-on-dark: #A7A9AC;
  --text-on-dark: #C9CBCD;
  --ink: #141414;
  --body: #444444;
  --muted: #5F6164;
  --light: #F2F2F3;
  --border: #E2E3E4;
  --cyan: #00AEEF;
  --cyan-text: #007DB0;
  --cyan-text-hover: #005A80;
  --cyan-tint: #E6F7FD;
  --white: #FFFFFF;
  --head: Arial, Helvetica, sans-serif;
  --text: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.01em; margin: 0; color: inherit; }
p { margin: 0; }
a { color: var(--cyan-text); }
a:hover { color: var(--cyan-text-hover); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 16px; }

/* Header */
.site-header { background: var(--black); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { flex: 1 1 0; display: flex; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.nav a { color: var(--text-on-dark); text-decoration: none; font-family: var(--head); font-size: 15px; line-height: 1.2; padding: 11px 18px; border-radius: 999px; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(0, 174, 239, 0.16); }
.head-actions { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.toplink { color: var(--white); text-decoration: none; font-family: var(--head); font-size: 15px; padding: 12px 0; white-space: nowrap; }
.toplink:hover { color: var(--cyan); }
.btn-tint { color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1.2; padding: 12px 18px; border-radius: 8px; border: 1px solid rgba(0, 174, 239, 0.65); background: rgba(0, 174, 239, 0.16); white-space: nowrap; }
.btn-tint:hover { color: var(--white); background: rgba(0, 174, 239, 0.28); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; padding: 15px 26px; border-radius: 6px; border: 2px solid transparent; line-height: 1.2; cursor: pointer; }
.btn-cyan { background: var(--cyan); color: var(--black); }
.btn-cyan:hover { background: #33BEF2; color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2B2B2B; color: var(--white); }
.btn-ghost { border-color: #6E7073; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.nav .btn-cyan, .nav .btn-cyan[aria-current="page"], .nav .btn-cyan:hover { color: var(--black); box-shadow: none; }

/* Sections */
.section { padding: 96px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--black); color: var(--white); }
.kicker { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 14px; }
.section-dark .kicker, .hero .kicker { color: var(--cyan); }
.bar { width: 46px; height: 4px; background: var(--cyan); margin-bottom: 18px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: 38px; line-height: 1.2; }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--body); }
.section-dark .section-head p { color: var(--text-on-dark); }

/* Hero */
.hero { background: var(--black); color: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 24px; }
.hero p.lead { font-size: 20px; line-height: 1.55; color: var(--text-on-dark); max-width: 620px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.page-hero .wrap { padding-top: 80px; padding-bottom: 80px; display: block; }
.page-hero h1 { font-size: 46px; max-width: 880px; margin-bottom: 18px; }
.page-hero .split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.page-hero .split > div:first-child { flex: 2 1 560px; min-width: 0; }
.page-hero .split > div:last-child { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.page-hero .split .btn { text-align: center; }

.stats { flex: 1 1 380px; min-width: 0; background: var(--panel); border: 1px solid var(--rule-dark); border-radius: 10px; padding: 32px; }
.stats .label { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--grey-on-dark); margin-bottom: 8px; }
.stat { padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 40px; line-height: 1.1; color: var(--white); }
.stat strong span { color: var(--cyan); }
.stat p { color: var(--text-on-dark); font-size: 16px; margin-top: 4px; }

/* Contracting strip */
.strip { background: var(--light); border-bottom: 1px solid var(--border); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 16px; color: var(--body); }
.strip strong { color: var(--ink); font-family: var(--head); font-size: 14px; letter-spacing: 0.04em; margin-right: 6px; }

/* Cards and grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card .num { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--cyan-text); }
.card h3 { font-size: 21px; line-height: 1.3; }
.card p { color: var(--body); font-size: 17px; }
.card .more { margin-top: auto; font-weight: 700; font-family: var(--head); font-size: 15px; text-decoration: none; }
.section-light .card { border-color: transparent; }
.card.topline { border-top: 4px solid var(--black); }
.card .meta { font-size: 14px; font-weight: 700; color: var(--muted); font-family: var(--head); letter-spacing: 0.02em; }

.agencies { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin-top: 40px; }
.agencies .label { font-family: var(--head); font-size: 13px; letter-spacing: 0.14em; font-weight: 700; color: var(--muted); }
.agencies span:not(.label) { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--body); }

/* Two-column rows */
.split-row { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.split-row > .side { flex: 1 1 320px; min-width: 0; }
.split-row > .main { flex: 2 1 560px; min-width: 0; }
.h2 { font-size: 38px; line-height: 1.2; }
.mt { margin-top: 24px; }
.side-link { margin-top: 16px; }
.side-link a { font-family: var(--head); font-weight: 700; text-decoration: none; }
.points > div { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.points > div:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.points h3 { font-size: 21px; margin-bottom: 8px; }
.points p { color: var(--body); font-size: 17px; }
.prose p { color: var(--body); font-size: 19px; line-height: 1.65; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* Services detail */
.svc { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 48px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.svc:first-child { padding-top: 0; }
.svc:last-child { border-bottom: 0; }
.svc .side { flex: 1 1 340px; min-width: 0; }
.svc .side h2 { font-size: 28px; line-height: 1.25; margin: 6px 0 12px; }
.svc .side p { color: var(--body); }
.svc .list { flex: 1 1 420px; min-width: 0; background: var(--light); border-radius: 10px; padding: 28px 32px; }
.svc .list h3 { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.svc ul, .ticks { list-style: none; margin: 0; padding: 0; }
.svc li, .ticks li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 17px; }
.svc li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--cyan-text); border-radius: 2px; }

/* Data table (government) */
.data { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0; }
.data div { background: var(--white); padding: 22px 26px; }
.data dt { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.data dd { margin: 6px 0 0; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
.comp { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 56px; }
.comp > div { padding: 28px 0; border-top: 1px solid var(--border); }
.comp h3 { font-size: 20px; margin-bottom: 8px; }
.comp p { color: var(--body); font-size: 17px; }
.dark-card { background: var(--black); color: var(--white); border-radius: 10px; padding: 32px; }
.dark-card .meta { color: var(--grey-on-dark); font-size: 15px; font-weight: 700; font-family: var(--head); }
.dark-card strong { display: block; font-family: var(--head); font-size: 36px; margin: 6px 0; }
.dark-card p { color: var(--text-on-dark); font-size: 17px; }

/* Leadership */
.leader { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.leader img { width: 300px; height: 300px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.leader .info { flex: 1 1 480px; min-width: 0; }
.leader h2 { font-size: 32px; }
.leader .role { font-weight: 700; color: var(--body); margin: 6px 0 14px; font-size: 18px; }
.leader p { color: var(--body); }

/* CTA band */
.cta { background: var(--cyan-tint); border-top: 4px solid var(--cyan); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta .wrap > div { flex: 1 1 560px; min-width: 0; }
.cta h2 { font-size: 34px; line-height: 1.2; }
.cta p { color: var(--body); font-size: 19px; margin-top: 10px; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-form { flex: 2 1 520px; min-width: 0; background: var(--white); border-radius: 10px; padding: 40px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; font-family: var(--head); }
.field input, .field textarea { font: inherit; font-size: 16px; border: 1px solid #8A8C8F; border-radius: 6px; padding: 12px 14px; color: var(--ink); background: var(--white); width: 100%; }
.field input { height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan-text); outline: 3px solid rgba(0,174,239,0.35); outline-offset: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 700; min-height: 1.6em; }
.form-status.ok { color: #1C5C3A; }
.form-status.err { color: #A0262A; }
.contact-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-info .label { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.contact-info .big { font-family: var(--head); font-size: 21px; font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--black); color: var(--text-on-dark); font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 40px; }
.foot-grid h2 { font-size: 15px; color: var(--white); margin-bottom: 12px; }
.foot-grid p, .foot-grid li { margin: 0 0 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text-on-dark); }
.site-footer a:hover { color: var(--white); }
.foot-brand { font-family: var(--head); font-weight: 700; color: var(--white); font-size: 18px; margin-bottom: 10px; }
.legal { border-top: 1px solid var(--rule-dark); padding-top: 24px; font-size: 14px; color: var(--grey-on-dark); }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .toplink { display: none; }
  .head-actions { gap: 12px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border: 0; border-bottom: 1px solid var(--rule-dark); border-radius: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 8px; font-size: 17px; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 420px) {
  .brand img { height: 30px; }
  .btn-tint { padding: 12px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2, .cta h2, .h2 { font-size: 28px; }
  .stat strong { font-size: 32px; }
  .contact-form { padding: 24px; }
  .leader img { width: 220px; height: 220px; }
  .grid, .comp, .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home hero: centered rotating headline over animated circuit traces */
.hero.c2 { position: relative; overflow: hidden; }
.hero.c2 .wrap { display: block; position: relative; max-width: 980px; text-align: center; padding-top: 128px; padding-bottom: 144px; }
.hero.c2 h1 { font-size: 60px; line-height: 1.08; letter-spacing: -0.015em; }
.hero.c2 p.lead { margin: 0 auto; max-width: 680px; }
.hero.c2 .actions { justify-content: center; }
.words { display: inline-grid; vertical-align: bottom; text-align: left; }
.word { grid-area: 1 / 1; color: var(--cyan); opacity: 0; animation: word-cycle 9s infinite; }
.word:nth-child(2) { animation-delay: 3s; }
.word:nth-child(3) { animation-delay: 6s; }
@keyframes word-cycle { 0% { opacity: 0; transform: translateY(0.35em); } 4% { opacity: 1; transform: none; } 30% { opacity: 1; transform: none; } 34% { opacity: 0; transform: translateY(-0.35em); } 100% { opacity: 0; } }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-base { fill: none; stroke: #2A2F33; stroke-width: 2; }
.trace { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 100; stroke-dashoffset: 114; animation: trace 4.5s linear infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.pad { fill: var(--black); stroke: #3A4046; stroke-width: 2; }
.pad-on { fill: var(--cyan); opacity: 0.2; animation: pad-glow 4.5s linear infinite; }
@keyframes pad-glow { 0%, 78% { opacity: 0.2; } 88% { opacity: 1; } 100% { opacity: 0.2; } }
.t2 { animation-delay: -1.4s; } .t3 { animation-delay: -2.6s; animation-duration: 5.2s; } .t4 { animation-delay: -3.3s; }
.t5 { animation-delay: -2.1s; } .t6 { animation-delay: -0.6s; animation-duration: 5.2s; } .t7 { animation-delay: -3.8s; }
.t8 { animation-delay: -1.1s; } .t9 { animation-delay: -2.9s; } .t10 { animation-delay: -0.3s; }

/* Credentials ticker */
.ticker { background: var(--panel); border-top: 1px solid var(--rule-dark); overflow: hidden; padding: 20px 0; }
.ticker .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker .item { display: flex; align-items: center; gap: 10px; padding: 0 28px; white-space: nowrap; font-size: 16px; color: var(--text-on-dark); }
.ticker .item strong { font-family: var(--head); font-size: 12px; letter-spacing: 0.12em; color: var(--cyan); }

@media (max-width: 640px) {
  .hero.c2 .wrap { padding-top: 72px; padding-bottom: 88px; }
  .hero.c2 h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .word, .trace, .pad-on, .ticker .track { animation: none; }
  .word:first-child { opacity: 1; }
  .trace { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.35; }
}
