/* ====== Theme Tokens ====== */
:root {
  --bg-1: #0e1726;
  --bg-2: #1f2937;
  --bg-3: #0b1220;

  --card: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.42);
  --text: #0f172a;
  --muted: #475569;

  --violet: #7c3aed;
  --cyan: #06b6d4;

  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

/* ====== Base ====== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Background decoration */
.bg-ribbons {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: .28;
}

.ribbon-a {
  left: -18rem;
  top: -18rem;
  background: radial-gradient(closest-side, var(--violet), transparent 70%);
}

.ribbon-b {
  right: -18rem;
  bottom: -18rem;
  background: radial-gradient(closest-side, var(--cyan), transparent 70%);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 28px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(130%) blur(6px);
}

/* Fancy lifts & fades */
.lift {
  transition: transform .15s ease, box-shadow .2s ease;
}

.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

.fade-in {
  animation: fadeInUp .5s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1fr 320px;
  }
}

.name {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.role {
  margin: 10px 0 0;
  font-weight: 600;
  opacity: .9;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact a:hover {
  border-bottom-color: rgba(15, 23, 42, .2);
}

.intro {
  margin-top: 14px;
  color: #0b1020;
  opacity: .95;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, .14);
  font-weight: 600;
  text-decoration: none;
  transition: transform .04s ease, opacity .2s ease, background .2s ease;
}

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

.btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.btn--ghost {
  background: rgba(255, 255, 255, .35);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Headshot (optional) */
.headshot {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.headshot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--shadow);
  background: #eef2ff;
}

.headshot figcaption {
  font-size: 12px;
  opacity: .7;
}

/* Three-up highlight grid */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 22px;
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

.list--sm {
  font-size: 14px;
}

/* Sections */
.section {
  margin-top: 36px;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__head h2 {
  color: white;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rule {
  height: 6px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .75), rgba(6, 182, 212, .75));
  border-radius: 999px;
}

.rule--alt {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .75), rgba(124, 58, 237, .75));
}

/* Experience layout */
.exp {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 1000px) {
  .exp {
    grid-template-columns: 340px 1fr;
  }
}

.facts h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.exp__items {
  display: grid;
  gap: 16px;
}

.exp__top {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.exp__top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
}

.dates {
  font-size: 14px;
  opacity: .8;
}

.company {
  font-size: 14px;
  opacity: .85;
  margin-top: 2px;
}

/* Education */
.edu__title {
  margin: 0;
  font-weight: 600;
}

.edu__sub {
  margin: 4px 0 0;
  opacity: .85;
}

/* Footer */
.footer {
  text-align: center;
  margin: 30px 0 8px;
  opacity: .8;
}

/* Print */
@media print {
  body {
    background: #fff;
  }

  .bg-ribbons,
  .actions,
  .headshot figcaption {
    display: none !important;
  }

  .card,
  .hero,
  .facts {
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
  }

  .container {
    padding: 0 0 20px;
  }

  a[href]:after {
    content: "" !important;
  }

  .headshot {
    display: none !important;
  }
}