@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&family=League+Gothic&display=swap");

:root {
  --bg: #171717;
  --panel: #1b1b1b;
  --text: #efefef;
  --muted: #aaa;
  --blue: #334cff;
  --rule: rgba(255, 255, 255, 0.16);
  --measure: 820px;
  --footer-width: 960px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

a:hover {
  color: var(--text);
}

.site-shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 82px 0 72px;
}

.hero {
  position: relative;
  margin-bottom: 92px;
}

.mega,
.display-link,
.detail-title,
.cta,
.brand-mark {
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mega {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: clamp(7rem, 16vw, 15rem);
  white-space: nowrap;
}

.hero-copy {
  display: inline;
}

.mega .avatar-trigger {
  display: inline-block;
  height: 0.82em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--blue);
  cursor: default;
  outline: none;
}

.avatar-stack {
  display: flex;
  flex-direction: column;
  transition: transform 460ms cubic-bezier(0.34, 1.28, 0.64, 1);
  will-change: transform;
}

.avatar-name,
.avatar-panel {
  display: flex;
  align-items: center;
  height: 0.82em;
}

.name-dot {
  color: var(--text);
}

.avatar-panel {
  justify-content: flex-start;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: left center;
  transition:
    opacity 280ms ease 80ms,
    transform 460ms cubic-bezier(0.34, 1.18, 0.64, 1);
}

.avatar-panel img {
  width: auto;
  height: 0.78em;
  object-fit: contain;
}

.mobile-avatar {
  display: none;
}

.avatar-trigger:hover .avatar-stack,
.avatar-trigger:focus-visible .avatar-stack {
  transform: translateY(-50%);
}

.avatar-trigger:hover .avatar-panel,
.avatar-trigger:focus-visible .avatar-panel {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .avatar-stack,
  .avatar-panel {
    transition: none;
  }
}

.section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 44px;
  margin: 0 0 76px;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.08;
  font-weight: 800;
}

.section-title span,
.date span {
  display: block;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.32;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.date,
.compact-list span {
  color: var(--muted);
  font-weight: 300;
  text-transform: uppercase;
}

.timeline-row .date {
  padding-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.05;
}

.display-link {
  display: block;
  color: var(--blue);
  font-size: clamp(6rem, 12vw, 10.8rem);
  text-decoration: none;
}

.display-link:hover {
  color: var(--text);
}

.education .display-link {
  font-size: clamp(6rem, 13vw, 10rem);
}

.detail {
  color: var(--text) !important;
  font-size: 1.35rem !important;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.cta {
  color: var(--text);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  text-decoration: none;
  text-transform: none;
}

.cta:hover {
  color: var(--blue);
}

.site-footer {
  background: var(--bg);
  padding: 0 20px;
}

.site-footer::before {
  content: "";
  display: block;
  width: min(100%, var(--footer-width));
  height: 1px;
  margin: 0 auto;
  background: var(--rule);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  width: min(100%, var(--footer-width));
  margin: 0 auto;
  padding: 30px 0;
}

.site-footer-inner p {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-contact {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--text);
}

.icon-link {
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  text-decoration: none;
  opacity: 0.95;
}

.icon-link:hover {
  opacity: 0.65;
}

.icon-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--text);
}

.detail-page {
  width: min(100% - 40px, var(--measure));
  margin: 0 auto;
  padding: 72px 0 72px;
}

.detail-title {
  margin: 0 0 42px;
  color: var(--blue);
  font-size: clamp(7rem, 18vw, 16rem);
}

.prose {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.42;
}

.prose p {
  margin: 0 0 1.2em;
}

.role-block {
  margin: 48px 0;
}

.role-block h2 {
  margin: 0;
  color: var(--text);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.role-block .role {
  margin: 8px 0 22px;
  color: var(--blue);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(1.55rem, 3.6vw, 2rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.prose ul {
  margin: 14px 0 0;
  padding-left: 1.15em;
}

.prose li {
  margin-bottom: 0.7em;
}

.media-block {
  margin: 28px 0 42px;
}

.media-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #101010;
}

.media-block figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #101010;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-page {
  min-height: calc(100vh - 83px);
}

.contact-title {
  color: var(--text);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 680px;
}

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #efefef;
  color: #171717;
  font: inherit;
  font-weight: 700;
  padding: 0 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
  opacity: 1;
}

.contact-form input {
  height: 52px;
}

.contact-form textarea {
  min-height: 156px;
  padding-top: 16px;
  resize: vertical;
}

.field-message,
.contact-form .button {
  grid-column: 1 / -1;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #050505;
  cursor: pointer;
  font: 400 1rem/1 Inter, sans-serif;
  padding: 18px 22px;
  text-transform: uppercase;
}

.button:hover {
  background: #233bff;
}

@media (max-width: 760px) {
  .site-shell,
  .detail-page {
    width: min(100% - 56px, 560px);
    padding-top: 44px;
  }

  .site-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .detail-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-page {
    width: min(100% - 32px, 560px);
    padding-top: 86px;
    padding-right: 0;
    padding-left: 0;
  }

  .contact-page .back-link {
    margin-bottom: 86px;
  }

  .contact-title {
    margin-bottom: 84px;
  }

  .contact-form {
    max-width: none;
  }

  .hero {
    margin-bottom: 54px;
  }

  .mega {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    font-size: clamp(4.4rem, 22vw, 7rem);
    line-height: 0.98;
    white-space: normal;
  }

  .hero-copy {
    display: inline-block;
    flex: 1 1 auto;
    max-width: calc(100% - 112px);
  }

  .mega .avatar-trigger {
    display: inline;
    height: auto;
    overflow: visible;
    vertical-align: baseline;
  }

  .avatar-stack {
    display: inline;
    transition: none;
  }

  .avatar-name {
    display: inline;
    height: auto;
  }

  .avatar-panel {
    display: none;
  }

  .mobile-avatar {
    position: static;
    display: inline-block;
    flex: 0 0 auto;
    width: clamp(82px, 28vw, 108px);
    height: clamp(80px, 27vw, 106px);
    object-fit: contain;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 58px;
    padding-right: 0;
    padding-left: 0;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .section-title span,
  .date span {
    display: inline;
  }

  .section-title span + span::before,
  .date span + span::before {
    content: " ";
  }

  .timeline .timeline-row,
  .education .timeline-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .timeline .timeline-row > *,
  .education .timeline-row > * {
    grid-column: 1;
  }

  .timeline .timeline-row .date,
  .education .timeline-row .date,
  .compact-list span {
    font-size: 0.72rem;
  }

  .timeline .timeline-row .date,
  .education .timeline-row .date {
    padding-top: 0;
    margin-bottom: 2px;
  }

  .display-link,
  .education .display-link {
    font-size: clamp(4.3rem, 25vw, 7rem);
  }

  .compact-list p {
    grid-template-columns: 70px minmax(0, 1fr);
    font-size: 1rem;
  }

  .detail-title {
    font-size: clamp(5rem, 27vw, 9rem);
  }

  .prose {
    font-size: 1rem;
  }
}
