:root {
  --bg-0: #ecf2ff;
  --bg-1: #d7e6ff;
  --bg-2: #eef3ff;
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.44);
  --glass-strong: rgba(255, 255, 255, 0.7);
  --primary: #0a66ff;
  --primary-2: #0052cc;
  --shadow: 0 20px 44px rgba(23, 36, 68, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  line-height: 1.55;
  background: linear-gradient(160deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(120, 158, 255, 0.54), rgba(120, 158, 255, 0));
}

.orb-b {
  width: 440px;
  height: 440px;
  top: 20%;
  right: -140px;
  background: radial-gradient(circle, rgba(86, 144, 255, 0.35), rgba(86, 144, 255, 0));
}

.orb-c {
  width: 300px;
  height: 300px;
  bottom: -70px;
  left: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.app-shell {
  width: min(1080px, 92vw);
  margin: 1.2rem auto 2.2rem;
  display: grid;
  gap: 1rem;
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.topbar {
  border-radius: 999px;
  padding: 0.56rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0.8rem;
  z-index: 2;
}

.brand {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.top-links a:hover {
  background: rgba(255, 255, 255, 0.56);
}

.hero {
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  animation: rise-in 450ms ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.kicker {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-2);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.postnominals {
  margin: 0.38rem 0 0;
  font-family: "SF Pro Text", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6b86;
}

.headline {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.02rem, 2.4vw, 1.42rem);
  font-weight: 600;
  color: var(--muted);
}

.summary {
  margin: 0;
  max-width: 73ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hours-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(23, 36, 68, 0.11);
  padding: 0.95rem;
}

.hours-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(165deg, #3183ff, #0a66ff 52%, #0059df);
  box-shadow: 0 10px 22px rgba(10, 102, 255, 0.32);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: var(--glass-strong);
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  animation: rise-in 520ms ease both;
}

.panel-wide {
  grid-column: 1 / -1;
}

h2 {
  margin: 0 0 0.95rem;
  font-size: 1.36rem;
  letter-spacing: -0.02em;
}

.role-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  box-shadow: 0 8px 20px rgba(20, 35, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card + .role-card {
  margin-top: 0.7rem;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 35, 70, 0.13);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.entry-head h3 {
  margin: 0;
  font-size: 1rem;
}

.entry-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
}

.meta {
  margin: 0.26rem 0 0.5rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--primary-2);
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.62rem;
}

.achievement-list li {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.achievement-list li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f88ff, #0056d7);
}

.contact-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-shell {
  padding: 1.2rem 1rem;
}

.timeline {
  position: relative;
  margin-top: 0.85rem;
  padding: 0.2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(10, 102, 255, 0.12), rgba(10, 102, 255, 0.75), rgba(10, 102, 255, 0.12));
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 66px 1fr;
  gap: 0.9rem;
  align-items: stretch;
  margin-bottom: -0.45rem;
}

.timeline-item + .timeline-item {
  margin-top: -1.6rem;
}

.timeline-item.right .timeline-card {
  margin-top: -1.7rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: 0 10px 22px rgba(23, 36, 68, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 36, 68, 0.14);
}

.timeline-card.education-flash {
  animation: education-flash 1.35s ease-out forwards;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-card p {
  margin: 0.42rem 0 0;
}

.timeline-org {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.timeline-node {
  position: relative;
}

.timeline-node span {
  position: sticky;
  top: 120px;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0.9rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9bc2ff, #0a66ff 75%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 5px rgba(10, 102, 255, 0.18),
    0 7px 18px rgba(10, 102, 255, 0.42);
}

.quick-grid {
  display: grid;
  gap: 0.65rem;
}

.quick-grid p {
  margin: 0;
  padding: 0.76rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-grid p {
  margin: 0;
}

.contact-grid a {
  color: var(--primary-2);
  font-weight: 700;
  text-decoration: none;
}

.contact-grid a:hover {
  text-decoration: underline;
}

.hours-list {
  margin: 0;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.11);
}

.hours-list > div:last-child {
  border-bottom: 0;
}

.hours-list dt {
  color: var(--muted);
  font-weight: 600;
}

.hours-list dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.03rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes education-flash {
  0% {
    box-shadow:
      0 0 0 0 rgba(10, 102, 255, 0.65),
      0 10px 22px rgba(23, 36, 68, 0.1);
    background: rgba(255, 255, 255, 0.86);
  }

  35% {
    box-shadow:
      0 0 0 12px rgba(10, 102, 255, 0.2),
      0 0 34px rgba(10, 102, 255, 0.36),
      0 14px 28px rgba(23, 36, 68, 0.16);
    background: rgba(222, 236, 255, 0.92);
  }

  70% {
    box-shadow:
      0 0 0 4px rgba(10, 102, 255, 0.1),
      0 10px 22px rgba(23, 36, 68, 0.1);
    background: rgba(245, 250, 255, 0.84);
  }

  100% {
    box-shadow: 0 10px 22px rgba(23, 36, 68, 0.1);
    background: rgba(255, 255, 255, 0.68);
  }
}

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

  .timeline::before {
    left: 15px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 30px 1fr;
    gap: 0.66rem;
    margin-bottom: 0.62rem;
  }

  .timeline-item + .timeline-item {
    margin-top: 0;
  }

  .timeline-item.right .timeline-card {
    margin-top: 0;
  }

  .timeline-item > div:empty {
    display: none;
  }

  .timeline-item > .timeline-card {
    grid-column: 2;
  }

  .timeline-node {
    grid-column: 1;
  }

  .timeline-node span {
    margin-top: 1rem;
    position: relative;
    top: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(1080px, 94vw);
    margin-top: 0.7rem;
  }

  .topbar {
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.8rem;
    position: static;
  }

  .top-links {
    flex-wrap: wrap;
  }

  .hero {
    border-radius: var(--radius-lg);
    padding: 1.2rem;
  }

  .panel {
    border-radius: var(--radius-md);
    padding: 0.95rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
