/* Zetene shared styles: fonts, tokens, floating glass navigation */
@font-face { font-family: Sora; src: url(../fonts/sora-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url(../fonts/sora-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Sora; src: url(../fonts/sora-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* --ink / --onink / --accent / --dark are updated live by the 3D scene on the home page */
  --ink: #eef2f6; --onink: #0b1026; --accent: #5eead4; --dark: 1;
  --teal: #0f766e; --mint: #5eead4; --night: #0b1026; --paper: #f6f6f3;
  --font-display: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- floating glass pill navigation ---------- */
.znav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 24px); }
.znav .pill-bar {
  display: flex; align-items: center; gap: 26px; height: 58px; padding: 0 8px 0 18px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, rgb(18 24 52 / .58) calc(var(--dark) * 100%), rgb(255 255 255 / .58));
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45);
  font: 500 14px var(--font-body);
}
.zbrand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 19px var(--font-display); letter-spacing: -.035em; }
.zbrand svg { width: 26px; height: 26px; flex: none; }
.zlinks { display: flex; align-items: center; gap: 22px; }
.zlinks > a, .zlinks > button { all: unset; cursor: pointer; color: color-mix(in srgb, var(--ink) 72%, transparent); transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.zlinks > a:hover, .zlinks > button:hover, .zlinks > button[aria-expanded="true"] { color: var(--ink); }
.zlinks > a:focus-visible, .zlinks > button:focus-visible, .zbtn:focus-visible, .zbrand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.caret { font-size: 10px; transition: transform .25s; }
[aria-expanded="true"] .caret { transform: rotate(180deg); }
.zbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font: 600 14px var(--font-body);
  background: var(--ink); color: var(--onink); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s; }
.zbtn:hover { transform: translateY(-1px); }
.zbtn.ghost { background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.zbtn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* projects dropdown */
.zmenu { position: absolute; top: 68px; left: 50%; transform: translate(-50%, -6px); width: 340px; padding: 8px; border-radius: 18px; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s; color: var(--ink);
  background: color-mix(in srgb, rgb(18 24 52 / .78) calc(var(--dark) * 100%), rgb(255 255 255 / .82));
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.zmenu.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.zmenu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.zmenu a:hover, .zmenu a:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.zmenu .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 700 13px var(--font-display);
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.zmenu b { display: block; font: 600 14px var(--font-body); } .zmenu small { color: color-mix(in srgb, var(--ink) 65%, transparent); font-size: 12.5px; }
.zbadge { font: 700 9.5px var(--font-body); letter-spacing: .08em; padding: 2px 6px; border-radius: 99px; margin-left: 6px; vertical-align: 1px;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.zmenu .soon { opacity: .6; }

/* mobile: logo + sign in + menu button; links open as a sheet */
.zburger { all: unset; display: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; place-items: center; color: var(--ink); }
.zburger svg { width: 20px; height: 20px; }
.zmenu .mobile-only { display: none; } /* shown inside the phone menu below */
@media (max-width: 720px) {
  .znav { left: 12px; right: 12px; transform: none; width: auto; }
  .znav .pill-bar { gap: 10px; justify-content: space-between; }
  .zlinks { display: none; }
  .zburger { display: grid; }
  .zmenu { left: 0; right: 0; width: auto; transform: translateY(-6px); }
  .zmenu.open { transform: none; }
  .zmenu .mobile-only { display: flex; }
}
.zmenu hr { border: 0; height: 1px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin: 6px 8px; }

@media (prefers-reduced-motion: reduce) { .zmenu, .caret, .zbtn { transition: none; } }

/* ---------- feedback popup ---------- */
dialog.zfb { margin: auto; } /* pages reset margins; dialogs need auto to stay centred */
.zfb { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 26px; border-radius: 22px; color: #eef2f6;
  background: rgb(16 21 46 / .96); border: 1px solid rgb(238 242 246 / .14); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); font: 15px/1.5 var(--font-body);
  --ink: #eef2f6; --onink: #0b1026; }
.zfb::backdrop { background: rgb(5 8 22 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zfb[open] { animation: zfb-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes zfb-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.zfb h2 { font: 700 22px var(--font-display); letter-spacing: -.03em; margin: 0; }
.zfb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zfb-x { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgb(238 242 246 / .7); }
.zfb-x:hover { background: rgb(238 242 246 / .08); color: #eef2f6; }
.zfb-sub { color: rgb(238 242 246 / .65); font-size: 14px; margin: 4px 0 18px; }
.zfb-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.zfb-kinds label { cursor: pointer; }
.zfb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.zfb-kinds span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; border: 1px solid rgb(238 242 246 / .2); color: rgb(238 242 246 / .8); transition: .15s; }
.zfb-kinds input:checked + span { background: var(--mint); border-color: var(--mint); color: #0b1026; font-weight: 600; }
.zfb-kinds input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.zfb-field { display: block; margin-bottom: 14px; }
.zfb-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: rgb(238 242 246 / .85); }
.zfb-field small { font-weight: 400; color: rgb(238 242 246 / .5); margin-left: 4px; }
.zfb input:not([type="radio"]), .zfb select, .zfb textarea { width: 100%; box-sizing: border-box; font: inherit; color: #eef2f6; background: rgb(238 242 246 / .06);
  border: 1px solid rgb(238 242 246 / .16); border-radius: 12px; padding: 11px 13px; outline: none; }
.zfb textarea { resize: vertical; min-height: 110px; }
.zfb select option { color: #0b1026; }
.zfb input:focus, .zfb select:focus, .zfb textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgb(94 234 212 / .18); }
.zfb ::placeholder { color: rgb(238 242 246 / .38); }
.zfb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zfb-err { color: #fda4af; font-size: 13.5px; margin: -4px 0 12px; }
.zfb-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.zfb .zbtn:disabled { opacity: .6; cursor: default; transform: none; }
.zfb-done { text-align: center; padding: 18px 6px 6px; }
.zfb-done .zfb-sub { margin: 8px 0 22px; }
.zfb-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700;
  background: rgb(94 234 212 / .16); color: var(--mint); }
@media (max-width: 520px) { .zfb { padding: 20px; } .zfb-acts .zbtn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .zfb[open] { animation: none; } }

/* sun / moon theme button (only on pages that have both looks) */
.ztheme { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: color-mix(in srgb, var(--ink) 78%, transparent); transition: background .2s, color .2s; }
.ztheme:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.ztheme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ztheme svg { width: 18px; height: 18px; }

/* ---------- motion (see motion.js) ---------- */
@view-transition { navigation: auto; }
.znav { view-transition-name: znav; animation: znavIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes znavIn { from { opacity: 0; translate: 0 -18px; scale: .96; } }
::view-transition-old(root) { animation: zvtOut .35s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: zvtIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes zvtOut { to { opacity: 0; scale: .985; filter: blur(4px); } }
@keyframes zvtIn { from { opacity: 0; translate: 0 18px; } }
/* the theme switch draws its own circle, so its snapshot must not fade */
html.zthemeswap::view-transition-old(root), html.zthemeswap::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.zthemeswap::view-transition-new(root) { z-index: 2; }

/* sections: rise with depth */
[data-motion="on"] .zrv { opacity: 0; translate: 0 48px; scale: .97; }
[data-motion="on"] .zrv.zarm { transition: opacity 1s cubic-bezier(.2,.8,.2,1) var(--zd, 0ms), translate 1.2s cubic-bezier(.2,.8,.2,1) var(--zd, 0ms), scale 1.2s cubic-bezier(.2,.8,.2,1) var(--zd, 0ms); }
[data-motion="on"] .zrv.zin { opacity: 1; translate: 0 0; scale: 1; }
/* headlines: words rise out of a mask */
.zw { display: inline-block; overflow: clip; overflow-clip-margin: .16em; vertical-align: top; }
[data-motion="on"] .zsplit .zwi { display: inline-block; translate: 0 130%; rotate: 4deg; transform-origin: 0 100%; }
[data-motion="on"] .zsplit.zarm .zwi { transition: translate 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms + var(--zd, 0ms)), rotate 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms + var(--zd, 0ms)); }
[data-motion="on"] .zsplit.zin .zwi { translate: 0 0; rotate: 0deg; }
[data-motion="on"] .zsplit .zfade { opacity: 0; filter: blur(8px); }
[data-motion="on"] .zsplit.zarm .zfade { transition: opacity 1.1s ease calc(var(--i, 0) * 55ms + var(--zd, 0ms) + 120ms), filter 1.1s ease calc(var(--i, 0) * 55ms + var(--zd, 0ms) + 120ms); }
[data-motion="on"] .zsplit.zin .zfade { opacity: 1; filter: none; }
/* pictures open from a rounded window */
[data-motion="on"] .zclip { clip-path: inset(14% 10% 14% 10% round 28px); opacity: .2; }
[data-motion="on"] .zclip.zarm { transition: clip-path 1.3s cubic-bezier(.2,.8,.2,1) var(--zd, 0ms), opacity .9s ease var(--zd, 0ms), transform .5s cubic-bezier(.2,.8,.2,1); }
[data-motion="on"] .zclip.zin { clip-path: inset(0 0 0 0 round 0px); opacity: 1; }
/* spotlight that follows the pointer */
.zspot { position: relative; isolation: isolate; }
.zspot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent, #5eead4) 16%, transparent), transparent 60%); }
.zspot:hover::after { opacity: 1; }
.tile .pic { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.zmag { transition: translate .45s cubic-bezier(.2,.8,.2,1), transform .25s, box-shadow .25s; }
/* thin progress line under the menu */
.zprogress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; scale: 0 1; pointer-events: none;
  background: linear-gradient(90deg, #2dd4bf, #8A96FF 55%, #E6C77E); }
/* timelines draw themselves */
.tl ol { position: relative; }
.tl ol::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; transform-origin: top; scale: 1 var(--tlp, 0);
  background: linear-gradient(var(--l-em, var(--r-indigo, #2dd4bf)), var(--l-gold, var(--r-amber, #E6C77E))); }
.zbtn:active, .ztheme:active, .zmag:active { scale: .96; }
body { transition: background-color .5s ease, color .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .znav { animation: none; } body { transition: none; } .zprogress { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- live layer (see live.js) ---------- */
canvas.zstars, canvas.zflow { position: absolute !important; inset: 0; pointer-events: none; z-index: 0; }
.zlive-stars > svg.stars { display: none; }
.zlive-stars > :not(canvas):not(.sky) { position: relative; z-index: 1; }
.hero.zlive-stars > .sky { z-index: 0; }
.lbl { transition: box-shadow .3s, border-color .3s, scale .3s; }
.lbl.hot, .lbl:focus-visible { scale: 1.06; border-color: color-mix(in srgb, var(--accent, #5eead4) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #5eead4) 14%, transparent); outline: none; }
/* Leo: talk box under the island */
.ztalk { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(620px, 100%); margin-top: 22px; }
.ztalk input { flex: 1 1 260px; height: 46px; border-radius: 999px; padding: 0 18px; font: 15px var(--font-body); color: var(--l-fg, #eef2f6); background: color-mix(in srgb, var(--l-card, #0C100E) 80%, transparent); border: 1px solid var(--l-line2, #26302B); }
.ztalk input:focus { outline: none; border-color: var(--l-gold, #D9B46A); box-shadow: 0 0 0 4px color-mix(in srgb, var(--l-gold, #D9B46A) 18%, transparent); }
.ztalk button { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font: 600 14px var(--font-body); cursor: pointer; color: #1B1408; background: linear-gradient(135deg, var(--l-gold-hi, #F1D79A), var(--l-gold, #D9B46A)); }
.ztalk .zhint { flex-basis: 100%; text-align: center; font-size: 12.5px; color: var(--l-mute, #6B746F); margin: 2px 0 0; }
.zv { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Resuto: live run */
.demo .acts button { all: unset; cursor: pointer; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--r-line2, #2F3342); color: var(--r-fg, #F1F2F4); background: var(--r-raise, #1C1F26); transition: background .2s, border-color .2s, scale .15s; }
.demo .acts button:hover { border-color: var(--r-indigo-hi, #8A96FF); } .demo .acts button:active { scale: .95; }
.demo .acts button.ok { background: var(--r-indigo, #5B6AF0); border-color: transparent; color: #fff; }
.demo .acts button:focus-visible { outline: 2px solid var(--r-indigo-hi, #8A96FF); outline-offset: 2px; }
.zturn-in { animation: zturn .7s cubic-bezier(.2,.8,.2,1); } @keyframes zturn { from { opacity: 0; translate: 0 14px; } }
.zrow-in { animation: zrow .6s cubic-bezier(.2,.8,.2,1); } @keyframes zrow { from { opacity: 0; translate: -12px 0; background: color-mix(in srgb, var(--r-indigo, #5B6AF0) 20%, transparent); } }
.zpeek { animation: zpeek .9s ease; } @keyframes zpeek { 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--r-indigo-hi, #8A96FF) 50%, transparent); } }
.demo .bar .dot { animation: zbeat 1.6s ease-in-out infinite; } @keyframes zbeat { 50% { opacity: .35; } }
/* ResumeBoost: keywords as you type */
.zkw { display: none; margin-top: 12px; } .zkw.on { display: block; }
.zkw-l { display: block; font: 600 12px var(--font-body); letter-spacing: .08em; color: var(--mute, var(--muted)); margin-bottom: 8px; }
.zkw-c { display: flex; flex-wrap: wrap; gap: 6px; }
.zchip { font-size: 13px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line2, var(--line)); color: var(--dim, var(--muted)); transition: background .3s, color .3s, border-color .3s; }
.zchip.hit { background: var(--soft); color: var(--accent, var(--brand)); border-color: transparent; }
.zpop { animation: zpop .45s cubic-bezier(.2,1.4,.4,1); } @keyframes zpop { from { scale: .4; opacity: 0; } }
/* sign-in: the planet listens */
.side .astrowrap .corec { transition: filter .4s; }
.side.zlisten .astrowrap .corec { filter: drop-shadow(0 0 22px rgba(94,234,212,.75)); }
.side.zpulse .astrowrap .corec { animation: zbreathe 6s ease-in-out infinite, zping .5s ease; } @keyframes zping { 40% { scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .demo .bar .dot, .zturn-in, .zrow-in, .zpop { animation: none; } }
