/* ==========================================================================
   Matt Brewer — Corporate site
   Palette: steel blue + white
   ========================================================================== */

:root {
  --steel-950: #142A3D;
  --steel-900: #1F3446;
  --steel-800: #2C4A63;
  --steel-700: #36576F;
  --steel-600: #3E6B8F;
  --steel-500: #4682B4;
  --steel-400: #6C9BC4;
  --steel-200: #C7DAEA;
  --steel-100: #E8F0F7;
  --steel-050: #F4F8FB;

  --ink: #22303C;
  --muted: #5A6B7A;
  --line: #DDE6EE;
  --white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --shadow-sm: 0 1px 3px rgba(20, 42, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 42, 61, 0.10);
  --shadow-lg: 0 18px 44px rgba(20, 42, 61, 0.16);

  --radius: 10px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--steel-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--steel-500);
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-alt {
  background: var(--steel-050);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 44px;
}

.section-head-light {
  text-align: center;
  margin-bottom: 52px;
}

.section-head-light h2 {
  color: var(--white);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 10px;
}

.section-head-light .eyebrow {
  color: var(--steel-400);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--steel-900);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

section {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--steel-800), var(--steel-600));
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--steel-900);
}

.brand-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel-800);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--steel-500);
  border-color: var(--steel-500);
}

.site-nav .nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--steel-500);
  border-radius: 6px;
  color: var(--steel-600);
  border-bottom-width: 1px;
}

.site-nav .nav-cta:hover {
  background: var(--steel-500);
  color: var(--white);
  border-color: var(--steel-500);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--steel-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(70, 130, 180, 0.12), transparent 60%),
    linear-gradient(160deg, var(--steel-050) 0%, #EAF3FA 55%, #DFEDF7 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 88px 0;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--steel-600);
  margin-bottom: 20px;
}

.hero-intro {
  font-size: 1.06rem;
  color: var(--steel-900);
  max-width: 60ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--steel-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--steel-500);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--steel-500);
  color: var(--steel-700);
  background: transparent;
}

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

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid rgba(70, 130, 180, 0.25);
}

.hero-contact a {
  color: var(--steel-700);
  font-weight: 500;
}

.hero-contact a:hover {
  color: var(--steel-500);
}

.hero-contact .sep {
  color: var(--steel-400);
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(340px, 100%);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: linear-gradient(135deg, var(--steel-500), var(--steel-700));
  border-radius: 12px;
  z-index: 0;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  background: linear-gradient(135deg, var(--steel-900) 0%, var(--steel-700) 100%);
  color: var(--white);
  padding: 54px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 8px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:first-child {
  border-left: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-200);
}

/* ==========================================================================
   Executive Profile
   ========================================================================== */

.profile-body {
  max-width: 860px;
}

.profile-body p {
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: 18px;
}

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

/* ==========================================================================
   Core Competencies
   ========================================================================== */

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.comp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel-500);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.comp-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--steel-100);
  color: var(--steel-600);
  margin-bottom: 18px;
}

.comp-icon svg {
  width: 26px;
  height: 26px;
}

.comp-card h3 {
  margin-bottom: 14px;
}

.comp-card ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.comp-card ul li:last-child {
  border-bottom: none;
}

.comp-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-500);
}

/* ==========================================================================
   Experience timeline
   ========================================================================== */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: var(--steel-200);
}

.exp-card {
  position: relative;
  margin-left: 66px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.exp-card:hover {
  box-shadow: var(--shadow-md);
}

.exp-card::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--steel-500);
  box-shadow: 0 0 0 3px var(--steel-100);
}

.exp-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.exp-monogram {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--steel-800), var(--steel-500));
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.exp-meta h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.exp-location {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.exp-role {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--steel-800);
}

.exp-role-secondary {
  font-weight: 500;
  color: var(--muted);
}

.exp-dates {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--steel-500);
  white-space: nowrap;
}

.exp-role .exp-dates::before {
  content: "— ";
  color: var(--steel-200);
}

.exp-summary {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.exp-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.95rem;
  color: var(--ink);
}

.exp-list li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 4px;
  color: var(--steel-500);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ==========================================================================
   Recommendations
   ========================================================================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px 26px;
  box-shadow: var(--shadow-sm);
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 22px;
  font-family: var(--font-serif);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--steel-200);
}

.quote-text {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
  margin: 18px 0 20px;
}

.quote-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quote-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--steel-900);
}

.quote-role {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Education
   ========================================================================== */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.edu-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel-500);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-degree {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--steel-900);
}

.edu-school {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(70, 130, 180, 0.35), transparent 60%),
    var(--steel-900);
  color: var(--white);
  border: none;
}

.contact-lede {
  color: var(--steel-200);
  font-size: 1.05rem;
  margin-top: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--steel-400);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--steel-200);
  margin-bottom: 8px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.contact-value {
  font-weight: 500;
  color: var(--white);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--steel-950);
  color: var(--steel-200);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--white);
}

.footer-copy {
  color: var(--steel-400);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0;
  }

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    width: min(300px, 80%);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 16px;
    display: none;
  }

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

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-cta {
    margin-top: 10px;
    text-align: center;
    border: 1px solid var(--steel-500);
    border-bottom-width: 1px;
    border-radius: 6px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .stats {
    padding: 44px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .stat {
    border-left: none;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .container {
    width: min(1120px, 100% - 36px);
  }

  .exp-card {
    margin-left: 40px;
    padding: 24px 22px 26px;
  }

  .exp-card::before {
    left: -31px;
  }

  .timeline::before {
    left: 15px;
  }

  .exp-head {
    flex-direction: column;
    gap: 12px;
  }

  .exp-dates {
    display: block;
    margin-top: 2px;
  }

  .exp-role .exp-dates::before {
    content: "— ";
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-contact {
    gap: 8px;
  }
}
