:root {
  --bg: #f5efe5;
  --bg-strong: #efe4d1;
  --surface: rgba(255, 251, 245, 0.7);
  --surface-strong: rgba(255, 248, 240, 0.92);
  --line: rgba(65, 49, 34, 0.14);
  --line-strong: rgba(65, 49, 34, 0.28);
  --text: #1f170f;
  --muted: #6d5b4b;
  --accent: #e06f2f;
  --accent-2: #1b8a78;
  --shadow: 0 24px 70px rgba(80, 47, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 111, 47, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(27, 138, 120, 0.12), transparent 34%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 48%, var(--bg-strong) 100%);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.ambient-a {
  top: 6vh;
  left: -8vw;
  width: 28vw;
  height: 28vw;
  background: rgba(224, 111, 47, 0.12);
}

.ambient-b {
  top: 42vh;
  right: -10vw;
  width: 26vw;
  height: 26vw;
  background: rgba(27, 138, 120, 0.14);
  animation-duration: 18s;
}

.ambient-c {
  bottom: -8vh;
  left: 26vw;
  width: 20vw;
  height: 20vw;
  background: rgba(83, 112, 255, 0.1);
  animation-duration: 14s;
}

.page {
  position: relative;
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.shell {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 240, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.48) 18%, transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 24%);
  transform: translateX(-40%);
  animation: sheen 10s linear infinite;
  pointer-events: none;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 280px);
  gap: 24px;
  align-items: end;
}

.eyebrow,
.section-tag,
.timeline-meta p {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.82rem;
}

h1,
h2,
h3,
.role {
  margin: 0;
}

h1 {
  margin-top: 10px;
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.role {
  max-width: 35rem;
  margin-top: 16px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(244, 228, 206, 0.65)),
    var(--surface-strong);
  transform: rotate(2deg);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 20px;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.contact-chip,
.fact-pill,
.mini-card,
.card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
}

.material-symbols-outlined {
  font-size: 1.1rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(80, 47, 16, 0.06);
}

.card-intro {
  min-height: 100%;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-tag {
  font-size: 0.76rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead,
.body-copy,
.timeline-item p,
.clean-list li,
.mini-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.lead {
  font-size: 1.06rem;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
}

.inline-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
  cursor: help;
}

.inline-tip::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(224, 111, 47, 0.1);
}

.tip-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 5;
  width: min(280px, 72vw);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(31, 23, 15, 0.92);
  color: #f9f3ea;
  line-height: 1.5;
  font-size: 0.92rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.inline-tip:hover .tip-bubble,
.inline-tip.is-open .tip-bubble,
.inline-tip:focus-visible .tip-bubble,
.inline-tip:focus-within .tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.timeline-item {
  position: relative;
  padding: 0 0 0 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(65, 49, 34, 0.08));
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.timeline-item:last-child::before {
  bottom: 8px;
}

.timeline-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
}

h3 {
  font-size: 1.03rem;
  line-height: 1.2;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
}

.mini-card .material-symbols-outlined {
  color: var(--accent);
}

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

.clean-list li + li {
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -20px, 0) scale(1.06);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-42%);
  }

  100% {
    transform: translateX(138%);
  }
}

@media (max-width: 980px) {
  .masthead,
  .content-grid,
  .contact-strip,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: start;
    max-width: 220px;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100vw - 18px, 1160px);
    padding: 10px 0 22px;
  }

  .shell,
  .card {
    border-radius: 24px;
  }

  .card,
  .shell {
    padding-inline: 18px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .contact-chip {
    padding: 13px 14px;
  }

  .tip-bubble {
    left: -6px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .ambient,
  .shell::before {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .shell,
  .card,
  .contact-chip,
  .fact-pill,
  .mini-card {
    box-shadow: none;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.16);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
