:root {
  --paper: #f3f2ee;
  --surface: #fbfaf7;
  --ink: #171715;
  --muted: #6e6d67;
  --line: rgba(23, 23, 21, 0.14);
  --signal: #dbff63;
  --sand: #ded9ca;
  --radius: 30px;
  --page: min(1420px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.9), transparent 28rem),
    var(--paper);
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 99px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark__mark {
  width: 11px;
  height: 11px;
  background: var(--ink);
  border-radius: 50% 50% 50% 13%;
  transform: rotate(-38deg);
}

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero,
.work {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 88px);
  padding: 78px 0 92px;
}

.hero__copy {
  width: 100%;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin-bottom: 32px;
  font-size: clamp(64px, 8.8vw, 136px);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.075em;
}

h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero__intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.018em;
}

.project__external {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
}

.project__external span {
  transition: transform 180ms ease;
}

.project__external:hover span {
  transform: translate(3px, 3px);
}

.work {
  padding: 96px 0 140px;
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.78fr);
  gap: 18px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 660px;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--radius);
  transition:
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(25, 24, 20, 0.12);
}

.project--music {
  color: #f9f8f3;
  background:
    radial-gradient(circle at 82% 18%, rgba(219, 255, 99, 0.2), transparent 19rem),
    #151513;
}

.project--music::before {
  position: absolute;
  top: 14%;
  right: -15%;
  width: 66%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(255, 255, 255, 0.025),
    0 0 0 88px rgba(255, 255, 255, 0.018);
}

.project--rituals {
  background: var(--sand);
}

.project__topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.64;
}

.project__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
}

.project__label {
  margin-bottom: 13px;
  font-size: 13px;
  opacity: 0.62;
}

.project h3 {
  margin: 0 0 14px;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.project--rituals h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(58px, 6vw, 88px);
  font-style: italic;
  font-weight: 400;
}

.project__body p:last-child {
  max-width: 410px;
  margin: 0;
  color: currentColor;
  font-size: 16px;
  opacity: 0.68;
}

.project__external {
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.product-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.product-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 24px 22px 0 0;
  transition: color 180ms ease;
}

.product-list a + a {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.product-list span {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.product-list small {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.product-list b {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 18px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.product-list a:hover {
  color: var(--signal);
}

.product-list a:hover b {
  transform: translate(3px, -3px);
}

.rituals-mark {
  position: absolute;
  top: 18%;
  right: -2%;
  left: -2%;
  display: flex;
  justify-content: center;
  height: 240px;
}

.rituals-mark span {
  width: 31%;
  height: 100%;
  border: 1px solid rgba(23, 23, 21, 0.32);
  border-radius: 50%;
}

.rituals-mark span + span {
  margin-left: -11%;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 48px;
  padding: 30px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  transition: color 180ms ease;
}

.footer__links a:hover,
.footer__links a[aria-current="page"] {
  color: var(--ink);
}

.legal-main {
  overflow: visible;
}

.legal {
  width: min(760px, calc(100vw - 64px));
  margin-inline: auto;
  padding: 120px 0 160px;
}

.legal h1 {
  margin-bottom: 32px;
  font-size: clamp(58px, 7.5vw, 104px);
}

.legal__lede {
  max-width: 660px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.legal__date {
  margin-bottom: 12px;
  padding: 18px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.legal section {
  padding-top: 44px;
}

.legal h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.legal h3 {
  margin: 28px 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal section p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal section p:last-child {
  margin-bottom: 0;
}

.legal section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reveal {
  animation: reveal 900ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--one {
  animation-delay: 80ms;
}

.reveal--two {
  animation-delay: 180ms;
}

.reveal--three {
  animation-delay: 280ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 40px, 760px);
  }

  .hero {
    padding: 88px 0 110px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 610px;
  }

}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 28px);
    --radius: 22px;
  }

  .site-header {
    height: 72px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0 92px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 76px);
  }

  .hero__intro {
    font-size: 17px;
  }

  .work {
    padding: 72px 0 100px;
  }

  .project {
    min-height: 560px;
    padding: 26px;
  }

  .project__topline span:last-child {
    display: none;
  }

  .project__body {
    display: block;
  }

  .project__external {
    margin-top: 28px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .product-list a + a {
    margin-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .rituals-mark {
    top: 21%;
    height: 190px;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .footer__links {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 14px;
  }

  .legal {
    width: var(--page);
    padding: 80px 0 110px;
  }

  .legal h1 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .legal__lede {
    margin-bottom: 36px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
