/* Heksch — one studio, four worlds.
   Layout: a quiet studio frame (ink ground, one display face) that hands each app its own colour world.
   Dark-first; light values under prefers-color-scheme: light and [data-theme="light"]. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrainsmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --ground: #0d0e13;
  --raise: #16181f;
  --line: #262a35;
  --ink: #eef0f6;
  --mute: #9aa0b1;
  --faint: #5c6273;
  /* app worlds */
  --idi: #2b8cff;      --idi-deep: #081732;
  --mf: #f6d23a;       --mf-deep: #06231a;  --mf-green: #18b26b;
  --pz: #ffd166;       --pz-deep: #1b1033;  --pz-violet: #7b5cff;
  --rs: #fb923c;       --rs-deep: #1a0d05;
  --accent: var(--ink);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 22px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #f3f4f7; --raise: #ffffff; --line: #dfe2ea; --ink: #11131a; --mute: #565c6c; --faint: #8b91a1;
    --idi: #0a6fe8; --mf: #b88a00; --mf-green: #047857; --pz: #9b6a00; --rs: #d9530b;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #f3f4f7; --raise: #ffffff; --line: #dfe2ea; --ink: #11131a; --mute: #565c6c; --faint: #8b91a1;
  --idi: #0a6fe8; --mf: #b88a00; --mf-green: #047857; --pz: #9b6a00; --rs: #d9530b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--mute); max-width: 34ch; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in srgb, var(--ground) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -0.03em; }
.mark img { width: 26px; height: 26px; flex: none; }
.bar nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; font-size: 14px; color: var(--mute); padding: 7px 12px; border-radius: 999px; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); background: var(--raise); }
@media (max-width: 640px) { .bar nav a.opt { display: none; } }

/* ---------- motion ---------- */
@keyframes drift { 0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); } }
@keyframes drift-x { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-18px); } }
@keyframes rise { from { opacity: .25; transform: translateY(46px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
.float { animation: drift 7s ease-in-out infinite; }
.float.d2 { animation-duration: 8.5s; animation-delay: -2s; }
.float.d3 { animation-duration: 9.5s; animation-delay: -4s; }
@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phones ---------- */
.phone { width: 100%; max-width: 270px; border-radius: 38px; padding: 9px; background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.65), 0 12px 30px -12px rgba(0,0,0,.4); }
.phone img { border-radius: 30px; width: 100%; height: auto; }
.phone.sm { max-width: 210px; border-radius: 32px; padding: 7px; }
.phone.sm img { border-radius: 26px; }

/* ---------- buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--ground); transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: var(--raise); color: var(--mute); box-shadow: 0 0 0 1px var(--line) inset; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- app page scaffolding ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); }
.hero .copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero .appicon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 40px -14px rgba(0,0,0,.6); }
.hero .stage { position: relative; min-height: 460px; display: grid; place-items: center; }
.aura { position: absolute; inset: 8% 4%; border-radius: 50%; filter: blur(60px); background: var(--accent); opacity: .5; animation: glow 9s ease-in-out infinite; z-index: 0; }
.hero .stage > *:not(.aura) { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stage { min-height: 0; }
}

.feature { padding-block: clamp(56px, 9vw, 120px); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.flip .text { order: 2; }
.feature .text { display: grid; gap: 18px; min-width: 0; max-width: 520px; }
.feature h2 { font-size: clamp(34px, 4.6vw, 58px); }
.feature p { color: var(--mute); font-size: 18px; }
.feature .art { position: relative; display: flex; justify-content: center; gap: 18px; min-width: 0; }
.feature .art .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink); font-size: 16px; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

.band { background: var(--raise); border-block: 1px solid var(--line); }

.closer { padding-block: clamp(64px, 10vw, 128px); text-align: center; }
.closer .wrap { display: grid; gap: 22px; justify-items: center; }
.closer h2 { font-size: clamp(38px, 6vw, 76px); max-width: 16ch; }
.closer p { color: var(--mute); max-width: 52ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--mute); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .legal { margin-left: auto; }
/* The © is the quiet door to the team page: same colour, no underline, no hover cue. */
.foot .legal a.q { text-decoration: none; color: inherit; cursor: text; }
.foot .legal a.q:focus-visible { outline-color: var(--faint); }
