:root {
  --ink: #0d0d11;
  --paper: #fff;
  --grey: #c9ccd0;
  --soft: #f0f0f0;
  --muted: #8a8a8f;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.4 Inter, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.eyebrow { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.nav > * { pointer-events: auto; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.nav.is-hidden > * { opacity: 0; translate: 0 -12px; pointer-events: none; }
.logo { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 20px; letter-spacing: .01em; }
.menu-btn {
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
  display: grid; place-content: center; gap: 5px;
  transition: transform .4s var(--ease);
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: #000; transition: transform .4s var(--ease); }
.menu-btn:hover { transform: scale(1.08); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 44px) 46px);
  transition: clip-path .7s var(--ease);
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 46px); }
.menu ul { list-style: none; }
.menu li a { display: block; font-size: clamp(48px, 14vw, 140px); line-height: 1; letter-spacing: -.04em; font-weight: 300; padding: 6px 0; transition: opacity .3s; }
.menu ul:hover a { opacity: .35; }
.menu ul a:hover { opacity: 1; }

/* HERO */
.hero { height: 300vh; background: linear-gradient(#c3c7cb, #d4d6d8); position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero-title {
  white-space: nowrap; font-weight: 300; color: #000;
  font-size: clamp(120px, 34vw, 340px); letter-spacing: -.05em; line-height: 1;
  padding-left: 30vw; will-change: transform; position: relative; z-index: 2;
}
.float { position: absolute; width: var(--w); aspect-ratio: 3/4; border-radius: 4px; will-change: transform, translate;
  animation: bob var(--d, 6s) ease-in-out var(--delay, 0s) infinite alternate; }
/* Idle float uses the individual translate/rotate properties so it layers on top of the JS scroll parallax (transform) */
@keyframes bob {
  0%   { translate: 0 0; rotate: -1.5deg; }
  50%  { translate: 10px -18px; rotate: 1deg; }
  100% { translate: -8px 12px; rotate: -.5deg; }
}
.f1 { --w: 20vw; --d: 5.5s; left: 4%; top: 12%; z-index: 1; }
.f2 { --w: 34vw; --d: 7s; --delay: -2s; right: 4%; top: 34%; z-index: 3; }
.f3 { --w: 42vw; --d: 8s; --delay: -4s; left: 6%; top: 58%; z-index: 3; }
.f4 { --w: 16vw; --d: 4.5s; --delay: -1s; right: 18%; top: 82%; z-index: 1; }
.f5 { --w: 26vw; --d: 6.5s; --delay: -3s; left: 40%; top: 96%; z-index: 3; }
.f6 { --w: 14vw; --d: 5s; --delay: -2.5s; right: 6%; top: 112%; z-index: 1; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #fff; z-index: 4; }
.scroll-hint::after { content: ""; display: block; height: 1px; background: currentColor; margin-top: 4px; animation: hint 2s infinite var(--ease); transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* INTRO */
.intro { padding: 120px var(--gutter); }
.reveal-words { font-size: clamp(22px, 5.6vw, 34px); line-height: 1.2; letter-spacing: -.02em; text-align: center; max-width: 820px; margin: 0 auto; }
.reveal-words span { color: #d5d5d8; transition: color .3s; }
.reveal-words span.on { color: var(--ink); }

/* MEGA TITLES */
.mega { font-weight: 300; font-size: clamp(110px, 30vw, 380px); line-height: .82; letter-spacing: -.06em; text-transform: uppercase; text-align: center; }

/* WORK — stacked 3D card fly-in */
.work { position: relative; height: 600svh; }
.work-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.work .mega { position: absolute; left: 0; right: 0; top: 88px; z-index: 1; }
.work-stage { top: calc(88px + 0.7 * clamp(110px, 30vw, 380px)) !important; }
.work-count { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); z-index: 3; }
.work-count i { width: 1px; height: 40px; background: #ddd; }
.work-stage { position: absolute; inset: 0; perspective: 1200px; display: grid; place-items: center; align-content: center; z-index: 2; }
.work-card {
  grid-area: 1 / 1; position: relative; display: block; width: min(calc(100vw - 2 * var(--gutter)), 1200px, calc((100svh - 88px - 0.82 * clamp(110px, 30vw, 380px) - 40px) * 16 / 9));
  border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: #ddd;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
  transform-origin: 50% 0%; will-change: transform; transform: translate3d(0,120svh,0);
}
.work-card img { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.05); }
.tag { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 99px; padding: 6px 10px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

/* ARCHIVE — pinned: columns parallax, then grid tilts back and title reveals */
.archive { position: relative; height: 500svh; background: #000; color: #fff; border-radius: 50% 50% 0 0 / 60px 60px 0 0; margin-top: -60px; z-index: 3; }
.archive-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; border-radius: inherit; }
.nyc-word { position: absolute; left: 0; right: 0; top: clamp(84px, 11svh, 140px); translate: 0 0; text-align: center; font-weight: 300; font-size: clamp(64px, 19vw, 300px); line-height: .9; letter-spacing: -.05em; color: #fff; opacity: 0; white-space: normal; pointer-events: none; will-change: opacity, transform; }
@media (min-width: 768px) { .nyc-word { white-space: nowrap; font-size: clamp(64px, 13vw, 300px); } }
.nyc-sketch { position: absolute; left: 50%; top: 50%; width: max(140vw, 900px); max-width: none; translate: -50% -50%; opacity: 0; mix-blend-mode: screen; pointer-events: none; will-change: opacity, transform; }
@media (min-width: 768px) { .nyc-sketch { width: min(100vw, 1800px); } }
.archive-grid { position: absolute; inset: -15% -45%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; opacity: 0; will-change: transform, opacity; }
.archive-grid .col { display: grid; gap: 16px; align-content: start; will-change: transform; }
.archive-grid img { width: 100%; aspect-ratio: 4/5; border-radius: 10px; }
.archive-title { position: relative; z-index: 2; font-weight: 400; font-size: clamp(56px, 16vw, 200px); letter-spacing: -.05em; text-transform: uppercase; opacity: 0; will-change: transform, opacity; }

/* NOTES */
.notes { padding: 120px 0 80px; background: var(--paper); position: relative; z-index: 4; border-radius: 50% 50% 0 0 / 60px 60px 0 0; margin-top: -60px; }
.notes .mega { overflow: hidden; }
.notes-wrap { padding: 40px var(--gutter) 0; display: grid; gap: 16px; }
.note-list { list-style: none; }
.note-list a { position: relative; display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid #e6e6e6; overflow: hidden; }
.note-list time { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.marquee { display: block; overflow: hidden; white-space: nowrap; font-family: "Instrument Serif", serif; font-size: 22px; }
.marquee span { display: inline-block; }
.note-list a:hover .marquee span { animation: marq 8s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.note-list img { display: none; }

.social { padding: 80px 0 0; }
.social-head { display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter) 20px; }
.social-head .eyebrow { flex: 1; display: flex; gap: 12px; align-items: center; margin-left: 8px; }
.social-head .eyebrow::after { content: ""; flex: 1; height: 1px; background: #e2e2e2; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e2e2; transition: background .3s, color .3s; }
.arrow:hover { background: var(--ink); color: #fff; }
.social-track { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.social-rail { display: flex; gap: 12px; width: max-content; animation: social-loop 40s linear infinite; }
.social-track:hover .social-rail { animation-play-state: paused; }
.social-track.rev .social-rail { animation-direction: reverse; }
@keyframes social-loop { to { transform: translateX(calc(-50% - 6px)); } }
.post { flex: 0 0 44vw; max-width: 200px; display: grid; gap: 4px; }
.post img { aspect-ratio: 1; margin-bottom: 6px; filter: grayscale(1); transition: filter .4s; }
.post:hover img { filter: none; }
.post b { font-size: 10px; font-weight: 500; }
.post small { font-size: 10px; color: var(--muted); }

/* FOOTER */
.footer { background: var(--soft); padding: 80px var(--gutter) 24px; border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; }
.pill { background: #fff; border-radius: 99px; padding: 12px 16px; font-size: 11px; transition: background .3s, color .3s; }
.pill:hover { background: var(--ink); color: #fff; }
.cta { font-weight: 400; font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 0 0 40px; max-width: 12ch; }
.foot-mark { margin: 0 0 40px; text-align: right; font-weight: 300; font-size: clamp(48px, 15vw, 220px); line-height: .9; letter-spacing: -.05em; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: currentColor; stroke: none; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; font-size: 12px; }
.foot-grid div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-grid .eyebrow { flex-basis: 100%; font-size: 8px; }
.buy { grid-column: 1 / -1; justify-self: start; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 99px; font-size: 12px; }
.buy sup { font-size: 7px; }

/* TABLET + */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .f1 { --w: 9vw; } .f2 { --w: 18vw; } .f3 { --w: 22vw; }
  .f4 { --w: 8vw; } .f5 { --w: 14vw; } .f6 { --w: 11vw; }
  .archive-grid { inset: -20% -6%; gap: 28px; } .archive-grid .col { gap: 28px; }
  .notes-wrap { grid-template-columns: 1fr 2fr; max-width: 1100px; margin: 0 auto; }
  .marquee { font-size: 30px; }
  .note-list img { display: block; position: absolute; right: 0; top: 50%; width: 160px; aspect-ratio: 4/3; border-radius: 6px; opacity: 0; translate: 0 -50%; scale: .8; transition: opacity .4s, scale .4s var(--ease); pointer-events: none; }
  .note-list a:hover img { opacity: 1; scale: 1; }
  .post { flex-basis: 18vw; }
  .cta { max-width: 13ch; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .buy { grid-column: auto; }
}
@media (min-width: 1200px) {
  .social-head { max-width: 1100px; margin: 0 auto; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: auto; }
  .hero-sticky { position: relative; }
  .nyc-sketch { opacity: .6; } .nyc-word { opacity: .25; } .archive { height: auto; } .archive-sticky { position: relative; } .archive-grid { opacity: .5; } .archive-title { opacity: 1; } .work { height: auto; } .work-sticky { height: auto; padding: 80px 0; } .work .mega { position: static; } .work-stage { position: static !important; display: grid; gap: 24px; } .work-card { grid-area: auto; transform: none; }
  .hero-title { white-space: normal; padding: 0 var(--gutter); font-size: 18vw; }
}
