@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --paper: #fffef8;
  --ink: #181818;
  --space: 30px;
  --rail: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

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

.site {
  position: relative;
}

.wordmark {
  position: absolute;
  z-index: 20;
  top: var(--space);
  left: var(--space);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.page-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-title {
  margin: 0;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(3.25rem, 6.5vmin, 5.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.intro {
  display: flex;
  align-items: center;
  padding: calc(var(--space) + 90px) var(--rail) var(--space) var(--space);
}

.intro-text {
  position: relative;
  z-index: 2;
  max-width: 50%;
  margin: 0;
  opacity: 0;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 6.5vmin, 5.45rem);
  font-weight: 700;
  line-height: 0.995;
  letter-spacing: -0.055em;
  animation: reveal-intro 0.5s ease 2s forwards;
}

.glitch {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.glitch::before,
.glitch::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: transparent;
  content: attr(data-text);
  background: linear-gradient(
    100deg,
    #2088ff 0%,
    #7bff3a 16%,
    #fff30e 31%,
    #ff2929 45%,
    #ff18c8 59%,
    #472cff 74%,
    #00efc7 89%,
    #2088ff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  animation: chroma-shift 1.2s linear infinite;
}

.glitch::before {
  clip-path: polygon(0 24%, 100% 13%, 100% 47%, 0 57%);
  transform: translateX(-0.02em);
}

.glitch::after {
  clip-path: polygon(0 66%, 100% 55%, 100% 79%, 0 88%);
  transform: translateX(0.025em);
  animation-direction: reverse;
}

.loading-bar,
.image-loader {
  width: 80px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #ff3131,
    #f5a80e,
    #f5f50e,
    #7ef50e,
    #0ef5e2,
    #211af0,
    #e51af0,
    #ff3131
  );
  background-size: 300% 100%;
  animation: chroma-shift 1s linear infinite;
}

.loading-bar {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation:
    chroma-shift 1s linear infinite,
    loader-out 0.25s ease 1.9s forwards;
}

.section-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  width: var(--rail);
  height: 100%;
  pointer-events: none;
}

.section-arrow {
  position: absolute;
  z-index: 21;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
}

.section-arrow--up {
  top: var(--space);
}

.section-arrow--down {
  right: 7px;
  bottom: var(--space);
}

.work {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  padding-right: var(--rail);
}

.work-info {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space);
}

.work-copy {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding-top: var(--space);
}

.project-title {
  max-width: 240px;
  margin: 0;
  font-size: clamp(2.05rem, 3vw, 2.7rem);
  font-style: italic;
  line-height: 1.08;
}

.project-detail {
  max-width: 240px;
  margin: var(--space) 0 0;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

.project-count {
  margin: auto 0 0;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.work-gallery {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.work-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.72, 0, 0.2, 1);
  will-change: transform;
}

.work-slide {
  position: relative;
  display: flex;
  height: 100%;
  margin: 0;
  flex: 0 0 100%;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space);
  overflow: hidden;
}

.work-slide .image-loader {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.work-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, calc(150svh - 90px));
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-control {
  position: absolute;
  z-index: 10;
  bottom: var(--space);
  width: 50%;
  height: min(66.667vw, calc(100% - 60px));
  padding: 0;
  background: transparent;
  border: 0;
}

.gallery-control--previous {
  left: 0;
}

.gallery-control--next {
  right: 0;
}

.contact {
  display: flex;
  flex-direction: column;
  padding: var(--space) var(--rail) var(--space) var(--space);
}

.contact-title {
  margin-top: clamp(64px, 11vh, 110px);
}

.contact-copy,
.contact-services {
  width: 100%;
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  line-height: 1.28;
}

.contact-copy {
  margin-top: clamp(56px, 12vh, 116px);
}

.contact-copy p,
.contact-services p {
  margin: 0;
}

.contact-services {
  margin-top: clamp(38px, 7vh, 72px);
}

.contact-services ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-services li {
  font-style: italic;
}

.contact-services li::before {
  display: inline-block;
  width: 1.45em;
  content: "→";
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
}

.text-link,
.why-cta a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

.why-link {
  display: inline-block;
  margin-top: 0.75em;
  font-style: italic;
}

.why-link::before {
  display: inline-block;
  width: 1.45em;
  content: "→";
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  text-decoration: none;
}

.why {
  display: flex;
  height: auto;
  min-height: 100svh;
  flex-direction: column;
  padding: var(--space) var(--rail) var(--space) var(--space);
  overflow: visible;
  background: var(--ink);
  color: var(--paper);
}

.why a:focus-visible {
  outline-color: var(--paper);
}

.why-title {
  margin-top: clamp(64px, 9vh, 90px);
}

.why-intro {
  max-width: 1050px;
  margin: clamp(48px, 8vh, 86px) 0 0;
  font-size: clamp(1.8rem, 3.25vw, 3.1rem);
  line-height: 1.08;
}

.why-points {
  display: grid;
  margin-top: clamp(52px, 8vh, 88px);
  border-top: 1px solid rgb(255 254 248 / 42%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-point {
  min-width: 0;
  padding: 22px 28px 28px 0;
}

.why-point + .why-point {
  padding-left: 28px;
  border-left: 1px solid rgb(255 254 248 / 42%);
}

.why-number {
  margin: 0 0 30px;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.why-point h3 {
  max-width: 340px;
  margin: 0;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.why-point > p:last-child {
  max-width: 390px;
  margin: 24px 0 0;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.25;
}

.why-cta {
  margin: clamp(60px, 10vh, 110px) 0 0;
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  line-height: 1.2;
}

.why .smallprint {
  margin-top: clamp(76px, 12vh, 140px);
}

.smallprint {
  margin: auto 0 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.custom-cursor {
  --cursor-x: 0px;
  --cursor-y: 0px;
  position: fixed;
  z-index: 1000;
  top: var(--cursor-y);
  left: var(--cursor-x);
  display: none;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 0 7px #fff,
    0 0 15px #9cdfff,
    0 0 24px #9cdfff;
  transform: translate(-50%, -50%);
  transition:
    opacity 140ms ease,
    font-size 180ms ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor--previous,
.custom-cursor--next {
  font-size: 2.1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .site,
  .site a,
  .site button {
    cursor: none;
  }

  .custom-cursor {
    display: flex;
  }
}

@media (max-width: 959px) {
  :root {
    --space: 18px;
    --rail: 34px;
  }

  .page-section {
    min-height: 660px;
  }

  .wordmark {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .intro {
    padding-top: 84px;
  }

  .intro-text {
    max-width: 100%;
    font-size: clamp(1.95rem, 7.3vw, 3.75rem);
    line-height: 1;
  }

  .work {
    display: flex;
    flex-direction: column;
    padding: var(--space) var(--rail) var(--space) var(--space);
  }

  .work-info {
    min-height: 31%;
    flex: 0 0 auto;
    padding: 0;
  }

  .work-copy {
    padding-top: 10px;
  }

  .project-title {
    max-width: calc(100vw - 80px);
    font-size: clamp(1.65rem, 7vw, 2.6rem);
    line-height: 1;
  }

  .project-detail {
    max-width: none;
    margin-top: 8px;
    font-size: 1rem;
  }

  .project-count {
    display: none;
  }

  .work-gallery {
    height: auto;
    min-height: 0;
    flex: 1;
  }

  .work-slide {
    padding-bottom: 0;
  }

  .work-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center bottom;
  }

  .gallery-control {
    top: 0;
    bottom: 0;
    height: auto;
  }

  .contact-title {
    margin-top: clamp(40px, 7vh, 72px);
  }

  .contact-copy,
  .contact-services {
    font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  }

  .contact-copy {
    margin-top: clamp(48px, 9vh, 82px);
  }

  .contact-services {
    margin-top: clamp(34px, 6vh, 56px);
  }

  .why-title {
    margin-top: clamp(40px, 7vh, 72px);
  }

  .why-intro {
    margin-top: clamp(44px, 8vh, 72px);
    font-size: clamp(1.65rem, 6.8vw, 2.5rem);
  }

  .why-points {
    margin-top: 54px;
    grid-template-columns: 1fr;
  }

  .why-point,
  .why-point + .why-point {
    padding: 20px 0 30px;
    border-left: 0;
  }

  .why-point + .why-point {
    border-top: 1px solid rgb(255 254 248 / 42%);
  }

  .why-number {
    margin-bottom: 20px;
  }

  .why-point h3 {
    max-width: none;
    font-size: clamp(1.25rem, 5.6vw, 1.8rem);
  }

  .why-point > p:last-child {
    max-width: 620px;
    margin-top: 16px;
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  }

  .why-cta {
    margin-top: 54px;
    font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  }

  .why .smallprint {
    max-width: 100%;
    margin-top: 72px;
  }

  .smallprint {
    max-width: 80%;
    font-size: 0.7rem;
  }
}

@media (max-width: 560px) {
  .intro-text {
    font-size: clamp(1.62rem, 7.05vw, 2.45rem);
    letter-spacing: -0.05em;
  }

  .work-info {
    min-height: 32%;
  }
}

@keyframes reveal-intro {
  to {
    opacity: 1;
  }
}

@keyframes loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes chroma-shift {
  to {
    background-position: -150% 0;
  }
}

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

  .intro-text {
    opacity: 1;
    animation: none;
  }

  .loading-bar {
    display: none;
  }

  .glitch::before,
  .glitch::after,
  .image-loader {
    animation: none;
  }

  .work-track {
    transition: none;
  }
}

/* Keep dimension attributes from overriding the responsive gallery box. */
@media (min-width: 960px) {
  .work-image { height: auto; }
}
.work-slide.is-loaded .image-loader { display: none; }
