@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fafafc;
  --ink: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.58);
  --motion: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100000;
  padding: 8px 12px;
  color: #fff;
  background: #1c1c1c;
  border-radius: 9999px;
  transform: translateY(-160%);
  transition: transform 700ms var(--motion);
}

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

.video-stage,
.video-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-stage {
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}

.video-layer {
  opacity: 0;
  transition: opacity 1000ms var(--motion);
}

.video-layer[data-video="0"] {
  background: var(--paper);
}

.video-layer[data-video="1"] {
  background: var(--paper);
}

.video-layer[data-video="2"] {
  background: var(--paper);
}

.video-layer[data-video="3"] {
  background: var(--paper);
}

.video-layer.is-visible {
  opacity: 1;
}

.video-layer video {
  width: 68vw;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 192px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 192px), transparent 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}

.menu-button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 700ms var(--motion), top 700ms var(--motion);
}

.menu-button span:first-child {
  top: 11px;
}

.menu-button span:last-child {
  top: 20px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 15px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 15px;
  transform: rotate(-45deg);
}

.menu-button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1c1c1c;
  outline-offset: 4px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  align-content: center;
  justify-content: end;
  padding: 96px;
  color: var(--ink);
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--motion), visibility 700ms var(--motion);
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.menu-overlay nav a {
  overflow: hidden;
  color: var(--ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 700ms var(--motion), transform 700ms var(--motion);
}

.menu-overlay.is-open nav a {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.is-open nav a:nth-child(2) {
  transition-delay: 100ms;
}

.menu-overlay.is-open nav a:nth-child(3) {
  transition-delay: 150ms;
}

.menu-overlay.is-open nav a:nth-child(4) {
  transition-delay: 200ms;
}

.menu-overlay nav a:hover {
  opacity: 0.55;
}

.menu-overlay > p {
  margin: 48px 0 0;
  color: var(--muted);
  text-align: right;
}

.snap-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.section-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 48px 96px;
}

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

.hero-copy {
  width: min(50vw, 720px);
  margin-left: auto;
  text-align: right;
  transform: translateY(-10%);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-top: 16px;
}

.mobile-break {
  display: none;
}

.signature {
  position: absolute;
  right: 96px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-align: right;
  text-decoration: none;
  transition: opacity 700ms var(--motion), transform 700ms var(--motion);
}

.signature strong {
  font-size: 36px;
  line-height: 1.15;
}

.signature span {
  font-size: 20px;
  font-weight: 500;
}

.signature:hover {
  opacity: 0.68;
  transform: translateY(-2px);
}

.side-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.works-panel {
  width: min(30vw, 420px);
  transform: translateX(24px);
}

.approach-panel {
  width: min(32vw, 420px);
  transform: translateX(64px);
}

.works h2 {
  margin: 0 0 8px;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.works-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: pretty;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.work-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: pretty;
  transition: opacity 700ms var(--motion), transform 700ms var(--motion);
}

.case-item {
  transition: opacity 700ms var(--motion), transform 700ms var(--motion);
}

.case-item details {
  display: block;
}

.case-item summary {
  cursor: pointer;
  list-style: none;
}

.case-item summary::-webkit-details-marker {
  display: none;
}

.case-item summary:hover {
  opacity: 0.58;
  transform: translateX(8px);
}

.folder-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.folder-icon::before {
  position: absolute;
  top: -7px;
  left: -2px;
  width: 14px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  content: "";
}

.case-item details[open] .folder-icon {
  transform: rotate(-2deg);
}

.case-files {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 12px;
  padding: 0 0 10px 48px;
  animation: files-in 500ms var(--motion) both;
}

@keyframes files-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  color: rgba(28, 28, 28, 0.64);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 350ms ease, transform 350ms var(--motion);
}

.case-file:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.file-icon,
.link-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.file-icon::after {
  position: absolute;
  top: 4px;
  right: 2px;
  left: 2px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
  content: "";
}

.link-icon {
  width: 16px;
  height: 16px;
  border: 0;
}

.link-icon::before,
.link-icon::after {
  position: absolute;
  width: 9px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 9999px;
  content: "";
  transform: rotate(-42deg);
}

.link-icon::before {
  top: 2px;
  left: 1px;
}

.link-icon::after {
  right: 1px;
  bottom: 2px;
}

.approach-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tagline {
  max-width: 680px;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tagline .word {
  display: inline-block;
  color: rgba(28, 28, 28, 0.28);
  transition: color 800ms var(--motion);
}

.tagline .word.is-lit {
  color: var(--ink);
}

.benefits {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.benefits p {
  display: block;
  margin: 0;
  padding: 8px 0;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  font-size: 18px;
}

.benefits span {
  margin-top: 4px;
  color: rgba(28, 28, 28, 0.72);
  text-wrap: pretty;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-panel {
  width: min(62vw, 880px);
  text-align: right;
  transform: translateY(-32px);
}

.contact-heading h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact-heading > p {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 500;
  opacity: 0.72;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 48px;
}

.contact-label {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.42;
}

.contact-name {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.contact-role {
  margin: 8px 0 16px;
  font-size: 18px;
  font-weight: 500;
}

.contact-links {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.contact-links a {
  font-size: 18px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 700ms var(--motion), transform 700ms var(--motion);
}

.contact-links a:hover {
  opacity: 0.58;
  transform: translateY(-2px);
}

.contact-links a:active {
  transform: scale(0.98);
}

.legal-links {
  position: absolute;
  right: 96px;
  bottom: 24px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.48;
}

.legal-links a {
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.reveal-item {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(64px);
  transition: opacity 900ms var(--motion), filter 900ms var(--motion), transform 900ms var(--motion);
}

.snap-section.is-active .reveal-item {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.snap-section.is-active .case-item:nth-child(2) {
  transition-delay: 100ms;
}

.snap-section.is-active .case-item:nth-child(3) {
  transition-delay: 150ms;
}

.snap-section.is-active .case-item:nth-child(4) {
  transition-delay: 200ms;
}

.snap-section.is-active .case-item:nth-child(5) {
  transition-delay: 250ms;
}

.case-dialog {
  width: calc(100vw - 32px);
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  padding: 40px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(28, 28, 28, 0.2);
  overflow-x: hidden;
}

.case-dialog::backdrop {
  background: rgba(28, 28, 28, 0.62);
  backdrop-filter: blur(16px);
}

.case-dialog[open] {
  animation: dialog-in 700ms var(--motion) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(28, 28, 28, 0.08);
  font-size: 24px;
  cursor: pointer;
  transition: transform 700ms var(--motion), background 700ms var(--motion);
}

.dialog-close:hover {
  background: rgba(28, 28, 28, 0.14);
  transform: rotate(90deg);
}

.dialog-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-dialog h2 {
  margin: 0 0 32px;
  font-size: 36px;
  line-height: 1.1;
}

.case-brief-copy {
  display: grid;
  gap: 24px;
}

.case-brief-copy section {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
}

.case-brief-copy h3,
.case-brief-copy p {
  margin: 0;
}

.case-brief-copy h3 {
  font-size: 16px;
  line-height: 1.4;
}

.case-brief-copy p {
  color: rgba(28, 28, 28, 0.72);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.simple-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 24px;
}

.simple-card {
  width: min(680px, 100%);
}

.simple-card h1 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.simple-card p {
  color: rgba(28, 28, 28, 0.72);
  font-size: 18px;
  text-wrap: pretty;
}

.simple-card a {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .site-header {
    padding: 24px;
  }

  .video-layer video {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50dvh;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .section-content {
    position: absolute;
    inset: 0 0 auto 0;
    height: 50dvh;
    padding: 64px 24px 24px;
  }

  .hero-content,
  .side-content,
  .contact-content {
    align-items: center;
    justify-content: center;
  }

  .hero-copy,
  .works-panel,
  .approach-panel,
  .contact-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    transform: none;
  }

  .eyebrow {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .signature {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .signature strong {
    font-size: 30px;
  }

  .signature span {
    font-size: 16px;
  }

  .works h2,
  .contact-heading h2 {
    font-size: 48px;
  }

  .work-list {
    max-width: 560px;
    margin: 0 auto;
    padding-left: 0;
    text-align: left;
  }

  .work-row {
    font-size: 24px;
  }

  .approach-panel {
    gap: 24px;
  }

  .tagline {
    margin: 0 auto;
    font-size: 36px;
  }

  .benefits {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
  }

  .benefits p {
    padding: 12px 0;
  }

  .contact-heading > p {
    font-size: 24px;
  }

  .contact-details {
    align-items: center;
    margin-top: 24px;
  }

  .contact-name {
    font-size: 30px;
  }

  .legal-links {
    right: 24px;
    bottom: 16px;
    left: 24px;
    justify-content: center;
  }

  .menu-overlay {
    justify-content: center;
    padding: 64px 24px;
  }

  .menu-overlay nav {
    align-items: center;
  }

  .menu-overlay nav a {
    font-size: 36px;
    text-align: center;
  }

  .menu-overlay > p {
    text-align: center;
  }
}

@media (max-width: 639px) {
  .section-content {
    padding-top: 56px;
  }

  .hero-copy {
    align-self: flex-start;
    padding-top: 16px;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .hero h1 {
    font-size: 24px;
    text-wrap: wrap;
  }

  .mobile-break {
    display: block;
  }

  .hero h1 span:last-child {
    margin-top: 8px;
  }

  .signature {
    bottom: 16px;
    text-align: center;
  }

  .signature strong {
    font-size: 24px;
  }

  .signature span {
    font-size: 14px;
  }

  .works h2 {
    margin-bottom: 4px;
    font-size: 36px;
  }

  .works-note {
    margin-bottom: 12px;
  }

  .work-row {
    grid-template-columns: 24px 1fr;
    min-height: 40px;
    gap: 12px;
    padding: 4px 0;
    font-size: 18px;
  }

  .folder-icon {
    width: 22px;
    height: 17px;
  }

  .folder-icon::before {
    top: -6px;
    width: 11px;
    height: 6px;
  }

  .approach-panel {
    gap: 16px;
  }

  .tagline {
    max-width: 320px;
    font-size: 24px;
    text-wrap: wrap;
  }

  .benefits {
    gap: 8px;
    max-width: 320px;
  }

  .benefits p {
    display: block;
    padding: 4px 0;
  }

  .benefits strong,
  .benefits span {
    display: block;
    font-size: 14px;
  }

  .benefits span {
    margin-top: 2px;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .approach .section-content {
    padding-top: 32px;
  }

  .contact-content {
    align-items: flex-start;
    padding-top: 40px;
  }

  .contact-heading h2 {
    font-size: 30px;
  }

  .contact-heading > p {
    margin-top: 4px;
    font-size: 18px;
  }

  .contact-details {
    margin-top: 16px;
  }

  .contact-label {
    display: none;
  }

  .contact-label,
  .contact-role {
    font-size: 14px;
  }

  .contact-name {
    font-size: 24px;
  }

  .contact-role {
    margin-bottom: 16px;
  }

  .legal-links {
    display: none;
  }

  .case-dialog {
    padding: 32px 24px;
  }

  .case-dialog h2 {
    font-size: 30px;
  }

  .case-brief-copy section {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

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