
:root {
  --bg: #02070d;
  --bg-soft: #07111d;
  --panel: rgba(8, 21, 35, 0.72);
  --panel-strong: rgba(9, 26, 44, 0.92);
  --line: rgba(111, 191, 255, 0.20);
  --line-strong: rgba(111, 191, 255, 0.55);
  --text: #f5f8fb;
  --muted: #9fb0c1;
  --blue: #58b9ff;
  --blue-2: #a8dcff;
  --amber: #f6be6c;
  --shadow: 0 0 50px rgba(55, 157, 255, 0.10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(246,190,108,.12), transparent 28%),
    radial-gradient(circle at 18% 14%, rgba(88,185,255,.16), transparent 28%),
    linear-gradient(180deg, #02070d 0%, #06111b 48%, #02070d 100%);
  min-height: 100vh;
}

body::before {
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display:block; }

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2,7,13,.68);
  border-bottom: 1px solid rgba(111,191,255,.12);
}

.nav {
  min-height: 76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 22px;
}

.brand {
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .86rem;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(88,185,255,.25);
}
.brand .brand-accent { color: #55A9FF; }
.brand span small {
  display:block;
  color: var(--muted);
  font-size:.6rem;
  letter-spacing:.30em;
  margin-top:3px;
}

.nav-links {
  display:flex;
  gap: 24px;
  align-items:center;
  color: var(--muted);
  font-size:.92rem;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(77,177,255,.14), rgba(77,177,255,.05));
  color: white;
  font-weight: 650;
  box-shadow: 0 0 28px rgba(77,177,255,.08);
  transition: .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(77,177,255,.18);
  border-color: var(--blue);
}
.btn.secondary {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.025);
}

.hero {
  padding: 90px 0 74px;
  position:relative;
  overflow:hidden;
}
.hero-grid {
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items:center;
}
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--blue-2);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.75rem;
  font-weight:700;
  margin-bottom: 18px;
}
.eyebrow::before {
  content:"";
  width: 34px;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--blue));
  box-shadow: 0 0 12px var(--blue);
}
h1,h2,h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin:0;
}
h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height:.96;
  letter-spacing:-.055em;
  max-width: 8.5ch;
}
.hero .lead {
  max-width: 650px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height:1.75;
  color: var(--muted);
  margin: 26px 0 30px;
}
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

.logo-orbit {
  position:relative;
  display:grid;
  place-items:center;
  min-height: 560px;
}
.logo-orbit::before,
.logo-orbit::after {
  content:"";
  position:absolute;
  border:1px solid rgba(112,196,255,.16);
  border-radius:50%;
}
.logo-orbit::before { width: 92%; aspect-ratio:1; }
.logo-orbit::after { width: 72%; aspect-ratio:1; }
.logo-card {
  width:min(86%, 480px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius:50%;
  position:relative;
  z-index:2;
  box-shadow:
    0 0 0 1px rgba(119,205,255,.26),
    0 0 70px rgba(64,168,255,.18),
    0 0 140px rgba(64,168,255,.10);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats {
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.stat {
  padding: 26px 22px;
  border-right:1px solid rgba(255,255,255,.06);
}
.stat:last-child { border-right:0; }
.stat strong {
  display:block;
  font-size:1.45rem;
  letter-spacing:-.03em;
}
.stat span {
  display:block;
  color:var(--muted);
  margin-top:5px;
  font-size:.88rem;
}

.section { padding: 92px 0; }
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:40px;
  margin-bottom:36px;
}
.section-head h2 {
  font-size:clamp(2.1rem,4vw,3.8rem);
  letter-spacing:-.04em;
  max-width: 10ch;
}
.section-head p {
  max-width:590px;
  color:var(--muted);
  line-height:1.7;
  margin:0;
}

.grid-3 {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:
    linear-gradient(180deg, rgba(17,39,60,.56), rgba(7,17,29,.62));
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.card::after {
  content:"";
  position:absolute;
  inset:auto -25% -55% auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(88,185,255,.08);
  filter:blur(14px);
}
.card .num {
  color: var(--blue);
  font-size:.76rem;
  letter-spacing:.18em;
  font-weight:700;
}
.card h3, .card .card-heading { margin:42px 0 12px; font-size:1.35rem; }
.card p { color:var(--muted); line-height:1.7; margin:0; }
.card ul {
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
  margin:18px 0 0;
}

.feature {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.feature-panel {
  min-height: 360px;
  padding: 34px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(246,190,108,.09), transparent 34%),
    linear-gradient(135deg, rgba(11,32,52,.85), rgba(4,12,20,.9));
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.feature-panel.alt {
  background:
    radial-gradient(circle at 10% 5%, rgba(88,185,255,.15), transparent 38%),
    linear-gradient(135deg, rgba(4,13,22,.95), rgba(9,25,41,.85));
}
.feature-panel h3, .feature-panel .feature-heading { font-size:2rem; max-width:10ch; }
.feature-panel p { color:var(--muted); max-width:44ch; line-height:1.7; }

.quote {
  text-align:center;
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 54px 28px;
  background: rgba(255,255,255,.02);
}
.quote p {
  margin:0 auto;
  max-width:850px;
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(1.6rem,3vw,2.8rem);
  line-height:1.3;
  letter-spacing:-.03em;
}

.contact {
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items:start;
}
.contact-copy p { color:var(--muted); line-height:1.75; }
form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
label { font-size:.82rem; color:var(--muted); }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1/-1; }
input, textarea {
  width:100%;
  padding:14px 15px;
  color:white;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  outline:none;
}
input:focus, textarea:focus {
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(88,185,255,.08);
}
textarea { min-height:130px; resize:vertical; }

footer {
  border-top:1px solid rgba(255,255,255,.07);
  padding:32px 0 46px;
  color:var(--muted);
}
.footer-grid {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}
.footer-grid nav { display:flex; gap:18px; flex-wrap:wrap; }
.footer-social { display: inline-flex; align-items: center; }
.footer-social:hover,
.footer-social:focus-visible { color: var(--blue); }
.footer-social:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 3px;
}


.page-hero {
  padding: 96px 0 50px;
}
.page-hero h1 {
  max-width: 12ch;
  font-size:clamp(3rem,6vw,5.6rem);
}
.page-hero p {
  color:var(--muted);
  max-width:720px;
  font-size:1.1rem;
  line-height:1.75;
}

.mobile-toggle { display:none; }

@media (max-width: 900px) {
  .hero-grid, .feature, .contact { grid-template-columns:1fr; }
  .hero { padding-bottom: 24px; }
  .hero-grid { row-gap: 24px; }
  .logo-orbit {
    min-height: 0;
    padding: 20px 0 10px;
  }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:1fr; }
  .section-head { display:block; }
  .section-head h2 { margin-bottom:18px; }
  .nav-links {
    position:absolute;
    top:76px;
    left:0; right:0;
    background:rgba(2,7,13,.97);
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:18px 24px 24px;
    flex-direction:column;
    align-items:flex-start;
    display:none;
  }
  .nav-links.open { display:flex; }
  .mobile-toggle {
    display:inline-flex;
    width:42px;
    height:42px;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.1);
    border-radius:50%;
    background:transparent;
    color:white;
    font-size:1.2rem;
  }
}

@media (max-width: 580px) {
  .hero { padding-top:58px; }
  h1 { font-size:clamp(3rem,16vw,5.1rem); }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .stat { padding:20px 12px; }
  .section { padding:72px 0; }
  form { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .footer-grid { flex-direction:column; align-items:flex-start; }
  .brand span { display:none; }
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-hero {
  padding-bottom: 2rem;
}

.contact-hero h1 {
  max-width: 800px;
}

.contact-hero p {
  max-width: 680px;
}


.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr;
  gap: 70px;
  align-items: start;
}

.contact-intro {
  min-width: 0;
}

.contact-intro h2 {
  margin: 14px 0 18px;
  font-size: 2rem;
}

.contact-intro > p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}


/* Process */

.contact-points {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.contact-points > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;

  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.contact-points strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.contact-points span {
  font-size: 0.95rem;
}


/* Form card */

.contact-card {
  position: relative;
  padding: 32px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.01)
    );

  box-shadow:
    0 25px 70px rgba(0,0,0,0.25);

  min-width: 0;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;

  padding-bottom: 18px;
  margin-bottom: 26px;

  border-bottom: 1px solid var(--line);

  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: block;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #7dc7ff;

  box-shadow:
    0 0 10px rgba(125,199,255,0.7);
}


/* Form */

.contact-card form {
  display: block;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 22px;
  width: 100%;
}

.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.form-grid label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b8c9d8;
}

.form-grid input,
.form-grid textarea {
  display: block;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 14px 16px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: rgba(255,255,255,0.025);

  color: var(--text);

  font-family: inherit;
  font-size: 0.9rem;

  outline: none;

  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.form-grid input {
  min-height: 54px;
}

.form-grid textarea {
  min-height: 210px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #568eb6;

  background: rgba(255,255,255,0.04);

  box-shadow:
    0 0 0 3px rgba(86,142,182,0.10);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #647381;
}


/* Submit */

.form-submit {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 18px !important;

  margin-top: 4px;
}

.form-submit .btn {
  width: auto;
  min-width: 170px;
}

#form-status {
  color: var(--muted);
  font-size: 0.82rem;
}


/* Mobile */

@media (max-width: 900px) {

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

}

@media (max-width: 600px) {

  .contact-card {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .field {
    grid-column: 1 / -1;
  }

  .form-submit {
    flex-direction: column !important;
    align-items: stretch;
  }

  .form-submit .btn {
    width: 100%;
  }

}
/* Privacy page */

.privacy-hero {
  padding-top: 60px;
  padding-bottom: 50px;
}

.privacy-intro {
  max-width: 900px;
}

.privacy-content {
  padding-top: 0;
  padding-bottom: 90px;
}

.privacy-body {
  max-width: 1050px;
}
.privacy-body h2 {
  margin-top: 42px;
  margin-bottom: 14px;
}

.privacy-body h2:first-child {
  margin-top: 0;
}

.privacy-body p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.privacy-body h2:not(:first-child) {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-body a {
  color: #63b3ff;
}
/* Homepage: retain one section's spacing between the lab, Insights and principle. */
.home-follow-on { padding-top: 0; }
.home-follow-on .section-head h2 { max-width: 18ch; }

#latest-from-the-lab .feature {
  align-items: center;
  gap: 36px;
}
#latest-from-the-lab .section-head { margin-bottom: 0; }
#latest-from-the-lab .section-head h2 { margin-bottom: 18px; }
#latest-from-the-lab .hero-actions { margin-top: 24px; }
#latest-from-the-lab .card::after { pointer-events: none; }
#latest-from-the-lab a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Homepage R&D: two columns within the existing panel. */
.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.rd-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rd-exploration {
  min-width: 0;
  padding-left: 48px;
  border-left: 1px solid rgba(99, 179, 255, 0.22);
  align-self: start;
}

.rd-exploration h4,
.rd-exploration .exploration-heading,
.rd-exploration dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.rd-exploration h4, .rd-exploration .exploration-heading {
  margin: 0 0 24px;
  color: var(--muted);
}

.rd-exploration dl {
  margin: 0;
}

.rd-exploration dl > div,
.exploration-item {
  padding: 28px 0;
  border-top: 1px solid rgba(99, 179, 255, 0.22);
}

.rd-exploration dt {
  color: var(--blue-2);
}

.rd-exploration dd {
  margin: 8px 0 0;
  line-height: 1.5;
}

.exploration-item h3 {
  margin: 8px 0 12px;
}

.exploration-item p {
  max-width: 600px;
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .rd-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rd-exploration {
    padding-left: 0;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid rgba(99, 179, 255, 0.22);
  }
}

/* Contact card after a successful enquiry. */
.contact-success-icon { display: block; color: var(--blue); margin-bottom: 24px; }
.contact-success h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; scroll-margin-top: 100px; }
.contact-success > p { color: var(--muted); line-height: 1.7; }
.contact-success .contact-success-subheading { color: var(--text); font-size: 1.1rem; }
.contact-success-links { margin: 28px 0; gap: 12px; }
.contact-success-links .card { padding: 18px; min-width: 0; }
.contact-success-links .card::after { pointer-events: none; }
.contact-success-links h3 { margin: 0 0 10px; font-size: 1rem; }
.contact-success-links p { font-size: .85rem; }
.contact-success-links a:hover { border-color: var(--blue); }
.contact-success a:focus-visible,
.contact-success h2:focus { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Preserve the original small panel-label typography after heading correction. */
.rd-exploration .exploration-heading { font-family: inherit; max-width: none; }

/* About page spacing within shared cards. */
.about-page .card .btn { margin-top: 20px; position: relative; z-index: 1; }
.about-statement { margin-top: 24px; }

/* About sections share the space between adjacent content blocks. */
.about-page .page-hero { padding-bottom: 28px; }
.about-page .page-hero p:last-child { margin-bottom: 0; }
.about-page .section { padding: 28px 0; }

@media (max-width: 900px) {
  .about-page .page-hero { padding-bottom: 20px; }
  .about-page .section { padding: 20px 0; }
}

/* Balance internal spacing across About cards without changing other pages. */
.about-page .card { padding: 40px 28px; }
.about-page .card > h3:first-child { margin-top: 0; }
.about-page .card > .num + h3 { margin-top: 20px; }

@media (max-width: 900px) {
  .about-page .card { padding: 32px 28px; }
}
