:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --card: #ffffff;
  --text: #101828;
  --text-soft: #475467;
  --text-light: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #111111;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 18%, #ffffff 100%);
  line-height: 1.65;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 96px 0;
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-header {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-intro {
  font-size: 1.08rem;
  color: var(--text-soft);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding: 92px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--text);
  max-width: 12ch;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.metric-card {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.metric-label {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #e5e7eb;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(208, 213, 221, 0.6);

  width: 100%;
  max-width: 460px;

  /* THIS IS THE KEY */
  height: 100%;
  min-height: 520px;

  margin-left: auto;
}

.portrait-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  /* Fine-tuned crop */
  object-position: center 18%;

  /* Slight zoom out */
  transform: scale(0.94);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.highlight-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.highlight-card p {
  margin: 0;
  font-size: 0.98rem;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 215px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(208, 213, 221, 0.2) 0%, rgba(208, 213, 221, 1) 15%, rgba(208, 213, 221, 1) 85%, rgba(208, 213, 221, 0.2) 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 208px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.08);
  z-index: 1;
}

.timeline-meta {
  padding-top: 8px;
}

.timeline-date {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.timeline-company {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.timeline-content {
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(208, 213, 221, 0.75);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.timeline-subtitle {
  margin: 12px 0 0;
  font-size: 0.98rem;
  color: var(--text-light);
}

.timeline-content ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.timeline-content li:last-child {
  margin-bottom: 0;
}

.sub-role {
  margin-top: 26px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.sub-role span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}

.framework-intro {
  max-width: 860px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.framework-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(248,250,252,0.96) 100%);
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.framework-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.framework-card p {
  margin: 0;
  font-size: 0.97rem;
}

.contact-panel {
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(12, 18, 31, 0.96) 100%);
  border-radius: 28px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contact-panel .section-label,
.contact-panel h2,
.contact-panel p {
  color: var(--white);
}

.contact-panel p {
  opacity: 0.88;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-weight: 600;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}

.site-footer {
  padding: 26px 0 42px;
}

.footer-content {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 48px;
  }

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

  .timeline-meta {
    padding-top: 0;
  }

  .framework-grid,
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .nav {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px 18px;
  }

  .hero {
    padding: 48px 0 34px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-metrics,
  .framework-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    padding: 22px 20px;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links a {
    justify-content: center;
  }
}
