@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/BodoniModa-var.woff2") format("woff2");
}

:root {
  --paper: #f4ead7;
  --ink: #11100f;
  --blue: #2456c7;
  --red: #e9432d;
  --yellow: #f2b72c;
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif;
  color: var(--ink);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body { overflow: hidden; }
a { color: inherit; }

.cover {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.portrait {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("./assets/agent-collage.png") center / cover no-repeat;
}

.identity {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 3.5vw, 54px);
  left: clamp(24px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(0.72rem, 0.9vw, 0.95rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.identity span {
  font-weight: 500;
}

.identity strong {
  font-weight: 800;
}

.quote {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: clamp(24px, 5vw, 88px);
  width: min(33vw, 520px);
  margin: 0;
  transform: translateY(-50%);
}

.quote p {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.quote cite {
  display: block;
  margin-top: 18px;
  font-size: clamp(0.65rem, 0.9vw, 0.9rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.projects {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--paper);
  border-top: 1px solid rgba(244, 234, 215, 0.34);
  background: rgba(17, 16, 15, 0.48);
  backdrop-filter: blur(16px) saturate(0.85);
  -webkit-backdrop-filter: blur(16px) saturate(0.85);
}

.projects a {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 16px clamp(12px, 2vw, 28px);
  border-right: 1px solid rgba(244, 234, 215, 0.28);
  text-decoration: none;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  letter-spacing: 0.035em;
  transition: color 160ms ease, background 160ms ease;
}

.projects a:last-child { border-right: 0; }

.projects a:hover,
.projects a:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.project-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.project-heading strong {
  font-weight: 700;
}

.project-number {
  font-size: 0.66rem;
  opacity: 0.7;
}

.projects small {
  font-size: clamp(0.57rem, 0.68vw, 0.7rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.025em;
  opacity: 0.78;
  white-space: nowrap;
}

.orbit {
  position: absolute;
  z-index: 1;
  width: min(25vw, 360px);
  aspect-ratio: 1;
  right: -5vw;
  top: 14%;
  border: clamp(18px, 3vw, 42px) solid var(--yellow);
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

@media (max-width: 760px) {
  .cover { min-height: 620px; }

  .portrait {
    inset: 0;
    background-position: 58% center;
  }

  .quote {
    top: 42%;
    left: 20px;
    width: min(78vw, 430px);
  }

  .quote p {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .quote cite {
    margin-top: 16px;
    font-size: 0.6rem;
  }

  .projects {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .projects::-webkit-scrollbar { display: none; }

  .projects a {
    min-height: 92px;
    gap: 5px;
    padding: 10px;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .projects small {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.54rem;
  }

  .orbit {
    width: 44vw;
    right: -18vw;
    top: 18%;
  }
}
