/* ==========================================================================
   Conaksoft — public site
   Calm neutral canvas, pastel aurora accents, precise motion.
   ========================================================================== */

:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #0a0a0b;
  --ink-2: #2b2b31;
  --muted: #6b6b76;
  --faint: #a1a1aa;
  --line: rgba(10, 10, 20, 0.07);
  --line-2: rgba(10, 10, 20, 0.12);

  --lavender: #e7e1ff;
  --lavender-2: #c9bcff;
  --pink: #ffe1ee;
  --pink-2: #ffb8d6;
  --peach: #ffeedd;
  --peach-2: #ffcfa3;
  --sky: #e0f0ff;
  --sky-2: #a9d4ff;
  --mint: #ddf7ea;
  --mint-2: #9fe6c3;
  --violet: #6d5efc;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05);
  --shadow: 0 1px 1px rgba(16, 16, 24, 0.03), 0 2px 4px rgba(16, 16, 24, 0.03), 0 12px 24px -6px rgba(16, 16, 24, 0.07);
  --shadow-lg: 0 1px 1px rgba(16, 16, 24, 0.03), 0 8px 16px -4px rgba(16, 16, 24, 0.06), 0 32px 64px -16px rgba(16, 16, 24, 0.16);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--lavender-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease-out); }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
.display {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; margin: 0; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); margin: 0; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.14); }
.gradient-text {
  background: linear-gradient(100deg, #6d5efc 0%, #d062b9 45%, #ff8a5b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.btn:hover .ic { transform: translateX(2px); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 16px -6px rgba(10, 10, 11, 0.5);
}
.btn-dark:hover { background: #26262b; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-store { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.btn-store:hover { background: #26262b; }
.btn-store:hover .ic { transform: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- reveal (motion) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 12px; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1100px; height: 58px; margin: 0 auto; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 1px var(--line), 0 8px 32px -12px rgba(16, 16, 24, 0.14);
  transition: background-color .3s, box-shadow .3s;
}
.is-scrolled .nav { background: rgba(255, 255, 255, 0.86); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.035em; font-size: 18px; }
.brand-name { text-transform: lowercase; line-height: 1; padding-bottom: 1px; }
.brand-mark { border-radius: 8px; }
.nav-links { position: relative; display: flex; align-items: center; margin: 0 auto; }
.nav-link { position: relative; z-index: 1; padding: 8px 14px; font-size: 14.5px; color: var(--muted); border-radius: 999px; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.nav-hover {
  position: absolute; left: 0; top: 50%; height: 34px; width: 0; margin-top: -17px;
  border-radius: 999px; background: rgba(10, 10, 20, 0.055); opacity: 0;
  transition: transform .3s var(--ease-out), width .3s var(--ease-out), opacity .2s;
}
.nav-menu { display: none; }

@media (max-width: 820px) {
  .nav { padding: 0 6px 0 14px; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; padding: 0 13px;
  }
  .nav-menu span { display: block; height: 1.75px; background: var(--ink); border-radius: 2px; }
}

/* ---------- mobile sheet (drawer) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, 0.32); opacity: 0; transition: opacity .4s var(--ease-drawer); }
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 61;
  background: var(--surface); border-radius: 28px; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  transform: translateY(110%); transition: transform .5s var(--ease-drawer);
  touch-action: none;
}
.sheet.is-open { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging { transition: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: #e4e4e7; margin: 0 auto 14px; }
.sheet-links { display: grid; margin-bottom: 18px; }
.sheet-links a { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sheet-links a:last-child { border: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section + .section:not(.dark) { padding-top: clamp(24px, 3vw, 40px); }
.dark + .section { padding-top: clamp(72px, 9vw, 120px); }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- aurora background ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9;
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -8%; top: -10%; background: var(--lavender); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: -6%; top: -4%; background: var(--pink); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; left: 34%; top: 22%; background: var(--peach); animation-delay: -12s; opacity: .75; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 8%; top: 46%; background: var(--sky); animation-delay: -3s; opacity: .7; }
.aurora::after {
  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;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(132px, 18vw, 184px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; margin-bottom: 28px;
  background: rgba(255,255,255,.7); border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.pill-badge:hover { box-shadow: inset 0 0 0 1px rgba(10,10,20,.2), var(--shadow); }
.pill-badge b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 12px; }
.pill-badge .ic { width: 14px; height: 14px; color: var(--muted); }
.hero .display { max-width: 15ch; }
.hero .lead { margin: 26px auto 0; text-align: center; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 30px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 15px; height: 15px; color: var(--ink-2); }

/* showcase stage — a calm product "window", inspired by modern dashboards */
.stage { position: relative; z-index: 1; margin: clamp(56px, 8vw, 88px) auto 0; max-width: 1080px; perspective: 1800px; }
.stage-window {
  position: relative; border-radius: 26px; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1px var(--line), var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: rotateX(var(--tilt, 8deg)) translateZ(0); transform-origin: 50% 0;
  transition: transform .2s linear;
}
.win-bar { display: flex; align-items: center; gap: 12px; padding: 6px 8px 12px; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }
.win-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 3px; background: rgba(10,10,20,.045); border-radius: 999px; font-size: 12.5px; }
.win-tabs span { padding: 5px 12px; border-radius: 999px; color: var(--muted); }
.win-tabs span.on { background: var(--ink); color: #fff; }
.win-user { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender-2), var(--pink-2)); }
.win-body { display: grid; grid-template-columns: 52px 1.15fr 1fr; gap: 10px; }
.win-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; background: rgba(255,255,255,.7); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.win-rail i { width: 32px; height: 32px; border-radius: 50%; background: rgba(10,10,20,.05); display: grid; place-items: center; }
.win-rail i:first-child { background: var(--ink); }
.win-rail i:first-child::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.win-col { display: grid; gap: 10px; align-content: start; }
.tile { background: rgba(255,255,255,.88); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.tile-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.tile-h small { font: 400 11px var(--mono); color: var(--faint); }
.tile-app { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile-app .shot { position: relative; aspect-ratio: 16 / 8.2; border-radius: 12px; overflow: hidden; background: var(--sky); }
.tile-app .shot > img { width: 100%; height: 100%; object-fit: cover; }
.tile-app .comp-shots img { border-radius: 10px; border-width: 2px; }
.tile-chart svg { width: 100%; height: auto; margin-top: 8px; }
.chart-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.pipe { display: grid; gap: 8px; margin-top: 10px; }
.pipe-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; font-size: 13px; }
.pipe-row:nth-child(1) { background: var(--lavender); }
.pipe-row:nth-child(2) { background: var(--sky); }
.pipe-row:nth-child(3) { background: var(--mint); }
.pipe-row .ic-b { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pipe-row .ic-b .ic { width: 15px; height: 15px; }
.pipe-row small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.pipe-row b { font-weight: 600; line-height: 1.3; }
.state { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 5px; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.tile-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tile-icons span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; }
.tile-icons span .ic { width: 20px; height: 20px; }
.float-toast {
  position: absolute; z-index: 3; right: -18px; bottom: 150px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  font-size: 13.5px; text-align: left; animation: floaty 6s var(--ease-in-out) infinite alternate;
}
.float-toast .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: #15803d; display: grid; place-items: center; }
.float-toast .ok .ic { width: 16px; height: 16px; }
.float-toast small { display: block; color: var(--muted); font-size: 12px; }
.float-app {
  position: absolute; z-index: 3; left: -22px; top: 46%;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; text-align: left;
  background: rgba(255,255,255,.92); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: floaty 7s -2s var(--ease-in-out) infinite alternate;
}
.float-app img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.float-app b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.float-app small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.float-app .stars { color: #f5a524; letter-spacing: 1px; font-size: 11px; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.stage-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 4; background: linear-gradient(to bottom, transparent, var(--bg) 92%); pointer-events: none; }

@media (max-width: 900px) {
  .win-body { grid-template-columns: 1fr; }
  .win-rail, .win-col.hide-sm { display: none; }
  .float-app { left: 8px; top: auto; bottom: 86px; }
  .float-toast { right: 6px; bottom: 20px; }
  .win-tabs span:nth-child(n+3) { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: #a1a1aa; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: #d4d4d8; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stack-label { text-align: center; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 22px; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-card {
  --tint: var(--lavender);
  position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.work-card:nth-child(4n+2) { --tint: var(--sky); }
.work-card:nth-child(4n+3) { --tint: var(--peach); }
.work-card:nth-child(4n+4) { --tint: var(--mint); }
.work-card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); transform: translateY(-3px); }
.work-media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--tint); }
.work-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.work-card:hover .work-media > img { transform: scale(1.035); }
.work-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; padding: 20px 14px 14px; }
.work-tags { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.tag.tint { background: var(--tint, var(--lavender)); }
.work-body h3 { margin-top: 8px; }
.work-body p { margin: 0; color: var(--muted); font-size: 15px; grid-column: 1; }
.arrow-btn {
  grid-row: 2 / span 2; grid-column: 2; align-self: center;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); transition: background-color .3s, color .3s, transform .4s var(--ease-out);
  transform: rotate(-45deg);
}
.work-card:hover .arrow-btn { background: var(--ink); color: #fff; transform: rotate(0); }
.work-card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.work-empty { padding: 48px; border-radius: var(--r-xl); text-align: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); }

@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* filter pills with sliding indicator */
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.segmented button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); transition: color .25s; }
.segmented button[aria-pressed="true"] { color: #fff; }
.segmented .seg-ind { position: absolute; top: 4px; left: 0; height: 36px; border-radius: 999px; background: var(--ink); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.segmented button small { opacity: .6; margin-left: 4px; font-family: var(--mono); font-size: 11px; }
.work-card.is-hidden { display: none; }
.work-card.is-entering { animation: cardIn .5s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(4px); } }

/* ---------- bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; grid-column: span 2; min-height: 280px;
  padding: 26px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: box-shadow .35s var(--ease-out);
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 188, 255, .28), transparent 45%);
}
.bento-card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.bento-card:hover::before { opacity: 1; }
.bento-card.wide { grid-column: span 3; }
.bento-card.xl { grid-column: span 4; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.chip { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender); color: var(--ink); }
.chip .ic { width: 20px; height: 20px; }
.chip.sky { background: var(--sky); } .chip.peach { background: var(--peach); } .chip.mint { background: var(--mint); } .chip.pink { background: var(--pink); }
.bento-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.bento-viz { position: relative; z-index: 1; }
.mini-bars { display: flex; align-items: end; gap: 6px; height: 64px; }
.mini-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--lavender-2), var(--lavender)); height: var(--h); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.bento-card:hover .mini-bars i { transform: scaleY(1.08); }
.mini-code { font: 12.5px/1.7 var(--mono); color: var(--muted); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; white-space: pre; overflow: hidden; }
.mini-code b { color: var(--violet); font-weight: 500; } .mini-code em { color: #d0459a; font-style: normal; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,10,20,.06); transition: transform .4s var(--ease-out); }
.bento-card:hover .swatches i { transform: translateY(-4px); }
.bento-card:hover .swatches i:nth-child(2) { transition-delay: 40ms; } .bento-card:hover .swatches i:nth-child(3) { transition-delay: 80ms; } .bento-card:hover .swatches i:nth-child(4) { transition-delay: 120ms; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-game { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, var(--peach), #fff6ee); }
.mini-game .stars3 { display: flex; gap: 4px; }
.mini-game .stars3 .ic { width: 26px; height: 26px; color: #f5a524; fill: #f5a524; transition: transform .5s var(--ease-out); }
.mini-game .stars3 .ic:nth-child(2) { transform: translateY(-6px) scale(1.15); }
.bento-card:hover .mini-game .stars3 .ic { transform: translateY(-3px) rotate(-8deg); }
.bento-card:hover .mini-game .stars3 .ic:nth-child(2) { transform: translateY(-9px) scale(1.2); }
.mini-game span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: #fff; }
.mini-web { border-radius: 14px; background: var(--surface-2); padding: 10px; display: grid; gap: 7px; }
.mini-web .bar { display: flex; gap: 5px; align-items: center; }
.mini-web .bar i { width: 7px; height: 7px; border-radius: 50%; background: #dcdce0; }
.mini-web .bar em { flex: 1; height: 14px; border-radius: 99px; background: #fff; margin-left: 6px; }
.mini-web .row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px; }
.mini-web .row b { height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--sky-2), var(--sky)); }
.mini-web .row b + b { background: #fff; }
.mini-web .lines { display: grid; gap: 5px; }
.mini-web .lines i { height: 6px; border-radius: 9px; background: #e4e4e7; width: var(--w); transition: width .6s var(--ease-out); }
.bento-card:hover .mini-web .lines i { width: calc(var(--w) + 8%); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card, .bento-card.wide, .bento-card.xl { grid-column: span 1; }
  .bento-card.xl { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card.wide, .bento-card.xl { grid-column: auto; min-height: 0; }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.step-n { font: 500 12px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.step-n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.step ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.step li { display: flex; gap: 8px; align-items: center; }
.step li .ic { width: 14px; height: 14px; color: var(--violet); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- dark band ---------- */
.dark { background: #0a0a0b; color: #fafafa; border-radius: clamp(28px, 4vw, 44px); margin: 0 clamp(8px, 1.5vw, 16px); overflow: hidden; position: relative; }
.dark .eyebrow, .dark .lead, .dark .muted { color: #a1a1aa; }
.dark .eyebrow::before { background: var(--lavender-2); box-shadow: 0 0 0 4px rgba(201,188,255,.16); }
.dark-glow { position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(ellipse at center, rgba(109,94,252,.35), transparent 60%); filter: blur(40px); pointer-events: none; }
.principles { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--r-lg); overflow: hidden; }
.principle { background: #0f0f11; padding: 28px 24px 32px; }
.principle .ic { width: 22px; height: 22px; color: var(--lavender-2); margin-bottom: 36px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.principle p { margin: 0; color: #a1a1aa; font-size: 14.5px; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .btn { margin-top: 28px; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq-item[open] { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 500; font-size: 16.5px; letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: background-color .3s, transform .4s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--ink); color: #fff; transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { margin: 0; padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 40px); padding: clamp(48px, 8vw, 96px) var(--gutter); text-align: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.cta-card .aurora i { filter: blur(60px); }
.cta-card > *:not(.aurora) { position: relative; z-index: 1; }
.cta-card .h2 { max-width: 16ch; margin: 0 auto; }
.cta-card .lead { margin: 18px auto 0; }
.cta-card .hero-cta { margin-top: 30px; }

/* ---------- page header (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(136px, 16vw, 176px) 0 clamp(48px, 7vw, 80px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 20px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--faint); }

/* ---------- app detail ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.app-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.app-visual { border-radius: var(--r-xl); padding: 10px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1px var(--line), var(--shadow-lg); }
.app-visual > img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--lavender); }
.app-content { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; margin: 1.8em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 19px; letter-spacing: -0.02em; margin: 1.6em 0 .4em; color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.facts { position: sticky; top: 110px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 8px 20px; }
.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 900px) { .app-hero, .app-content { grid-template-columns: 1fr; } .facts { position: static; } }

/* ---------- services page ---------- */
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc:first-child { border-top: 0; }
.svc-title { display: flex; gap: 16px; align-items: start; }
.svc-title .h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.035em; }
.svc-title p { margin: 10px 0 0; color: var(--muted); }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-item { padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.svc-item b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.svc-item b .ic { width: 15px; height: 15px; color: var(--violet); }
.svc-item span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-aside { display: grid; gap: 14px; }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line); }
.contact-line small { display: block; color: var(--muted); font-size: 13px; }
.contact-line b { font-weight: 500; }
.form-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field > span i { font-style: normal; color: var(--faint); font-weight: 400; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 0;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px transparent;
  font-size: 15.5px; transition: box-shadow .2s, background-color .2s;
}
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: var(--faint); }
.input:hover { background: #f0f0f3; }
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(109, 94, 252, .14); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s, transform .16s var(--ease-out); user-select: none; }
.choice span:active { transform: scale(.97); }
.choice input:checked + span { background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .ic { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.alert.ok { background: var(--mint); color: #14532d; }
.alert.err { background: #ffe4e6; color: #9f1239; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; letter-spacing: -0.025em; margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }

/* ---------- 404 ---------- */
.nf { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.nf .num { font-size: clamp(96px, 18vw, 200px); line-height: 1; letter-spacing: -0.06em; font-weight: 600; }

/* ---------- footer ---------- */
.footer { padding: clamp(64px, 9vw, 112px) 0 0; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-tag { color: var(--muted); max-width: 36ch; margin: 18px 0 20px; }
.footer-mail { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.footer-mail:hover { border-color: var(--ink); }
.footer-mail .ic { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.footer-mail:hover .ic { transform: translate(2px, -2px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-h { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; font-size: 13.5px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--ink); }
.footer-word {
  margin: 0 0 -0.22em; text-align: center; font-weight: 600; letter-spacing: -0.06em; line-height: 1; text-transform: lowercase;
  font-size: clamp(64px, 17vw, 236px); white-space: nowrap;
  background: linear-gradient(180deg, rgba(10,10,20,.09), rgba(10,10,20,0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- toaster (sonner-like) ---------- */
.toaster { position: fixed; z-index: 80; right: 20px; bottom: 20px; margin: 0; padding: 0; list-style: none; width: min(360px, calc(100vw - 32px)); }
.toast {
  position: absolute; right: 0; bottom: 0; width: 100%;
  display: flex; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); font-size: 14px;
  transform: translateY(calc(var(--y, 0) * -1)) scale(var(--s, 1)); opacity: var(--o, 1);
  transition: transform .5s var(--ease-out), opacity .4s;
  animation: toastIn .5s var(--ease-out);
}
.toast b { display: block; font-weight: 600; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--muted); }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #15803d; flex: none; margin-top: 1px; }
.toast.err .t-ic { background: #ffe4e6; color: #be123c; }
.toast .t-ic .ic { width: 13px; height: 13px; }
.toast.is-leaving { opacity: 0; transform: translateY(calc(var(--y, 0) * -1 + 12px)) scale(.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(100%) scale(.96); } }
@media (max-width: 560px) { .toaster { right: 16px; bottom: 16px; } }

/* maintenance */
.maint { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 24px; }
.maint > div:not(.aurora) { position: relative; z-index: 1; }

/* ---------- app composition: icon + fanned screenshots on the app's accent colour ---------- */
.work-media, .app-visual-comp { --accent: #c9bcff; }
.comp {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in oklab, var(--accent) 38%, white), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in oklab, var(--accent) 22%, white), transparent 70%),
    color-mix(in oklab, var(--accent) 12%, white);
}
.comp-icon {
  position: absolute; left: 8%; top: 50%; width: 24%; aspect-ratio: 1; height: auto; border-radius: 22%;
  transform: translateY(-50%); object-fit: cover;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -12px color-mix(in oklab, var(--accent) 60%, black), 0 4px 10px rgba(0,0,0,.08);
  transition: transform .7s var(--ease-out);
}
.comp-shots { position: absolute; right: 4%; top: 12%; width: 56%; height: 120%; }
.comp-shots img {
  position: absolute; top: 0; width: 38%; aspect-ratio: 9 / 16; height: auto; object-fit: cover;
  border-radius: 14px; border: 3px solid #0b0b0d; background: color-mix(in oklab, var(--accent) 30%, white);
  box-shadow: 0 24px 48px -16px rgba(10,10,20,.35);
  transition: transform .7s var(--ease-out);
}
.comp-shots img:nth-child(1) { left: 31%; z-index: 3; }
.comp-shots img:nth-child(2) { left: 0; top: 9%; z-index: 2; transform: rotate(-7deg); }
.comp-shots img:nth-child(3) { left: 62%; top: 9%; z-index: 1; transform: rotate(7deg); }
.work-card:hover .comp-icon { transform: translateY(-50%) scale(1.04) rotate(-3deg); }
.work-card:hover .comp-shots img:nth-child(1) { transform: translateY(-4%); }
.work-card:hover .comp-shots img:nth-child(2) { transform: translate(-8%, -1%) rotate(-10deg); }
.work-card:hover .comp-shots img:nth-child(3) { transform: translate(8%, -1%) rotate(10deg); }
.app-visual .work-media { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; }
.app-visual .comp-shots img { border-radius: 18px; border-width: 4px; }

.app-title { display: flex; align-items: center; gap: 18px; }
.app-title img { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
@media (max-width: 560px) { .app-title { flex-direction: column; align-items: flex-start; } .app-title img { width: 60px; height: 60px; } }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: var(--surface-2); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .gallery img { scroll-snap-align: start; } }
.app-title .h1 { font-size: clamp(36px, 4.4vw, 60px); }

/* web projects: browser window + phone */
.comp-web .browser {
  position: absolute; left: 7%; top: 11%; width: 72%; aspect-ratio: 16 / 10.6; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px rgba(10,10,20,.08), 0 30px 60px -20px rgba(10,10,20,.35);
  transition: transform .7s var(--ease-out);
}
.browser-bar { display: flex; align-items: center; gap: 5px; height: 9%; min-height: 16px; padding: 0 3%; background: #f4f4f6; border-bottom: 1px solid rgba(10,10,20,.06); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dcdce2; flex: none; }
.browser-bar span { margin: 0 auto; padding: 1px 12px; border-radius: 99px; background: #fff; font: 500 clamp(8px, .8vw, 11px)/1.6 var(--mono); color: var(--muted); box-shadow: 0 0 0 1px rgba(10,10,20,.06); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-web .browser img { display: block; width: 100%; height: 91%; object-fit: cover; object-position: top; }
.comp-web .phone {
  position: absolute; right: 6%; top: 30%; width: 19%; aspect-ratio: 9 / 19.5; border-radius: 18px; overflow: hidden;
  border: 4px solid #0b0b0d; background: color-mix(in oklab, var(--accent) 30%, white); box-shadow: 0 30px 50px -16px rgba(10,10,20,.45);
  transition: transform .7s var(--ease-out);
}
.comp-web .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card:hover .comp-web .browser { transform: translateY(-3%); }
.work-card:hover .comp-web .phone { transform: translateY(-6%) rotate(-2deg); }
.tile-app .comp-web .phone { border-width: 2px; border-radius: 10px; }
.gallery.web { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; }
.gallery.web img:first-child { aspect-ratio: 16 / 10; object-position: top; }
.gallery.web img:last-child { aspect-ratio: 9 / 19.5; object-position: top; }
@media (max-width: 640px) { .gallery.web { grid-template-columns: 1fr; overflow: visible; } .gallery.web img:last-child { width: 60%; justify-self: center; } }
