:root {
  --ink: #0d2038;
  --blue: #173f70;
  --blue-dark: #102f55;
  --muted: #5d6b7d;
  --line: #d8e0e8;
  --soft: #f6f8fa;
  --white: #ffffff;
  --max: 1060px;
  --content: 660px;
  --header-h: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.content-width { max-width: var(--content); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.brand strong { color: var(--ink); }
.brand .brand-subtitle { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.section { padding: 72px 0 76px; }
.hero { padding-top: 72px; padding-bottom: 78px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .16em;
  font-weight: 700;
}

h1, h2, h3 { margin-top: 0; color: var(--ink); font-weight: 700; }
h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
h2 { margin-bottom: 18px; font-size: 28px; line-height: 1.16; letter-spacing: -.025em; }
h3 { margin-bottom: 7px; font-size: 16px; line-height: 1.28; }
p { margin: 0 0 15px; }
.intro { max-width: 590px; margin-bottom: 30px; font-size: 15.5px; line-height: 1.58; }
.section-lead { max-width: 710px; margin-bottom: 34px; }
.muted, .small-note { color: var(--muted); font-size: 13px; }
.small-note { margin-top: 22px; }

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-meta-item { padding: 15px 20px 15px 0; }
.profile-meta-item + .profile-meta-item { border-left: 1px solid var(--line); padding-left: 24px; }
.profile-meta dt { margin: 0 0 4px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-meta dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(250px, .72fr);
  gap: 60px;
  align-items: start;
}
.portrait-wrap { margin: 54px 0 0; width: 100%; }
.portrait-shell {
  position: relative;
  width: 100%;
  aspect-ratio: .78;
  overflow: hidden;
  background: var(--soft);
}
.portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--blue);
  background: var(--soft);
}
.portrait-fallback span { font-size: 42px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.portrait-fallback small { color: var(--muted); font-size: 12px; }
.portrait-shell.is-fallback .portrait { display: none; }
.portrait-shell.is-fallback .portrait-fallback { display: grid; }

.facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr .88fr;
  border-top: 1px solid var(--line);
  margin-top: 31px;
  padding-top: 19px;
}
.fact { min-width: 0; padding-right: 22px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 27px; }
.fact strong { display: block; margin-bottom: 2px; font-size: 14px; line-height: 1.34; }
.fact span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.hero-actions, .contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 9px 19px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { border-color: #b9c4cf; }

.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.subject { border-top: 2px solid var(--blue); padding-top: 16px; }
.subject p { color: var(--muted); margin-bottom: 9px; }
ul { margin: 0; padding-left: 18px; }
li { margin: 3px 0; }

.viz-list { margin-top: 36px; }
.viz-item {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.viz-item:last-child { border-bottom: 1px solid var(--line); }
.viz-figure {
  position: relative;
  margin: 0;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid #e7ebf0;
}
.viz-image {
  display: block;
  width: 100%;
  height: 230px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
}
.viz-figure-wide .viz-image { height: 250px; padding: 4px; }

/* MATLAB exports are panoramic figures; let their native aspect ratio breathe. */
.viz-figure-matlab {
  min-height: 0;
  background: #fff;
}
.viz-figure-matlab .viz-image {
  width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
}
.viz-image-fallback {
  display: none;
  max-width: 290px;
  padding: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.viz-figure.is-fallback .viz-image { display: none; }
.viz-figure.is-fallback .viz-image-fallback { display: block; }
.viz-tool {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.viz-copy h3 { margin-bottom: 8px; }
.viz-item p { margin: 0; color: var(--muted); max-width: 650px; }

.steps { margin: 25px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 15px; padding-left: 7px; }
.steps li:last-child { margin-bottom: 0; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.testimonial {
  min-width: 0;
  padding: 22px 23px 24px;
  background: var(--soft);
  border: 1px solid #e7ebf0;
}
.testimonial-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 58px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}
.testimonial-score small { margin-left: 2px; font-size: 11px; font-weight: 600; }
.testimonial-author { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.testimonial-context { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.testimonial-subject {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.testimonial blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.62;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 24px 0 24px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-line strong { display: block; font-size: 20px; }
.price-line span { color: var(--muted); font-size: 13px; }
.price-note { text-align: right; }

.faq details { border-top: 1px solid var(--line); padding: 17px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style-position: outside; }
.faq details p { margin: 10px 0 0; }

.contact-section { padding-bottom: 78px; }
.footer { border-top: 1px solid var(--line); padding: 27px 0 34px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; gap: 25px; align-items: center; }
.footer-spacer { flex: 1; }

@media (max-width: 920px) {
  .wrap { width: min(calc(100% - 48px), var(--max)); }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
  .portrait-wrap { margin-top: 54px; }
}

@media (max-width: 760px) {
  :root { --header-h: 52px; }
  .wrap { width: min(calc(100% - 34px), var(--max)); }
  .nav-wrap { min-height: var(--header-h); }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 17px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(13, 32, 56, .06);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 0; font-size: 13px; }
  .section { padding: 50px 0 54px; }
  .hero { padding-top: 38px; padding-bottom: 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait-wrap { order: 0; width: min(72%, 280px); margin: 4px 0 0; }
  h1 { font-size: 39px; }
  h2 { font-size: 25px; }
  .facts { grid-template-columns: 1fr; padding-top: 0; }
  .fact { padding: 13px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .hero-actions { margin-top: 22px; }
  .subjects { grid-template-columns: 1fr; gap: 27px; }
  .viz-item { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .viz-figure { min-height: 180px; }
  .viz-image, .viz-figure-wide .viz-image { height: auto; max-height: 300px; }
  .profile-meta { grid-template-columns: 1fr; }
  .profile-meta-item { padding: 14px 0; }
  .profile-meta-item + .profile-meta-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .testimonials { grid-template-columns: 1fr; }
  .price-line { align-items: flex-start; flex-direction: column; }
  .price-note { text-align: left; }
}

@media (max-width: 420px) {
  h1 { font-size: 35px; }
  .btn { width: 100%; }
  .contact-actions, .hero-actions { align-items: stretch; }
  .portrait-wrap { width: 100%; }
}


.privacy-note {
  margin-top: 1rem;
  color: var(--muted, #5f6b7a);
  font-size: 0.9rem;
  line-height: 1.5;
}
