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

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

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("fonts/outfit-latin-300-normal.woff2") format("woff2");
}

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

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/outfit-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #0c0b0a;
  --paper: #ece6dc;
  --stone: #8e877c;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --text-display: clamp(3.25rem, 11vw, 8.5rem);
  --text-section: clamp(1.75rem, 4.4vw, 3.25rem);
  --text-lead: clamp(1.05rem, 1.6vw, 1.35rem);
  --tracking-brand: 0.42em;
  --tracking-label: 0.28em;
  --gutter: clamp(1.25rem, 4.2vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background: var(--ink);
  color: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}

.header-fade {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 6rem;
  background: linear-gradient(to bottom, rgb(12 11 10 / 0.8), transparent);
}

.progress {
  position: relative;
  height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgb(236 230 220 / 0.8);
  transition: color 150ms;
}

.nav-desktop a:hover {
  color: var(--paper);
}

.menu-btn {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
}

.menu-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--paper);
  transition: transform 200ms var(--ease);
}

.menu-btn span:first-child {
  transform: translate(-50%, -0.375rem);
}

.menu-btn span:last-child {
  transform: translate(-50%, 0.375rem);
}

.menu-btn.is-open span:first-child {
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-btn.is-open span:last-child {
  transform: translate(-50%, 0) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--gutter) 3rem;
  background: var(--ink);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  min-height: 2.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-display);
  line-height: 1.1;
}

.hero,
.panel {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.hero {
  display: flex;
  align-items: flex-end;
}

.hero video,
.hero img,
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero img {
  z-index: -1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--ink),
    rgb(12 11 10 / 0.35),
    rgb(12 11 10 / 0.25)
  );
}

.hero-copy,
.panel-copy,
.method-copy,
.contact-copy {
  position: relative;
  z-index: 10;
  padding: 7rem var(--gutter) 3rem;
}

.hero-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2rem;
}

.hero h1,
.display {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.label {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgb(236 230 220 / 0.7);
}

.sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}

.panel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgb(12 11 10 / 0.25), transparent);
}

.panel-copy {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 3rem;
}

.words {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.words li {
  max-width: 18ch;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgb(236 230 220 / 0.8);
}

.num {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-lead);
  color: rgb(236 230 220 / 0.7);
}

.panel-copy h2:not(.display) {
  margin-top: 0.5rem;
  max-width: 14ch;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.method-shade {
  position: absolute;
  inset: 0;
  background: rgb(12 11 10 / 0.55);
}

.method-copy {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.method-copy ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.method-copy h3 {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-section);
  font-weight: 400;
  line-height: 1;
}

.consult-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--ink),
    rgb(12 11 10 / 0.25),
    rgb(12 11 10 / 0.15)
  );
}

#consultancy .panel-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

#consultancy .words {
  align-items: flex-start;
  text-align: left;
}

.contact-shade {
  position: absolute;
  inset: 0;
  background: rgb(12 11 10 / 0.7);
}

.contact-copy {
  display: flex;
  min-height: 100dvh;
  max-width: 48rem;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-copy a {
  margin-top: 1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-section);
  line-height: 1.15;
  transition: opacity 150ms;
}

.contact-copy a:hover {
  opacity: 0.8;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem var(--gutter);
  background: var(--ink);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--stone);
}

.grain {
  position: relative;
}

.grain::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.rise {
  animation: rise 500ms var(--ease) both;
}

.rise-2 {
  animation-delay: 80ms;
}

.ken {
  animation: ken 22s var(--ease) both;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn,
  .mobile-nav {
    display: none !important;
  }

  .hero-copy,
  .panel-copy {
    padding-bottom: 4rem;
  }

  .panel-copy h2:not(.display) {
    font-size: 1rem;
  }

  .method-copy {
    justify-content: center;
  }

  .method-copy ul {
    margin-top: 4rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }

  .contact-copy {
    justify-content: center;
  }

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #consultancy .panel-copy {
    flex-direction: row;
    align-items: flex-end;
  }

  #consultancy .words {
    align-items: flex-end;
    text-align: right;
  }
}

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

  .rise,
  .rise-2,
  .ken {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
