:root {
  --color-background: oklch(1 0 0);
  --color-foreground: oklch(0.15 0.008 250);
  --color-muted-foreground: oklch(0.52 0.012 250);
  --color-on-dark: oklch(1 0 0);
  --color-on-dark-muted: oklch(1 0 0 / 0.78);
  --color-overlay: oklch(0 0 0 / 0.15);
  --color-halo: oklch(0 0 0 / 0.25);
  --color-menu: oklch(0 0 0 / 0.7);
  --color-button-hover: oklch(0.92 0 0);
  --color-focus: oklch(0.78 0.1 75);
  --color-divider: oklch(0.15 0.008 250 / 0.14);
  --color-text-shadow: oklch(0 0 0 / 0.45);
  --font-display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --font-script: "Apple Chancery", "URW Chancery L", cursive;
  --font-body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --page-padding: clamp(1.5rem, 3.4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

.project-visual,
.view-band {
  padding: clamp(5rem, 9vw, 9rem) var(--page-padding);
}

.project-visual {
  background: oklch(0.145 0.012 225);
  color: oklch(0.97 0.01 85);
}

.project-visual__head {
  display: grid;
  max-width: 94rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.project-visual__head h2,
.view-band h2 {
  max-width: 12ch;
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.project-visual__head > p,
.view-band__copy > p:last-child {
  margin: 0;
  color: oklch(0.87 0.01 85 / 0.82);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.project-visual__figure {
  max-width: 94rem;
  margin: 0 auto;
}

.project-visual__figure a {
  display: block;
  overflow: hidden;
  background: oklch(0.08 0 0);
}

.project-visual__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 400ms ease, transform 900ms var(--ease-out-expo);
}

.project-visual__figure a:hover img,
.project-visual__figure a:focus-visible img {
  opacity: 0.92;
  transform: scale(1.012);
}

.project-visual__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: oklch(0.82 0.01 85 / 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.view-band {
  display: grid;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  background: oklch(0.95 0.012 85);
}

.view-band__copy {
  max-width: 34rem;
}

.view-band__copy > p:last-child {
  margin-top: 2rem;
  color: var(--color-muted-foreground);
}

.view-band > img {
  display: block;
  width: 100%;
  min-height: 34rem;
  object-fit: cover;
}

@media (max-width: 800px) {
  .project-visual__head,
  .view-band {
    grid-template-columns: 1fr;
  }

  .project-visual__figure figcaption {
    flex-direction: column;
  }

  .view-band > img {
    min-height: 24rem;
  }
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wordmark-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: max(100svh, 720px);
  overflow: hidden;
  background: var(--color-foreground);
  color: var(--color-on-dark);
  isolation: isolate;
}

.hero__poster,
.hero__media {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__poster {
  animation: hero-fade 1200ms ease-out 0ms both;
}

.hero__media {
  z-index: -2;
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.hero__media.is-ready {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--color-overlay);
}

.hero-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem var(--page-padding) 0;
}

.project-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-on-dark);
  text-align: left;
  animation: hero-rise 900ms var(--ease-out-expo) 100ms both;
}

.project-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.project-mark::before,
.project-mark::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.project-mark::before {
  top: 0.9rem;
  left: 0.32rem;
  width: 1.25rem;
  height: 1px;
  transform: rotate(-12deg);
}

.project-mark::after {
  top: 0.43rem;
  left: 0.96rem;
  width: 1px;
  height: 1.05rem;
}

.project-brand__copy strong,
.project-brand__copy small {
  display: block;
  line-height: 1.1;
}

.project-brand__copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-brand__copy small {
  margin-top: 0.3rem;
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-nav__center {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: hero-rise 900ms var(--ease-out-expo) 200ms both;
}

.hero-nav__center a,
.hero-nav__contact {
  color: var(--color-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 180ms ease;
}

.hero-nav__center a:hover,
.hero-nav__contact:hover {
  color: var(--color-on-dark);
}

.hero-nav__contact {
  justify-self: end;
  animation: hero-rise 900ms var(--ease-out-expo) 300ms both;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: var(--page-padding);
  left: var(--page-padding);
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 3.5rem 1.5rem 1.5rem;
  border-radius: 1rem;
  background: var(--color-menu);
  box-shadow: 0 1.5rem 5rem var(--color-text-shadow);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: flex;
  animation: hero-rise 360ms var(--ease-out-expo) both;
}

.mobile-menu a {
  color: var(--color-on-dark);
  font-size: 1.125rem;
  text-decoration: none;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-on-dark);
}

.mobile-menu__close svg,
.hero-cta__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(42rem, calc(100% - 2 * var(--page-padding)));
  margin-left: var(--page-padding);
  padding-top: clamp(3rem, 7vh, 4.5rem);
}

.hero__halo {
  position: absolute;
  z-index: -1;
  inset: -2.25rem -3rem -2.75rem;
  border-radius: 50%;
  background: var(--color-halo);
  filter: blur(64px);
}

.hero__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--color-on-dark-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: hero-rise 900ms var(--ease-out-expo) 400ms both;
}

.hero h1 {
  margin: 0;
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-shadow: 0 2px 12px var(--color-text-shadow);
  animation: hero-rise 900ms var(--ease-out-expo) 400ms both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding: 0.375rem 1.5rem 0.375rem 0.375rem;
  border-radius: 999px;
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease;
  animation: hero-rise 900ms var(--ease-out-expo) 600ms both;
}

.hero-cta:hover {
  background: var(--color-button-hover);
}

.hero-cta__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-foreground);
  color: var(--color-on-dark);
}

.hero-wordmark {
  position: absolute;
  z-index: 2;
  right: var(--page-padding);
  bottom: 0;
  left: var(--page-padding);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.11em;
  overflow: visible;
  pointer-events: none;
  animation: wordmark-rise 1100ms var(--ease-out-expo) 800ms both;
}

.hero-wordmark__serif,
.hero-wordmark__script {
  color: var(--color-on-dark);
  line-height: 0.9;
  white-space: nowrap;
}

.hero-wordmark__serif {
  font-family: var(--font-display);
  font-size: 12.4vw;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-wordmark__script {
  margin-left: 1.2vw;
  font-family: var(--font-script);
  font-size: 10.8vw;
  font-style: italic;
}

.about {
  padding: clamp(5rem, 8vw, 7rem) var(--page-padding);
  background: var(--color-background);
}

.about__intro {
  display: grid;
  max-width: 90rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.section-label {
  margin: 0 0 1.5rem;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-visual .section-label {
  color: oklch(0.82 0.01 85 / 0.75);
}

.about h2 {
  max-width: 45rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.about__copy {
  align-self: end;
}

.about__copy p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.about__copy a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--color-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  text-underline-offset: 0.35rem;
}

.project-stats {
  display: grid;
  max-width: 90rem;
  margin: clamp(4.5rem, 8vw, 7rem) auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-stats div {
  min-width: 0;
  padding: 0 clamp(1rem, 2.7vw, 2.5rem);
  border-left: 1px solid var(--color-divider);
}

.project-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.project-stats dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1;
}

.project-stats dd {
  margin: 0.65rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (max-width: 1023px) {
  .hero {
    min-height: max(100svh, 690px);
  }

  .hero-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
  }

  .project-brand {
    cursor: pointer;
  }

  .hero-nav__center,
  .hero-nav__contact {
    display: none;
  }

  .hero__content {
    padding-top: clamp(2.25rem, 7vh, 3.5rem);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-wordmark {
    justify-content: flex-start;
  }

  .hero-wordmark__serif {
    font-size: 15vw;
  }

  .hero-wordmark__script {
    font-size: 13vw;
  }
}

@media (min-width: 1024px) {
  .project-brand {
    cursor: default;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: max(100svh, 660px);
  }

  .project-brand__copy small {
    display: none;
  }

  .hero__poster,
  .hero__media {
    object-position: 62% 50%;
  }

  .hero__content {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero-cta {
    margin-top: 2rem;
  }

  .hero-wordmark {
    right: 0.75rem;
    left: 0.75rem;
  }

  .hero-wordmark__serif {
    font-size: 15.6vw;
  }

  .hero-wordmark__script {
    margin-left: 0.5vw;
    font-size: 14.2vw;
  }

  .about__intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .project-stats div {
    padding-inline: 1rem;
  }

  .project-stats div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
