:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --card-alt: #edf2f8;
  --ink: #14151f;
  --text-muted: #6b7280;
  --accent: #2f8ff0;
  --accent-2: #5aacff;
  --accent-soft: #e6f2fe;
  --border: #e3e7ee;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
  --shell-pad: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

a { color: inherit; }

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--shell-pad) 24px 0;
}

.section {
  padding: 88px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--card-alt);
  border-radius: var(--radius-lg);
}

/* Nav shell */
.nav-shell {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  box-shadow: 0 8px 30px rgba(20, 21, 31, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--accent); font-weight: 700; }

.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background-color: var(--accent);
  -webkit-mask-image: url('../images/brand-mark.png');
  mask-image: url('../images/brand-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

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

.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover, .nav a.active { color: var(--ink); }

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

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

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-icon svg { width: 13px; height: 13px; }

.btn-dark {
  background: var(--ink);
  color: #fff;
  padding-right: 8px;
}

.btn-dark .btn-icon { background: rgba(255,255,255,0.16); color: #fff; }
.btn-dark:hover { background: #24242f; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}

.btn-accent .btn-icon { background: rgba(255,255,255,0.2); color: #fff; }
.btn-accent:hover { box-shadow: 0 12px 28px rgba(108, 92, 231, 0.45); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--ink);
  background: #fff;
  padding-right: 8px;
}

.btn-icon-outline { background: var(--accent-soft); color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); }

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-light:hover { background: #f4f2ff; }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Hero shell */
.hero-shell {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  margin-top: 16px;
  padding: 56px 64px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-text h1 span { color: var(--text-muted); font-weight: 600; }

.hero-lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 28px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.avatar-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.avatar-stack img, .avatar-extra {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--card-alt);
  object-fit: contain;
  padding: 6px;
  margin-left: -12px;
  box-shadow: 0 2px 8px rgba(20,21,31,0.08);
}

.avatar-stack img:first-child { margin-left: 0; }

.avatar-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
}

.trust-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 22ch;
}

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

.hero-actions.center { justify-content: center; margin-bottom: 0; }

/* Hero photo */
.hero-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 420px;
}

.photo-halo {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--accent-soft), #f7f5ff);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  top: 8%;
}

.hero-photo img {
  position: relative;
  width: 82%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(20,21,31,0.14);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Social strip */
.social-strip {
  position: absolute;
  top: 56px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-alt);
  border-radius: 999px;
  padding: 12px 9px;
}

.social-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
}

.social-strip a svg { width: 15px; height: 15px; }

/* Stat strip */
.strip {
  margin-top: 16px;
  padding: 32px 24px;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 6px 20px rgba(20,21,31,0.05);
}

.strip-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}

.strip-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 28px;
}

.section-title.light { color: #fff; }

.section-lede {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 72ch;
  margin-bottom: 40px;
}

.section-lede.light { color: rgba(255,255,255,0.85); }

.about-grid p {
  max-width: 78ch;
  color: var(--ink);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

/* Scope cards */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.scope-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(20,21,31,0.05);
}

.scope-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.scope-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.scope-card li { margin-bottom: 8px; }

/* Expertise cards */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(20,21,31,0.05);
}

.expertise-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1.3;
}

.scope-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  max-width: 78ch;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: 0 6px 20px rgba(20,21,31,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20,21,31,0.09);
}

.timeline-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--card-alt);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.timeline-detail {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 6px 0 0;
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.education-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(20,21,31,0.05);
}

.education-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.education-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

/* Contact */
.contact-card {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}

.contact-card .section-title,
.contact-card .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 24px 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin: 0 auto; order: -1; min-height: 340px; }
  .social-strip { display: none; }
  .scope-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-shell { padding: 40px 24px 0; }
}

@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-shell.open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: 0 12px 30px rgba(20,21,31,0.12);
  }

  .nav-shell.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 64px;
    left: 24px;
    right: 24px;
    margin-top: 260px;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero-text h1 { font-size: 2.1rem; }
  .hero-shell { border-radius: 26px; }
  .section { padding: 56px 24px; }
  .contact-card { padding: 48px 24px; }
}
