/* ==========================================================
   YourFirstSite "Our work" page. Same tokens, nav, buttons and motion as the homepage.
   Palette: white, soft #f5f7fa, ink #0b1220, blue #2563eb, cyan #06b6d4, line #e5e9f0.
   ========================================================== */
:root {
  --bg: #ffffff; --soft: #f5f7fa; --ink: #0b1220; --muted: #5b6577;
  --blue: #2563eb; --cyan: #06b6d4; --line: #e5e9f0; --glow: rgba(37, 99, 235, .42);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 15px/1 var(--font); letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 18, 32, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .6); background: var(--blue); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Navbar (identical to homepage) ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px 9px 20px; border-radius: 999px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 8px 30px -18px rgba(11, 18, 32, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 6px 14px -4px rgba(37, 99, 235, .6); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.sec-title { font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.sec-text { color: var(--muted); font-weight: 500; line-height: 1.6; font-size: clamp(1rem, 1.25vw, 1.15rem); }

/* ---------- Reveal helpers (same word-by-word style as the hero) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; transform: translateY(112%); transition: transform .9s var(--ease) calc(var(--i, 0) * 55ms + 80ms); }
.in .wi, .in.wi { transform: none; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.in .rv, .rv.in { opacity: 1; transform: none; }
.no-js .wi { transform: none; } .no-js .rv { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro { position: relative; overflow: hidden; min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(20px, 6vw, 96px) 70px; }
.bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 18%, transparent 76%); mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 18%, transparent 76%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #bfdbfe; right: 4%; top: 6%; }
.g2 { width: 380px; height: 380px; background: #a5f3fc; left: 12%; bottom: -10%; }
.intro-in { position: relative; max-width: 1160px; width: 100%; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 26px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(6, 182, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }
.intro h1 { font-size: clamp(3rem, 9vw, 7.4rem); line-height: .98; letter-spacing: -.05em; font-weight: 800; }
.intro h1 em { font-style: normal; color: var(--blue); }
.intro .sec-text { margin-top: 24px; max-width: 520px; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.intro-meta li { padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.intro-meta b { color: var(--blue); font-weight: 800; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Project block ---------- */
.pj { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); padding: var(--py) clamp(20px, 6vw, 96px); }
.pj-in { position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: var(--cols); align-items: center; gap: var(--gap); }
.pj.flip .pj-media { order: 2; }
.pj.flip .pj-in { grid-template-columns: var(--cols-r); }
.pj.soft { background: var(--soft); }
.pj-bg { position: absolute; inset: 0; pointer-events: none; }
.pj-bg .bg-grid { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%); opacity: .5; }

/* tiers: 1 = flagship (big), 2 = standard, 3 = compact. Every preview is capped by the screen HEIGHT (--maxh),
   so a whole project (preview + text) fits on one average laptop screen instead of spilling over. */
.pj { --u: 1vh; }
@supports (height: 1svh) { .pj { --u: 1svh; } }
.tier-1 { --py: clamp(48px, calc(var(--u) * 9), 110px); --maxh: min(calc(var(--u) * 64), 620px); --cols: 1.25fr 1fr; --cols-r: 1fr 1.25fr; --gap: clamp(28px, 5vw, 84px); }
.tier-2 { --py: clamp(40px, calc(var(--u) * 7), 84px); --maxh: min(calc(var(--u) * 54), 500px); --cols: 1.1fr 1fr; --cols-r: 1fr 1.1fr; --gap: clamp(26px, 4.4vw, 70px); }
.tier-3 { --py: clamp(32px, calc(var(--u) * 5), 56px); --maxh: min(calc(var(--u) * 42), 380px); --cols: .9fr 1fr; --cols-r: 1fr .9fr; --gap: clamp(22px, 3.6vw, 52px); }

.pj-num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.pj-num span { color: #9aa5b8; letter-spacing: .06em; }
.tag { padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .1em; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .6); }
.tier-3 .pj-num { color: #9aa5b8; margin-bottom: 12px; }
.pj h2 { letter-spacing: -.04em; line-height: 1.04; font-weight: 800; }
.tier-1 h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.tier-2 h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.tier-3 h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
.pj h2 em { font-style: normal; color: var(--blue); }
.pj-text { margin-top: 18px; color: var(--muted); font-weight: 500; line-height: 1.65; max-width: 460px; }
.tier-1 .pj-text { font-size: clamp(1.02rem, 1.3vw, 1.2rem); margin-top: 22px; }
.tier-2 .pj-text { font-size: 1.02rem; }
.tier-3 .pj-text { font-size: .94rem; margin-top: 12px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pj-chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tier-3 .pj-chips { display: none; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tier-3 .pj-actions { margin-top: 20px; }
.tier-3 .btn { padding: 11px 18px; font-size: 14px; }
.live-btn[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 1px rgba(37, 99, 235, .1), 0 0 22px var(--glow); }
.live-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: ping 2s infinite; }

/* ---------- Device stack ---------- */
.pj-media { position: relative; perspective: 1400px; }
.stack { --rx: 0deg; --ry: 0deg; --py2: 0px; position: relative; width: min(100%, calc((var(--maxh) - 34px) * 1.6)); margin: 0 auto; transform: translate3d(0, var(--py2), 0) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }
.dev { position: relative; background: #fff; border: 1px solid #d6deea; box-shadow: 0 50px 80px -44px rgba(37, 99, 235, .4), 0 20px 40px -26px rgba(15, 23, 42, .4); transition: box-shadow .5s ease, border-color .5s ease; }
.pj.is-live-on .dev, .dev:hover { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(37, 99, 235, .1), 0 0 34px var(--glow), 0 50px 80px -44px rgba(37, 99, 235, .45); }
.laptop { border-radius: 18px; overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; flex: none; }
.chrome i:nth-child(2) { background: #fcd34d; } .chrome i:nth-child(3) { background: #86efac; }
.url { flex: 1; min-width: 0; margin: 0 8px 0 10px; padding: 4px 12px; border-radius: 99px; background: var(--soft); font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 700; flex: none; }
.live-pill b { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: ping 2s infinite; }
.vp { position: relative; overflow: hidden; background: var(--soft); }
.laptop .vp { aspect-ratio: 16 / 10; }
.vp iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; transform-origin: 0 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.vp.loaded iframe { opacity: 1; }
.vp.is-live iframe { pointer-events: auto; }
.laptop .vp iframe { width: 1280px; height: 800px; }
.phone .vp iframe { width: 390px; height: 800px; }
/* loading skeleton, sits behind the iframe */
.vp::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%) 0 0 / 220% 100%, linear-gradient(180deg, #eef3fb, #f7f9fc); animation: shim 1.6s linear infinite; }
.vp.failed::after { content: "Preview not loading here. Use Visit live site."; position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 14px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(245, 247, 250, .9); }
.vp.loaded::before { animation: none; opacity: 0; transition: opacity .8s ease; }
@keyframes shim { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
/* the cyan beam from the hero sweeps over every preview */
.beam { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--cyan); box-shadow: 0 0 18px 6px rgba(6, 182, 212, .45); opacity: 0; pointer-events: none; }
.pj.is-on .beam { animation: sweep 6.5s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .9; } 40% { transform: translateY(var(--sweep, 420px)); opacity: .9; } 48%, 100% { transform: translateY(var(--sweep, 420px)); opacity: 0; } }
.sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%); transform: translateX(-120%); }
.pj.is-on .sheen { animation: sheen 7s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.ghost { position: absolute; z-index: 4; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 6px rgba(11, 18, 32, .3)); }
.pj.is-on .ghost { animation: ghost 11s cubic-bezier(.5, 0, .2, 1) infinite; }
.vp.is-live .ghost, .vp.is-live .beam, .vp.is-live .sheen { display: none; }
@keyframes ghost { 0% { transform: translate(calc(var(--vw, 600px) * .86), calc(var(--vh, 400px) * 1.08)); opacity: 0; } 8% { opacity: 1; } 24%, 36% { transform: translate(calc(var(--vw, 600px) * .62), calc(var(--vh, 400px) * .36)); } 48%, 58% { transform: translate(calc(var(--vw, 600px) * .28), calc(var(--vh, 400px) * .6)); } 76% { transform: translate(calc(var(--vw, 600px) * .7), calc(var(--vh, 400px) * .74)); opacity: 1; } 90%, 100% { transform: translate(calc(var(--vw, 600px) * .92), calc(var(--vh, 400px) * 1.12)); opacity: 0; } }

.phone { position: absolute; z-index: 4; right: -3%; bottom: -6%; width: 21%; min-width: 84px; border-radius: 26px; border: 5px solid var(--ink); background: var(--ink); overflow: hidden; transform: translateZ(60px); box-shadow: 0 40px 60px -26px rgba(11, 18, 32, .55); }
.phone .vp { aspect-ratio: 390 / 800; border-radius: 20px; }
.phone::before { content: ""; position: absolute; z-index: 5; left: 50%; top: 5px; width: 28%; height: 5px; margin-left: -14%; border-radius: 99px; background: var(--ink); }
.pj.flip .phone { right: auto; left: -3%; }
.tier-3 .phone { display: none; }

/* floating chips around the flagship devices */
.float { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: 0 16px 30px -16px rgba(11, 18, 32, .35); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); animation: bob 5s ease-in-out infinite; transform: translateZ(90px); }
.float i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.float.f1 { left: -2%; top: 8%; } .float.f2 { right: 2%; top: -3%; animation-delay: -2s; } .float.f2 i { background: var(--blue); }
.pj.flip .float.f1 { left: auto; right: -2%; } .pj.flip .float.f2 { right: auto; left: 2%; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -9px; } }
.tier-2 .float, .tier-3 .float { display: none; }

/* ---------- Final: homepage tour ---------- */
.tour { position: relative; z-index: 2; overflow: hidden; background: var(--soft); border-top: 1px solid var(--line); padding: clamp(80px, 13vh, 150px) 0 0; text-align: center; }
.tour-head { position: relative; padding: 0 clamp(20px, 6vw, 96px); }
.tour-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.tour-head h2 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); max-width: 16ch; margin: 0 auto; }
.tour-head .sec-text { margin: 20px auto 0; max-width: 500px; }
.tour-stage { position: relative; margin-top: clamp(32px, 5vh, 60px); display: flex; justify-content: center; }
.tour-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; z-index: 5; background: linear-gradient(to bottom, rgba(245, 247, 250, 0), var(--soft) 92%); }
.tframe { position: relative; width: min(1080px, 94vw); height: 100%; border-radius: 20px 20px 0 0; background: #fff; border: 1px solid #d6deea; border-bottom: 0; overflow: hidden; text-align: left; box-shadow: 0 0 0 1px rgba(37, 99, 235, .08), 0 0 44px var(--glow), 0 50px 90px -50px rgba(37, 99, 235, .5); }
.tframe .chrome { position: relative; z-index: 4; }
.tview { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; overflow: hidden; }
.ttrack { position: absolute; left: 0; top: 0; width: var(--dw, 1200px); transform-origin: 0 0; transform: scale(var(--k, .9)); }
.tmove { animation: tscroll var(--dur, 60s) linear infinite; will-change: transform; }
.tframe:hover .tmove, .tframe.off .tmove { animation-play-state: paused; }
@keyframes tscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* miniature of the homepage, same tokens */
.m-hero { position: relative; height: 640px; overflow: hidden; padding: 150px 80px 0; }
.m-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 62% at 66% 50%, #000 18%, transparent 76%); mask-image: radial-gradient(ellipse 70% 62% at 66% 50%, #000 18%, transparent 76%); }
.m-nav { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 1040px; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px 9px 20px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.m-nav .brand { gap: 10px; } .m-nav .lk { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.m-nav .bt { padding: 11px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.m-eyebrow { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.m-hero h3 { position: relative; font-size: 92px; line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.m-hero h3 em { font-style: normal; color: var(--blue); }
.m-lede { position: relative; margin-top: 22px; max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.m-rail { position: relative; display: flex; gap: 12px; margin-top: 34px; width: 420px; }
.m-rail span { flex: 1; font-size: 12px; font-weight: 600; color: #9aa5b8; } .m-rail span:first-child { color: var(--ink); }
.m-rail span i { display: block; height: 3px; margin-top: 9px; border-radius: 3px; background: var(--line); } .m-rail span:first-child i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.m-biz { position: absolute; right: 120px; top: 190px; width: 420px; height: 250px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 34px 60px -26px rgba(37, 99, 235, .45), 0 10px 24px -12px rgba(15, 23, 42, .25); transform: rotate(-4deg); animation: bob 5s ease-in-out infinite; }
.m-biz > * { position: absolute; }
.m-biz .lg { left: 28px; top: 28px; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.m-biz .l { height: 10px; border-radius: 99px; background: #dbe3ee; } .m-biz .l.d { background: var(--ink); height: 14px; }
.m-biz .st { right: 0; top: 0; bottom: 0; width: 22px; border-radius: 0 17px 17px 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.m-sec { padding: 110px 80px; border-top: 1px solid var(--line); }
.m-sec.soft { background: var(--soft); }
.m-sec h3 { font-size: 54px; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; max-width: 14ch; }
.m-sec p.s { margin-top: 16px; font-size: 18px; color: var(--muted); font-weight: 500; max-width: 480px; line-height: 1.6; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.m-card { min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.m-card b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; } .m-card span { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.m-card.lit { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(37, 99, 235, .1), 0 0 26px var(--glow), inset 0 0 16px rgba(6, 182, 212, .12); }
.m-els { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.m-el { padding: 14px 14px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 50px -36px rgba(11, 18, 32, .35); }
.m-el .art { aspect-ratio: 320 / 190; border-radius: 16px; background: linear-gradient(180deg, #f7faff, #eef4fc); border: 1px solid #e8eef7; display: grid; place-items: center; }
.m-el b { display: block; margin: 18px 6px 0; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.m-el span.t { display: block; margin: 8px 6px 0; font-size: 15px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.m-sw { display: flex; gap: 10px; } .m-sw i { width: 34px; height: 34px; border-radius: 50%; } .m-pills { display: grid; gap: 10px; } .m-pills i { height: 26px; border-radius: 13px; }
.m-cube { width: 78px; height: 78px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: rotate(18deg); box-shadow: 18px 18px 0 -2px #0b1220; }
.m-build { margin: 48px auto 0; width: 640px; height: 360px; border-radius: 18px; background: #fff; border: 1.5px solid var(--blue); box-shadow: 0 0 34px var(--glow); position: relative; overflow: hidden; }
.m-build .bar { height: 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; } .m-build .bar i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; } .m-build .bar i:nth-child(2) { background: #fcd34d; } .m-build .bar i:nth-child(3) { background: #86efac; }
.m-build .nv { height: 44px; background: var(--ink); } .m-build .tt { position: absolute; left: 36px; top: 120px; width: 300px; height: 96px; background: var(--blue); border-radius: 10px; } .m-build .im { position: absolute; right: 36px; top: 120px; width: 220px; height: 190px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--cyan)); } .m-build .bt2 { position: absolute; left: 36px; top: 232px; width: 130px; height: 38px; border-radius: 19px; background: var(--cyan); }
.m-cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-align: center; padding: 120px 80px; }
.m-cta h3 { font-size: 64px; letter-spacing: -.04em; font-weight: 800; } .m-cta p { margin-top: 16px; color: #aeb8cb; font-size: 18px; font-weight: 500; }
.m-cta .b { display: inline-block; margin-top: 30px; padding: 17px 32px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; }
/* narrow (phone) layout of the same miniature */
.is-narrow .m-hero { height: 560px; padding: 120px 28px 0; } .is-narrow .m-nav { width: 364px; } .is-narrow .m-nav .lk { display: none; }
.is-narrow .m-hero h3 { font-size: 58px; } .is-narrow .m-biz { right: 28px; top: 360px; width: 270px; height: 160px; } .is-narrow .m-rail { width: 330px; }
.is-narrow .m-sec { padding: 70px 28px; } .is-narrow .m-sec h3 { font-size: 38px; } .is-narrow .m-grid, .is-narrow .m-els { grid-template-columns: 1fr; }
.is-narrow .m-build { width: 340px; height: 240px; transform: none; } .is-narrow .m-build .tt { width: 160px; height: 60px; top: 90px; left: 20px; } .is-narrow .m-build .im { width: 110px; height: 110px; top: 90px; right: 20px; } .is-narrow .m-build .bt2 { top: 170px; left: 20px; width: 90px; }
.is-narrow .m-cta { padding: 80px 28px; } .is-narrow .m-cta h3 { font-size: 40px; }

/* ---------- CTA (same dark band as homepage) ---------- */
.cta-sec { position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: #fff; text-align: center; padding: clamp(84px, 16vh, 170px) clamp(20px, 6vw, 96px); }
.cta-sec::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%); }
.cta-sec::after { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; max-width: 120vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 99, 235, .45), transparent); filter: blur(30px); pointer-events: none; }
.cta-in { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-in h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.cta-in p { margin: 18px auto 0; max-width: 460px; color: #aeb8cb; font-weight: 500; line-height: 1.6; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.cta-btn { margin-top: 34px; background: #fff; color: var(--ink); padding: 17px 32px; font-size: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 18px 40px -16px rgba(6, 182, 212, .6); }
.cta-btn:hover { transform: translateY(-2px); background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 22px 46px -14px rgba(6, 182, 212, .75); }
.cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Responsive ---------- */
/* full-screen live view (phones) */
.fs { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #fff; }
.fs[hidden] { display: none; }
.fs-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.fs-bar .url { margin: 0; }
.fs-bar a, .fs-x { flex: none; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 13px/1 var(--font); cursor: pointer; }
.fs-x { background: var(--ink); border-color: var(--ink); color: #fff; }
.fs iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Phones and small tablets: each project is its own smaller layout and fits one screen ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .tier-1 { --py: 44px; --maxh: min(calc(var(--u) * 40), 320px); }
  .tier-2 { --py: 38px; --maxh: min(calc(var(--u) * 36), 290px); }
  .tier-3 { --py: 30px; --maxh: min(calc(var(--u) * 30), 240px); }
  .pj-in, .pj.flip .pj-in { grid-template-columns: 1fr; gap: 22px; }
  .pj.flip .pj-media { order: 0; }
  .pj-media { width: 100%; max-width: 520px; margin: 0 auto; }
  .stack { width: min(100%, max(230px, calc((var(--maxh) - 34px) * 1.6))); margin-bottom: 16px; }
  .laptop { border-radius: 12px; }
  .chrome { height: 26px; padding: 0 10px; gap: 5px; } .chrome i { width: 7px; height: 7px; } .url { font-size: 9px; padding: 3px 9px; } .live-pill { font-size: 9px; padding: 3px 7px; }
  .phone { right: 0; bottom: -9%; width: 26%; min-width: 0; border-width: 4px; border-radius: 16px; }
  .phone .vp { border-radius: 12px; } .phone::before { top: 3px; height: 3px; }
  .pj.flip .phone { right: auto; left: 0; }
  .tier-3 .phone { display: none; }
  .tier-3 .stack { width: min(82%, max(210px, calc((var(--maxh) - 34px) * 1.6))); }
  .float, .pj-chips { display: none; }
  .tier-1 h2 { font-size: clamp(2rem, 9.4vw, 2.7rem); } .tier-2 h2 { font-size: clamp(1.6rem, 7.2vw, 2.05rem); } .tier-3 h2 { font-size: clamp(1.3rem, 5.8vw, 1.6rem); }
  .pj-num { margin-bottom: 10px; font-size: 12px; }
  .pj-text, .tier-1 .pj-text, .tier-2 .pj-text, .tier-3 .pj-text { max-width: none; margin-top: 12px; line-height: 1.55; }
  .tier-1 .pj-text { font-size: .98rem; } .tier-2 .pj-text { font-size: .94rem; } .tier-3 .pj-text { font-size: .88rem; }
  .pj-actions, .tier-3 .pj-actions { margin-top: 18px; gap: 10px; }
  .pj-actions .btn { flex: 1 1 auto; padding: 13px 16px; font-size: 14px; }
  .tier-3 .pj-actions .btn { padding: 11px 14px; font-size: 13px; }
  .intro { padding-top: 104px; min-height: 66svh; }
  .tour-stage { height: clamp(360px, 56svh, 520px); }
  .tframe { width: calc(100% - 28px); }
  /* flagship overflow fix: grid columns may shrink, 3D pop-out off, glows smaller, everything clipped to the screen */
  .pj { overflow: hidden; contain: paint; }
  .pj-in, .pj.flip .pj-in { grid-template-columns: minmax(0, 1fr); }
  .pj-media, .pj-copy { min-width: 0; }
  .pj-media { perspective: none; padding: 0 4px; }
  .stack { max-width: 100%; transform: none !important; }
  .phone { transform: none; right: 2px; }
  .pj.flip .phone { left: 2px; right: auto; }
  .pj-bg .glow { width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; }
  .pj h2, .pj-text { overflow-wrap: anywhere; }
}
@media (min-width: 901px) { .tour-stage { height: clamp(380px, 58svh, 580px); } }
@media (max-height: 520px) and (orientation: landscape) { .stack { width: min(100%, 300px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wi { transform: none; transition: none; } .rv { opacity: 1; transform: none; transition: none; }
  .beam, .sheen, .ghost, .float, .m-biz, .tmove, .pill-dot, .scroll-hint i, .live-pill b { animation: none !important; }
  .stack { transform: none !important; }
}
