:root {
  --ink: #f3f7f8;
  --ink-2: #c9d4d8;
  --paper: #071116;
  --paper-2: #0e1b22;
  --line: rgba(189, 222, 229, 0.16);
  --muted: #91a5ad;
  --accent: #2fb7c8;
  --accent-2: #74d8e3;
  --electric: #57c7b4;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 183, 200, 0.14), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(87, 199, 180, 0.08), transparent 26%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(31, 143, 120, 0.4);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: #071116;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 22, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 17, 22, 0.94);
}

.nav {
  width: min(100% - 40px, var(--max));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(116, 216, 227, 0.28);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Homepage-only: larger, dark-theme-native logo treatment */
body.home .brand {
  gap: 18px;
  margin-left: 4px;
}

body.home .brand-mark {
  width: auto;
  height: 68px;
  aspect-ratio: 2298 / 1824;
  padding: 6px 10px;
  box-sizing: border-box;
  border-color: rgba(116, 216, 227, 0.32);
  background: rgba(5, 12, 16, 0.9);
}

body.home .brand-mark img {
  object-fit: contain;
  object-position: center;
}

body.home .brand-text {
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(116, 216, 227, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 17, 22, 0.86), rgba(7, 17, 22, 0.62)),
    radial-gradient(circle at 78% 20%, rgba(47, 183, 200, 0.18), transparent 30%),
    linear-gradient(145deg, var(--paper), #10252d);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 216, 227, 0.28), transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.home-hero h1 {
  max-width: 620px;
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-text,
.page-hero p,
.lead-copy,
.contact-aside p,
.profile-band p {
  color: #b6c7cd;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #0f6f91);
  color: #041015;
  border-color: rgba(116, 216, 227, 0.72);
  box-shadow: 0 18px 48px rgba(47, 183, 200, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.lab-console,
.contact-form {
  border: 1px solid var(--line);
  background: rgba(14, 27, 34, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.footer-inner,
.console-top,
.contact-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

/* Homepage hero visual: full lab image, framed rather than a fake data panel */
.hero-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #03090c;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.94) brightness(0.98);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(116, 216, 227, 0.24);
  pointer-events: none;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding-bottom: 48px;
}

.muted {
  background:
    linear-gradient(180deg, rgba(116, 216, 227, 0.03), transparent),
    var(--paper-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 56px;
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.services-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.value-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.value-card span,
.process-step span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card p,
.value-card p,
.process-step p {
  color: var(--muted);
}

.service-card ul,
.proof-list {
  padding-left: 18px;
  color: #b8c8ce;
}

.profile-band,
.cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.profile-band h2,
.cta-strip h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--electric);
  font-weight: 800;
}

/* Services page: four-card service panel layout */
.service-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.service-panel-media {
  position: relative;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #03090c;
}

.service-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.service-panel-body {
  display: flex;
  flex-direction: column;
}

.service-panel-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-panel h2 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.service-panel-body p {
  margin-bottom: 12px;
  color: var(--muted);
}

.service-panel-body ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: #b8c8ce;
  font-size: 0.94rem;
}

/* Offensive security card: restrained accent echoing the supplied graphic */
.service-panel-offensive {
  border-color: rgba(255, 122, 105, 0.3);
}

.service-panel-offensive .service-panel-media {
  border-color: rgba(255, 122, 105, 0.28);
}

.service-panel-offensive .service-panel-index {
  color: #ff8a72;
}

/* Services page: AI + security convergence graphic */
.convergence {
  margin-top: 40px;
}

.convergence-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 30px;
}

.convergence-node {
  position: relative;
  padding: 16px 14px;
  border: 1px solid var(--line);
  background: rgba(14, 27, 34, 0.6);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.convergence-node::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 1px;
  height: 30px;
  background: var(--line);
  transform: translateX(-50%);
}

.convergence-connector {
  height: 1px;
  margin: 0 auto;
  width: 70%;
  background: var(--line);
}

.convergence-hub {
  width: max-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 14px 30px;
  border: 1px solid rgba(116, 216, 227, 0.4);
  background: rgba(47, 183, 200, 0.08);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Services page: numbered timeline nodes for the method steps */
.process-steps {
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.process-step {
  position: relative;
}

.process-step .process-step-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(116, 216, 227, 0.4);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
}

/* AI Brief page: editorial company/news list */
.brief-list {
  display: grid;
}

.brief-entry {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.brief-entry:first-child {
  padding-top: 0;
  border-top: none;
}

.brief-entry-head h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.brief-entry-head p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.brief-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-models span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brief-developments {
  display: grid;
  gap: 22px;
}

.brief-item h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.brief-item p {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.brief-source {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.brief-source a {
  color: var(--accent-2);
  font-weight: 700;
}

.brief-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.brief-ad {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.brief-ad-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brief-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* AI Brief hero: restrained headline size so it does not overwhelm the page */
.page-hero.brief-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

/* About page: grounded, compact hero headline */
.page-hero.about-hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.14;
}

/* Contact page: concise, non-towering hero headline */
.page-hero.contact-hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.14;
}

/* About page: technical foundation fact strip */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.foundation-item {
  padding: 26px 24px;
  background: var(--paper-2);
}

.foundation-item h3 {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 0.98rem;
}

.foundation-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* About page: compact working-philosophy list */
.principles-list {
  display: grid;
  gap: 0;
}

.principle {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.principle:first-child {
  padding-top: 0;
  border-top: none;
}

.principle h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

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

/* About page: restrained AI + security meeting-point mark */
.meeting-point {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  padding: 12px 0 8px;
}

.meeting-point span {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.meeting-point-glyph {
  color: var(--accent-2);
  font-weight: 400;
}

/* Homepage: AI+security venn and Schofield Ventures mark */
.venn {
  position: relative;
  height: 220px;
}

.venn-circle {
  position: absolute;
  top: 10px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.venn-ai {
  left: 4%;
  border: 1px solid rgba(116, 216, 227, 0.4);
  background: rgba(47, 183, 200, 0.08);
  color: var(--accent-2);
}

.venn-sec {
  left: 32%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
}

.sv-section {
  padding: 56px 0;
}

.sv-section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  max-width: 640px;
}

.final-cta {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 76px 0 96px;
}

.final-cta .container {
  max-width: 640px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
}

.final-cta .lead-copy {
  margin: 0 auto 28px;
}

.page-hero {
  position: relative;
  padding: 108px 0 76px;
  background:
    linear-gradient(135deg, rgba(47, 183, 200, 0.16), transparent 36%),
    var(--paper);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

/* Services page hero: restrained headline size so it does not overwhelm the page */
.page-hero.services-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.process {
  display: grid;
  gap: 46px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  padding: 26px;
  background: var(--paper-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contact-form {
  padding: 30px;
}

.contact-intro {
  display: grid;
  gap: 22px;
  align-content: start;
}

.contact-intro h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.contact-note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-steps .eyebrow {
  margin-bottom: 10px;
}

.contact-steps ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  font-weight: 800;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 0;
}

.form-row textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-detail {
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-detail span {
  color: var(--accent-2);
  font-weight: 800;
}

.contact-detail p {
  margin: 0;
  text-align: right;
}

.site-footer {
  padding: 28px 0;
  background: #03090c;
  color: #d8dedb;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--electric);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(7, 17, 22, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner,
  .split,
  .profile-band,
  .cta-strip,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .services-grid,
  .values-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .foundation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-steps::before {
    display: none;
  }

  .service-panels {
    grid-template-columns: 1fr;
  }

  .brief-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .convergence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venn-circle {
    width: 140px;
    height: 140px;
  }

  .venn-sec {
    left: 40%;
  }

  .contact-detail,
  .footer-inner {
    display: grid;
  }

  .contact-detail p {
    text-align: left;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .brand-text {
    font-size: 0.95rem;
  }

  body.home .brand {
    gap: 12px;
    margin-left: 0;
  }

  body.home .brand-mark {
    height: 52px;
  }

  .section,
  .page-hero {
    padding: 64px 0;
  }

  .hero {
    padding: 54px 0 58px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-card,
  .value-card,
  .profile-band,
  .cta-strip,
  .contact-form {
    padding: 22px;
  }

  .venn {
    height: 190px;
  }

  .venn-circle {
    width: 120px;
    height: 120px;
  }

  .venn-ai {
    left: 0;
  }

  .service-panel {
    grid-template-columns: 1fr;
  }

  .service-panel-media {
    max-width: 260px;
    margin: 0 auto;
  }

  .convergence-row {
    grid-template-columns: 1fr;
  }

  .convergence-node::after {
    display: none;
  }

  .venn-sec {
    left: 46%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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