:root {
  --ink: #0d0c0b;
  --ink-2: #161513;
  --ink-3: #1f1d1b;
  --bone: #ebe5da;
  --muted: #8f8a80;
  --cobalt: #3d5afe;
  --cobalt-hi: #8c9cff; /* cobalt tint for small text: passes 4.5:1 on ink */
  --line: rgba(235, 229, 218, .1);
  --sans: "Commissioner", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--ink); }
html:not(.lenis) { scroll-behavior: smooth; }
/* Lenis' stylesheet, inlined to avoid a render-blocking request. */
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis-stopped { overflow: clip; }
.lenis-smooth iframe { pointer-events: none; }
body {
  background: var(--ink); color: var(--bone);
  font: 400 clamp(15px, 1.05vw, 18px)/1.55 var(--sans);
  font-optical-sizing: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: 99px; background: var(--bone); color: var(--ink); font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 99px;
  background: var(--bone); color: var(--ink); font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: color .4s var(--out), translate .6s var(--out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cobalt);
  transform: translateY(101%); transition: transform .5s var(--out);
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(235,229,218,.22); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-xl { min-height: 64px; padding: 0 34px; font-size: 17px; }
@media (hover: hover) {
  .btn:hover { color: #fff; }
  .btn:hover::before { transform: none; }
}

/* ---------- LOADER ---------- */
.loader { display: none; }
.show-loader .loader {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad); background: var(--ink-2);
}
.loader-word { font: 400 clamp(28px, 5vw, 64px)/1 var(--sans); letter-spacing: -.04em; }
.loader-count { font: 500 clamp(28px, 5vw, 64px)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--cobalt); }

/* Loader is pure CSS so it never waits on the CDN: counter 0→100, then a wipe. */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.show-loader .loader { animation: loader-out .9s cubic-bezier(.76, 0, .24, 1) 1.15s forwards; }
.loader-count { counter-reset: n var(--n); animation: count 1.1s cubic-bezier(.65, 0, .35, 1) forwards; }
.loader-count::after { content: counter(n) "%"; }
@keyframes count { to { --n: 100; } }
@keyframes loader-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  transition: transform .6s var(--out), background-color .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(13,12,11,.7); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 17px/1 var(--sans); letter-spacing: -.02em; min-height: 44px; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 16px var(--cobalt); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 14px; }
.nav-links a { position: relative; padding: 12px 0; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--out); }
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px; border-radius: 99px; cursor: pointer;
  background: none; border: 0; box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--mono); color: var(--muted);
}
.lang span { padding: 8px 10px; border-radius: 99px; transition: background-color .3s, color .3s; }
html[lang="en"] .lang [data-lang="en"], html[lang="el"] .lang [data-lang="el"] { background: var(--bone); color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(24px, 4vh, 48px);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--pad) clamp(28px, 5vh, 56px);
  background: radial-gradient(80% 70% at 75% 35%, rgba(61,90,254,.55), transparent 60%), radial-gradient(60% 60% at 20% 90%, rgba(30,40,120,.45), transparent 70%), var(--ink);
}
#gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.hero.gl-on #gl { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, var(--ink)); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(235,229,218,.7); }
#clock { font-variant-numeric: tabular-nums; }
.hero-title {
  align-self: end;
  font: 400 clamp(44px, 9.2vw, 184px)/.92 var(--sans); letter-spacing: -.055em;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title em { color: var(--bone); font-weight: 300; letter-spacing: -.03em; }
.rotator { display: inline-block; }
html[lang="el"] .hero-title { font-size: clamp(36px, 7.8vw, 156px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
/* "Psst… there's more below" (js/hint.js): centred in the button row on wide screens; in the empty space above the headline on narrower ones. */
.hint {
  position: absolute; left: 50%; bottom: calc(clamp(28px, 5vh, 56px) + 6px); z-index: 2; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 99px; white-space: nowrap; cursor: pointer;
  background: rgba(235,229,218,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(235,229,218,.22);
  color: var(--bone); font: 500 14px/1 var(--sans);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96);
  transition: opacity .5s var(--out), transform .6s var(--out), visibility 0s .6s, background .25s;
}
.hint.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--out), transform .6s var(--out), background .25s; }
.hint:hover { background: rgba(235,229,218,.18); }
.hint b { display: inline-block; font-weight: 500; }
.hint.on b { animation: hint-bob 1.6s var(--out) infinite; }
@keyframes hint-bob { 0%, 100% { transform: none; } 40% { transform: translateY(4px); } }
@media (max-width: 1080px) { .hint { bottom: auto; top: 38%; } }
.hero-sub { max-width: 460px; color: rgba(235,229,218,.78); font-size: clamp(15px, 1.2vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-cue { position: absolute; right: var(--pad); top: 50%; width: 44px; height: 64px; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 56px; background: linear-gradient(var(--bone), transparent); transform-origin: top; animation: cue 2.2s var(--out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- STATEMENT ---------- */
.statement { padding: clamp(96px, 16vw, 220px) var(--pad); max-width: 1500px; }
.statement-text { font: 400 clamp(28px, 4.4vw, 72px)/1.08 var(--sans); letter-spacing: -.035em; text-wrap: pretty; }
.statement-text .w { transition: opacity .25s linear; }
.js-motion:not(.rm) .statement-text .w { opacity: .42; }

/* ---------- SECTIONS ---------- */
.section, .outro { padding: clamp(80px, 12vw, 180px) var(--pad); }
.section-head { margin-bottom: clamp(40px, 6vw, 88px); max-width: 1100px; }
h2 { font: 400 clamp(38px, 6.4vw, 112px)/.98 var(--sans); letter-spacing: -.05em; }
h2 em { color: var(--cobalt); }
h3 { font: 500 clamp(22px, 2vw, 32px)/1.1 var(--sans); letter-spacing: -.03em; }

/* ---------- WHY ---------- */
.why { padding-top: 0; }
.why-grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.why-item { background: var(--ink); padding: clamp(28px, 4vw, 56px) clamp(4px, 2vw, 32px); display: grid; gap: 14px; }
.big { font: 300 clamp(72px, 9vw, 160px)/.9 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.why-item p { color: rgba(235,229,218,.72); max-width: 340px; }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- OUTRO ---------- */
.outro { text-align: center; display: grid; justify-items: center; overflow: hidden; }
.outro-title { font: 400 clamp(52px, 11vw, 210px)/.9 var(--sans); letter-spacing: -.06em; will-change: transform; }
.outro-title span, .outro-title em { display: block; }
.outro-title em { color: var(--cobalt); }
.outro-sub { margin: clamp(24px, 3vw, 40px) 0; color: rgba(235,229,218,.75); max-width: 440px; }
.outro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- FOOTER ---------- */
.footer { padding: 0 var(--pad) env(safe-area-inset-bottom); overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0; border-top: 1px solid var(--line); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; transition: color .3s; }
.footer-row a:hover { color: var(--bone); }
.footer-word { font: 500 clamp(56px, 15.6vw, 300px)/.78 var(--sans); letter-spacing: -.07em; white-space: nowrap; text-align: center; color: var(--ink-3); transform: translateY(8%); user-select: none; }
.footer-word::before { content: "ThreeDevBros"; }

/* ---------- CURSOR ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; }
.cursor-dot { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; background: var(--bone); transform: scale(.11); transition: transform .5s var(--out), background-color .4s; }
.cursor-label { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; display: grid; place-items: center; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor-dot { transform: scale(1); background: var(--cobalt); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-link .cursor-dot { transform: scale(.4); background: rgba(235,229,218,.5); }
.cursor.is-hidden { opacity: 0; }

/* ---------- MOTION STATES (only once JS motion layer is active) ---------- */
.js-motion [data-reveal] { opacity: 0; }
.js-motion:not(.rm) [data-reveal] { transform: translateY(28px); }
.js-motion [data-split] { opacity: 0; }
/* Hero intro is CSS-driven so the largest paint doesn't wait for JS. */
:root { --intro: .1s; }
.show-loader { --intro: 1.3s; }
.js-motion:not(.rm) .hero-title .line > span { transform: translateY(110%); animation: rise 1.1s var(--out) forwards; animation-delay: calc(var(--intro) + var(--i, 0) * .09s); }
.hero-title .line:nth-child(2) > span { --i: 1; }
.hero-title .line:nth-child(3) > span { --i: 2; }
.js-motion .hero-in { opacity: 0; animation: fade-up .9s var(--out) forwards; animation-delay: calc(var(--intro) + .35s); }
.js-motion .hero-cta.hero-in { animation-delay: calc(var(--intro) + .45s); }
.rm .hero-in { opacity: 1; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > .split-in { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .hero-cta, .hero-cta .btn, .outro-actions, .outro-actions .btn { width: 100%; }
  .hero-meta > span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media (max-width: 400px) {
  .nav { gap: 8px; }
  .logo { font-size: 15px; gap: 8px; }
  .nav .btn-sm { padding: 0 14px; font-size: 13px; }
  .lang span { padding: 8px 8px; }
}

/* ---------- SERVICE TILES (CSS-drawn, loop only while visible) ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.tile { padding: 14px 14px 22px; border-radius: 24px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile h3 { margin: 18px 6px 6px; font-size: clamp(20px, 1.6vw, 24px); }
.tile p { margin: 0 6px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tile-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, rgba(61,90,254,.18), transparent 60%), #0f0f10; }
/* Wider art on laptops/desktops so heading + both tile rows fit one screen (the Services link centres them). */
@media (min-width: 861px) { .tile-art { aspect-ratio: 16 / 9; } }
.tile-art *, .tile-art *::before, .tile-art *::after { animation-play-state: paused !important; }
.tile.in-view .tile-art *, .tile.in-view .tile-art *::before, .tile.in-view .tile-art *::after { animation-play-state: running !important; }

/* web: browser skeleton filling in */
.art-web { padding: 9% 9% 0; display: grid; grid-template-rows: auto 34% auto auto auto; gap: 7%; }
.aw-bar { display: flex; align-items: center; gap: 5px; }
.aw-bar i { width: 7px; height: 7px; border-radius: 50%; background: #333; }
.aw-bar span { flex: 1; height: 10px; margin-left: 8px; border-radius: 99px; background: #222; }
.aw-hero, .aw-row i, .aw-line { border-radius: 8px; background: #1e1e20 linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent) 0 0 / 200% 100%; animation: sk 1.6s linear infinite; }
.aw-hero { position: relative; overflow: hidden; }
.aw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--cobalt), #7d8cff); animation: fill-in 4.8s var(--out) infinite; }
.aw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 26px; }
.aw-row i { animation: sk 1.6s linear infinite, pop 4.8s var(--out) infinite; }
.aw-row i:nth-child(2) { animation-delay: 0s, .15s; }
.aw-row i:nth-child(3) { animation-delay: 0s, .3s; }
.aw-line { height: 8px; } .aw-line.short { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes fill-in { 0%, 30% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0%, 40% { transform: scale(.85); opacity: .4; } 55%, 88% { transform: none; opacity: 1; } 100% { transform: scale(.85); opacity: .4; } }

/* native: phone + notification */
.art-native { display: grid; place-items: end center; }
.an-phone { position: relative; width: 38%; aspect-ratio: 9 / 16; margin-bottom: -18%; border-radius: 18px 18px 0 0; background: #151517; box-shadow: inset 0 0 0 2px #2c2c30; padding: 26% 12% 0; }
.an-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10%; }
.an-grid i { aspect-ratio: 1; border-radius: 28%; background: #26262b; }
.an-grid i:nth-child(3n) { background: #2f3a7a; }
.an-note { position: absolute; left: -38%; right: -38%; top: 8%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(235,229,218,.94); box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: note 4s var(--out) infinite; }
.an-note i { flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--cobalt); }
.an-note span { flex: 1; height: 7px; border-radius: 99px; background: #b9b3a8; box-shadow: 0 10px 0 -1px #cfc9bd; margin-bottom: 8px; }
@keyframes note { 0%, 15% { transform: translateY(-160%); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: translateY(-160%); opacity: 0; } }

/* dashboards: KPI counter + growing bars */
/* @property registers the name page-wide: a generic name (it was --k) silently broke the simulator's --k scale. */
@property --kpi { syntax: "<integer>"; initial-value: 0; inherits: false; }
.art-dash { padding: 10%; display: grid; grid-template-rows: auto 1fr; gap: 8%; }
.ad-kpi { display: flex; align-items: baseline; gap: 10px; }
.ad-num { --kpi: 128; counter-reset: k var(--kpi); font: 300 clamp(28px, 3vw, 40px)/1 var(--sans); letter-spacing: -.04em; animation: kpi 4s var(--out) infinite; }
.ad-num::before { content: "+" counter(k) "%"; }
.ad-kpi span { width: 30%; height: 7px; border-radius: 99px; background: #26262b; }
@keyframes kpi { 0% { --kpi: 0; } 60%, 100% { --kpi: 128; } }
.ad-bars { display: flex; align-items: flex-end; gap: 6%; }
.ad-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--cobalt), #2a3a9e); transform-origin: bottom; animation: grow 4s var(--out) infinite; }
.ad-bars i:nth-child(1) { height: 35%; } .ad-bars i:nth-child(2) { height: 55%; animation-delay: .08s; } .ad-bars i:nth-child(3) { height: 42%; animation-delay: .16s; }
.ad-bars i:nth-child(4) { height: 70%; animation-delay: .24s; } .ad-bars i:nth-child(5) { height: 60%; animation-delay: .32s; } .ad-bars i:nth-child(6) { height: 85%; animation-delay: .4s; }
.ad-bars i:nth-child(7) { height: 100%; animation-delay: .48s; background: linear-gradient(#a9b5ff, var(--cobalt)); }
@keyframes grow { 0% { transform: scaleY(.08); } 55%, 100% { transform: none; } }

/* e-commerce: item drops into cart, then a tick */
.art-shop { display: grid; place-items: center; color: var(--bone); }
.as-cart { width: 34%; fill: currentColor; }
.as-item { position: absolute; left: 50%; top: 38%; width: 12%; aspect-ratio: 1; margin-left: -4%; border-radius: 6px; background: linear-gradient(135deg, #a9b5ff, var(--cobalt)); animation: drop 3.2s cubic-bezier(.5, 0, .75, 0) infinite; }
.as-ok { position: absolute; right: 22%; top: 22%; width: 18%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #2fbf71; color: #fff; animation: ok 3.2s var(--out) infinite; }
.as-ok svg { width: 60%; }
@keyframes drop { 0% { transform: translateY(-260%) rotate(-20deg); opacity: 0; } 15% { opacity: 1; } 45%, 100% { transform: translateY(0) rotate(0); opacity: 0; } }
@keyframes ok { 0%, 45% { transform: scale(0); } 60%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

/* UI/UX: wireframe colours itself in */
.art-ux { padding: 10%; }
.ux-layer { position: absolute; inset: 10%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr 1fr; gap: 8px; }
.ux-layer i:first-child { grid-column: span 2; }
.ux-wire i { border-radius: 8px; box-shadow: inset 0 0 0 1.5px #3a3a40; background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.03) 6px 7px); }
.ux-color i { border-radius: 8px; }
.ux-color i:nth-child(1) { background: linear-gradient(120deg, var(--cobalt), #7d8cff); }
.ux-color i:nth-child(2) { background: var(--bone); }
.ux-color i:nth-child(3) { background: #2b2b31; }
.ux-color i:nth-child(4) { grid-column: span 2; background: #ff8a5b; }
.ux-color { animation: paint 4.4s var(--out) infinite; }
@keyframes paint { 0%, 15% { clip-path: inset(0 100% 0 0); } 50%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

/* hosting: uptime pulse */
.art-host { padding: 10%; display: grid; align-content: space-between; }
.art-host b { font: 300 clamp(28px, 3vw, 40px)/1 var(--sans); letter-spacing: -.04em; }
.art-host b::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: #2fbf71; vertical-align: middle; animation: ping-green 2s infinite; }
.art-host svg { width: 100%; height: 45%; overflow: visible; }
.art-host polyline { fill: none; stroke: var(--cobalt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; filter: drop-shadow(0 0 6px rgba(61,90,254,.8)); animation: trace 2.6s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes ping-green { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(47,191,113,0); } }

/* ---------- FROM A SENTENCE TO THE APP STORE ---------- */
/* Static by default (no JS / reduced motion): sentence, finished product, closing line. */
.idea { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); }
.idea-sticky { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); justify-items: center; text-align: center; }
.idea-grid, .idea-bp { display: none; }
.idea-sentence { max-width: 15em; font: italic 300 clamp(34px, 6.2vw, 100px)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.idea-sentence .w { display: inline-block; will-change: transform, opacity, filter; }
.idea-device { position: relative; height: min(72svh, 640px); aspect-ratio: 300 / 600; }
.idea-end { display: grid; gap: 14px; justify-items: center; }
.idea-end h3 { font: 400 clamp(32px, 4.4vw, 64px)/1 var(--sans); letter-spacing: -.045em; }
.idea-end h3 em { color: var(--cobalt-hi); }
.idea-end p { color: rgba(235,229,218,.75); font-size: clamp(16px, 1.3vw, 19px); margin-bottom: 8px; }

/* The finished product: the live demo's real home screen, a full 390×844 capture (photo runs under the status bar).
   Device = x25 y10 w250 h540 in the blueprint's 300×600 box, which the blueprint traces 1:1.
   The frame sits outside the screen (outer shadows) so the app reaches the glass edge. */
.idea-product {
  position: absolute; left: 8.333%; top: 1.667%; width: 83.333%; height: 90%; container-type: inline-size;
  border-radius: 16% / 7.4%; background: #1b1b1d; overflow: hidden; display: block;
  box-shadow: 0 0 0 3px #050506, 0 0 0 4.5px #57585d, 0 0 0 5px #1d1d20;
}
.idea-product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* iOS status bar: time centred in the left ear, cellular / Wi-Fi / battery in the right ear. Island = 126×37 at y 11. */
.ip-status {
  position: absolute; z-index: 1; left: 0; right: 0; top: 1.3%; height: 4.384%;
  display: grid; grid-template-columns: 1fr 32.3% 1fr; align-items: center; color: #fff;
}
.ip-status b { justify-self: center; padding-left: 4cqw; font: 600 4.36cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; }
.ip-island { height: 100%; border-radius: 99px; background: radial-gradient(circle at 78% 50%, #1d2440 0 7%, #0b0d14 9% 12%, transparent 13%), #000; box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.07), 0 0 0 .3cqw rgba(0,0,0,.35); }
.ip-icons { justify-self: center; display: flex; align-items: center; gap: 1.5cqw; padding-right: 4cqw; }
.ip-icons svg { height: 3.1cqw; width: auto; fill: #fff; }
.ip-icons svg:last-child { height: 3.4cqw; }
/* "Tap to try it": in the gap under Order Now (y 578 of 844). */
.ip-tap {
  position: absolute; z-index: 2; left: 50%; top: 68.48%; translate: -50% -50%; white-space: nowrap;
  padding: 2.4cqw 4.4cqw; border-radius: 99px; background: var(--bone); color: var(--ink); font: 600 4cqw/1 var(--sans);
  box-shadow: 0 0 0 0 rgba(235,229,218,.55); animation: tap-pulse 1.8s ease-out infinite; transition: opacity .4s, scale .4s;
}
@keyframes tap-pulse { 0% { box-shadow: 0 0 0 0 rgba(235,229,218,.55); } 70%, 100% { box-shadow: 0 0 0 4.5cqw rgba(235,229,218,0); } }
.idea-product:hover .ip-tap, .idea-product:focus-visible .ip-tap { scale: 1.06; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .ip-tap { animation: none; } }

/* Live: pinned three-act scroll (sentence → blueprint → product). */
/* Pinned full-screen stage: anchor links land on its exact top (no nav offset) so the stage is centred. */
.idea.is-live { height: 340vh; padding: 0; scroll-margin-top: calc(-1 * var(--nav-h)); }
.is-live .idea-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; overflow: hidden; }
.is-live .idea-grid {
  display: block; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: linear-gradient(rgba(140,156,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(140,156,255,.09) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%);
}
.is-live .idea-quote { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(92vw, 1100px); text-align: center; }
/* The sentence itself is what sits dead centre; the label floats just above it. */
.is-live .idea-quote .label { position: absolute; left: 0; right: 0; bottom: 100%; }
.is-live .idea-device { position: absolute; left: 50%; top: 50%; transform: translate3d(-50%, -50%, 0); }
.is-live .idea-bp { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.idea-bp .bp-draw > *, .idea-bp .bp-dims > * { fill: none; stroke: var(--cobalt-hi); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.idea-bp .bp-dims > * { stroke: #6d7ce0; stroke-width: .9; }
.idea-bp text { fill: var(--cobalt-hi); font: 500 8px var(--mono); letter-spacing: .08em; }
.is-live .idea-bp .bp-labels { opacity: 0; }
.is-live .idea-product { clip-path: inset(100% 0 0 0); }
.is-live .idea-end { position: absolute; left: var(--pad); top: 50%; translate: 0 -50%; width: min(40vw, 520px); justify-items: start; text-align: left; opacity: 0; pointer-events: none; }
.is-live .idea-end.on { pointer-events: auto; }
.is-live:not(.is-end) .ip-tap { opacity: 0; scale: .8; animation: none; }
@media (max-width: 759px) {
  .is-live .idea-device { height: min(62svh, 560px); }
  .is-live .idea-end { left: 50%; top: auto; bottom: max(28px, env(safe-area-inset-bottom)); translate: -50% 0; width: calc(100% - 2 * var(--pad)); justify-items: center; text-align: center; }
  .is-live .idea-end .btn-xl { min-height: 52px; padding: 0 22px; font-size: 15px; }
  .idea-actions { justify-content: center; }
  .idea-bp text { font-size: 9px; }
}

/* ---------- LEAVING FOR WHATSAPP / THE LIVE DEMO (js/leave.js) ---------- */
/* Full-screen card in the destination's colours; leave.js grows its clip-path out of the pressed button. */
.leave { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; pointer-events: none; clip-path: inset(50% round 0); }
.leave[data-kind="wa"] { color: #fff; background: radial-gradient(120% 90% at 50% 0%, #2be071 0%, #25d366 42%, #128c7e 100%); }
.leave[data-kind="demo"] { color: #ededed; background: radial-gradient(90% 60% at 50% 105%, rgba(0,191,255,.38), transparent 62%), #1b1b1d; }
.leave-mark { display: grid; justify-items: center; gap: 14px; padding: 0 var(--pad); text-align: center; opacity: 0; }
.leave-mark b { font: 600 clamp(18px, 1.7vw, 24px)/1.2 var(--sans); letter-spacing: -.01em; }
.leave-mark small { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.leave-mark > svg { width: 60px; height: 60px; fill: currentColor; }
.leave-app { width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; background: #00bfff; color: #000; box-shadow: 0 12px 40px rgba(0,191,255,.35); }
.leave-app svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
