:root {
  --ink: #0f172a;
  --paper: #f8f7f2;
  --brand: #ca3e47;
  --accent: #1f4f9a;
  --muted: #475569;
  --card: rgba(248, 247, 242, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #ffd2a7 0%, transparent 38%),
    radial-gradient(circle at 85% 18%, #a2d9ff 0%, transparent 36%),
    linear-gradient(125deg, #f8f7f2 0%, #fef6ea 45%, #f4f9ff 100%);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  filter: blur(48px);
  z-index: -1;
  opacity: 0.65;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-1 {
  width: 320px;
  height: 320px;
  border-radius: 48% 52% 57% 43% / 42% 48% 52% 58%;
  background: #ffb17a;
  top: -90px;
  left: -60px;
}

.ambient-2 {
  width: 380px;
  height: 380px;
  border-radius: 61% 39% 40% 60% / 45% 60% 40% 55%;
  background: #8bc5ff;
  right: -90px;
  bottom: -120px;
  animation-duration: 24s;
}

.shell {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
}

.hero {
  animation: rise-in 620ms ease-out both;
}

.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.headline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  max-width: 30ch;
  color: #1e293b;
}

.summary {
  margin: 1.2rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  padding: 0.76rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(202, 62, 71, 0.35);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.meta {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  animation: rise-in 780ms ease-out both;
}

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

.card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  padding: 1rem 1.2rem;
}

.card h2 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--accent);
}

.card p {
  margin: 0.58rem 0 0;
}

.card a {
  color: var(--ink);
}

.chips {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 79, 154, 0.1);
  border: 1px solid rgba(31, 79, 154, 0.15);
  font-size: 0.88rem;
}

.subhead {
  margin-top: 1rem;
}

.timeline {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.9rem;
}

.job {
  border-left: 2px solid rgba(31, 79, 154, 0.25);
  padding-left: 0.8rem;
}

.job p {
  margin: 0.2rem 0;
}

.job-period {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.job-title {
  font-weight: 700;
}

.job-company {
  color: #1e293b;
}

.job-notes {
  color: var(--muted);
}

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

@keyframes drift {
  from {
    transform: translate3d(-10px, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(12px, -22px, 0) rotate(10deg);
  }
}

@media (max-width: 760px) {
  .shell {
    padding-top: 4.2rem;
  }

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