/* PLÀCID.GP — rebuild of the Framer site. Desktop ≥1200, tablet 810–1199, phone <810. */
:root {
  --bg: #000;
  --text: rgb(241, 242, 240);
  --muted: rgba(241, 242, 240, 0.55);
  --panel: #1a1a1a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: 0.25s; }
main { flex: 1; width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

/* Film grain over the whole site */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Navigation */
.nav { height: 100px; padding: 32px 44px; display: flex; align-items: center; gap: 32px; }
.brand { flex: 1; font-size: 24px; font-weight: 900; line-height: 1; text-decoration: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  display: inline-block; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; padding: 2px 0;
  transition: transform 0.2s var(--ease); transform-origin: center;
}
/* Hover grows the word instead of underlining it; the current page keeps its underline */
.nav-links a:hover { transform: scale(1.15); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { height: 200px; padding: 40px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.footer-brand { font-size: 16px; font-weight: 900; }
.link {
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}
.link:hover { color: rgba(255, 255, 255, 0.6); }
.footer .link { font-size: 14px; font-weight: 500; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.reel { position: relative; width: 100%; aspect-ratio: 1920 / 804; overflow: hidden; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* Shown only when a device blocks autoplay: tap to start */
.reel.needs-tap, .phone-ui.needs-tap { cursor: pointer; }
.reel.needs-tap::after, .phone-ui.needs-tap::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 32px; z-index: 4; pointer-events: none;
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 26px no-repeat;
}

.logo-band { height: 84px; overflow: hidden; display: flex; align-items: center; }
.logo-track { display: flex; opacity: 0.85; animation: ticker var(--ticker, 40s) linear infinite; will-change: transform; }
.logo-set { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex-shrink: 0; }
.logo-set img { display: block; flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(calc(-1 * var(--set-width, 1588px))); } }

.identity { padding: 48px 44px 0; display: flex; flex-direction: column; gap: 4px; }
.identity .name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.identity .role { font-size: 13px; font-weight: 600; opacity: 0.7; }

/* ---------- Work ---------- */
.work { width: 100%; max-width: 1100px; margin: 0 auto; padding-top: 96px; display: flex; flex-direction: column; gap: 144px; }
.project { width: 100%; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.copy { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.index { font-weight: 600; opacity: 0.55; }
.title { font-size: 46px; font-weight: 900; line-height: 1.1; }
.subtitle { font-size: 20px; font-weight: 700; line-height: 1.3; }
.body { max-width: 700px; }
.credit { font-size: 13px; font-weight: 500; line-height: 1.5; opacity: 0.55; }
.caption { font-weight: 600; }
.media { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.row { width: 100%; display: flex; gap: 24px; align-items: flex-start; }
.card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.film { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.film .credit { width: 689px; max-width: 100%; }

.player { position: relative; overflow: hidden; border-radius: 8px; background: var(--panel); cursor: pointer; flex-shrink: 0; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player.is-contain video { object-fit: contain; }
.player .sound, .phone-ui .sound {
  position: absolute; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); cursor: pointer;
}
.player .sound { right: 12px; bottom: 12px; }
.player .paused {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 28px;
  background: rgba(0, 0, 0, 0.55); display: none; align-items: center; justify-content: center; pointer-events: none;
}
.player.is-paused .paused { display: flex; }
.p-wide2 { width: 100%; aspect-ratio: 16 / 9; }
.p-single { width: 689px; max-width: 100%; aspect-ratio: 16 / 9; }
.p-pair-h { flex: 1; min-width: 0; height: 446px; }
.p-pair-v { width: 251px; height: 446px; }
.p-tall { width: 388px; height: 690px; }

.split { flex-direction: row; align-items: flex-start; gap: 68px; }
.split .film { width: 388px; flex-shrink: 0; }
.split .film .credit { width: 388px; }
.split .copy { flex: 1; min-width: 0; }

/* ---------- Swipe ---------- */
.swipe-page { width: 100%; padding: 16px 24px 32px; display: flex; gap: 16px; align-items: center; }
.feed { flex: 1; min-width: 0; height: min(78vh, 740px); display: flex; align-items: center; justify-content: center; }
.phone { position: relative; z-index: 1; height: 100%; aspect-ratio: 1 / 2; max-width: 100%; padding: 9px; background: #0c0c0c; border-radius: 43px; border: 1px solid rgba(255, 255, 255, 0.22); }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 11px; background: #000; pointer-events: none; z-index: 3; }
.glow {
  position: absolute; top: -17%; left: -110%; width: 320%; height: 134%; z-index: -1; pointer-events: none; opacity: 0.75;
  filter: blur(80px) saturate(1.4);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 0%, rgba(0,0,0,.75) 30%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.1) 80%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 0%, rgba(0,0,0,.75) 30%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.1) 80%, transparent 100%);
}
.phone-ui { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: 34px; }
.phone-ui .sound { top: 44px; right: 14px; z-index: 2; }
.scroller { width: 100%; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.scroller::-webkit-scrollbar { display: none; }
.slide { position: relative; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #111; }
.slide video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 22px;
  background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2;
}
.hint svg { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-3px); opacity: 0.55; } 50% { transform: translateY(4px); opacity: 1; } }

/* ---------- Contact ---------- */
.about { width: 100%; max-width: 1100px; margin: 0 auto; padding: 96px 16px 32px; display: flex; gap: 68px; align-items: flex-start; }
.about-text { flex: 1; min-width: 0; height: 510px; display: flex; flex-direction: column; justify-content: space-between; }
.about-intro { display: flex; flex-direction: column; gap: 28px; }
.about-intro h1 { font-size: 46px; font-weight: 900; line-height: 1.1; }
.bio { display: flex; flex-direction: column; gap: 16px; }
.about-bottom { display: flex; flex-direction: column; gap: 20px; }
.divider { height: 1px; background: var(--text); opacity: 0.2; }
.details { display: flex; gap: 32px; }
.details > div { flex: 1; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.details .label { opacity: 0.55; }
.photo { width: 340px; height: 510px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); display: block; }

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
  .feed { height: 46vh; }
}

/* ---------- Phone ---------- */
@media (max-width: 809.98px) {
  .nav { height: 72px; padding: 20px; gap: 16px; }
  .nav-links { gap: 16px; }
  .footer { height: 120px; flex-direction: column; gap: 12px; }

  .reel { aspect-ratio: 16 / 9; }
  .logo-band { height: 64px; }
  .identity { padding: 28px 20px 0; }

  .work { padding-top: 32px; gap: 80px; }
  .project { padding: 0 20px; gap: 28px; }
  .row { flex-direction: column; align-items: center; gap: 20px; }
  .card { width: 100%; }
  .p-wide2, .p-single, .p-pair-h { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; }
  .p-pair-v { width: 220px; height: 391px; }
  .split { flex-direction: column; align-items: center; gap: 28px; }
  .split .film { width: 100%; order: 2; }
  .split .copy { order: 1; width: 100%; }
  .p-tall { width: 260px; height: 462px; }
  .split .film .credit, .film .credit { width: 260px; }
  .film .p-single + .credit { width: 100%; }

  .swipe-page { padding: 0; }
  .feed { height: 86vh; }
  .feed:not(:first-child) { display: none; }
  .phone { padding: 0; border: 0; border-radius: 0; aspect-ratio: auto; width: 100%; background: none; }
  .phone .island, .phone .glow { display: none; }
  .phone-ui { border-radius: 0; }
  .phone-ui .sound { top: 14px; }

  .about { flex-direction: column; gap: 32px; padding: 24px 20px 32px; }
  .about-text { height: auto; justify-content: flex-start; gap: 32px; width: 100%; }
  .details { flex-direction: column; gap: 24px; }
  .photo { width: 100%; height: auto; aspect-ratio: 2 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track, .hint svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body { transition: none; }
}
