:root {
  --paper: #f4f4f4;
  --ink: #101010;
  --blue: #0038ff;
  --pink: #ff77cd;
  --orange: #ff5f04;
  --white: #fff;
  --display: "Inter Tight", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: Inter, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: clamp(18px, 3vw, 48px);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.88; text-transform: uppercase; margin: 0; }

@media (hover: hover) and (pointer: fine) {
  html, a, button, .fx-nav, .draw { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26'><path d='M3 2 L3 20 L8.2 14.6 L13.4 24 L17 22.2 L11.6 13 L19 13 Z' fill='%23101010'/></svg>") 3 2, auto; }
  input, textarea { cursor: text; }
}

.wipe {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--blue);
  transform: translateY(-100%);
  pointer-events: none;
}
.cursor-marquee {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-marquee.on { opacity: 1; }
.cursor-marquee__card {
  display: flex;
  width: 132px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(calc(50% - 4px) round 999px);
  transition: clip-path 0.45s var(--ease), transform 0.45s var(--ease);
}
.cursor-marquee.on .cursor-marquee__card {
  clip-path: inset(0 round 999px);
  transform: translateY(-30%);
}
.cursor-marquee span {
  flex: 0 0 auto;
  padding: 10px 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: mq 8s linear infinite;
}
@keyframes mq { to { transform: translateX(-100%); } }

.fx-nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: normal;
  color: var(--ink);
  transition: color 0.3s linear;
}
.fx-nav.on-dark { color: var(--white); }
.fx-nav.on-dark .fx-logo img { filter: invert(1); }
.fx-logo { display: flex; align-items: center; gap: 10px; justify-self: start; color: var(--blue); font-family: var(--serif); font-style: italic; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.fx-nav.on-dark .fx-logo { color: var(--white); }
.fx-logo img { width: auto; height: 36px; object-fit: contain; border-radius: 0; background: none; }
.fx-pill {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(16, 16, 16, 0.06);
}
.fx-pill a { padding: 10px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fx-nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fx-bag b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; border-radius: 99px; background: var(--blue); color: white; font-size: 12px; }
.fx-burger { display: none; width: 46px; height: 46px; border: 0; background: var(--white); border-radius: 99px; justify-self: end; }
.fx-burger span { display: block; height: 2px; margin: 6px 12px; background: var(--ink); }

.draw { position: relative; display: inline-block; }
.draw svg { position: absolute; left: 0; width: 100%; height: 8px; bottom: -6px; overflow: visible; }
.draw path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 0.55s var(--ease); }
a:hover .draw path, .draw:hover path { stroke-dashoffset: 0; }

.mask { display: block; overflow: hidden; line-height: 0.92; padding-bottom: 0.08em; }
.mask i { display: block; font-style: normal; }
.mask i.serif { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: -0.03em; }
button.b093 { border: 0; }
figure { margin: 0; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18vh var(--pad) 9vh;
  overflow: hidden;
  text-align: center;
}
.hero-sub {
  position: absolute;
  top: 28vh;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.hero h1 { font-size: clamp(64px, 10.4vw, 168px); width: 100%; }
.more { margin-top: 10vh; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.04em; }
.arrow-sq { width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue); color: white; }
.arrow-sq svg { width: 18px; height: 18px; fill: none; stroke: white; stroke-width: 2; }
.trail-img { position: absolute; width: 180px; height: 130px; object-fit: cover; pointer-events: none; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }

.marquee { overflow: hidden; border-top: 1px solid rgba(16,16,16,.12); border-bottom: 1px solid rgba(16,16,16,.12); }
.marquee-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee-track span { padding: 18px 28px; font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; font-size: 20px; }
@keyframes slide { to { transform: translateX(-50%); } }

.intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 6vw; align-items: center; padding: 10vw var(--pad); }
.frames { position: relative; min-height: 560px; }
.polaroid { position: absolute; background: white; padding: 12px 12px 42px; box-shadow: 0 24px 50px rgba(16,16,16,.12); }
.polaroid img { width: 100%; height: 280px; object-fit: cover; }
.polaroid:first-child { width: min(340px, 70%); left: 4%; top: 0; rotate: -7deg; }
.polaroid:last-child { width: min(280px, 58%); right: 4%; bottom: 20px; rotate: 5deg; }
.polaroid:last-child img { object-fit: contain; background: var(--paper); height: 220px; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.intro h2, .page-hero h1, .foot h2, .stack h2 { font-size: clamp(52px, 7vw, 112px); }
.intro em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.03em; }
.intro p, .lede { font-size: clamp(18px, 1.4vw, 22px); max-width: 36rem; }

.b093 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 16px 12px 12px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  transition: scale 0.45s var(--ease);
}
.b093-text { position: relative; height: 1.2em; min-width: 9em; }
.b093-text span { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; letter-spacing: 0.02em; transform-origin: left center; transition: translate 0.45s var(--ease), rotate 0.45s var(--ease); }
.b093-text .is--hover { rotate: 75deg; translate: -0.75em 2em; }
.b093-dots { display: flex; gap: 5px; }
.b093-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; transform-origin: -14px 50%; rotate: 120deg; scale: 0; transition: rotate 0.45s var(--ease), scale 0.45s var(--ease); transition-delay: calc(var(--i) * 0.04s); }
.b093-dots i:nth-child(1) { background: var(--pink); }
.b093-dots i:nth-child(2) { background: var(--blue); }
.b093-dots i:nth-child(3) { background: var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .b093:hover { scale: 1.04 0.96; }
  .b093:hover .is--default { rotate: -75deg; translate: -0.75em -2em; }
  .b093:hover .is--hover { rotate: 0deg; translate: 0 0; }
  .b093:hover .b093-dots i { rotate: 0deg; scale: 1; }
}

.stack { background: #0c0c0c; color: var(--paper); padding: 8vh var(--pad) 0; }
.stack .kicker { color: var(--pink); }
.stack-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 4vh; }
.stack-head p { max-width: 280px; margin: 0; }
.stack-pin { height: 86vh; position: relative; perspective: 1400px; }
.stack-card {
  position: absolute;
  inset: 0 0 6vh;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: end;
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px rgba(0,0,0,.28);
}
.stack-card small { position: absolute; top: 28px; left: 32px; letter-spacing: 0.14em; }
.stack-card h3 { font-size: clamp(42px, 6vw, 92px); align-self: end; }
.stack-card img { width: 100%; height: min(52vh, 460px); object-fit: cover; border-radius: 12px; }
.stack-card:nth-child(2) { background: #fff; }
.stack-card:nth-child(3) { background: #efefef; }

.services { padding: 12vw var(--pad); text-align: center; }
.services h2 { font-size: clamp(56px, 8vw, 120px); margin-bottom: 8vh; }
.svc-list { display: flex; justify-content: center; align-items: flex-start; }
.svc-card {
  width: min(320px, 78vw);
  margin: 0 -18px;
  padding: 12px 12px 18px;
  background: white;
  text-align: left;
  box-shadow: 0 18px 40px rgba(16,16,16,.08);
  transition: transform 0.6s var(--ease);
}
.svc-card img { width: 100%; height: 210px; object-fit: cover; }
.svc-card h3 { margin: 14px 0 6px; font-size: 28px; }
.svc-card p { margin: 0; font-size: 15px; letter-spacing: -0.02em; }
.svc-list .svc-card:first-child { transform: translateY(2.2em) rotate(-4deg); }
.svc-list .svc-card:nth-child(2) { transform: translateY(0); z-index: 1; }
.svc-list .svc-card:last-child { transform: translateY(1.6em) rotate(5deg); }
@media (hover: hover) {
  .svc-list:hover .svc-card { transform: translateY(0) rotate(0); }
  .svc-card:hover { transform: translateY(-12px) rotate(0) !important; z-index: 2; }
  .svc-card:hover img { scale: 1.04; }
  .svc-card img { transition: scale 0.6s var(--ease); }
}

.desk { padding: 4vw var(--pad) 12vw; }
.desk h2 { font-size: clamp(52px, 7vw, 108px); margin-bottom: 8vh; }
.desk-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.desk article { background: white; padding: 12px 12px 16px; box-shadow: 0 16px 40px rgba(16,16,16,.08); }
.desk img { width: 100%; height: 220px; object-fit: cover; }
.desk h3 { margin-top: 12px; font-size: 26px; }
.desk p { margin: 6px 0 0; font-size: 15px; }
.desk article:nth-child(1) { grid-column: 2 / 6; rotate: -3deg; }
.desk article:nth-child(2) { grid-column: 8 / 12; margin-top: 8vh; rotate: 4deg; }
.desk article:nth-child(3) { grid-column: 4 / 8; margin-top: -4vh; }
.desk article:nth-child(4) { grid-column: 9 / 13; rotate: -2deg; }

.foot { background: #0c0c0c; color: var(--paper); padding: 12vw var(--pad) 6vw; }
.foot .kicker { color: var(--orange); }
.foot h2 { font-size: clamp(64px, 11vw, 180px); }
.foot > .inner > p { max-width: 28rem; font-size: 20px; }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-top: 10vh; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-cols small { display: block; margin-bottom: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,.55); }
.foot-cols a { display: block; padding: 4px 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: white; overflow: hidden; }
.to-top span { display: block; }
.to-top::before { content: "↑"; font-size: 20px; }
.to-top .bg { position: absolute; inset: 0; background: var(--blue); transform: translateY(100%); transition: transform 0.45s var(--ease); }
.to-top:hover .bg { transform: translateY(0); }

.page-hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 22vh var(--pad) 8vh; }
.page-hero p { max-width: 38rem; font-size: 20px; }
.work-list { padding: 0 var(--pad) 10vh; }
.work-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(16,16,16,.14); }
.work-row h3 { font-size: clamp(36px, 5vw, 72px); }
.work-row img { width: 120px; height: 78px; object-fit: cover; border-radius: 8px; opacity: 0; transform: translateY(8px) rotate(-3deg); transition: 0.45s var(--ease); }
.work-row:hover img { opacity: 1; transform: none; }

.hscroll { overflow: hidden; }
.hscroll-track { display: flex; gap: 18px; width: max-content; padding: 0 var(--pad) 12vh; }
.hcard { width: min(68vw, 520px); background: white; padding: 12px 12px 18px; }
.hcard img { width: 100%; height: 300px; object-fit: cover; }
.hcard h3 { margin-top: 12px; font-size: 32px; }

.prose { padding: 0 var(--pad) 10vh; display: grid; gap: 18px; max-width: 860px; }
.acc { border-top: 1px solid rgba(16,16,16,.14); }
.acc button { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; background: none; border: 0; text-align: left; font-family: var(--display); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; }
.acc-panel { height: 0; overflow: hidden; }
.acc-panel p { margin: 0 0 18px; max-width: 40rem; }
.faq { padding: 0 var(--pad) 12vh; }

.case { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4vw; padding: 0 var(--pad) 12vh; align-items: start; }
.case img { width: 100%; border-radius: 16px; }
.case .price { font-family: var(--display); font-size: 28px; font-weight: 700; }

body.app {
  --bg: #f4f4f4;
  --paper: #fff;
  --ink: #101010;
  --mute: #5e5e5e;
  --line: rgba(16, 16, 16, 0.14);
  --white: #101010;
  --black: #f4f4f4;
  --display: "Inter Tight", sans-serif;
  --body: Inter, sans-serif;
  --condensed: Inter, sans-serif;
  --bubble: "Inter Tight", sans-serif;
  background: #f4f4f4;
  color: #101010;
  padding-top: 0;
}
body.app .page { padding-top: 150px; }
body.app h1, body.app h2, body.app h3, body.app .page-title { font-family: "Inter Tight", sans-serif; letter-spacing: -0.045em; text-transform: uppercase; }
body.app .kicker, body.app .btn, body.app .pay-choice, body.app .meta { font-family: Inter, sans-serif; letter-spacing: 0.08em; }
body.app .feature-list p, body.app .steps p { color: #333; }
body.app input, body.app textarea { background: #fff; color: #101010; }
body.app .btn { background: #101010; color: #f4f4f4; border-color: #101010; }
body.app .btn.ghost, body.app .pay-choice { background: transparent; color: #101010; border-color: #101010; }
body.app .pay-choice.active { background: #101010; color: #f4f4f4; }
body.app .catalog { margin-top: 28px; }

@media (max-width: 980px) {
  .fx-nav { grid-template-columns: 1fr auto; }
  .fx-pill, .fx-nav-right { display: none; }
  .fx-burger { display: block; }
  .fx-nav.open .fx-pill, .fx-nav.open .fx-nav-right {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    color: var(--ink);
    border-radius: 24px;
    padding: 18px;
  }
  .fx-nav.open .fx-pill { top: 78px; }
  .fx-nav.open .fx-nav-right { top: 280px; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
  .intro, .stack-card, .case, .foot-cols, .desk-grid { display: block; }
  .frames { min-height: 420px; }
  .stack-pin { height: auto; }
  .stack-card { position: relative; inset: auto; margin-bottom: 16px; }
  .desk article { margin: 0 0 16px !important; rotate: 0deg !important; }
  .svc-list { flex-direction: column; align-items: center; }
  .svc-card { margin: 0 0 16px; transform: none !important; }
  .hero-sub { position: static; margin-bottom: 4vh; }
  .work-row { grid-template-columns: 48px 1fr; }
  .work-row img { display: none; }
  body.app .checkout, body.app .feature-list, body.app .columns, body.app .stats { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cursor-marquee span { animation: none; }
  .wipe { display: none; }
}
