:root {
  --navy: #0b1f36;
  --navy-2: #102b49;
  --blue: #2f5f8f;
  --blue-soft: #dbe7f2;
  --text: #122033;
  --muted: #617086;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #d8e0ea;
  --shadow: rgba(16, 43, 73, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(47,95,143,.12), transparent 420px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.header {
  width: min(1120px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.logo-mark span:first-child { transform: translateX(2px); }
.logo-mark span:last-child { transform: translateX(-2px); }

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

.brand-copy strong { font-size: 15px; }

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--navy); }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 54px;
  align-items: center;
  padding: 72px 0 88px;
}

.label {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.subtitle {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 760;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  min-width: 150px;
  padding: 14px 21px;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 760;
  transition: .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow);
}

.button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.button.secondary {
  background: white;
  color: var(--navy);
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
}

.photo-frame {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 60px var(--shadow);
}

.photo-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.info-card {
  width: calc(100% - 28px);
  margin: -28px auto 0;
  padding: 17px 18px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px var(--shadow);
}

.info-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.info-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.about,
.experience {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
}

.section-title h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-title.wide {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-content p,
.timeline p,
.cards p,
.milestone p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.timeline-horizontal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 44px;
}

.timeline-line {
  position: absolute;
  top: 58px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  border-radius: 99px;
  opacity: .8;
}

.milestone {
  position: relative;
  padding: 34px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(16,43,73,.06);
}

.dot {
  position: absolute;
  top: -24px;
  left: 22px;
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px var(--shadow);
}

.year {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 850;
}

.milestone h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article {
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 28px rgba(16,43,73,.06);
}

.cards span {
  color: var(--blue);
  font-weight: 850;
}

.cards h3 {
  margin: 34px 0 10px;
  color: var(--navy);
  font-size: 21px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(16,43,73,.06);
}

.timeline h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.contact {
  margin: 50px 0 70px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.contact .label,
.contact h2 { color: white; }

.contact h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
}

.contact .button.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.32);
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  nav { display: none; }

  .hero,
  .about,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 70px;
  }

  .hero-photo {
    justify-self: start;
    width: min(300px, 100%);
  }

  .timeline-horizontal {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .milestone {
    margin-left: 26px;
  }

  .dot {
    top: 26px;
    left: -35px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .brand-copy small { display: none; }

  h1 { font-size: 40px; }

  .subtitle { font-size: 20px; }

  .button { width: 100%; }

  footer { flex-direction: column; }
}


/* LinkedIn content and events */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16,43,73,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(16,43,73,.11);
}

.showcase-media {
  width: 100%;
  background: #eef3f7;
  overflow: hidden;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .28s ease;
}

.showcase-card:hover .showcase-media img {
  transform: scale(1.025);
}

.post-media {
  aspect-ratio: 4 / 5;
}

.post-media img {
  object-fit: cover;
  object-position: top center;
}

.event-media {
  aspect-ratio: 16 / 10;
}

.event-media img {
  object-fit: cover;
  object-position: center;
}

.showcase-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.showcase-body h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
}

.showcase-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 720;
}

.read-more {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.muted-link {
  color: var(--muted);
}

.placeholder-card {
  background: linear-gradient(135deg, #ffffff, #f2f6fa);
}

.placeholder-media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(47,95,143,.14), transparent 260px),
    linear-gradient(135deg, #edf3f8, #ffffff);
  color: var(--blue);
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}


/* Events carousel */
.carousel-wrap {
  position: relative;
}

.event-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-soft) transparent;
}

.event-carousel .showcase-card {
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16,43,73,.12);
  transition: .2s ease;
}

.carousel-arrow:hover {
  background: var(--navy);
  color: white;
}

.carousel-arrow.left {
  left: -18px;
}

.carousel-arrow.right {
  right: -18px;
}

@media (max-width: 900px) {
  .event-carousel {
    grid-auto-columns: 86%;
  }

  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .event-carousel {
    grid-auto-columns: 92%;
  }
}
