/* Shiftt Perspective — rebuilt from the Framer site (Nov 2026). */
:root {
  --serif: "PT Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ink: rgb(65, 65, 65);
  --pill: rgb(252, 252, 252);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #fff; -webkit-font-smoothing: antialiased; }
body { font-family: var(--serif); overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- full-screen scene ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; background: #000; }
.scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .tall { display: none; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 20; top: 14px; left: 0; right: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 22px; }
.logo { font: 400 20px/20px var(--serif); letter-spacing: -0.2px; white-space: nowrap; }
.logo i, .tt { font-style: italic; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.round-white { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.round-white svg { width: 16px; height: 16px; }
.call { display: inline-flex; align-items: center; gap: 14px; height: 36px; padding: 0 16px; border-radius: 200px; background: var(--pill); color: var(--ink); font: 400 16px/19.2px var(--sans); }
.call svg { width: 14px; height: 14px; }
.roll { display: inline-block; overflow: hidden; height: 19.2px; vertical-align: top; }
.roll > span { display: block; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-50%); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); place-items: center; padding: 0; }
.menu-toggle svg { width: 20px; height: 20px; color: #000; }

/* ---------- text panel ---------- */
.panel { position: fixed; z-index: 5; }
.panel::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.13) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: .43; z-index: -1; }
.panel .copy { font: 400 24px/28.8px var(--serif); }
.panel .copy p + p { margin-top: 28.8px; }
.panel strong { font-weight: 700; }
.panel em { font-style: italic; }
.panel.ring { border-radius: 24px; box-shadow: inset 0 0 5px rgba(255,255,255,.3); }

/* desktop positions (measured at 1440 x 900) */
.p-home { right: 20px; top: 50%; transform: translateY(-50%); width: 570px; padding: 23px 18px 24px 24px; }
.p-home .copy { font-size: 28px; line-height: 36.4px; }
.p-home .copy p + p { margin-top: 36.4px; }
.p-about { left: 6px; top: 50%; transform: translateY(-50%); width: 565px; padding: 6px 25px 5px 14px; }
.p-services { left: 36.6vw; top: 69px; width: 45.8vw; min-height: 428px; padding: 14px 0 0 15.3vw; }
.p-services .copy { width: calc(48.1vw - 13px); }
.p-contact { left: 44.6vw; top: 49.1%; width: 283px; height: 305px; }
.p-contact .copy { position: absolute; left: -16px; top: 24px; width: 331px; font-size: 18px; line-height: 21.6px; }
.p-contact .copy p + p { margin-top: 21.6px; }

/* ---------- explore menu ---------- */
.explore { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.sp-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill); color: var(--ink); font: italic 400 16px/16px var(--serif); display: grid; place-items: center; z-index: 2; }
.sp-btn .x { display: none; width: 16px; height: 16px; }
.sp-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 28%, rgba(0,0,0,0) 72%); opacity: 0; animation: glow 3.5s ease-in-out infinite; z-index: -1; pointer-events: none; }
@keyframes glow { 50% { opacity: .18; transform: scale(1.25); } }
.explore-label { margin-top: 8px; font: italic 400 16px/16px var(--serif); color: #fff; }
.pills { position: absolute; left: 50%; top: 6px; width: 0; height: 32px; }
.pill { position: absolute; top: 0; left: -56px; width: 112px; height: 32px; border-radius: 100px; background: var(--pill); color: var(--ink); font: 400 16px/16px var(--serif); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: scale(.6); transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .3s ease; }
.pill .roll { height: 16px; }
.explore.open .pill { opacity: 1; pointer-events: auto; transform: translateX(var(--dx)) scale(1); }
.explore.open .sp-btn .sp { display: none; }
.explore.open .sp-btn .x { display: block; }
.explore.open .explore-label { opacity: 0; }
.pill:nth-child(1) { --dx: -238px; }
.pill:nth-child(2) { --dx: -102px; }
.pill:nth-child(3) { --dx: 102px; }
.pill:nth-child(4) { --dx: 238px; }

/* ---------- sound button ---------- */
.sound { position: fixed; z-index: 30; left: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.08); display: grid; place-items: center; padding: 0; color: var(--ink); }
.sound svg { width: 18px; height: 18px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

/* ---------- welcome page ---------- */
.welcome { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #000; }
.shine { position: relative; font: italic 400 20px/26px var(--serif); color: #fff; }
.shine::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; background: linear-gradient(105deg, transparent 0%, transparent 35%, rgb(71,71,71) 50%, transparent 65%, transparent 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: sweep 3s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.enter { height: 40px; padding: 0 20px; border-radius: 999px; background: #000; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; font: 400 14px/16.8px "DM Sans", var(--sans); color: #fff; transition: border-color .3s ease, background .3s ease; }
.enter:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

@media (prefers-reduced-motion: reduce) {
  .sp-btn::before, .shine::after { animation: none; }
  .pill, .roll > span { transition: none; }
}

/* ---------- tablet (810 to 1199) ---------- */
@media (max-width: 1199px) {
  .scene .wide { display: none; }
  .scene .tall { display: block; }
  .panel .copy { font-size: 22px; line-height: 28px; }
  .p-home { width: 570px; max-width: calc(100% - 40px); }
  .p-home .copy { font-size: 24px; line-height: 31.2px; }
  .p-home .copy p + p { margin-top: 31.2px; }
  .p-about { width: 52%; }
  .p-services { left: auto; right: 14px; width: 52%; padding: 14px 18px 18px 22px; }
  .p-services .copy { width: auto; }
  .p-contact { left: 16px; top: 44%; width: 46%; height: auto; padding: 22px 18px; }
  .p-contact .copy { position: static; width: auto; }
}

/* ---------- phones (under 810) ---------- */
@media (max-width: 809px) {
  .top { top: 16px; height: 64px; padding: 0 20px 0 30px; }
  .top-actions { display: none; }
  .menu-toggle { display: grid; }
  .top.open { left: 8px; right: 8px; height: 112px; align-items: flex-start; padding: 12px 12px 0 22px; border-radius: 24px; background: rgba(255,255,255,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .top.open .logo { margin-top: 16px; }
  .top.open .top-actions { display: flex; position: absolute; right: 12px; bottom: 12px; }
  .top .menu-toggle .x { display: none; }
  .top.open .menu-toggle .x { display: block; }
  .top.open .menu-toggle .bars { display: none; }
  .top.open .menu-toggle { background: rgba(255,255,255,.6); }

  .panel .copy { font-size: 14px; line-height: 16.8px; }
  .panel .copy p + p { margin-top: 16.8px; }
  .p-home { top: 101px; left: 34px; right: auto; transform: none; width: 311px; max-width: calc(100% - 45px); padding: 14px 0 12px 10px; }
  .p-home .copy { font-size: 14px; line-height: 18.2px; }
  .p-home .copy p + p { margin-top: 18.2px; }
  .p-about { top: 172px; left: 16px; transform: none; width: 52%; max-width: 201px; padding: 8px 0 14px 13px; }
  .p-services { top: 77px; right: 14px; width: 62%; max-width: 240px; padding: 9px 4px 10px 21px; }
  .p-contact { top: 44%; left: 8px; width: 232px; max-width: 60%; padding: 0 0 12px 6px; }
  .p-contact .copy { font-size: 14px; line-height: 16.8px; }
  .p-contact .copy p + p { margin-top: 16.8px; }

  .scene video.pos-home { width: 256%; height: 114%; left: -12%; top: -3.7%; object-fit: cover; }
  .scene video.pos-about { object-position: 73% 50%; }
  .scene video.pos-services { object-position: 74% 50%; }
  .scene video.pos-contact { object-position: 63% 50%; }

  .explore { bottom: 76px; }
  .pills { top: auto; bottom: 60px; height: 0; }
  .pill { left: -56px; width: 112px; height: 52px; top: auto; bottom: 0; font-size: 17px; }
  .pill .roll { height: 17px; }
  .pill:nth-child(1) { --dx: -62px; --dy: -64px; }
  .pill:nth-child(2) { --dx: 62px; --dy: -64px; }
  .pill:nth-child(3) { --dx: -62px; --dy: 0px; }
  .pill:nth-child(4) { --dx: 62px; --dy: 0px; }
  .explore.open .pill { transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* desktop-only video crop for home (zoomed like the Framer page) */
@media (min-width: 1200px) {
  .scene video.pos-home-wide { width: 134.7%; height: 124.2%; left: -14.7%; top: -24.1%; }
}
