/* ---------- Design tokens ---------- */
/* Only three colors used anywhere on this page: white, navy (#041E42), gray (#63666A) — plus alpha variants of those same colors for subtle washes/borders. */
:root {
  --white: #FFFFFF;
  --navy: #041E42;
  --gray: #63666A;

  --bg: var(--white);
  --text: var(--navy);
  --text-muted: var(--gray);
  --border: rgba(99, 102, 106, 0.35);
  --accent: var(--navy);
  --accent-soft: rgba(4, 30, 66, 0.05);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

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

ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--navy);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--gray); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-small {
  padding: 11px 22px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  background: var(--white);
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(4, 30, 66, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--navy);
  flex-shrink: 0;
}
.logo .dot { color: var(--gray); }
.logo-mark {
  display: block;
  opacity: 0.5;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 34px;
  margin: 0 auto;
}
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--navy); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 0 60px;
  background:
    radial-gradient(ellipse 800px 500px at 15% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
}

.hero-inner { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-media {
  position: relative;
  top: -16px;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  opacity: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(44px, 7.2vw, 48px);
  max-width: 16ch;
  margin-bottom: 30px;
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  color: var(--gray);
}

.hero-lead {
  font-size: 19px;
  max-width: 46ch;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.glance {
  border-top: 1px solid var(--border);
  padding-top: 34px;
}
.glance-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.glance-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 6px;
}
.glance-value .accent { color: var(--gray); }
.glance-name {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.scroll-cue {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--navy), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 130px 0; }

/* One inverted band (Impact) for visual rhythm; every other section stays white. */
.section-invert {
  background: var(--navy);
  color: var(--white);
}
.section-invert p { color: var(--white); }
.section-invert .section-kicker,
.section-invert .section-title { color: var(--white); }

.section-kicker {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--navy);
  max-width: 18ch;
  margin-bottom: 60px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 90px;
}
.about-main .section-title { margin-bottom: 34px; }
.about-main p { font-size: 18px; }

blockquote {
  margin: 40px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--navy);
}

.quote-section {
  padding: 110px 0 110px;
}

.quote-section + .section {
  padding-top: 40px;
}

.standalone-quote {
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.standalone-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 30px;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 auto 16px;
  max-width: 780px;
}

.standalone-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 8px;
}
.side-item {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.side-item:last-child { border-bottom: none; }
.side-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.side-value {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--navy);
  margin: 0;
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.expertise-card {
  background: var(--white);
  padding: 42px 36px;
  transition: background 0.3s ease;
}
.expertise-card:hover { background: rgba(99, 102, 106, 0.08); }
.card-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}
.expertise-card h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 14px;
}
.expertise-card p { font-size: 15.5px; margin: 0; }

/* ---------- Experience / Timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 50px;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-date {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--navy);
  padding-top: 4px;
}

.timeline-body h3 {
  font-size: 25px;
  color: var(--navy);
  margin-bottom: 8px;
}
.timeline-meta {
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.timeline-desc {
  font-size: 16.5px;
  margin-bottom: 20px;
  max-width: 60ch;
}
.timeline-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-body li {
  font-size: 15.5px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.timeline-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--navy);
}

/* ---------- Impact (inverted navy band) ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.impact-item {
  border-top: 2px solid var(--white);
  padding-top: 24px;
}
.impact-value {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--white);
  margin: 0 0 12px;
}
.impact-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
}
.impact-desc {
  font-size: 14.5px;
  margin: 0;
  color: var(--white);
  opacity: 0.75;
}

/* ---------- Portfolio ---------- */
.portfolio-lead {
  font-size: 19px;
  max-width: 72ch;
  text-wrap: balance;
  margin: -30px 0 60px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.7s ease, transform 0.7s ease;
}
.portfolio-card:hover {
  border-color: var(--navy);
  box-shadow: 0 18px 40px rgba(4, 30, 66, 0.1);
}

.portfolio-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
  cursor: zoom-in;
  overflow: hidden;
}
.portfolio-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s ease;
}
.portfolio-thumb:hover img { transform: scale(1.04); }
.portfolio-thumb:focus-visible,
.portfolio-links a:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
/* Wide or tall images that would lose meaning if cropped */
.portfolio-thumb.contain { padding: 14px; }
.portfolio-thumb.contain img { object-fit: contain; object-position: center; }
/* Tall image: fill the frame, anchored to the top */
.portfolio-thumb.top img { object-position: center top; }

.portfolio-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}
.portfolio-tag {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 12px;
}
.portfolio-body h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.portfolio-body p:not(.portfolio-tag) { font-size: 15.5px; }
.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 22px;
}
.portfolio-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.portfolio-links a:hover { color: var(--gray); border-color: var(--gray); }

/* Image viewer */
.lightbox {
  width: min(1100px, 92vw);
  max-height: 92vh;
  margin: auto;
  padding: 20px;
  border: none;
  background: var(--white);
  color: var(--navy);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(4, 30, 66, 0.82); }
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 110px);
  margin: 0 auto;
  object-fit: contain;
}
.lightbox-caption {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--navy);
  text-align: center;
  margin: 16px 0 0;
}
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.lightbox-close:hover { color: var(--gray); }

/* ---------- Recognition ---------- */
.recognition-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
}
.recognition-heading {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 30px;
  font-family: var(--font-body);
  font-weight: 600;
}
.recognition-heading.spaced { margin-top: 50px; }

.talk {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.talk:last-child { border-bottom: 1px solid var(--border); }
.talk-year {
  font-family: var(--font-heading);
  color: var(--gray);
  font-size: 15px;
  padding-top: 2px;
}
.talk h4 {
  font-size: 17.5px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 500;
}
.talk p { font-size: 14px; margin: 0; color: var(--gray); }

.diamond-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.diamond-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--navy);
  font-size: 10px;
}

/* ---------- Book ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.book-cover { justify-self: start; }
.book-cover img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  box-shadow: 0 30px 60px rgba(4, 30, 66, 0.18), 0 4px 12px rgba(4, 30, 66, 0.1);
}
.book-content .section-title { margin-bottom: 24px; }
.book-desc { font-size: 18px; max-width: 54ch; margin-bottom: 30px; }
.book-points { margin-bottom: 40px; }
.book-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-lead {
  font-size: 19px;
  max-width: 60ch;
  margin-bottom: 70px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
}
.contact-info { display: flex; flex-direction: column; gap: 30px; }

.email-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.email-value {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--navy);
  transition: color 0.2s ease;
}
.email-link:hover .email-value { color: var(--gray); }

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.social-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover { color: var(--navy); border-color: var(--navy); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--navy); }
.contact-form .btn { margin-top: 12px; align-self: flex-start; }
.form-status {
  font-size: 14px;
  color: var(--navy);
  margin: 0;
  min-height: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
  margin: 0;
}
.footer-divider { color: var(--gray); margin: 0 6px; }
.back-to-top {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.back-to-top:hover { color: var(--navy); }
.footer-copy {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 32px 30px;
    gap: 18px;
  }

  .about-grid,
  .contact-grid,
  .recognition-grid,
  .book-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .book-cover img { max-width: 220px; }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .glance-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline-item { grid-template-columns: 1fr; gap: 12px; }

  .section { padding: 90px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }
  .hero-media {
    justify-self: start;
    max-width: 260px;
    top: -20px;
    order: -1;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-body { padding: 24px 22px 26px; }
  .lightbox { padding: 12px; }
  .impact-grid { grid-template-columns: 1fr; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 80px; }
  .scroll-cue { display: none; }
  .hero-media { max-width: 200px; }
}
