:root {
  --navy: #1d3746;
  --navy-2: #294958;
  --blue: #1d3746;
  --teal: #526773;
  --sand: #526773;
  --offwhite: #f3f3f5;
  --ink: #132a36;
  --muted: #526773;
  --line: #d9dfe2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(4, 25, 43, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 27, 45, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark {
  display: grid; place-items: center;
  width: 70px; height: 70px;
  border: 0;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; letter-spacing: .01em; }
.brand-text small { margin-top: 4px; color: #c6d0d5; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #dce6ed; font-size: .92rem; font-weight: 600; }
.main-nav a:hover { color: var(--white); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 3px; }
.menu-toggle { display: none; background: transparent; color: white; border: 0; font-size: 1.6rem; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,24,41,.94) 0%, rgba(6,24,41,.82) 46%, rgba(6,24,41,.56) 100%),
    url('https://images.unsplash.com/photo-1786108827589-59d6c1dd6ec1?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=82&w=2400') center 52%/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background: linear-gradient(transparent, rgba(4,19,32,.4));
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: center; padding: 90px 0; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: #d7e0e4; margin-bottom: 20px; }
.eyebrow.dark { color: var(--blue); }
.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: .98;
  margin: 0 0 26px;
  letter-spacing: -.045em;
}
.hero h1 span { color: #ffffff; }
.hero-copy > p { max-width: 720px; color: #d8e2e9; font-size: 1.16rem; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 3px; font-weight: 800; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--offwhite); }
.btn-secondary { border-color: rgba(255,255,255,.28); color: white; background: rgba(255,255,255,.05); }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; max-width: 720px; }
.hero-proof div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 13px; }
.hero-proof strong { display: block; font-size: .96rem; }
.hero-proof span { display: block; margin-top: 2px; color: #9db2c1; font-size: .8rem; }
.hero-card { background: rgba(255,255,255,.96); color: var(--ink); padding: 34px; box-shadow: var(--shadow); border-top: 5px solid var(--navy); }
.hero-card-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); font-weight: 800; }
.hero-card h2 { margin: 12px 0 22px; font-size: 1.6rem; line-height: 1.3; }
.hero-card ul { margin: 0; padding-left: 20px; color: #4b5964; }
.hero-card li { margin: 10px 0; }

.trust-strip { background: var(--navy); color: white; border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-grid div { padding: 24px 22px; border-right: 1px solid rgba(255,255,255,.08); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid span { color: var(--teal); font-size: .72rem; font-weight: 800; display:block; margin-bottom:8px; }
.trust-grid strong { display:block; font-size:.98rem; }
.trust-grid small { color:#9cb0bf; }

.section { padding: 100px 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.section-heading.compact { grid-template-columns: 1fr; }
.section-heading h2, .reg-copy h2, .about-panel h2, .cta-section h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.03em;
}
.section-heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; padding: 30px; border: 1px solid var(--line); background: white; min-height: 340px; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card.featured { background: var(--offwhite); border-top: 5px solid var(--blue); }
.service-number { color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { margin: 13px 0 12px; font-size: 1.28rem; }
.service-card p { color: var(--muted); }
.service-card ul { padding-left: 18px; margin-top: 18px; color: #44515a; }
.service-card li { margin: 7px 0; }

.reg-section { background: var(--navy); color: white; padding: 100px 0; }
.reg-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.reg-copy p { color: #b7c7d3; max-width: 480px; }
.text-link { display: inline-block; margin-top: 12px; color: #ffffff; font-weight: 700; }
.reg-list { border-top: 1px solid rgba(255,255,255,.14); }
.reg-list div { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.reg-list strong { color: #fff; }
.reg-list span { color: #aabcc8; }

.industries-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.industries-grid article { background: var(--offwhite); padding: 30px 26px; border-bottom: 4px solid var(--sand); }
.industries-grid span { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.industries-grid h3 { margin: 16px 0 8px; }
.industries-grid p { color: var(--muted); margin: 0; }

.about-section { background: var(--offwhite); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.about-panel { background: var(--blue); color: white; padding: 50px; }
.about-panel p { color: #d5e4eb; font-size: 1.05rem; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-points div { background: white; padding: 28px; border-top: 3px solid var(--teal); }
.about-points p { color: var(--muted); margin-bottom: 0; }

.cta-section { background: var(--navy); color: white; padding: 100px 0; }
.cta-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-form { background: white; color: var(--ink); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 15px; }
input, textarea { width: 100%; margin-top: 7px; padding: 14px 14px; border: 1px solid #ccd5db; border-radius: 2px; font: inherit; color: var(--ink); background: white; }
textarea { resize: vertical; }
.full { width: 100%; border: 0; }
.form-note { display: block; margin-top: 12px; color: #7a8791; }

.site-footer { background: #132a36; color: #dbe4e9; padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 30px; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size:.85rem; }
.footer-links { display: flex; gap: 18px; justify-content: center; font-size: .85rem; }
.footer-copy { text-align: right; color:#8ea1ae; font-size:.8rem; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 22px 20px; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 18px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .section-heading, .reg-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 680px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-text small { display: none; }
  .hero-grid { padding: 70px 0; }
  .hero h1 { font-size: 3.25rem; }
  .hero-proof { grid-template-columns: 1fr; gap: 10px; }
  .trust-grid, .services-grid, .industries-grid, .about-points, .form-row { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .reg-list div { grid-template-columns: 1fr; gap: 5px; }
  .section, .reg-section, .about-section, .cta-section { padding: 72px 0; }
  .hero-card, .contact-form, .about-panel { padding: 26px; }
}

/* MSS brand-guide refinements */
.brand-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 0%; background: var(--transparent); flex: 0 0 auto; }
.footer-logo { width: 58px; height: 58px; }
.brand-text strong { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; }
.hero-card, .service-card, .contact-form, .industries-grid article, .about-points div { border-radius: 0; }
.btn, .nav-cta, input, textarea { border-radius: 1px; }
.hero::before { content:""; position:absolute; width:520px; height:520px; right:-120px; bottom:-160px; border:1px solid rgba(255,255,255,.07); border-radius:50%; box-shadow: 0 0 0 44px rgba(255,255,255,.025), 0 0 0 88px rgba(255,255,255,.018); }
@media (max-width:640px){ .brand-logo { width:48px; height:48px; } }

/* Founder / expertise section */
.about-intro { max-width: 820px; margin-bottom: 46px; }
.about-intro h2 { font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.about-intro p { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.about-founder-grid { align-items: stretch; }
.founder-panel h3 { font-family: "Libre Baskerville", Georgia, serif; font-size: 2rem; margin: 12px 0 2px; }
.founder-title { text-transform: uppercase; letter-spacing: .11em; font-size: .78rem !important; font-weight: 700; color: #fff !important; margin-top: 0; }
.founder-email { display: inline-block; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.55); font-weight: 700; }
.form-note a { color: var(--blue); font-weight: 700; }

/* Contact form submission states */
.contact-form select {
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  border: 1px solid #ccd5db;
  border-radius: 1px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(29, 55, 70, .22);
  outline-offset: 1px;
  border-color: var(--navy);
}
.contact-form button:disabled {
  opacity: .65;
  cursor: wait;
}
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.form-status {
  min-height: 24px;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 700;
}
.form-status.success { color: #1f6b43; }
.form-status.error { color: #a33030; }
