/* v2 project page. Per-page colors come from --c1 (deep), --c2 (bright), --acc (highlight) on <body>. */
:root {
  --cream: #FBF5EC;
  --ink: #111110;
  --white: #fff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(18px, 5vw, 72px);
  --radius: 28px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body.v2 {
  background: var(--c1);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--acc); color: var(--ink); }

/* grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-4%,3%); } 66% { transform: translate(3%,-4%); } }

/* cursor (fine pointers only) */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--acc); }
  .cursor-ring { display: block; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255,255,255,0.45); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
  .cursor-ring.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(255,255,255,0.08); border-color: var(--acc); }
}

/* nav */
.v2-nav {
  position: fixed; top: 16px; left: var(--pad); right: var(--pad); z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(10,10,10,0.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}
.v2-nav .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.v2-nav .logo span { color: var(--acc); }
.v2-nav .links { display: flex; gap: 22px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.7); }
.v2-nav .links a:hover { color: var(--acc); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn-acc { background: var(--acc); color: var(--ink); }
.btn-acc:hover { background: var(--white); }
.btn-line { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.v2-nav .btn { padding: 10px 18px; font-size: 13px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 120px var(--pad) 80px; overflow: hidden; }
#silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 80%, transparent) 0%, transparent 65%), linear-gradient(0deg, var(--c1) 0%, transparent 25%); }
.hero > * { position: relative; z-index: 2; }
.back { display: inline-flex; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.65); margin-bottom: 26px; }
.back:hover { color: var(--acc); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags span { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255,255,255,0.06); }
.client { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 0.95; font-weight: 700; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); }
.hero h1 .acc { color: var(--acc); }
.lede { margin-top: 26px; max-width: 520px; font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(255,255,255,0.78); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.facts span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.facts span + span::after { content: ''; }

.tilt-wrap { perspective: 1200px; }
.tilt {
  position: relative; border-radius: var(--radius); overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform .5s var(--ease);
}
.tilt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tilt .sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.22), transparent 45%); mix-blend-mode: soft-light; }
.float-chip {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 16px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
  animation: bob 5s ease-in-out infinite;
}
.float-chip i { font-style: normal; color: var(--c2); margin-right: 6px; }
.float-chip.c1 { top: -18px; left: -22px; }
.float-chip.c2 { bottom: -20px; right: -14px; animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--acc), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee ribbon */
.ribbon { position: relative; z-index: 3; background: var(--acc); color: var(--ink); transform: rotate(-2deg); margin: -10px -20px 0; padding: 18px 0; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5); }
.ribbon .track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ribbon span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(18px, 2.4vw, 30px); text-transform: uppercase; padding: 0 22px; white-space: nowrap; }
.ribbon span::after { content: '✦'; margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.sec { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--acc); }
.sec h2 { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1; font-weight: 700; max-width: 900px; }
.reveal { opacity: 0; transform: translateY(40px); }

/* before / after (pinned on desktop) */
.ba { background: var(--cream); color: var(--ink); }
.ba .eyebrow { color: var(--c2); }
.ba .eyebrow::before { background: var(--c2); }
.ba-stage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 70px); align-items: center; min-height: 100svh; padding: 100px var(--pad); }
.ba-copy { position: relative; min-height: 260px; }
.ba-copy .state { position: absolute; inset: 0 0 auto 0; }
.ba-copy .state.after { opacity: 0; }
.ba-copy h2 { color: var(--ink); }
.ba-copy p { margin-top: 18px; font-size: 17.5px; color: #4a463e; max-width: 460px; }
.ba-copy .label { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--white); }
.ba-copy .after .label { background: var(--c2); }
.ba-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35); }
.ba-frame img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.ba-shade { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: var(--c1); transform-origin: right center; display: grid; place-items: center; }
.ba-shade span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(16px, 2vw, 24px); color: var(--acc); letter-spacing: 0.04em; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 20px rgba(0,0,0,0.35); }
.ba-line::after { content: '⇆'; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }

/* steps: horizontal on desktop */
.steps { overflow: hidden; }
.steps-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.steps-head p { max-width: 380px; color: rgba(255,255,255,0.7); }
.steps-track { margin-top: 56px; display: flex; gap: 22px; width: max-content; }
.step {
  position: relative; width: clamp(280px, 30vw, 420px); min-height: 340px; padding: 34px 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.step .n { font-family: 'Space Grotesk', sans-serif; font-size: 96px; font-weight: 700; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--acc); }
.step p { font-size: 19px; line-height: 1.45; font-weight: 500; }
.step::after { content: ''; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(var(--c2), transparent 70%); opacity: 0.55; }
.steps-bar { margin-top: 36px; height: 3px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }

/* results over parallax art */
.results { min-height: 110svh; display: grid; align-items: end; overflow: hidden; }
.results .art { position: absolute; inset: -12% 0; z-index: 0; }
.results .art img { width: 100%; height: 100%; object-fit: cover; }
.results::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--c1) 8%, color-mix(in srgb, var(--c1) 55%, transparent) 55%, color-mix(in srgb, var(--c1) 20%, transparent)); }
.results .inner { position: relative; z-index: 2; }
.result-list { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.result { padding: 26px 24px; border-radius: 22px; background: rgba(10,10,10,0.45); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(14px); font-size: 17px; font-weight: 500; }
.result::before { content: '✓'; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--acc); color: var(--ink); font-weight: 800; }
.result.stat::before { display: none; }
.result.stat strong { display: block; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.03em; color: var(--acc); }

/* real build in a device */
.build { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.build-copy p { margin-top: 20px; color: rgba(255,255,255,0.75); max-width: 460px; font-size: 17px; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); font-size: 13px; font-weight: 600; }
.device-wrap { perspective: 1400px; display: grid; place-items: center; }
.device { transform-style: preserve-3d; }
.device.phone { width: min(330px, 76vw); padding: 12px; border-radius: 46px; background: #0b0b0b; box-shadow: 0 0 0 2px #2b2b2b, 0 60px 120px -40px rgba(0,0,0,0.8); }
.device.phone .screen { border-radius: 36px; overflow: hidden; aspect-ratio: 9/19; background: #000; }
.device.laptop { width: min(640px, 92vw); }
.device.laptop .screen { border-radius: 16px 16px 0 0; border: 10px solid #0b0b0b; overflow: hidden; aspect-ratio: 16/10; background: #000; }
.device.laptop::after { content: ''; display: block; height: 16px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#d4d4d8, #8f8f95); }
.device .screen img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.device-cap { margin-top: 26px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,0.6); }

/* quote */
.quote { background: var(--cream); color: var(--ink); }
.quote .eyebrow { color: var(--c2); }
.quote .eyebrow::before { background: var(--c2); }
.quote blockquote { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3.3vw, 3rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 1100px; }
.quote blockquote .qw { opacity: 0.15; transition: opacity .2s; }
.quote cite { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-style: normal; font-weight: 700; font-size: 15px; }
.quote cite::before { content: ''; width: 40px; height: 2px; background: var(--c2); }

/* CTA */
.cta { overflow: hidden; text-align: center; }
.cta .blob { position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 50%; margin: -30vmax 0 0 -30vmax; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 62%); opacity: 0.55; filter: blur(30px); pointer-events: none; }
.cta h2 { position: relative; margin: 0 auto; font-size: clamp(2.4rem, 7vw, 6.4rem); }
.cta h2 em { font-style: normal; color: var(--acc); }
.cta p { position: relative; margin: 22px auto 0; max-width: 520px; color: rgba(255,255,255,0.75); font-size: 17px; }
.cta .hero-cta { position: relative; justify-content: center; }
.cta .btn { padding: 18px 30px; font-size: 15px; }

/* next project */
.next { padding: 0 var(--pad) 90px; }
.next a { position: relative; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; gap: 30px; padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); overflow: hidden; }
.next small { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc); }
.next strong { display: block; margin-top: 10px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.next .arrow { display: inline-block; margin-top: 18px; font-size: 28px; transition: transform .4s var(--ease); }
.next .thumb { border-radius: 20px; overflow: hidden; }
.next .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.next a:hover .thumb img { transform: scale(1.06); }
.next a:hover .arrow { transform: translateX(10px); }
.v2-foot { padding: 30px var(--pad) 40px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); }

/* responsive */
@media (max-width: 900px) {
  .v2-nav .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero::after { background: linear-gradient(0deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, transparent) 60%); }
  .float-chip.c1 { left: 8px; } .float-chip.c2 { right: 8px; }
  .scroll-cue { display: none; }
  .ba-stage { grid-template-columns: 1fr; min-height: auto; padding: 80px var(--pad); }
  .ba-copy { min-height: 0; }
  .ba-copy .state { position: relative; }
  .ba-copy .state.after { opacity: 1; margin-top: 30px; }
  .ba-shade { display: none; }
  .steps-track { width: auto; flex-direction: column; }
  .step { width: 100%; min-height: 0; gap: 26px; }
  .step .n { font-size: 64px; }
  .steps-bar { display: none; }
  .build { grid-template-columns: 1fr; }
  .next a { grid-template-columns: 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .ribbon .track, .float-chip, .scroll-cue::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
  .quote blockquote .qw { opacity: 1; }
}

/* video blocks: self-hosted vertical videos and click-to-load YouTube */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; align-items: start; margin-top: 48px; }
.vids.one { grid-template-columns: minmax(0, 380px); justify-content: center; }
.vid { display: grid; justify-items: center; }
.vid .device.phone .screen { aspect-ratio: 9/16; }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vid h3 { margin-top: 24px; font-size: 19px; text-align: center; }
.vid p { margin-top: 8px; max-width: 400px; text-align: center; font-size: 14.5px; color: rgba(255,255,255,0.7); }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: 0.85; }
.yt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23111'/%3E%3C/svg%3E") 54% 50% / 34px no-repeat; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.6); transition: transform .3s var(--ease); }
.yt:hover::after { transform: scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.wide { aspect-ratio: 16/9; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12); }
.yt.tall { aspect-ratio: 9/16; height: 100%; }
.long-video { margin-top: 48px; max-width: 980px; }
.long-video figcaption { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.65); }
.yt.is-playing::after { display: none; }
