/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --black: #0a0a0a;
  --near-black: #161616;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gray-100: #efefec;
  --gray-300: #d8d8d4;
  --gray-500: #8f8f8a;
  --gray-700: #4c4c48;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --section-pad: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0; }

.body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 620px;
  margin-top: 20px;
}

.body-text-light { color: var(--gray-300); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-500);
  margin: 0 0 18px;
}

.eyebrow-light { color: var(--gray-300); }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  max-width: 760px;
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section {
  padding: var(--section-pad) 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt { background: var(--off-white); }
.section-dark { background: var(--black); color: var(--white); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled { border-bottom-color: var(--gray-300); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(0.68rem, 2vw, 0.95rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(58vw, 340px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.25s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--black);
  padding: 9px 18px;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--black); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--black);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  padding: 120px 24px 96px;
  position: relative;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-photo {
  order: 2;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--gray-700);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-text { order: 1; text-align: left; }

.hero .eyebrow { color: var(--gray-300); text-align: left; }

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-outline { border-color: var(--gray-500); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

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

.btn-outline-light { border-color: var(--gray-700); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3/4;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================================
   Card grid (expertise)
   ========================================================================== */
.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
}

.card {
  background: var(--off-white);
  padding: 44px 32px;
}

.card-index {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}

.card h3 {
  margin: 20px 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  color: var(--gray-700);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.philosophy-item {
  border-top: 1px solid var(--gray-300);
  padding-top: 20px;
}

.philosophy-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.philosophy-item p {
  color: var(--gray-700);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
}
.stat-suffix {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
}

.stat p {
  margin-top: 10px;
  color: var(--gray-300);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  margin-top: 56px;
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--gray-300);
}

.tl-item {
  position: relative;
  padding-bottom: 56px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--white);
  outline: 1px solid var(--gray-300);
}

.tl-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.tl-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tl-content p:not(.tl-date) {
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 760px;
  font-size: 0.97rem;
}

/* ==========================================================================
   Education
   ========================================================================== */
.edu-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.edu-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-item p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.credentials-row {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 0.85rem;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-photo {
  width: 108px;
  height: 108px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gray-700);
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.contact-inner { text-align: center; }
.contact-inner .section-title { margin: 0 auto; }
.contact-inner .body-text { margin-left: auto; margin-right: auto; text-align: center; }
.contact-inner .hero-actions { margin-top: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--black);
  color: var(--gray-500);
  text-align: center;
  font-size: 0.78rem;
  padding: 28px 24px 40px;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero { padding: 110px 24px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: 1; max-width: 280px; margin: 0 auto; }
  .hero-text { order: 2; text-align: center; }
  .hero .eyebrow { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: 200px; }
  .card-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-300);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .edu-grid { grid-template-columns: 1fr; }
}
