/* We Move Sites — one continuous shot. Flat page by default; html.motion turns the same objects into a room. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bricolage-800.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/inter-tight.woff2") format("woff2"); }

:root {
  --ink: #0a0a0b;
  --bone: #ebe6dc;
  --accent: #ff5a1f;
  --mute: rgba(235, 230, 220, 0.55);
  --line: rgba(235, 230, 220, 0.18);
  --display: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --sh: 70vh;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); font-family: var(--body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 8px 12px; background: var(--ink); color: var(--bone); font-size: 13px; text-decoration: none; border: 1px solid var(--line); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- flat page (no JS, reduced motion) ---------- */
.proxy, .dust, .hint, .dash, .wallplane, .screen__cable { display: none; }
.scene { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 8vh, 96px) var(--pad) 48px; }

.wordmark { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(60px, 15vw, 220px); line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; }
.word { display: block; }
.word--move { padding-left: 0.18em; }
.word--sites { padding-left: 0.36em; }
.tag { margin: 40px 0 0; max-width: 34ch; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--mute); }

.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 14vh 0 0; }
.screen { display: block; text-decoration: none; }
.screen__frame { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #111113; border: 1px solid var(--line); }
.screen__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen--next .screen__frame { animation: frame 4s ease-in-out infinite; }
@keyframes frame { 0%, 100% { border-color: rgba(235, 230, 220, 0.18); } 50% { border-color: rgba(235, 230, 220, 0.5); } }
.screen__empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vh, 120px); text-transform: uppercase; letter-spacing: -0.04em; color: rgba(235, 230, 220, 0.18); writing-mode: vertical-rl; transform: rotate(180deg); }
.screen__cap { display: block; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.screen__cap b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--bone); margin-bottom: 4px; }
.screen__cap span { display: block; max-width: 34ch; }
.screen__cap em { display: block; margin-top: 8px; font-style: normal; color: var(--accent); }
.screen:hover .screen__cap b, .screen:focus-visible .screen__cap b { color: var(--accent); }

.manifesto { margin: 16vh 0 0; }
.wall { margin: 0 0 0.6em; max-width: 16ch; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.wall--r { margin-left: auto; text-align: right; }

.floorrow { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 16vh 0 0; }
.floor { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

.end { margin: 18vh 0 0; }
.end__mail { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(21px, 6.4vw, 108px); line-height: 1; letter-spacing: -0.045em; text-decoration: none; color: var(--bone); overflow-wrap: anywhere; transition: color 0.3s; }
.end__mail:hover, .end__mail:focus-visible, .is-near { color: var(--accent); }
.end__line { margin: 24px 0 0; font-size: clamp(16px, 1.5vw, 20px); color: var(--mute); }
.end__sig { margin: 56px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

/* ---------- the room (JS, motion allowed) ---------- */
.motion body { overflow-x: hidden; overscroll-behavior: none; }
.motion .proxy { display: block; width: 1px; height: 700vh; pointer-events: none; }
.motion .dust { display: block; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.motion .scene { position: fixed; inset: 0; z-index: 1; margin: 0; padding: 0; max-width: none; overflow: hidden; perspective: var(--p, 1000px); perspective-origin: 50% 50%; visibility: hidden; }
.motion.ready .scene { visibility: visible; }
.motion .camera, .motion .world, .motion .wordmark, .motion .screens, .motion .manifesto, .motion .floorrow { position: absolute; inset: 0; margin: 0; transform-style: preserve-3d; display: block; }
.motion .camera { will-change: transform; }

.motion .obj { position: absolute; left: 50%; top: 50%; margin: 0; visibility: hidden; backface-visibility: hidden; }
.motion .obj.is-live { visibility: visible; will-change: transform; }

.motion .word { width: max-content; padding: 0; white-space: nowrap; transform-style: preserve-3d; font-size: clamp(76px, 20vw, 320px); line-height: 0.8; transition: color 0.3s; }
.motion .ltr { display: inline-block; }
.motion .tag { width: max-content; max-width: min(70vw, 36ch); text-align: left; }

.motion .screen { width: calc(var(--sh) * 9 / 16); height: var(--sh); }
.motion .screen__cable { display: block; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 70vh; background: var(--line); }
.motion .screen__frame { width: 100%; height: 100%; }
.motion .screen__cap { position: absolute; left: 0; top: 100%; margin-top: 18px; width: max-content; max-width: min(64vw, 420px); opacity: 0; transform: translateY(10px); }
.motion .screen--next .screen__cap { left: auto; right: 0; text-align: right; }
.motion .screen--next .screen__cap span { margin-left: auto; }

.motion .wall { width: max-content; max-width: 42vw; margin: 0; font-size: clamp(30px, 5vw, 84px); line-height: 1; }
.motion .wall--l { text-align: left; }
.motion .wall--r { text-align: right; }

.motion .floor { width: max-content; font-size: clamp(44px, 11vw, 190px); line-height: 1; }
.motion .floor span { color: var(--accent); }
.motion .dash { display: block; width: 14vw; height: 0.6vw; min-height: 4px; background: var(--accent); }
.motion .wallplane { display: block; width: 200vw; height: 200vh; background: #101012; }

.motion .end { width: max-content; max-width: none; margin: 0; text-align: center; }
.motion .end__mail { display: inline-block; will-change: transform; white-space: nowrap; font-size: clamp(22px, 6.4vw, 112px); }

.motion .hint { display: flex; position: fixed; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); pointer-events: none; transition: opacity 0.6s; }
.motion .hint i { display: block; width: 1px; height: 40px; background: var(--bone); transform-origin: top; animation: hint 2.2s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.motion .hint.is-gone { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 768px) {
  :root { --sh: 58vh; }
  .motion .proxy { height: 600vh; }
  .motion .word { font-size: clamp(64px, 25vw, 140px); }
  .motion .tag { font-size: 16px; }
  .motion .screen__cable { height: 50vh; }
  .motion .screen__cap { max-width: 72vw; }
  .motion .wall { max-width: 60vw; font-size: clamp(26px, 8.2vw, 48px); }
  .motion .floor { font-size: clamp(40px, 16vw, 90px); }
  .motion .dash { width: 24vw; height: 4px; }
  .motion .end__mail { font-size: clamp(24px, 7.6vw, 60px); }
}
