@font-face { font-family: Space; src: url("assets/Space.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Space; src: url("assets/SpaceSemi.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #fafaf7;
  --ink: #131314;
  --ink-soft: rgb(19 19 20 / .68);
  --line: #e8e6eb;
  --lilac: #9e86e6;
  --lilac-deep: #67439b;
  --lime: #d4f21b;
  --dark: #181719;
  --gutter: clamp(20px, 4.8vw, 69px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: Space, "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: var(--lilac); }
img, svg { display: block; }

/* Full-height shell. min-height, not height, so short screens scroll instead of clipping. */
.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 6vh, 72px);
  width: min(100%, 1302px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(20px, 3.2vw, 44px) var(--gutter);
}

/* Identity row: avatar with the mark as a badge, then name and role. */
.top { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 20px); }
.avatar { position: relative; flex: none; width: clamp(56px, 5vw, 72px); aspect-ratio: 1; }
.avatar__photo {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden; background: var(--lilac);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}
.avatar__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.avatar__mark {
  position: absolute; right: -14%; bottom: -10%;
  width: 44%; height: auto; border-radius: 22%;
  rotate: 10deg; box-shadow: 2px 2px 0 var(--lilac), 0 0 0 2px var(--paper);
}
.who { display: grid; margin: 0; line-height: 1.25; }
.who strong { font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.01em; }
.who span { font-size: clamp(14px, 1.1vw, 16px); color: var(--ink-soft); }

.main { align-self: center; display: grid; justify-items: start; }

/* The headline carries the page. */
.headline {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em;
  margin: 0;
  font-weight: 700;
  font-size: clamp(64px, min(22vw, 20vh), 140px);
  line-height: .92;
  letter-spacing: -.065em;
}
/* Line mask uses clip-path (padding masks cut the top of the glyphs). */
.line { display: block; clip-path: inset(-.3em -.2em -.18em -.2em); }
.line > span { display: inline-block; padding-right: .04em; }
.soon {
  display: inline-block;
  margin-top: .08em;
  padding: .02em .16em .1em .12em;
  border-radius: .2em;
  background: var(--lime); color: var(--dark);
  rotate: -4deg; box-shadow: .05em .05em 0 var(--lilac);
  transform-origin: left center;
  transition: rotate .5s var(--ease-out), translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.soon:hover { rotate: 0deg; translate: -.02em -.02em; box-shadow: .08em .08em 0 var(--lilac); }

.lede { max-width: 34ch; margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(18px, 1.7vw, 24px); color: var(--ink-soft); }

.links { width: 100%; margin: clamp(36px, 4.4vw, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(18px, 2vw, 26px) 4px;
  color: inherit; text-decoration: none;
}
.link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lilac); transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.link__label { font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -.05em; transition: translate .55s var(--ease-out); }
.link__handle { font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-soft); transition: color .55s var(--ease-out); }
.link__arrow {
  display: grid; place-items: center;
  width: clamp(44px, 3.8vw, 56px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  transition: rotate .55s var(--ease-out), background-color .55s var(--ease-out), color .55s var(--ease-out);
}
.link__arrow svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .link:hover::before { transform: scaleY(1); }
  .link:hover .link__label { translate: 12px 0; }
  .link:hover .link__handle { color: var(--ink); }
  .link:hover .link__arrow { rotate: 45deg; background: var(--lime); color: var(--dark); }
}
.link:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 4px; border-radius: 4px; }

.foot { display: flex; align-items: end; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-soft); }
.signature { width: clamp(96px, 8.4vw, 121px); height: auto; }

/* Desktop: headline on one line, links side by side. */
@media (min-width: 960px) {
  .headline { flex-wrap: nowrap; font-size: clamp(112px, 12.4vw, 184px); }
  .links { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); border-top: 0; }
  .links li { border-top: 1px solid var(--line); }
}

/* Phones: handle sits under the label. */
@media (max-width: 600px) {
  .link { grid-template-columns: 1fr auto; row-gap: 6px; }
  .link__handle { grid-column: 1; grid-row: 2; }
  .link__arrow { grid-column: 2; grid-row: 1 / span 2; }
}

/* Entrance */
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes line-up { from { translate: 0 115%; } }
@keyframes pop { from { opacity: 0; scale: .5; rotate: -16deg; } }
.rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.line > span { animation: line-up 1.1s var(--ease-out) .2s both; }
.soon { animation: pop .9s var(--ease-back) .5s both; }
.avatar__mark { animation: pop .8s var(--ease-back) .9s both; }

@media (prefers-reduced-motion: reduce) {
  .rise, .line > span, .soon, .avatar__mark { animation: none; }
  .soon, .link::before, .link__label, .link__handle, .link__arrow { transition: none; }
}
