@font-face {
  font-family: "Valkyrie";
  src: url("assets/fonts/valkyrie.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fafafa;
  --text: #111111;
  --muted: #77736f;
  --line: rgba(17, 17, 17, 0.14);
  --soft-line: rgba(17, 17, 17, 0.08);
  --accent: #6f4fd8;
  --gutter: clamp(1rem, 2.5vw, 2rem);
  --header-height: 3.75rem;
}

* {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
  touch-action: pan-y !important;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: "Valkyrie", Georgia, serif;
  font-size: 16px;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
canvas {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

img {
  display: block;
  width: 100%;
  height: auto;
  background: color-mix(in srgb, var(--accent) 7%, #e9e7e3);
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0.25rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  padding: 1rem var(--gutter) 0.85rem;
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  align-items: baseline;
}

.nav-link {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1;
  text-decoration: none;
}

.nav-link--home {
  justify-self: start;
  opacity: 0;
  pointer-events: none;
}

body.hero-past .nav-link--home {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: calc(72svh - var(--header-height));
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(2rem, 6vw, 5.5rem);
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
}

.hero__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.15em;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.2;
  text-align: right;
}

.hero__name {
  max-width: 13.5ch;
  margin: 0;
  font-size: clamp(3.35rem, 10.8vw, 13rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.hero__statement {
  max-width: 36ch;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0;
}

.section-kicker {
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.1;
}

.work {
  padding: 0 var(--gutter) clamp(5rem, 11vw, 11rem);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.work-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: clamp(2.5rem, 4.5vw, 4.5rem) minmax(0, 1fr) minmax(7rem, 15vw);
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: baseline;
  padding: clamp(0.9rem, 1.7vw, 1.45rem) 0 clamp(1rem, 1.9vw, 1.6rem);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.work-panel {
  height: 0;
  overflow: hidden;
}

.work-panel__inner {
  display: grid;
  grid-template-columns: minmax(14rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 10vw, 9rem);
}

.work-row__number,
.work-row__category {
  color: var(--muted);
  font-size: clamp(0.85rem, 1.08vw, 1.05rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.work-row__title {
  min-width: 0;
  overflow: visible;
  font-size: clamp(2.05rem, 5.5vw, 7.75rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  padding-bottom: 0.12em;
}

.work-row__category {
  justify-self: end;
}

.work-row__image {
  display: none;
}

.work-item.is-open .work-row {
  color: var(--accent);
}

.work-item.is-open .work-row__number,
.work-item.is-open .work-row__category {
  color: var(--accent);
}

.project__intro {
  overflow: hidden;
}

.project__meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.1;
}

.project__title {
  display: none !important;
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2.8rem, 7.2vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.project__description {
  max-width: 28ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  letter-spacing: 0;
}

.project__facts {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.project__facts div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.project__facts dt {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  line-height: 1.1;
}

.project__facts dd {
  margin: 0.2rem 0 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.3;
}

.project__gallery {
  display: grid;
  gap: clamp(0.75rem, 1.7vw, 1.5rem);
}

.project__gallery img {
  max-height: 86svh;
  object-fit: contain;
  object-position: center;
}

.otto-strip {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 0.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 5%, #eceae6);
}

.otto-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.otto-strip img:nth-child(1) {
  opacity: 1;
}

.project__gallery--two,
.project__gallery--three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.project__gallery--three > :first-child {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem var(--gutter) 1.25rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 760px) {
  :root {
    --header-height: 3.35rem;
  }

  .site-header {
    padding-top: 0.9rem;
  }

  .hero {
    min-height: calc(62svh - var(--header-height));
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__contact {
    text-align: left;
  }

  .work-row {
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    row-gap: 0.5rem;
    padding: 1rem 0 1.15rem;
  }

  .work-row__number {
    grid-column: 1;
  }

  .work-row__title {
    grid-column: 2 / 4;
    white-space: normal;
    overflow: visible;
    padding-bottom: 0.12em;
  }

  .work-row__category {
    grid-column: 2;
    justify-self: start;
  }

  .work-row__image {
    display: block;
    grid-column: 1 / -1;
    margin-top: 0.55rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
  }

  .work-panel__inner {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }


  .project__gallery--two,
  .project__gallery--three {
    grid-template-columns: 1fr;
  }

  .project__gallery--three > :first-child {
    grid-column: auto;
  }
}
