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

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

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

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f5f5f2;
  --muted: #858585;
  --line: #282828;
  --panel: #0a0a0a;
  --sans: "Inter", Arial, sans-serif;
  --hand: "Krasumashi", Arial, sans-serif;
  --serif: "Cormorant", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

::selection {
  background: #fff;
  color: #000;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1.5rem 1rem;
  font-family: var(--hand);
  font-size: clamp(1rem, 1.85vw, 1.5rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 0.15rem 0.1rem;
}

.site-nav a::after {
  position: absolute;
  right: 0.1rem;
  bottom: -0.3rem;
  left: 0.1rem;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav span {
  margin: 0 0.32em;
  opacity: 0.75;
}

.home {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: #050505 url("/assets/home-background.avif") center center / cover no-repeat;
}

.home::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / 10%), rgb(0 0 0 / 4%) 42%, rgb(0 0 0 / 22%));
  pointer-events: none;
}

.home .site-nav {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 15vh;
  padding: 0;
  font-size: clamp(0.85rem, 1.5vw, 1.25rem);
}

.signature {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 6vh;
  width: clamp(9rem, 16vw, 13rem);
  height: auto;
  opacity: 0.92;
}

.video-page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.page-video {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(1) contrast(1.12);
}

.video-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / 68%), rgb(0 0 0 / 93%));
}

.self-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(22rem, 31rem);
  gap: clamp(3rem, 9vw, 10rem);
  width: min(100% - 3rem, 78rem);
  margin: 6rem auto 0;
  padding-bottom: 8rem;
}

.self-aside {
  display: flex;
  min-height: 55vh;
  align-items: flex-end;
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.52;
}

.prose h1,
.prose h2 {
  margin: 2.1rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.prose h1 {
  margin-top: 0;
  color: #929292;
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1.35rem;
}

.work-stage,
.library-stage {
  position: relative;
  width: min(100% - 3rem, 68rem);
  min-height: calc(100svh - 8rem);
  margin: 0 auto;
}

.work-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: 4rem 0 8rem;
}

.project-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  max-width: 16rem;
  font-family: var(--hand);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-link:hover {
  opacity: 0.7;
  transform: translateY(-0.25rem);
}

.project-link strong {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
}

.project-link small {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-ppac {
  grid-column: 1 / span 4;
  align-self: start;
  margin-top: 8rem;
}

.project-ahtohmoh {
  grid-column: 6 / span 5;
  align-self: center;
}

.project-window {
  grid-column: 3 / span 4;
  align-self: end;
  margin-bottom: 3rem;
}

.project-window strong {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.library-stage {
  display: grid;
  place-items: center;
  padding: 4rem 0 8rem;
}

.papers {
  width: min(100%, 34rem);
  font-family: var(--serif);
}

.papers h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
}

.paper-list {
  display: grid;
  gap: 0.5rem;
}

.paper {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.paper:last-child {
  border-bottom: 1px solid var(--line);
}

.paper strong {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 400;
}

.paper span {
  color: #b4b4b4;
  font-size: 0.95rem;
}

.paper:hover strong {
  font-style: italic;
}

.contact-shell {
  width: min(100% - 3rem, 68rem);
  margin: 3.5rem auto 0;
  padding-bottom: 7rem;
}

.contact-intro {
  display: flex;
  gap: 1rem 2.2rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2rem;
}

.contact-intro h1 {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.socials a:hover {
  color: #fff;
}

.contact-form h2 {
  margin: 3rem 0 1.2rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.services {
  display: grid;
  grid-auto-columns: minmax(16rem, 1fr);
  grid-auto-flow: column;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: #777 #171717;
}

.service {
  position: relative;
  min-height: 11rem;
  padding: 3rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(7 7 7 / 82%);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease;
}

.service:hover,
.service:has(input:checked) {
  border-color: #777;
  background: #111;
}

.service input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #fff;
}

.service strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.service span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.45;
}

.fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.fields label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fields input,
.fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  color: #fff;
  font: 300 1rem/1.4 var(--sans);
}

.fields input {
  height: 3.5rem;
  padding: 0 1rem;
}

.fields textarea {
  min-height: 8.5rem;
  padding: 1rem;
  resize: vertical;
}

.fields input::placeholder,
.fields textarea::placeholder {
  color: #666;
}

.form-footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.submit-button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 500 0.85rem var(--sans);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.submit-button:hover {
  background: #000;
  color: #fff;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 760px) {
  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 2rem 1.25rem 0.8rem;
    font-size: 0.98rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .home {
    background-position: 44% center;
  }

  .home::after {
    background: linear-gradient(0deg, rgb(0 0 0 / 70%), transparent 55%);
  }

  .home .site-nav {
    right: 1.25rem;
    bottom: 7.5rem;
    left: 1.25rem;
    justify-content: center;
    overflow: visible;
    white-space: normal;
  }

  .signature {
    right: 1.5rem;
    bottom: 2rem;
  }

  .self-layout {
    display: block;
    width: min(100% - 2.5rem, 36rem);
    margin-top: 3.5rem;
  }

  .self-aside {
    display: none;
  }

  .video-page::before {
    background: rgb(0 0 0 / 83%);
  }

  .work-stage {
    display: flex;
    min-height: calc(100svh - 6rem);
    flex-direction: column;
    gap: 4.5rem;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 0 7rem;
  }

  .project-ppac,
  .project-ahtohmoh,
  .project-window {
    margin: 0;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-shell {
    width: min(100% - 2.5rem, 40rem);
    margin-top: 2rem;
  }

  .contact-intro {
    display: block;
  }

  .socials {
    margin-top: 1.5rem;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

