@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "LoshQ"; src: url(/fonts/q-fix.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0051; }

:root {
  --paper: #f3f0e8;
  --card: #fbfaf6;
  --ink: #0e0e0f;
  --ink-2: #3a3833;
  --mute: #78736a;
  --line: rgba(14, 14, 15, .12);
  --accent: #ff5a1f;
  --radius: 28px;
  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "LoshQ", "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.accent { color: var(--accent); }
.sub { color: var(--mute); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 64px; padding: 0 32px; font-size: clamp(16px, 2vw, 20px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #0e0e0f; }
.btn-accent:hover { box-shadow: 0 14px 30px -12px rgba(255,90,31,.7); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: #0d0b14; }
.btn-ebay { background: #0064d2; color: #fff; }
.btn-ebay:hover { box-shadow: 0 14px 30px -12px rgba(0,100,210,.6); }
.link { font-weight: 600; text-underline-offset: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(243,240,232,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.wordmark img { width: 32px; height: 32px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.top-nav a:hover { background: rgba(14,14,15,.06); color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 56px); align-items: center; min-height: min(84vh, 800px); }
.hero-text { position: relative; z-index: 2; grid-row: 1; grid-column: 1; }
.display .nw { white-space: nowrap; }
.display { font-weight: 800; font-size: clamp(50px, 6.2vw, 96px); line-height: .95; letter-spacing: -.045em; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { position: relative; grid-row: 1; grid-column: 2; height: clamp(440px, 46vw, 660px); }
.stage-glow { position: absolute; inset: 18% 12%; border-radius: 50%; background: radial-gradient(circle at 45% 50%, rgba(255,90,31,.30), transparent 60%), radial-gradient(circle at 65% 60%, rgba(143,116,255,.24), transparent 62%); filter: blur(40px); }
.stage-fallback { position: absolute; left: 50%; top: 50%; width: 60%; transform: translate(-50%, -50%); }
.stage.has3d .stage-fallback { display: none; }
.stage .gl { position: absolute; top: -8%; left: -8%; width: 116%; height: 116%; display: block; touch-action: pan-y; cursor: pointer; z-index: 1; }

/* App dock */
.dock-sec { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.dock { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 2.8vw, 38px); padding: 0 var(--pad); height: 170px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.app:hover .icon, .app:focus-visible .icon { transform: translateY(-8px) scale(1.18); }
.icon { width: 88px; height: 88px; border-radius: 24px; transition: transform .35s var(--ease); will-change: transform; display: grid; place-items: center; overflow: hidden; background: #0f6e56; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 2px 0 rgba(0,0,0,.08), 0 6px 0 -2px rgba(14,14,15,.12), 0 22px 34px -14px rgba(14,14,15,.45); }
.icon img, .icon svg { width: 100%; height: 100%; }
.icon-dark { background: none; box-shadow: none; overflow: visible; }
.icon-dark img { width: 100%; height: 100%; filter: drop-shadow(0 12px 14px rgba(14,14,15,.35)); }
.icon-white { background: #fff; }
.icon-white img { width: 60%; height: 60%; }
.icon-ink { background: #ece8de; }
.icon-ink img { width: 100%; }
.icon-round { background: none; box-shadow: none; border-radius: 50%; overflow: visible; }
.icon-round img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 12px 14px rgba(14,14,15,.35)); }
.icon-ebay { background: linear-gradient(145deg, #0064d2, #003f8a); }
.icon-ebay svg { width: 70%; height: 70%; }
.name { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.app:hover .name { color: var(--ink); }

/* Ring */
.spin { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.spin-head { text-align: center; margin-bottom: clamp(10px, 2vw, 24px); }
.spin-head .h2 { max-width: 16ch; margin: 0 auto 12px; }
.ring-scene { --cw: clamp(150px, 17vw, 220px); --ch: calc(var(--cw) * 1.62); --r: clamp(260px, 31vw, 420px); position: relative; height: calc(var(--ch) * 1.45 + 60px); perspective: 1600px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-scene.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(var(--a, 0deg)); }
.rc { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--bg); text-decoration: none; transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -28px rgba(14,14,15,.55), 0 0 0 1px rgba(14,14,15,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-user-drag: none; }
.rc img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rc-wide img { height: auto; object-fit: contain; }
.rc-qr img, .rc-logo img { width: 62%; height: auto; }
.rc span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(14,14,15,.8); color: #fff; font-weight: 600; font-size: 13px; text-align: center; }
.rc-ebay b { font-weight: 800; font-size: clamp(54px, 6vw, 76px); line-height: 1; letter-spacing: -.04em; color: #0064d2; }
.rc-ebay em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* Section heads */
.h2 { font-weight: 800; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.04em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head .sub { max-width: 18em; text-align: right; }

/* Work cases */
.work { padding: clamp(60px, 8vw, 120px) 0 clamp(30px, 4vw, 60px); }
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 56px); border-radius: var(--radius); margin-bottom: clamp(18px, 2.4vw, 28px); overflow: hidden; position: relative; isolation: isolate; }
.brandrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }
.app-logo-dark { background: none; padding: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 14px rgba(168,140,255,.45)); }
.app-logo-white { background: #fff; padding: 12px; }
.by { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.65); font-weight: 600; font-size: 13px; color: #3a3833; }
.by img { width: 20px; height: 20px; }
.case-title { font-weight: 800; font-size: clamp(46px, 6vw, 96px); line-height: .9; letter-spacing: -.045em; margin-bottom: 16px; }
.case-desc { font-size: clamp(16.5px, 1.35vw, 19px); max-width: 30em; opacity: .88; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin: 26px 0 30px; padding-top: 20px; border-top: 1px solid rgba(127,127,127,.25); }
.facts dt { font-weight: 500; font-size: 13px; opacity: .78; margin-bottom: 2px; }
.facts dd { font-weight: 600; font-size: 15.5px; }
.case-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.case-art { position: relative; }
[data-tilt] .case-art { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }

.case-tayyib { background: linear-gradient(140deg, #e4f1ea 0%, #cfe6da 100%); color: #0b3d2c; }
.case-tayyib .btn-ink { background: #0e6b52; color: #fff; }
.phones { display: flex; justify-content: center; align-items: center; height: clamp(360px, 40vw, 560px); }
.ph { position: absolute; width: 38%; border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(11,61,44,.55); transition: transform .8s var(--ease); }
.ph-1 { transform: translateX(-62%) rotate(-8deg) scale(.88); }
.ph-2 { z-index: 2; }
.ph-3 { transform: translateX(62%) rotate(8deg) scale(.88); }
.case-tayyib:hover .ph-1 { transform: translateX(-74%) rotate(-11deg) scale(.9); }
.case-tayyib:hover .ph-3 { transform: translateX(74%) rotate(11deg) scale(.9); }

.case-vybe { background: #0b0a10; color: #ece9f6; }
.case-vybe::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; z-index: -1; background: radial-gradient(circle at 60% 40%, rgba(168,140,255,.35), transparent 60%); filter: blur(20px); }
.case-vybe .case-title { color: #fff; }
.case-vybe .by { background: rgba(255,255,255,.1); color: #d9d4ea; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); background: #000; }
.browser.tilt { transform: perspective(1400px) rotateY(-10deg) rotateX(4deg); transition: transform .9s var(--ease); }
.case-vybe:hover .browser.tilt { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.case-qr { background: linear-gradient(140deg, #e8eefc 0%, #d6e2fb 100%); color: #0f1f45; }
.case-qr .btn-ink { background: #2563eb; color: #fff; }
.case-qr .browser { background: #fff; box-shadow: 0 40px 80px -30px rgba(15,31,69,.45), 0 0 0 1px rgba(15,31,69,.08); }
.qr-sticker { position: absolute; right: -10px; bottom: -36px; width: 150px; padding: 16px 16px 12px; background: #fff; border-radius: 20px; text-align: center; rotate: 8deg; box-shadow: 0 24px 50px -20px rgba(15,31,69,.5); transition: rotate .8s var(--ease), transform .8s var(--ease); }
.qr-sticker span { display: block; margin-top: 8px; font-weight: 700; font-size: 13px; color: #2563eb; }
.case-qr:hover .qr-sticker { rotate: -2deg; transform: translateY(-8px); }


/* Ending */
.end { background: var(--paper); padding: clamp(90px, 12vw, 180px) 0 28px; }
.end-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-bottom: clamp(70px, 9vw, 120px); }
.end-logo { width: 96px; height: 96px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.end-title { font-weight: 800; font-size: clamp(46px, 7.4vw, 120px); line-height: .95; letter-spacing: -.045em; }
.end-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.end-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.end-col a { text-decoration: none; color: var(--ink-2); width: fit-content; }
.end-col a:hover { color: var(--accent); }
.end-col span { color: var(--ink-2); }
.end-h { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.end-about p { color: var(--mute); max-width: 22em; margin-top: 6px; }
.end-base { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.end-base a { text-decoration: none; }
.end-base a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in, .noreveal .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1020px) {
  .case, .seller-grid { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr 1fr; }
  .end-about { grid-column: 1 / -1; }
}

/* Phone: the 3D logo leads */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-nav { display: none; }
  .top-inner { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-bottom: 20px; }
  .stage { grid-row: 1; grid-column: 1; height: min(108vw, 520px); margin: 0 calc(var(--pad) * -1); }
  .stage .gl { top: -6%; left: 0; width: 100%; height: 112%; }
  .hero-text { grid-row: 2; grid-column: 1; text-align: center; }
  .display { font-size: clamp(44px, 12.5vw, 64px); margin-bottom: 26px; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { flex: 1 1 0; min-width: 140px; }
  .dock { justify-content: space-between; height: auto; gap: 6px; padding-top: 16px; padding-bottom: 12px; }
  .app { flex: 1 1 0; min-width: 0; gap: 8px; }
  .icon { width: min(56px, 14vw); height: min(56px, 14vw); border-radius: 16px; }
  .name { font-size: 11px; white-space: nowrap; letter-spacing: -.01em; }
  .wordmark { font-size: 18px; white-space: nowrap; gap: 8px; }
  .wordmark img { width: 28px; height: 28px; }
  .top-inner { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .top .btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
  .ring-scene { --cw: 128px; --r: 170px; height: calc(var(--ch) * 1.55 + 40px); perspective: 1000px; }
  .rc { border-radius: 16px; }
  .rc span { font-size: 11px; padding: 6px; left: 6px; right: 6px; bottom: 6px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .sub { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .phones { height: 108vw; }
  .ph { width: 46%; }
  .qr-sticker { width: 110px; right: 0; bottom: -24px; }
  .case-qr { padding-bottom: 56px; }
  .end-grid { grid-template-columns: 1fr 1fr; }
  .end-cta .btn-lg { width: 100%; }
}
