@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --mute: #9a9a9a;
  --line: #222;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background: var(--bg);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--pad);
  padding-bottom: clamp(2.5rem, 10vh, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.wordmark {
  display: block;
  width: min(92vw, 72rem);
  height: auto;
  overflow: visible;
}

.glyph {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    draw-glyph 1.1s cubic-bezier(0.33, 0, 0.2, 1) calc(var(--i) * 85ms)
      forwards,
    fill-glyph 0.55s ease calc(var(--i) * 85ms + 0.88s) forwards;
}

@keyframes draw-glyph {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-glyph {
  to {
    fill-opacity: 1;
    stroke-opacity: 0;
  }
}

.lede {
  margin-top: clamp(1.35rem, 3vw, 2.1rem);
  max-width: 22em;
  font-size: clamp(1.2rem, 2.15vw, 1.6rem);
  font-style: italic;
  line-height: 1.3;
  clip-path: inset(0 0 100% 0);
  animation: reveal-line 0.7s var(--ease) 1.45s forwards;
}

@keyframes reveal-line {
  to {
    clip-path: inset(0);
  }
}

.now,
.contact {
  padding: clamp(5rem, 16vh, 10rem) var(--pad);
}

.kicker {
  color: var(--mute);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.now-grid {
  display: grid;
  gap: clamp(2.75rem, 7vw, 4.5rem);
}

.now-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 960px) {
  .now-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }

  .now-grid article {
    padding: 0 clamp(1.4rem, 2.2vw, 2.35rem);
  }

  .now-grid article:first-child {
    padding-left: 0;
  }

  .now-grid article:last-child {
    padding-right: 0;
  }

  .now-grid article + article {
    border-left: 1px solid var(--line);
  }
}

html.js .now-grid article {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 2.1rem, 0);
  transition:
    clip-path 1.05s var(--ease),
    transform 1.05s var(--ease);
}

html.js .now-grid.is-in article {
  clip-path: inset(0);
  transform: none;
}

html.js .now-grid.is-in article:nth-child(1) {
  transition-delay: 0ms;
}

html.js .now-grid.is-in article:nth-child(2) {
  transition-delay: 130ms;
}

html.js .now-grid.is-in article:nth-child(3) {
  transition-delay: 260ms;
}

.role {
  color: var(--mute);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.15rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.blurb {
  margin-top: 1rem;
  max-width: 18em;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  font-style: italic;
  line-height: 1.3;
}

.links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.4rem;
  font-size: 1.1rem;
}

.draw {
  display: inline-block;
  position: relative;
  padding-bottom: 0.12em;
  transition: transform 0.5s var(--ease);
}

.draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}

.draw:hover::after,
.draw:focus-visible::after {
  transform: scaleX(1);
}

.contact {
  padding-bottom: clamp(4rem, 12vh, 8rem);
}

.email {
  display: inline-block;
  font-size: clamp(1.55rem, 5.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  word-break: break-word;
}

.linkedin {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 1.2rem;
}

footer {
  padding: 0 var(--pad) var(--pad);
}

footer p {
  color: var(--mute);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .glyph {
    animation: none;
    fill-opacity: 1;
    stroke: none;
    stroke-dashoffset: 0;
  }

  .lede {
    animation: none;
    clip-path: none;
  }

  html.js .now-grid article,
  html.js .now-grid.is-in article {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .draw::after {
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: clamp(2rem, 8vh, 4rem);
  }

  .wordmark {
    width: min(94vw, 40rem);
  }
}
