/* Incision – studio landing page.
   Palette and type follow the Veymica / Veilatch sites so the family reads as one. */
:root {
  --bg: #0b0c12;
  --bg2: #0f1019;
  --panel: #141622;
  --panel2: #1b1e2d;
  --line: #262a3d;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #e9eaf3;
  --muted: #8c91a8;
  --faint: #5d6178;
  --accent: #7c6bff;
  --accent-hi: #a397ff;
  --accent-lo: #3b2fb8;
  --ok: #22c55e;
  --radius: 18px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display); font-weight: 750; font-size: 24px; letter-spacing: -.035em; line-height: 1;
}
.wordmark i { font-style: normal; color: var(--accent-hi); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 18, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang button { padding: 4px 10px; border-radius: 999px; color: var(--muted); line-height: 1.5; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--panel2); color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 16px/1 var(--font); color: #fff; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #8a7bff, #6a58f5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 24px -8px rgba(124, 107, 255, .7);
  transition: transform .15s, box-shadow .15s, filter .15s, background-color .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); }
.btn-ghost:hover { background: var(--panel); filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 120px; isolation: isolate; overflow: hidden; margin-top: -64px; padding-top: 176px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 55% at 80% 25%, rgba(124, 107, 255, .22), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(59, 47, 184, .25), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 65% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 30%, #000 20%, transparent 75%);
}
/* The incision: one precise line of light cut through the hero. */
.cut {
  position: absolute; z-index: -1; pointer-events: none;
  top: -10%; right: 17%; width: 2px; height: 130%;
  transform: rotate(18deg); transform-origin: 50% 0;
  background: linear-gradient(180deg, transparent 0%, #c9c2ff 28%, #8b7cff 55%, transparent 92%);
  box-shadow: 0 0 18px 1px rgba(139, 124, 255, .75), 0 0 90px 14px rgba(124, 107, 255, .28);
  animation: cut 1.5s cubic-bezier(.2, .7, .1, 1) .15s both;
}
@keyframes cut { from { clip-path: inset(0 0 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@media (max-width: 900px) { .cut { right: 6%; opacity: .55; animation: none; } }
@media (max-width: 600px) { .cut { right: -2%; opacity: .3; } }

.eyebrow, .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi);
}
.eyebrow { margin-bottom: 22px; color: var(--muted); letter-spacing: .16em; }
.hero h1 { font-size: clamp(34px, 6.8vw, 84px); font-weight: 750; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 span { display: block; }
.grad {
  background: linear-gradient(100deg, #c9c2ff 0%, #8b7cff 45%, #6a58f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 26px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.sublede { margin-top: 12px; max-width: 520px; font-size: 18px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 44px; font-size: 14px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-hi); }
@media (max-width: 760px) { .hero { padding: 132px 0 80px; } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0 16px; font-size: clamp(32px, 4.2vw, 48px); font-weight: 720; }
.section-head p:last-child { font-size: 18px; color: var(--muted); }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- App cards ---------- */
/* Column count is set by site.js from the number of apps (cols-1 / cols-2 / cols-3). */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.apps.cols-1 { grid-template-columns: minmax(0, 1fr); }
.apps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1040px) { .apps.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .apps, .apps.cols-3 { grid-template-columns: minmax(0, 1fr); } }
.app {
  --pad: 28px;
  position: relative; display: flex; flex-direction: column; padding: var(--pad); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 30, 45, .65), rgba(20, 22, 34, .65));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 0%), rgba(124, 107, 255, .16), transparent 65%);
}
.app:hover { border-color: rgba(124, 107, 255, .55); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 107, 255, .12); }
.app:hover::before { opacity: 1; }
.app > * { position: relative; }

/* Thumbnail mock-up at the top of a card (built by site.js from app.preview). */
.app-thumb {
  height: 236px; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) var(--pad); overflow: hidden;
  border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.35; color: #d9dbea;
  background:
    radial-gradient(70% 90% at 85% 100%, rgba(139, 92, 246, .38), transparent 70%),
    radial-gradient(60% 80% at 0% 0%, rgba(59, 47, 184, .45), transparent 70%),
    linear-gradient(135deg, #171a36, #241a4a);
}
.tw {
  position: absolute; left: 9%; top: 36px; width: 68%; height: 300px; transform: rotate(-4deg); transform-origin: 0 0;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #151726; overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7);
}
.tw-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #20233a; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tw-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.tw-bar i:nth-child(2) { background: #febc2e; } .tw-bar i:nth-child(3) { background: #28c840; }
.tw-bar b { flex: 1; margin-right: 34px; text-align: center; font-size: 12px; font-weight: 600; color: #c9cbe0; }
.tw-body { padding: 14px 14px 0; }
.tw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tw-head strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.tw-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #b9bdd0; white-space: nowrap; }
.tw-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.tw-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-bottom: 6px; border-radius: 8px; background: rgba(255, 255, 255, .045); white-space: nowrap; }
.tw-ico { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: rgba(124, 107, 255, .22); color: var(--accent-hi); }
.tw-ico svg { width: 14px; height: 14px; }
.tp {
  position: absolute; right: 6%; top: 112px; width: 47%; padding: 12px 14px; transform: rotate(5deg);
  border: 1px solid rgba(163, 151, 255, .3); border-radius: 12px;
  background: linear-gradient(160deg, rgba(52, 44, 110, .97), rgba(36, 30, 78, .97));
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.tp strong { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.tp p { margin-top: 3px; font-size: 12px; color: #c4c6dc; }
.tp-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 11.5px; color: #b9bdd0; }
.tp-top img { width: 18px; height: 18px; border-radius: 5px; }
.tp-top b { font-weight: 600; color: #e4e5f2; }
.tp-top span { margin-left: auto; }
.tp-lock { top: 84px; text-align: center; padding: 18px 14px; }
.tp-lockico { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 10px; background: rgba(163, 151, 255, .22); border: 1px solid rgba(163, 151, 255, .35); color: #d6d0ff; }
.tp-lockico svg { width: 18px; height: 18px; }
.tp-lock p { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tp-lock p svg { width: 14px; height: 14px; }
@media (max-width: 460px) { .tw { width: 74%; left: 6%; } .tp { width: 54%; right: 4%; } }

.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 60px; height: 60px; flex: none; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(124, 107, 255, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.app-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.app-cat { font-size: 14.5px; color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto; align-self: flex-start; padding: 5px 11px 5px 9px;
  border: 1px solid rgba(124, 107, 255, .35); border-radius: 999px; background: rgba(124, 107, 255, .1);
  font-size: 12.5px; font-weight: 600; color: var(--accent-hi); white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-status="available"] { color: #4ade80; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .1); }
.app-tagline { margin-top: 26px; font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.app-desc { margin-top: 12px; font-size: 16px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chips li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 12, 18, .5); font-size: 13px; color: #b9bdd0; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 15px; font-weight: 600; }
.app-foot .domain { color: var(--accent-hi); }
.app-foot .platform { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--faint); }
.app-foot svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.app:hover .app-foot svg { transform: translate(3px, -3px); color: var(--accent-hi); }
.app-foot .go { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 460px) {
  .app { --pad: 22px; }
  .app-head { flex-wrap: wrap; }
  /* Status pill moves onto its own line above the icon and name. */
  .app-head::before { content: ""; order: -1; flex-basis: 100%; height: 0; }
  .status { order: -2; margin: 0 0 6px; }
}

/* "What's next" slot – always the last tile, spans the row. */
.app-next {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 22px 28px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 16px;
}
.app-next .plus {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px;
  border: 1px dashed rgba(124, 107, 255, .5); color: var(--accent-hi); font-size: 22px; line-height: 1;
}
.app-next b { color: var(--text); font-weight: 600; }
.app-next a { margin-left: auto; color: var(--accent-hi); font-weight: 600; font-size: 15px; }
.app-next a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .app-next a { margin-left: 0; } }

.apps-fallback { display: grid; gap: 12px; font-size: 18px; font-weight: 600; }
.apps-fallback a { color: var(--accent-hi); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 28px 28px 8px 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.num { font-family: var(--mono); font-size: 13px; color: var(--accent-hi); }
.principles h3 { margin: 18px 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.principles p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 980px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .principles li { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li, .principles li + li { padding: 24px 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--line-soft); }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; align-items: start; }
.founder-id { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.monogram {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px;
  background: linear-gradient(135deg, #8b7cff, #3b2fb8); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 12px 26px -12px rgba(124, 107, 255, .8);
}
.monogram-sm { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
.avatar {
  width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 4px rgba(124, 107, 255, .16), 0 14px 28px -14px rgba(124, 107, 255, .8);
}
.avatar-sm { width: 42px; height: 42px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 3px rgba(124, 107, 255, .14); }
.founder-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.founder-role { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.founder blockquote { margin-top: 16px; }
.founder blockquote p { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.022em; line-height: 1.25; text-wrap: balance; }
.founder-text { margin-top: 22px; max-width: 600px; font-size: 18px; color: var(--muted); }
.founder-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-hi); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); gap: 36px; } .founder-id { max-width: 360px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg2); padding: 64px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; }
.footer .wordmark { font-size: 28px; }
.motto { margin-top: 14px; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.footer-tag { margin-top: 4px; color: var(--muted); }
.footer-h { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { display: grid; gap: 9px; color: var(--muted); }
.footer-col a { transition: color .15s; }
.footer-col ul a:hover { color: var(--text); }
.maker { display: flex; align-items: center; gap: 12px; }
.maker b { display: block; font-weight: 650; font-size: 16px; line-height: 1.3; }
.maker small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.maker:hover b { color: var(--accent-hi); }
.footer-col .maker-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14.5px; }
.maker-links:empty { display: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--faint);
}
.footer-bottom p:first-child { color: var(--muted); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand, .footer-maker { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
.hero .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .1, 1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .06s; }
.hero .wrap > :nth-child(3) { animation-delay: .12s; }
.hero .wrap > :nth-child(4) { animation-delay: .16s; }
.hero .wrap > :nth-child(5) { animation-delay: .22s; }
.hero .wrap > :nth-child(6) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
