:root {
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --ink: #0f1e26;
  --ink-soft: #46606c;
  --line: #e2ebee;
  --brand: #0e8f8a;
  --brand-deep: #0a5f6b;
  --brand-ink: #063a44;
  --accent: #4bd0c0;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(10, 60, 68, 0.10);
  --shadow-sm: 0 4px 16px rgba(10, 60, 68, 0.08);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink); font-size: 1.25rem; }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-text { font-weight: 500; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 800; color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a.active { color: var(--brand-deep); font-weight: 700; }
.nav-links .btn { color: var(--brand-ink); }

/* CTA band (bottom of pages) — a slim, muted prompt, not a hero panel */
.section.cta-band { padding: 0 0 clamp(20px, 3vw, 32px); }
/* match the gap above the CTA band to the gap below it (its bottom padding) */
#services { padding-bottom: clamp(20px, 3vw, 32px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--ink); border-radius: 12px; padding: 16px 24px; text-align: left;
}
.cta-inner h2 { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.cta-inner p { color: var(--ink-soft); margin: 2px 0 0; font-size: 0.9rem; }
.cta-inner .btn { flex-shrink: 0; }

/* Hero */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(75,208,192,0.20), transparent 60%),
    radial-gradient(800px 400px at 8% 12%, rgba(14,143,138,0.10), transparent 55%),
    var(--bg);
  /* bottom padding = the gap above the cards; matches the CTA→footer gap */
  padding: clamp(32px, 5vw, 52px) 0 clamp(20px, 3vw, 32px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
/* Home hero reuses the shared section-head, spanning the full container width.
   Title is an <h1> for SEO but sized like the section h2s for visual consistency. */
.section-head.hero-head { max-width: none; margin-bottom: 0; }
.section-head.hero-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; text-wrap: balance; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--brand); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.16rem; color: var(--ink-soft); margin: 18px 0 26px; max-width: 44ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 34px; margin: 42px 0 0; padding: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; color: var(--brand-ink); }
.hero-stats span { font-size: 0.86rem; color: var(--ink-soft); }

/* Hero art — orbit */
/* vertical padding gives the top/bottom orbit pills room to clear the content above and below */
.hero-art { display: flex; justify-content: center; padding: 30px 0; }
.orbit {
  position: relative; width: min(250px, 60vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(14,143,138,0.35);
  background: radial-gradient(circle at 50% 50%, rgba(75,208,192,0.10), transparent 70%);
  animation: spin 40s linear infinite;
}
.orbit::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 50%; border: 1px dashed rgba(14,143,138,0.25);
}
.core, .node { position: absolute; }
.core {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  /* stay perfectly centered; the orbit spins around it */
}
.core svg { width: 46px; height: 46px; }
/* .node only positions the pill on the ring — it rotates along with the
   parent .orbit for free (child boxes ride a parent's transform visually).
   .node-label carries the actual pill look and counter-spins at the same
   rate, canceling that rotation so the text stays upright while it travels. */
.node-label {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--brand-ink);
  animation: spin 40s linear infinite reverse;
}
.n1 { top: -18px; left: 50%; transform: translateX(-50%); }
.n2 { top: 50%; right: -30px; transform: translateY(-50%); }
.n3 { bottom: -18px; left: 50%; transform: translateX(-50%); }
.n4 { top: 50%; left: -34px; transform: translateY(-50%); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit, .node-label { animation: none; } }

/* Home "what we do" — 3 cards across, equal height, link pinned to the bottom.
   No section header now, so drop the top padding — the hero's bottom padding
   already provides the separation from the cards. */
#offerings { padding-top: 0; padding-bottom: clamp(20px, 3vw, 32px); }
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-grid .offer-card { display: flex; flex-direction: column; }
.offer-grid .offer-card a { margin-top: auto; }
/* icon and title share one line */
.offer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.offer-head .feature-icon { margin-bottom: 0; }
.offer-head h3 { margin-bottom: 0; }
.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.offer-card h3 { font-size: 1.16rem; margin-bottom: 4px; color: var(--brand-ink); }
.offer-card p { color: var(--ink-soft); margin: 0 0 8px; font-size: 0.95rem; }
.offer-card a { font-weight: 600; font-size: 0.92rem; }

/* Sections */
.section { padding: clamp(28px, 4vw, 44px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Divider-only variant (no background shift) — same idea as the demos-block rule.
   Own top padding is smaller than the base .section, since it stacks on top of the
   previous section's bottom padding (avoids doubling the gap at that boundary). */
.section-divider { border-top: 1px solid var(--line); padding-top: clamp(16px, 2vw, 24px); }
/* Eyebrow + title stay centered; the subtext is a full-width, left-aligned
   paragraph in a subtle box, so it reads naturally instead of as centered text. */
.section-head { max-width: none; margin: 0 auto 28px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; text-wrap: balance; }
.section-sub {
  color: var(--ink-soft); font-size: 1.08rem; margin: 18px 0 0;
  text-align: left; max-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  text-wrap: pretty; /* avoid a lone word stranded on the last line */
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--brand-deep);
  background: linear-gradient(140deg, rgba(14,143,138,0.12), rgba(75,208,192,0.16)); margin-bottom: 16px;
}
/* Platform-harmonized glyphs (shared TechneOS icon set), rendered in brand teal */
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.mission-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.pillar h3 { font-size: 1.1rem; color: var(--brand-ink); margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* About — people */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 24px; justify-content: center;
}
.person-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
/* photo, name and title share one row */
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.person-avatar {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
}
.person-card h3 { font-size: 1.2rem; color: var(--brand-ink); margin: 0; }
.person-title {
  color: var(--brand); font-weight: 700; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 3px 0 0;
}
.person-bio { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 22px; }

/* TechneOS intro (orbit + copy) */
.techneos-intro {
  display: grid; grid-template-columns: max-content max-content; gap: 48px; align-items: center;
  justify-content: center; margin: 0 auto 28px;
}
.techneos-intro-copy { display: flex; flex-direction: column; align-items: center; }
.techneos-links { display: flex; flex-direction: column; gap: 28px; max-width: 300px; }
.techneos-links .btn { width: 100%; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
/* icon and title share one line */
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-head .feature-icon { margin-bottom: 0; }
.service h3 { font-size: 1.35rem; margin-bottom: 6px; }
.service-head h3 { margin-bottom: 0; }
/* reserve two lines so both cards' bullet lists start at the same height */
.service > p { color: var(--ink-soft); margin: 0 0 18px; min-height: 3.2em; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  position: relative; padding: 8px 0 8px 28px; color: var(--ink);
  border-top: 1px solid var(--line); font-size: 0.98rem;
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--brand); font-weight: 800;
}

/* Demos block nested inside the TechneOS section */
.demos-block { margin-top: clamp(24px, 4vw, 40px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.demos-head { margin-bottom: 24px; }
.demos-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Video gallery — centers a single card; wraps and centers extra cards, like people-grid */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
  gap: 26px; justify-content: center;
}
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b2b30; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-meta { padding: 18px 20px 20px; }
.video-meta h3 { font-size: 1.1rem; margin-bottom: 6px; }
.video-meta p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.video-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
  background: #fff;
}
.video-empty .placeholder-icon { font-size: 2.4rem; }
.video-empty h3 { color: var(--ink); margin: 12px 0 6px; }

/* Full-width in-page video theater */
.video-theater {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(255, 255, 255, 0.95); justify-content: center; align-items: center;
  flex-direction: column; padding: 24px;
}
.video-theater.open { display: flex; }
.video-theater-inner {
  width: 100%; max-width: 100vw; position: relative;
}
.video-theater-inner video {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  background: #f4f5f6; border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.video-theater-meta {
  color: var(--ink, #1a2a2e); padding: 16px 4px 0; max-width: 100%;
}
.video-theater-meta h3 { font-size: 1.25rem; margin: 0 0 4px; }
.video-theater-meta p { margin: 0; opacity: 0.6; font-size: 0.95rem; }
.video-theater-close {
  position: absolute; top: 16px; right: 20px; z-index: 10000;
  background: rgba(0,0,0,0.08); border: none; color: #333;
  font-size: 1.6rem; line-height: 1; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.video-theater-close:hover { background: rgba(0,0,0,0.15); }

/* Contact */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand-ink), var(--brand-deep));
  color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.contact-card .eyebrow { color: var(--accent); }
.contact-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.contact-card .section-sub { color: rgba(255,255,255,0.82); }
.contact-copy { max-width: 46ch; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-note { font-size: 0.9rem; color: rgba(255,255,255,0.78); margin: 0; }
.contact-note a { color: #fff; text-decoration: underline; }

/* Inquiry form (Contact page) */
/* Contact page: tighter vertical rhythm than the shared .section default */
#contact { padding: clamp(18px, 2.5vw, 30px) 0; }
#contact .section-head { margin-bottom: 18px; }
/* match the intro box to the form width (640px) so their edges line up */
#contact .section-sub { max-width: 640px; margin: 10px auto 0; }

.form-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm);
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 0.86rem; font-weight: 600; color: var(--brand-ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,143,138,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 0; margin: 0; font-size: 0.92rem; font-weight: 600; }
.form-status:not(:empty) { margin-bottom: 8px; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: var(--brand-deep); }
/* padding (not margin) so the empty status above can't collapse this gap away */
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.form-required { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Submission report */
.report-card { text-align: center; padding: clamp(20px, 3vw, 40px); }
.report-icon { font-size: 2.8rem; line-height: 1; margin-bottom: 12px; }
.report-card h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--brand-ink); }
.report-id {
  display: inline-block; margin: 12px 0; padding: 10px 24px;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(14,143,138,0.1); color: var(--brand-deep); border-radius: 10px;
}
.report-note { font-size: 0.92rem; color: var(--dim); margin: 8px 0 20px; }

.report-fields { width: 100%; text-align: left; margin: 16px 0; border-collapse: collapse; }
.report-fields td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-fields td:first-child { font-weight: 600; color: var(--brand-ink); width: 110px; padding-right: 12px; }
.report-fields td:last-child { color: var(--ink); word-break: break-word; }
.report-fields tr:last-child td { border-bottom: none; }
.report-id-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 20px; }

@media print {
  .site-header, .site-footer, .section-head, .report-card .btn { display: none !important; }
  .form-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .report-card { padding: 0; }
  .report-fields td { border-bottom-color: #ccc; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; min-height: 66px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-tag { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.footer-tag::before { content: "—"; margin-right: 10px; color: var(--ink-soft); }
.footer-copy { color: var(--ink-soft); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .techneos-intro { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .mission-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.92rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .track-record { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
