/* Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem var(--gutter);
  background: rgba(255, 249, 252, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.wordmark__dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

/* GitHub and LinkedIn: icon plus label on desktop, icon alone below
   900px, and Work/About give way below 560px so the row always fits. */
.site-nav .site-nav__social {
  gap: 0.4rem;
}

.site-nav .site-nav__social:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

.site-nav__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 899px) {
  .site-nav .site-nav__social {
    justify-content: center;
    min-width: 2.75rem;
    padding-inline: 0;
  }

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

@media (max-width: 559px) {
  .site-nav .site-nav__text {
    display: none;
  }
}

.site-nav .site-nav__cta {
  gap: 0.35em;
  min-height: 2.5rem;
  margin-left: 0.25rem;
  padding-inline: 1rem;
  border: 2px solid var(--ink-key);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-key);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--ink-key);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.site-nav .site-nav__cta:hover {
  text-decoration: none;
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink-key);
}

.site-nav .site-nav__cta:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink-key);
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(125deg, var(--tint-pink) 0%, var(--paper) 46%, var(--tint-lilac) 100%);
}

/* Fine paper grain so the gradient does not read as flat. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .11 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

.hero__intro {
  position: relative;
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem) 2rem;
  padding: clamp(2rem, 3.2vw, 2.75rem) var(--gutter) clamp(1.75rem, 2.6vw, 2.25rem);
}

@media (min-width: 1100px) {
  .hero__intro {
    grid-template-columns: 1fr minmax(16rem, 21rem);
    align-items: end;
  }

  .hero__aside {
    padding-bottom: 0.9rem;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero__line {
  display: block;
}

.hero__title em {
  padding-right: 0.06em;
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
}

.hero__aside {
  display: grid;
  gap: 1.25rem;
}

/* Affiliations ------------------------------------------------------ */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.affiliations__item {
  display: grid;
  gap: 0.4rem;
}

.affiliations__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.affiliations__logo {
  width: auto;
  height: 26px;
}

.affiliations__logo--sutd {
  height: 38px;
}
