/* ============================================================
   zoltanberki.com — shared base: tokens, glass, store block,
   reveal motion. Each proposal adds its own layout sheet.
   ============================================================ */

@font-face { font-family: Inter; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212; }
@font-face { font-family: Inter; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F,U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F,U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-024F,U+1E00-1EFF; }

:root {
  --bg: #07080c;
  --ink: #f4f5f8;
  --muted: #a3a9b7;
  --faint: #6d7383;
  --line: rgba(255, 255, 255, .10);
  --glass-1: rgba(255, 255, 255, .085);
  --glass-2: rgba(255, 255, 255, .025);
  --spec: rgba(255, 255, 255, .22);
  --accent: #8ab4ff;
  --accent-2: #c79bff;
  --gold: #e9c46a;
  --li: #0A66C2;
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(138, 180, 255, .35); }

/* ---------- liquid glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--spec),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    0 30px 80px -30px rgba(0, 0, 0, .8);
}
/* specular sheen that follows the pointer (site.js sets --mx/--my) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%),
              rgba(255, 255, 255, .10), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glass:hover::after { opacity: 1; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
}
.muted { color: var(--muted); }
.eyebrow--gold { color: var(--gold); margin-bottom: 2px; }

/* ---------- pills ---------- */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .35s var(--spring), background .25s, border-color .25s;
}
.pill:hover { transform: translateY(-2px) scale(1.03); background: rgba(255, 255, 255, .12); }
.pill .ico { width: 16px; height: 16px; }
.pill--li { background: linear-gradient(180deg, #1877d4, var(--li)); border-color: rgba(255, 255, 255, .22); }
.pill--li:hover { background: linear-gradient(180deg, #2386e6, #0b71d6); }

/* ---------- featured card ---------- */
.feature { display: flex; flex-direction: column; gap: 16px; padding: 28px; overflow: hidden; }
.feature__top { display: flex; align-items: center; gap: 20px; }
.feature__art {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(233, 196, 106, .28), rgba(233, 196, 106, 0) 70%),
              linear-gradient(160deg, #1a1c24, #0d0e13);
  border: 1px solid rgba(233, 196, 106, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 50px -20px rgba(233, 196, 106, .45);
}
.feature__art img { width: 72px; height: 72px; animation: float 6s ease-in-out infinite; }
.feature__title { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.feature__tagline { font-size: 17px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.feature__desc { color: var(--muted); font-size: 15px; max-width: 62ch; }
.feature .stores { margin-top: auto; }
.feature__site { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--faint); }
.feature__site:hover { color: var(--ink); }
@keyframes float { 50% { transform: translateY(-5px) rotate(-1.5deg); } }

/* ---------- adaptive store block ----------
   One block of uniform size. Wide: three equal-height columns, the vertical
   iPhone | Android switch, the store button panel, and the QR code. Narrow
   (container < 460px): the same pieces stacked as rows of one width, the
   switch horizontal on top. Exactly one platform is ever selected (radio
   inputs; :has() shows only the checked platform's store). Without :has()
   support both stores show and the switch hides.
   html[data-platform=ios|android]: the switch hides, the platform is
     preselected, and the fallback button brings the switch back.
   On that phone the QR codes hide too — you are already holding it. */
.stores { container-type: inline-size; width: 100%; max-width: 560px; --qr: 120px; }
.stores__in { display: grid; grid-template-columns: 132px 1fr; gap: 10px; align-items: stretch; }
.panel-cell { border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }

.seg { position: relative; display: grid; grid-template-rows: 1fr 1fr; padding: 5px; min-height: var(--qr);
  border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.seg::before { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: calc(50% - 5px); border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(228, 231, 238, .92));
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7), inset 0 1px 0 #fff; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.seg:has(input[value="android"]:checked)::before { transform: translateY(100%); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 13px;
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .6); cursor: pointer; user-select: none; transition: color .3s; white-space: nowrap; }
.seg label:hover { color: #fff; }
.seg input:checked + label { color: #0b0d12; cursor: default; }
.seg input:focus-visible + label { outline: 2px solid #8ab4ff; outline-offset: -2px; }
.seg label .ico { width: 16px; height: 16px; flex: 0 0 auto; }

.store { display: none; grid-template-columns: minmax(0, 1fr) var(--qr); gap: 10px; animation: store-in .4s cubic-bezier(.2, .8, .2, 1); }
.stores:has(input[value="ios"]:checked) [data-store="ios"],
.stores:has(input[value="android"]:checked) [data-store="android"] { display: grid; }
@supports not selector(:has(*)) { .store { display: grid; } .seg { display: none; } .stores__in { grid-template-columns: 1fr; } }
@keyframes store-in { from { opacity: 0; transform: translateY(4px); } }

.store__main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px; text-align: center; }
.store__btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 15px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
a.store__btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 30px -10px rgba(138, 180, 255, .5); }
.store__btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.store__btn small { font-size: 11px; font-weight: 400; letter-spacing: .01em; opacity: .85; }
.store__logo { width: 26px; height: 26px; flex: 0 0 auto; }
.store__btn.is-soon { background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .62); border-style: dashed; cursor: default; }
.store__note { margin: 0; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .45); }

.store__qr { margin: 0; width: var(--qr); height: var(--qr); padding: 7px; border-radius: 18px; background: #fff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.store__qr svg, .store__qr img { display: block; width: 100%; height: 100%; }
.store__qr.is-soon { display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .22); box-shadow: none; color: rgba(255, 255, 255, .35); font-size: 11px; text-align: center; }
.store__qr.is-soon .store__logo { width: 30px; height: 30px; opacity: .55; }

.store__fallback { display: none; margin: 10px 0 0; padding: 2px 0; background: none; border: 0; color: rgba(255, 255, 255, .62);
  font: inherit; font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.store__fallback:hover { color: #fff; }

/* narrow: rows of one width, the switch horizontal on top */
@container (max-width: 460px) {
  .stores__in { grid-template-columns: 1fr; }
  .seg { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: 0; height: 48px; }
  .seg::before { right: auto; bottom: 5px; height: auto; width: calc(50% - 5px); }
  .seg:has(input[value="android"]:checked)::before { transform: translateX(100%); }
  .seg label { justify-content: center; }
  .stores { --qr: 104px; }
  .store__main { padding: 12px 10px; }
  .store__btn { padding: 8px 14px 8px 11px; gap: 8px; }
  .store__btn > span { font-size: 16px; }
  .store__logo { width: 22px; height: 22px; }
}

/* a phone of a certain platform: no QR (you are holding it), no switch until the fallback */
html[data-platform] .store__qr { display: none; }
html[data-platform] .store { grid-template-columns: 1fr; }
html[data-platform="ios"] .stores:not(.show-all) .seg,
html[data-platform="android"] .stores:not(.show-all) .seg { display: none; }
html[data-platform="ios"] .stores:not(.show-all) .stores__in,
html[data-platform="android"] .stores:not(.show-all) .stores__in { grid-template-columns: 1fr; }
html[data-platform="ios"] .stores:not(.show-all) [data-fallback="ios"],
html[data-platform="android"] .stores:not(.show-all) [data-fallback="android"] { display: block; }

/* ---------- experience bits ---------- */
/* Every role reads the same way whatever its title's length: title, then dates, then the blue
   context line — never dates beside a short title but under a long one. */
.job__head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.job__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.job__dates { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job__context { font-size: 14px; color: var(--accent); margin-top: 4px; }
.job__bullets { margin-top: 10px; display: grid; gap: 6px; }
.job__bullets li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.job__bullets li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips li { font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--muted);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 40px 0 56px; color: var(--faint); font-size: 13px; }

/* ---------- reveal on scroll ----------
   Only armed once site.js adds .js, so content is never hidden without JS. */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

@media (max-width: 640px) {
  .feature { padding: 22px; }
  .feature__art { width: 76px; height: 76px; border-radius: 20px; }
  .feature__art img { width: 56px; height: 56px; }
  .feature__title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  @view-transition { navigation: none; }
}
