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

:root {
  --navy: #0f1e35;
  --navy-mid: #1a2f4e;
  --navy-light: #243d63;
  --steel: #4a6080;
  --silver: #8a9ab0;
  --mist: #e8ecf2;
  --white: #ffffff;
  --accent: #2a6dd9;
  --accent-light: #4a8ded;
  --rule: rgba(255,255,255,0.1);
  --rule-light: rgba(15,30,53,0.12);
  --font: 'Georgia', 'Times New Roman', serif;
  --sans: 'Helvetica Neue', 'Arial', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  font-size: 16px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* HAMBURGER TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  background: var(--navy);
  padding: 96px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero.hero-compact { padding: 72px 5% 60px; }

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}

.hero-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--silver);
}

.hero-desc {
  font-size: 17px;
  color: var(--silver);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-light); }

.btn-ghost {
  color: var(--silver);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* Inline text link on light backgrounds */
.btn-text {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.btn-text:hover { opacity: 0.65; }

/* CREDENTIALS BAR */
.creds-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--rule);
  padding: 24px 5%;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cred-number {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.cred-label {
  font-size: 12px;
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* SECTIONS */
section {
  padding: 80px 5%;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--steel);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 48px;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
}

.service-card {
  background: var(--white);
  padding: 36px 32px;
}

.service-icon {
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
}

/* CNF SECTION */
.cnf-section {
  background: var(--mist);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.cnf-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cnf-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

a.cnf-tag { text-decoration: none; transition: background 0.2s; }
a.cnf-tag:hover { background: var(--accent); }

.cnf-right {
  border-left: 1px solid var(--rule-light);
  padding-left: 64px;
}

.cnf-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cnf-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
}

.cnf-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ABOUT */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 80px;
}

.degree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--rule-light);
}

.degree-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
}

.degree-list li strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.about-body p {
  font-size: 16px;
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

/* EXPERTISE TAGS */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 860px;
}

.tag-list span {
  display: inline-block;
  background: var(--mist);
  color: var(--navy);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 3px;
  border: 1px solid var(--rule-light);
}

/* EXPERIENCE TIMELINE */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule-light);
  max-width: 820px;
}

.timeline li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
}

.tl-years {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.tl-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.tl-org {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.6;
}

/* RECOGNITION */
.recognition-section {
  background: var(--mist);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.rec-block h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-light);
}

.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rec-list li {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.6;
}

.rec-list li strong {
  color: var(--navy);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.patent-no {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* CTA BAND */
.cta-band {
  background: var(--navy);
  text-align: center;
}

.cta-band .section-heading { color: var(--white); }

.cta-band .section-sub {
  color: var(--silver);
  margin: 0 auto 32px;
}

/* CONTACT */
.contact-section {
  background: var(--navy);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-section .section-heading { color: var(--white); }
.contact-section .section-sub { color: var(--silver); }
.contact-section .section-eyebrow { color: var(--accent-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--sans);
  transition: border-color 0.2s;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--steel); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-light);
}

.form-field select option { background: var(--navy-mid); color: var(--white); }

.form-field textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--accent-light); }

/* FOOTER */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--rule);
  padding: 32px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  font-size: 12px;
  color: var(--silver);
}

.footer-note {
  font-size: 12px;
  color: var(--steel);
}

/* HERO PHOTO BACKGROUND */
.hero--photo::before { display: none; } /* hide the line grid when a photo is used */

.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(15,30,53,0.90) 0%, rgba(15,30,53,0.62) 55%, rgba(15,30,53,0.40) 100%),
    url('images/sem-microposts-hero.jpg') center 35% / cover no-repeat;
}

/* SCROLLING BANNER */
.banner {
  background: var(--navy-mid);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.banner-track {
  display: flex;
  width: max-content;
  animation: scroll-x 165s linear infinite;
}

.banner:hover .banner-track { animation-play-state: paused; }

.banner-track img {
  height: 220px;
  width: auto;
  display: block;
  opacity: 0.9;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* SELECTED WORK GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  background: var(--white);
  padding: 8px;
}

.gallery-cap {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
}

/* MESSAGING: comparison / steps / faq */
.alt-bg { background: var(--mist); border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
.compare-col { border: 1px solid var(--rule-light); border-radius: 4px; padding: 28px; }
.compare-col.us { background: var(--navy); border-color: var(--navy); }
.compare-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.compare-col.you h3 { color: var(--steel); }
.compare-col.us h3 { color: var(--accent-light); }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { font-size: 14px; line-height: 1.5; padding-left: 26px; position: relative; }
.compare-col.you li { color: var(--steel); }
.compare-col.us li { color: #dce3ee; }
.compare-col.you li::before { content: '\2014'; position: absolute; left: 0; color: var(--silver); }
.compare-col.us li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-light); font-weight: 700; }
.compare-note { margin-top: 28px; font-size: 15px; color: var(--steel); font-style: italic; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; }
.step-num { font-family: var(--font); font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--steel); line-height: 1.6; }

.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--rule-light); }
.faq-item summary { cursor: pointer; padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { margin: 0; padding: 0 0 22px; font-size: 15px; color: var(--steel); line-height: 1.7; max-width: 760px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .cnf-inner,
  .about-inner,
  .contact-inner,
  .rec-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .cnf-right { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-light); padding-top: 32px; }
  .about-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .creds-bar { gap: 24px; }
  .banner-track img { height: 165px; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  nav { padding: 0 4%; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 4%;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .banner-track { animation: none !important; }
}
