:root {
  --color-bg: #f6f3ee;
  --color-ink: #1c1a17;
  --color-muted: #4a4740;
  --color-eyebrow: #6e6a60;
  --color-role: #5a564c;
  --color-line: #ddd8cd;
  --color-frame: #d5cfc0;
  --color-accent-green: #3c4a3f;
  --color-accent-terracotta: #b5622f;
  --font-serif: "Piazzolla", Georgia, serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

a {
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.content {
  position: relative;
  max-width: 34rem;
}

/* Decorative corner brackets. */
.frame {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-frame);
}
.frame--top-left {
  top: 36px;
  left: 36px;
  border-right: none;
  border-bottom: none;
}
.frame--top-right {
  top: 36px;
  right: 36px;
  border-left: none;
  border-bottom: none;
}
.frame--bottom-left {
  bottom: 36px;
  left: 36px;
  border-right: none;
  border-top: none;
}
.frame--bottom-right {
  bottom: 36px;
  right: 36px;
  border-left: none;
  border-top: none;
}

.medallion {
  display: inline-block;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--color-frame),
    0 0 0 5px var(--color-bg),
    0 0 0 6px var(--color-frame);
  margin-bottom: 24px;
  transition: box-shadow 0.5s ease;
}
.medallion:hover {
  box-shadow:
    0 0 0 1px var(--color-frame),
    0 0 0 5px var(--color-bg),
    0 0 0 6px var(--color-frame),
    0 0 0 12px rgba(60, 74, 63, 0.08);
}

.portrait {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}
.medallion:hover .portrait {
  transform: scale(1.12) rotate(-3deg);
  filter: grayscale(0) contrast(1.05);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  margin: 0 0 24px;
}

.name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--color-role);
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Positions: sentence-case sans, one step quieter than the role.
   No max-width — each line is meant to hold on a single line. */
.position {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-role);
  margin: 14px auto 0;
}

.position em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--color-ink);
}

.position-org {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
  transition:
    color 0.4s ease,
    border-color 0.4s ease;
}
.position-org:hover {
  color: var(--color-accent-terracotta);
  border-color: var(--color-accent-terracotta);
}

/* Past roles: same line, dimmer register — the dot marks the present one. */
.position--past {
  margin-top: 10px;
  color: var(--color-eyebrow);
}
.position--past + .position--past {
  margin-top: 6px;
}
.position--past em,
.position--past .position-org {
  font-size: 14px;
  color: var(--color-role);
}

.position-period {
  margin-right: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Breathing dot: "this is where I am now". */
.status-dot {
  position: relative;
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--color-accent-green);
  vertical-align: 0.12em;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-green);
  animation: pulse 2.8s ease-in-out infinite;
}

.divider {
  border: none;
  height: 1px;
  width: 56px;
  background: var(--color-line);
  margin: 40px auto;
  position: relative;
}
.divider::before {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 7px;
  color: var(--color-accent-green);
  animation: shimmer 3s ease-in-out infinite;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link {
  position: relative;
  color: var(--color-muted);
  transition: color 0.4s ease;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-accent-green),
    var(--color-accent-terracotta)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.link:hover {
  color: var(--color-accent-green);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

:focus-visible {
  outline: 1px solid var(--color-accent-green);
  outline-offset: 6px;
  border-radius: 2px;
}

/* Staggered entrance, ordered top to bottom. */
.medallion,
.eyebrow,
.name,
.role,
.position,
.divider,
.links {
  opacity: 0;
  animation: fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.medallion {
  animation-delay: 0s;
}
.eyebrow {
  animation-delay: 0.05s;
}
.name {
  animation-delay: 0.15s;
}
.role {
  animation-delay: 0.3s;
}
.position {
  animation-delay: 0.4s;
}
.position--past {
  animation-delay: 0.5s;
}
.position--past + .position--past {
  animation-delay: 0.6s;
}
.divider {
  animation-delay: 0.7s;
}
.links {
  animation-delay: 0.8s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 28px 20px;
  }

  .frame {
    width: 20px;
    height: 20px;
  }
  .frame--top-left {
    top: 16px;
    left: 16px;
  }
  .frame--top-right {
    top: 16px;
    right: 16px;
  }
  .frame--bottom-left {
    bottom: 16px;
    left: 16px;
  }
  .frame--bottom-right {
    bottom: 16px;
    right: 16px;
  }

  .position {
    font-size: 13px;
  }
  .position em,
  .position-org {
    font-size: 14px;
  }

  /* Too narrow for one line: let the period sit above its role. */
  .position-period {
    display: block;
    margin: 0 0 1px;
  }
  .position--past {
    margin-top: 14px;
  }
  .position--past + .position--past {
    margin-top: 12px;
  }

  .divider {
    margin: 32px auto;
  }

  .links {
    gap: 22px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .medallion,
  .eyebrow,
  .name,
  .role,
  .position,
  .divider,
  .links {
    animation: none;
    opacity: 1;
  }

  .status-dot::after,
  .divider::before {
    animation: none;
  }

  .medallion,
  .portrait,
  .link,
  .link::after,
  .position-org {
    transition: none;
  }

  .medallion:hover .portrait {
    transform: none;
  }
}
