/* Wangzi Studio */

:root {
  --bg: #07070a;
  --surface: #0e0e12;
  --surface-2: #14141a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #b6b6c0;
  --muted: #7d7d89;
  --iris: linear-gradient(92deg, #9fb0ff 0%, #c9a6ff 45%, #ffb3c4 100%);

  --font: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid #9fb0ff; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(159, 176, 255, .35); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.iris { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; background: linear-gradient(180deg, rgba(7, 7, 10, .85), rgba(7, 7, 10, 0)); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.scrolled { background: rgba(7, 7, 10, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #fff, #b9b9c6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 18px -6px rgba(159, 176, 255, .6); }
.brand-mark svg { width: 18px; height: 18px; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(7, 7, 10, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 16px 0; font-size: 20px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: #fff; color: #0a0a0d; box-shadow: 0 8px 30px -10px rgba(255, 255, 255, .45); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(255, 255, 255, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.link { color: var(--text); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Type ---------- */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); letter-spacing: .02em; }
.label i { width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 4px rgba(126, 226, 168, .14); }
.display { font-size: clamp(44px, 7.4vw, 108px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.1; letter-spacing: -.03em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; color: var(--text-2); max-width: 34em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 180px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { margin: 18px 0 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Glow blobs ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
@media (prefers-reduced-motion: no-preference) { .glow.drift { animation: drift 18s ease-in-out infinite alternate; } }
@keyframes drift { to { transform: translate3d(6%, 8%, 0) scale(1.1); } }

/* ---------- Devices ---------- */
.phone { position: relative; border-radius: 17% / 8.1%; background: #16161b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 4px #0b0b0e, 0 30px 60px -18px rgba(0, 0, 0, .7); }
.phone img { width: 93.2%; margin: 3.4%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 14.6% / 6.7%; background: #000; }
.phone-land { position: relative; border-radius: 8.1% / 17%; background: #16161b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 4px #0b0b0e, 0 40px 80px -24px rgba(0, 0, 0, .75); }
.phone-land img { width: 96.4%; margin: 1.8%; aspect-ratio: 2115 / 1184; object-fit: cover; border-radius: 6.4% / 12.6%; background: #000; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 820px; }
.hero .display { font-size: clamp(42px, 6.2vw, 92px); }
.hero .display .ln { display: block; white-space: nowrap; }
.hero .lede { max-width: 31em; }
.hero .display { margin: 26px 0 0; }
.hero .lede { margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 56px; color: var(--muted); font-size: 14px; }
.hero-apps .icons { display: flex; }
.hero-apps .icons a { display: block; width: 40px; height: 40px; margin-right: -8px; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 2px var(--bg); transition: transform .3s var(--ease); }
.hero-apps .icons a:hover { transform: translateY(-4px); }
.hero-apps .icons img { width: 100%; height: 100%; }

.wall { position: absolute; z-index: 1; top: 50%; left: 50%; width: 1100px; height: 1500px; transform: translate(2%, -50%) rotate(-14deg) skewX(4deg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 2%, #000 22%, #000 78%, transparent 98%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 2%, #000 22%, #000 78%, transparent 98%); mask-composite: intersect; }
.wall { filter: brightness(.78) saturate(1.05); transition: translate 1.2s var(--ease); }
.wall .col { overflow: hidden; }
.wall .col:nth-child(4) { display: none; }
.wall .track { display: grid; gap: 34px; animation: wall-up 70s linear infinite; }
.wall .col:nth-child(2) .track { animation-name: wall-down; animation-duration: 84s; }
.wall .col:nth-child(3) .track { animation-duration: 78s; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 17px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 17px)); } to { transform: translateY(0); } }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 7, 10, .96) 38%, rgba(7, 7, 10, .55) 54%, rgba(7, 7, 10, .1) 72%, transparent 85%), linear-gradient(0deg, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgba(7, 7, 10, .9) 0%, transparent 20%); }
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 128px 0 0; flex-direction: column; align-items: stretch; }
  .wall { position: relative; top: auto; left: auto; width: 150%; height: 560px; margin: 24px 0 0 -25%; transform: rotate(-12deg); gap: 18px; grid-template-columns: repeat(4, 1fr); }
  .wall .track { gap: 18px; }
  .wall .col:nth-child(4) { display: block; }
  @keyframes wall-up { to { transform: translateY(calc(-50% - 9px)); } }
  @keyframes wall-down { from { transform: translateY(calc(-50% - 9px)); } }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%), linear-gradient(180deg, var(--bg) 0%, transparent 18%); top: auto; height: 600px; }
}
@media (prefers-reduced-motion: reduce) { .wall .track { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .4em; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: var(--text-2); }
.stat b span { display: inline; margin: 0; color: inherit; font-size: inherit; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Bento work ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; min-height: 620px; transition: border-color .4s var(--ease), transform .6s var(--ease); --mx: 50%; --my: 0%; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 45%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-12 { grid-column: span 12; }
@media (max-width: 960px) { .span-7, .span-5, .span-12 { grid-column: span 12; } .card { min-height: 560px; } }

.card-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 30px 32px 0; }
.card-head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.card-head h3 { font-size: 24px; letter-spacing: -.01em; }
.card-head p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.arrow { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: background .3s, color .3s, transform .4s var(--ease); }
.arrow svg { width: 18px; height: 18px; }
.card:hover .arrow { background: #fff; color: #000; transform: rotate(-45deg); }
.card-body { position: relative; z-index: 2; padding: 16px 32px 0; color: var(--text-2); font-size: 15.5px; max-width: 34em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; }
.chip i.soon { background: #ffc46b; }

.visual { position: relative; flex: 1; min-height: 320px; z-index: 1; }
.visual .phone { position: absolute; transition: transform .8s var(--ease); }
.card:hover .visual .phone { transform: translateY(-10px); }
.card:hover .visual .phone:nth-child(2) { transform: translateY(-18px); }

/* 3-phone stagger */
.trio .phone { width: 27%; }
.trio .phone:nth-child(1) { left: 9%; bottom: -30%; }
.trio .phone:nth-child(2) { left: 36.5%; bottom: -14%; z-index: 2; }
.trio .phone:nth-child(3) { right: 9%; bottom: -30%; }
/* 2-phone overlap */
.duo .phone { width: 40%; }
.duo .phone:nth-child(1) { left: 11%; bottom: -26%; }
.duo .phone:nth-child(2) { right: 11%; bottom: -40%; z-index: 2; }
@media (max-width: 960px) {
  .trio .phone { width: 30%; } .trio .phone:nth-child(1) { left: 4%; } .trio .phone:nth-child(3) { right: 4%; } .trio .phone:nth-child(2) { left: 35%; }
  .duo .phone { width: 42%; }
}

.tint { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.group-head { grid-column: span 12; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px 4px 4px; border-top: 1px solid var(--line); }
.group-head:first-child { padding-top: 0; border-top: 0; }
.group-head h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.group-head span { font-size: 14px; color: var(--muted); }
.bento .group-head + .card, .bento .card + .group-head { margin-top: 0; }

/* Feature (wide, art-backed) cards */
.feature { min-height: 640px; display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch; }
.feature .art { position: absolute; inset: 0; z-index: 0; }
.feature .art img { width: 100%; height: 100%; object-fit: cover; }
.feature .art::after { content: ""; position: absolute; inset: 0; }
.feature .copy { position: relative; z-index: 2; padding: 44px 48px; display: flex; flex-direction: column; }
.feature .copy .card-head { padding: 0; }
.feature .copy .card-body { padding: 22px 0 0; font-size: 16.5px; }
.feature .copy { justify-content: flex-end; }
.feature .copy .card-head { margin-top: 0; }
.feature .stage { position: relative; z-index: 1; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .copy { order: 2; }
.feature.flip .stage { order: 1; }
@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: 1fr; min-height: 0; }
  .feature.flip .copy { order: 1; } .feature.flip .stage { order: 2; }
  .feature .copy { padding: 30px 28px 8px; }
  .feature .stage { min-height: 360px; }
}

.char { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@media (prefers-reduced-motion: no-preference) {
  .char { animation: bob 6s ease-in-out infinite; }
  .char.c2 { animation-duration: 7.5s; animation-delay: -2s; }
  .char.c3 { animation-duration: 8.5s; animation-delay: -4s; }
}
@keyframes bob { 50% { transform: translateY(-14px) rotate(2deg); } }

/* fish */
.fish .art::after { background: linear-gradient(90deg, rgba(4, 18, 40, .96) 0%, rgba(4, 18, 40, .82) 30%, rgba(4, 18, 40, .1) 62%, rgba(4, 18, 40, .25) 100%), linear-gradient(0deg, rgba(4, 18, 40, .7), transparent 40%); }
.fish .stage .phone-land { position: absolute; width: 86%; left: 4%; top: 50%; transform: translateY(-50%); transition: transform .8s var(--ease); }
.fish:hover .stage .phone-land { transform: translateY(calc(-50% - 10px)); }
.fish .c1 { width: 30%; right: 1%; top: 3%; }
.fish .c2 { width: 23%; left: -4%; bottom: 4%; }
.fish .c3 { width: 18%; right: 6%; bottom: 0%; }
/* hammer */
.hammer .art::after { background: linear-gradient(270deg, rgba(14, 8, 26, .97) 0%, rgba(14, 8, 26, .85) 32%, rgba(14, 8, 26, .2) 65%, rgba(14, 8, 26, .45) 100%), linear-gradient(0deg, rgba(14, 8, 26, .85), transparent 45%); }
.hammer .stage .phone { position: absolute; width: 31%; transition: transform .8s var(--ease); }
.hammer .stage .phone:nth-child(1) { left: 12%; bottom: -22%; }
.hammer .stage .phone:nth-child(2) { left: 46%; bottom: -10%; z-index: 2; }
.hammer:hover .stage .phone { transform: translateY(-10px); }
.hammer .c1 { width: 24%; left: 3%; bottom: 8%; }
.hammer .c2 { width: 17%; left: 66%; top: 14%; z-index: 4; }
.hammer .c3 { width: 14%; left: 8%; top: 8%; }
@media (max-width: 960px) {
  .fish .stage .phone-land { width: 92%; left: 4%; }
  .hammer .stage .phone { width: 40%; } .hammer .stage .phone:nth-child(1) { left: 6%; } .hammer .stage .phone:nth-child(2) { left: 50%; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; padding: 32px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); --mx: 50%; --my: 0%; }
.svc::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(159, 176, 255, .7), transparent); opacity: 0; transition: opacity .4s; }
.svc:hover { transform: translateY(-4px); }
.svc:hover::after { opacity: 1; }
.svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(159, 176, 255, .09), transparent 50%); }
.svc:hover { border-color: var(--line-2); }
.svc:hover::before { opacity: 1; }
.svc .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2); margin-bottom: 28px; }
.svc .ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc .tags span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.svc .refs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.svc .refs a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.svc .refs a:hover { color: var(--text); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 36px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .04)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(159, 176, 255, .8), rgba(201, 166, 255, .35) 60%, transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.step.in::after { transform: scaleX(1); }
.no-js .step::after { transform: none; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Terms & FAQ ---------- */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
.terms div { padding: 28px 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.terms dt { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.terms dd { margin: 0; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 700px) { .terms { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 300; font-size: 22px; color: var(--text-2); transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: rgba(255, 255, 255, .08); }
.faq .ans { padding: 0 56px 28px 0; color: var(--text-2); max-width: 48em; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; border: 1px solid var(--line); background: var(--surface); padding: clamp(56px, 9vw, 128px) clamp(28px, 6vw, 96px); text-align: center; }
.cta .glow { z-index: -1; }
.cta h2 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.06; letter-spacing: -.035em; }
.cta p { color: var(--text-2); margin: 26px auto 40px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 72px 0 0; border-top: 1px solid var(--line); margin-top: clamp(96px, 12vw, 160px); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot li a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.foot li a:hover { color: var(--text); }
.foot .about p { color: var(--muted); font-size: 15px; max-width: 24em; margin-top: 16px; }
.wordmark { margin-top: 64px; font-size: clamp(52px, 12.6vw, 184px); font-weight: 700; letter-spacing: -.06em; line-height: .78; white-space: nowrap; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 32px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- Page head ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: clamp(150px, 18vw, 230px) 0 clamp(56px, 7vw, 96px); }
.page-head .display { margin-top: 22px; font-size: clamp(44px, 7vw, 100px); }
.page-head .lede { margin-top: 28px; }

/* ---------- Case study ---------- */
.case-hero { position: relative; overflow: hidden; isolation: isolate; padding: 140px 0 0; }
.case-hero .bg { position: absolute; inset: 0; z-index: -2; }
.case-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.case-hero .bg.glowy { inset: -10% -10% 30%; filter: blur(30px); }
.case-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 10, .5) 0%, rgba(7, 7, 10, .35) 40%, var(--bg) 96%); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a:hover { color: var(--text); }
.case-title { display: flex; align-items: center; gap: 24px; margin: 28px 0 0; }
.case-title img { width: clamp(72px, 9vw, 112px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.case-title h1 { font-size: clamp(42px, 7vw, 104px); letter-spacing: -.04em; line-height: 1; }
.case-hero .lede { margin-top: 28px; }
.case-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-off { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 15.5px; }
.btn svg.apple, .store-off svg { width: 18px; height: 18px; }
.btn:hover svg.apple { transform: none; }
.showcase { position: relative; height: clamp(420px, 50vw, 680px); margin-top: clamp(48px, 6vw, 80px); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.showcase.land { height: clamp(300px, 40vw, 560px); -webkit-mask-image: none; mask-image: none; }
.showcase .phone { position: absolute; width: clamp(150px, 21%, 270px); transition: transform .8s var(--ease); }
.showcase.trio-x .phone:nth-child(1) { left: 14%; top: 18%; }
.showcase.trio-x .phone:nth-child(2) { left: 50%; transform: translateX(-50%); top: 0; z-index: 2; }
.showcase.trio-x .phone:nth-child(3) { right: 14%; top: 18%; }
.showcase.land .phone-land { position: absolute; width: min(860px, 92%); left: 50%; transform: translateX(-50%); top: 0; }
.showcase .char { z-index: 3; }
.showcase.trio-x .c1 { width: clamp(110px, 17%, 220px); left: 2%; bottom: 14%; }
.showcase.trio-x .c2 { width: clamp(100px, 15%, 190px); right: 3%; top: 6%; }
.showcase.trio-x .c3 { width: clamp(80px, 11%, 140px); left: 7%; top: 0; }
.showcase.land .c1 { width: clamp(120px, 20%, 250px); right: 3%; top: -8%; }
.showcase.land .c2 { width: clamp(100px, 16%, 200px); left: 3%; bottom: 10%; }
.showcase.land .c3 { width: clamp(90px, 13%, 170px); right: 6%; bottom: 4%; }
@media (max-width: 700px) {
  .showcase .phone { width: 38%; }
  .showcase.trio-x .phone:nth-child(1) { left: -6%; } .showcase.trio-x .phone:nth-child(3) { right: -6%; }
}

.facts { margin-top: clamp(16px, 2vw, 32px) !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 22px; background: rgba(14, 14, 18, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: relative; z-index: 4; }
.facts div { padding: 22px 26px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.case-sec { display: grid; grid-template-columns: 1fr 1.9fr; gap: 24px 72px; padding-top: clamp(80px, 10vw, 140px); }
.case-sec > h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.case-sec .big { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.7; color: var(--text); letter-spacing: -.005em; }
@media (max-width: 860px) { .case-sec { grid-template-columns: 1fr; } }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.points li { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.points li::before { counter-increment: p; content: counter(p, decimal-leading-zero); display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.points h3 { font-size: 19px; margin-bottom: 10px; }
.points p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.8; }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

.gallery { margin-top: clamp(80px, 10vw, 140px); border-radius: 32px; border: 1px solid var(--line); padding: clamp(32px, 5vw, 72px); position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.gallery.land { grid-template-columns: repeat(3, 1fr); }
.gallery .tint { z-index: -1; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); padding: 24px; border-radius: 24px; } .gallery.land { grid-template-columns: 1fr; } }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.stack-group + .stack-group { margin-top: 26px; }
.stack-group h4 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }

.next { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(96px, 12vw, 160px); padding: clamp(32px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.next:hover { border-color: var(--line-2); }
.next small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.next strong { font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1.05; }
.next img { width: clamp(64px, 8vw, 96px); border-radius: 24%; transition: transform .6s var(--ease); }
.next:hover img { transform: rotate(-6deg) scale(1.06); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.side { display: grid; gap: 14px; }
.side .item { padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.side small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.side strong { font-size: 17px; font-weight: 500; word-break: break-all; }
.side a strong { border-bottom: 1px solid var(--line-2); }
.form { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: 14.5px; font-weight: 500; color: var(--text-2); margin-bottom: 10px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b6b6c0' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field select option { background: #15151b; color: var(--text); }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #5d5d68; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(159, 176, 255, .7); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 4px rgba(159, 176, 255, .14); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.checks span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: all .2s; }
.checks span:hover { border-color: rgba(255, 255, 255, .35); color: var(--text); }
.checks input:checked + span { background: #fff; border-color: #fff; color: #0a0a0d; }
.checks input:focus-visible + span { outline: 2px solid #9fb0ff; outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.form-done { display: none; margin-top: 12px; font-size: 15px; color: #7ee2a8; text-align: center; }
.form-done.show { display: block; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 40px; }
.nf .lede { margin: 22px auto 36px; }

/* ---------- Flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: f; }
.flow li { position: relative; padding: 24px 22px 26px; border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.7; color: var(--text); }
.flow li::before { counter-increment: f; content: counter(f, decimal-leading-zero); display: block; margin-bottom: 26px; font-size: 13px; font-weight: 600; letter-spacing: .04em; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 50%; right: -12px; width: 10px; height: 10px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow li:nth-child(2)::after { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .flow li::after { display: none; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 36px; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(159, 176, 255, .7), rgba(201, 166, 255, .4) 70%, transparent); }
.m { position: relative; display: block; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.m:hover { border-color: var(--line-2); transform: translateY(-4px); }
.m::before { content: ""; position: absolute; top: -36px; left: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid #b3a6ff; box-shadow: 0 0 0 5px rgba(159, 176, 255, .12); }
.m time { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 20px; }
.m-app { display: flex; align-items: center; gap: 12px; }
.m-app img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.m-app strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.m-app em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.m p { margin: 16px 0 0; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(159, 176, 255, .7), transparent); }
  .m::before { top: 28px; left: -29px; }
}

/* ---------- Tech ---------- */
.tech { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.t { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 1 / .92; padding: 16px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-align: center; transition: color .3s, border-color .3s, background .3s; }
.t svg { width: 30px; height: 30px; }
.t span { font-size: 13px; line-height: 1.35; max-width: 100%; overflow-wrap: anywhere; }
.t:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
@media (max-width: 1000px) { .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t .mono { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1.6px solid currentColor; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 480px) { .tech { gap: 8px; } .t { gap: 10px; border-radius: 14px; padding: 12px 4px; } .t svg, .t .mono { width: 24px; height: 24px; } .t .mono { font-size: 11px; } .t span { font-size: 11.5px; } }

/* ---------- Phones (kept last so it wins over component rules) ---------- */
@media (max-width: 960px) {
  .hero .wrap { order: 1; }
  .hero .wall { order: 2; }
  .card { min-height: 0; }
  .card .visual { flex: none; height: clamp(260px, 62vw, 420px); min-height: 0; margin-top: 12px; }
  .trio .phone { width: 31%; } .trio .phone:nth-child(1) { left: 3%; bottom: -22%; } .trio .phone:nth-child(2) { left: 34.5%; bottom: -8%; } .trio .phone:nth-child(3) { right: 3%; bottom: -22%; }
  .duo .phone { width: 44%; } .duo .phone:nth-child(1) { left: 5%; bottom: -34%; } .duo .phone:nth-child(2) { right: 5%; bottom: -50%; }
  .fish .art::after { background: linear-gradient(180deg, rgba(4, 18, 40, .97) 0%, rgba(4, 18, 40, .85) 40%, rgba(4, 18, 40, .25) 75%, rgba(4, 18, 40, .5) 100%); }
  .hammer .art::after { background: linear-gradient(180deg, rgba(14, 8, 26, .97) 0%, rgba(14, 8, 26, .85) 40%, rgba(14, 8, 26, .3) 75%, rgba(14, 8, 26, .6) 100%); }
  .feature .copy { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero .display { font-size: 11vw; }
  .hero-apps { margin-top: 40px; }
}